/* ==========================================================================
   Global Design Tokens & Reset
   ========================================================================== */
:root {
  --primary-corporate: #1d5682;
  --primary-hover: #0a2336;
  --text-dark: #1d2939;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-light: #e2e8f0;

  /* Accent Colors */
  --btn-blue: #004080;
  --btn-green: #008000;
  --btn-yellow: #edb908;
  --btn-purple: #783d82;
  --btn-navy: #114c8e;
  --btn-gold: #ae5700;
  --btn-purple: #783d82;
  --btn-red: #870a0a;
  --btn-black: #1c1c1c;
  --btn-lgreen: #666c22;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);

  /* Modern Helpers */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--primary-corporate);
  color: var(--white);
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

/* Brand Logo */

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* Spacing between logo and title */
  color: var(--white);
  font-weight: 500;
}

.site-logo {
  width: auto;
  height: 40px; /* Controls display size of the logo */
  object-fit: contain;
  display: block;
}


.brand-title {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Desktop Navigation List */
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
}

.nav-item {
  position: relative;
}

.nav-link,
.dropdown-toggle {
  color: var(--white);
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.25rem;
}

.dropdown-toggle .arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  list-style: none;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 0.5rem 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background-color: var(--bg-light);
  color: var(--primary-corporate);
}

/* Desktop Hover Interaction */
@media (min-width: 901px) {
  .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .has-dropdown:hover .arrow {
    transform: rotate(180deg);
  }
}

/* Nav Actions */
.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 0.5rem;
}

.btn-nav {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--white);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Visual animation when mobile menu is active */
.mobile-nav-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Mobile Navigation */
@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-corporate);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    z-index: 1001; /* Layer above hero banners and sliders */
  }

  .site-nav.is-open {
    display: block !important;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .has-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  /* Mobile Submenu Accordion Fixes */
  .dropdown-menu {
    position: static;
    display: none; /* Controlled via JS toggles */
    opacity: 1 !important; /* Overrides desktop opacity: 0 */
    visibility: visible !important; /* Overrides desktop visibility: hidden */
    transform: none !important; /* Overrides desktop translateY */
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    width: 100%;
  }

  .dropdown-menu a {
    color: var(--white);
    padding: 0.6rem 1rem;
  }

  /* Triggered when dropdown button is clicked on mobile */
  .has-dropdown.is-expanded > .dropdown-menu {
    display: block !important;
  }

  .has-dropdown.is-expanded .arrow {
    transform: rotate(180deg);
  }

  .nav-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */
/* Container takes relative positioning */
/* Hero Container controls the display height on mobile vs desktop */
.hero-image-container {
  position: relative;
  width: 100%;
  height: 400px; /* Desktop banner height */
  overflow: hidden;
}

/* Base image styling */
/* Force image to fill container without changing aspect ratio */
.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* Keeps aspect ratio intact, cropping extra edges if needed */
  aspect-ratio: 16 / 9; /* Or match your image's exact aspect ratio e.g. 4/3 */
  object-position: center center; /* Keeps center of image visible */
}

/* Mobile height adjustment */
@media (max-width: 768px) {
  .hero-image-container {
    height: auto; /* Adjust mobile banner height here */
  }
}

/* Absolute positioning to layer CTAs over the image */
.hero-content {
  position: absolute;
  inset: 0; /* Stretches across top, right, bottom, left */
  display: flex;
  align-items: center; /* Vertically centers the CTAs */
  justify-content: center; /* Horizontally centers the CTAs */
  z-index: 2;
  padding: 1.5rem;
}

/* Optional overlay tint behind buttons to improve contrast */
.hero-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0); /* Soft dark layer */
  z-index: 1;
}

/* Mobile height adjustment */
@media (max-width: 768px) {
  .hero-image-container {
    height: 250px; /* Adjust mobile banner height here */
  }
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}  
 
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

