/* 1. Global Styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-color: #f7f9fb;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 1.1 Header Styling: Enhances visibility and readability of header text */
header p {
  font-size: 1.8rem; /* Larger font size for better readability */
  font-weight: 600; /* Slightly bold for emphasis */
  text-align: center;
  color: #002855; /* Dark navy blue for a modern, professional look */
  max-width: 900px; /* Prevents overly long text */
  margin: 20px auto; /* Centers and adds spacing */
  line-height: 1.6; /* Improves readability */
  letter-spacing: 0.5px; /* Subtle refinement */
}

/* 1.2 Header Titles (H1, H2, H3): Enhances section headings */
header h1, header h2, header h3 {
  font-size: 2.2rem; /* Large enough for emphasis */
  font-weight: 700; /* Bold but not excessive */
  color: #003366; /* Professional contrast */
  text-align: center;
  margin-bottom: 10px;
  text-transform: uppercase; /* Adds emphasis */
}

/* 1.3 Header Text Shadow: Subtle depth for premium look */
header p, header h1, header h2 {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

/* 1.4 Responsive Header Adjustments: Ensures mobile-friendly text */
@media (max-width: 768px) {
  header p {
    font-size: 1.5rem; /* Slightly smaller for mobile */
    line-height: 1.5;
  }
  
  header h1, header h2 {
    font-size: 2rem; /* Scales down on smaller screens */
  }
}

/* 2. Ensure Full-Height Layout & Adjust Content Width */
.container {
  max-width: 1200px; /* Expands content width */
  padding: 30px; /* Reduces excessive padding */
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 3. Search Container Layout */
.search-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  gap: 25px;
  justify-content: center;
  align-items: stretch;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* Handles input and '×' clear button positioning */
.input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

/* Clear button for search field */
.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  cursor: pointer;
  color: #aaa;
  display: none;
}
.clear-btn:hover {
  color: #555;
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
  .search-container {
    grid-template-columns: repeat(2, 1fr); /* Stays at 2 per row */
  }
}

@media (max-width: 768px) {
  .search-container {
    grid-template-columns: 1fr; /* Switches to 1 column for small screens */
  }
}


/* 4. Search Box Styling */
.search-box {
  width: 100%;
  max-width: 450px; /* Slightly smaller to fit two columns better */
  padding: 25px; /* More padding for better spacing */
  background-color: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: auto;
  min-height: 260px; /* Ensures equal height across all cards */
  margin: 0 auto;
  transition: box-shadow 0.3s ease-in-out;
}

/* Ensures Even Sizing on Mobile */
@media (max-width: 768px) {
  .search-box {
    max-width: 90%; /* Makes boxes slightly larger on mobile */
    min-height: auto;
  }
}

.search-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Apply box-sizing globally to prevent layout issues */
* {
  box-sizing: border-box;
}

/* 5. Large Logo Styling */
.large-logo {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 2000px; /* Ensures uniform size across all pages */
  height: auto;
}

/* 6. Buttons */
.btn-primary {
  background-color: #002678;
  color: white;
  padding: 14px 28px; /* Slightly larger for better balance */
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  max-width: 220px; /* Adjusts button size proportionally */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: #003d80;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 7. Footer Fix (Pushes to Bottom) */
footer {
  width: 100%; /* Ensures it only takes up the width of its container */
  background-color: #333;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto; /* Pushes the footer to the bottom */
}


/* 8. Read More Button */
.read-more-btn {
  background-color: transparent;
  border: none;
  color: #007BFF;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* 9. News Aggregator Grid */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.news-card {
  background-color: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.news-card h3 {
  font-size: 1.4em;
  color: #0056b3;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 1em;
  margin-bottom: 15px;
  color: #333;
}

/* 12. News Card Links */
.news-card a {
  font-size: 0.9em;
  color: #28a745;
  text-decoration: none;
}

.news-card a:hover {
  text-decoration: underline;
}

/* 13. News Card Images */
.news-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover;
}

/* 14. Enhanced Currency Tool Styling */
.currency-tool {
  text-align: center;
  margin: 40px auto;
  max-width: 600px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.currency-tool h2 {
  font-size: 2rem;
  color: #002855;
  font-weight: 700;
  margin-bottom: 15px;
}

.currency-tool p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 25px;
}

/* Form Container */
.currency-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Form Groups */
.form-group {
  width: 100%;
  max-width: 400px;
  text-align: left;
}

/* Labels */
.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #002855;
  margin-bottom: 6px;
}

/* Enhanced Dropdown Styling */
.form-control {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 2px solid #ced4da;
  border-radius: 8px;
  background: #f8f9fa;
  color: #333;
  transition: all 0.3s ease-in-out;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hover & Focus Effects */
.form-control:hover {
  border-color: #007BFF;
}

.form-control:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

/* Calculate Button Styling */
#calculateButton {
  width: 100%;
  max-width: 300px;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  background-color: #28a745;
  color: white;
  border: none;
  transition: background-color 0.3s, box-shadow 0.3s ease-in-out;
}

#calculateButton:hover {
  background-color: #218838;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

#calculateButton:focus {
  outline: none;
  background-color: #218838;
  box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

/* Results Styling */
.results-container {
  margin-top: 20px;
  font-size: 1rem;
  color: #333;
  text-align: center;
}

/* 15. Buttons */
button {
  padding: 15px 30px;
  font-size: 1.2em;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s ease-in-out;
}

button:hover {
  background-color: #218838;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
}

button:focus {
  outline: none;
  background-color: #218838;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}


/* 16. Miscellaneous */
.hidden {
  display: none;
}

/* ========== Country Profiles Page Styles ========== */

/* Small top-left logo */
.country-header {
  background-color: #003049;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.country-header .mini-logo {
  max-width: 140px;
  height: auto;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-subtitle {
  color: #ffffffcc;
  font-size: 0.9rem;
}


/* Main wrapper */
.profile-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Search Section */
.search-section {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}
#countrySearchInput {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.autocomplete-list {
  list-style: none;
  background: #fff;
  padding: 0;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 1000;
}

.autocomplete-list li {
  padding: 10px;
  cursor: pointer;
}
.autocomplete-list li:hover {
  background-color: #eef;
}
.autocomplete-list li.highlighted {
  background-color: #cce5ff;
}

.hidden {
  display: none;
}

/* Hero Section */
#hero-section {
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
#hero-section img {
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tabs Container */
#tabs-container {
  margin-top: 30px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tab-button {
  padding: 12px 20px;
  border: none;
  background-color: #002678;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}
.tab-button.active {
  background-color: #003d80;
}
.tab-content {
  display: none;
  margin-top: 20px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.tab-content.active {
  display: block;
}

/* Advisory Box */
.advisory-box {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.advisory-level {
  font-size: 1.2rem;
  font-weight: 700;
  color: #d9534f;
  margin-bottom: 0.5rem;
}

.advisory-description {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.advisory-box.level-1 {
  background-color: #e6fff2; /* light green */
  border-left: 5px solid #00cc66;
}

.advisory-box.level-2 {
  background-color: #fffde6; /* light yellow */
  border-left: 5px solid #ffcc00;
}

.advisory-box.level-3 {
  background-color: #fff3e6; /* light orange */
  border-left: 5px solid #ff9900;
}

.advisory-box.level-4 {
  background-color: #ffe6e6; /* light red */
  border-left: 5px solid #cc0000;
}

.advisory-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.source-link {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #444;
}

.source-link a {
  color: #0056b3;
  text-decoration: underline;
}

/* --- Bullet List Styling --- */
.section-title {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  font-weight: 600;
}

.bullet-list {
  list-style: disc;
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.bullet-list li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* --- Show More Toggle --- */
.toggle-btn {
  background-color: #0056b3;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.toggle-btn:hover {
  background-color: #004494;
}

/* ------------ 3-D carousel for shop.html (FINAL) ------------ */

/* Outer strip that holds the whole cylinder */
.stage{
  position:relative;
  width:100%;
  height:400px;              /* default height */
  overflow:hidden;
  background:#fff;           /* white backdrop – change if desired */
  transform-style:preserve-3d;
}

/* Let the strip shrink on very small phones */
@media (max-width:420px){
  .stage{height:300px;}
}