/* Google Action Colors */
.btn-google-blue, .btn-blue, .GREEN { background-color: var(--btn-blue); color: var(--white); }
.btn-google-green, .btn-green, .BLUE { background-color: var(--btn-green); color: var(--white); }
.btn-google-yellow, .btn-yellow { background-color: var(--btn-yellow); color: #202124; }
.btn-google-purple, .btn-purple, .PURPLE { background-color: var(--btn-purple); color: var(--white); }
.btn-google-navy, .btn-navy, .NAVY { background-color: var(--btn-navy); color: var(--white); }
.btn-google-gold, .btn-gold, .GOLD { background-color: var(--btn-gold); color: var(--white); }

.btn-primary {
  background-color: var(--btn-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #1557b0;
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-corporate);
  border: 1px solid var(--primary-corporate);
}

.btn-outline:hover {
  background-color: var(--primary-corporate);
  color: var(--white);
}


/* ==========================================================================
   Layout Containers & Grid Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.main-content {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.section-block {
  margin-bottom: 3.5rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.section-header h2,
.intro-section h2 {
  color: var(--primary-corporate);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Flexible Grid Systems */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Legacy grid fallback */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Card Modules & Alignment Decorators
   ========================================================================== */
.card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 115, 232, 0.3);
}

/* Subtle Top Accent Accent Bar */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--btn-green);
  opacity: 0.85;
}

.card h3 {
  color: var(--primary-corporate);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
}

/* Step Cards (How It Works) */
.step-card {
  padding-top: 2.25rem;
}

.step-badge {
  display: inline-block;
  background-color: rgba(26, 115, 232, 0.1);
  color: var(--btn-blue);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  width: fit-content;
}

/* Membership Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0 0;
  border-top: 1px dashed var(--border-light);
  padding-top: 1rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--btn-green);
  font-weight: bold;
}

/* Highlighted Membership Card */
.card.highlighted {
  background: #f4f8ff;
  border-color: rgba(223, 23, 127, 0.8);
}

.card.highlighted::before {
  height: 5px;
  background: rgba(223, 23, 127, 0.8);
}

/* Special Layout Boxes */
.highlight-box {
  background: #f8fafc;
  border-left: 4px solid var(--btn-blue);
}

.cta-box {
  text-align: center;
  justify-content: center;
  align-items: center;
  background: #ffffff;
}

.cta-box .btn {
  margin-top: 1.25rem;
}

/* Intro Block */
.intro-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-block;
  background-color: var(--primary-corporate);
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 600;
}

.lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.7;
}

.intro-body p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.quick-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.text-columns .column {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.text-columns .column h2 {
  color: var(--primary-corporate);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.text-columns .column p + p {
  margin-top: 1rem;
}

/* ====================================================================
   6. FOOTER & SITE DIRECTORY
   ==================================================================== */

footer {
  background: #1d5682;
  color: #ffffff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 30px;
}

.footer-box h3 {
  font-family: 'Cinzel', serif, Georgia;
  color: #ffffff;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-box p {
  color: #e0f2f1;
  font-size: 14px;
  line-height: 1.8;
}

/* Footer Link Lists */
.footer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-box ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14.5px;
  display: inline-block;
  padding: 6px 0;
  width: 100%;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-box ul li a:hover {
  color: #d4af37;
  transform: translateX(2px);
}

/* Multi-Column List Layouts */
.footer-box ul.two-column-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 20px;
}

.footer-box ul.four-column-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 20px;
}

.footer-divider {
  margin: 40px 0 25px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #e0f2f1;
  line-height: 1.7;
}

.footer-bottom p {
  margin-bottom: 5px;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #d4af37;
}

/* Desktop Footer Layout Adjustments */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .brand-box {
    grid-column: span 1;
  }
  .astrology-box {
    grid-column: span 2;
  }
  .nri-countries-box, 
  .legal-box {
    grid-column: 1 / -1;
    margin-top: 15px;
    padding-top: 25px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
  }
}

@media (min-width: 480px) {
  .footer-box ul.four-column-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 540px) {
  .footer-box ul.two-column-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-box ul.four-column-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-box ul.four-column-list {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ====================================================================
   7. FLOATING GO-TO-TOP BUTTON
   ==================================================================== */

#goto-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background-color: #d4af37;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#goto-top-btn svg {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}

#goto-top-btn:hover {
  background-color: #1d5682;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

#goto-top-btn:hover svg {
  transform: translateY(-2px);
}

/* Hidden State (Controlled by JavaScript) */
.goto-top-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .main-content {
    padding-top: 2rem;
  }
  
  .intro-section {
    padding: 1.5rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .quick-nav {
    flex-direction: column;
  }
  
  .quick-nav .btn {
    width: 100%;
  }
}

