/* ====================================================================
   1. BASE STYLES, VARIABLES & RESET
   ==================================================================== */

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #1a202c;
  line-height: 1.9;
}

h4, h5, h6 {
  font-size: 20px;
  color: #d4af37;
}

.container {
  width: 92%;
  max-width: 1400px;
  margin: auto;
}


/* ====================================================================
   2. HEADER & NAVIGATION
   ==================================================================== */

header {
  background: linear-gradient(90deg, #003366, #004080);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo img {
  height: 45px;
  width: auto;
  display: block;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
}

.logo p {
  width: 100%;
  margin: 4px 0 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #d4af37;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ====================================================================
   3. HERO BLOCK & BUTTONS
   ==================================================================== */

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), 
              url('/trial/assets/images/aos-office-home.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  text-align: center;
}

.hero .container {
  width: 92%;
  max-width: 1200px;
}

.hero h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 38px;
  margin-bottom: 25px;
  line-height: 1.3;
}

.hero p {
  max-width: 1000px;
  margin: auto;
  font-size: 21px;
}

.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  margin: 10px;
  background: #d4af37;
  color: #1b1b1b;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #ffffff;
}


/* ====================================================================
   4. CONTENT SECTIONS, GRIDS & CARDS
   ==================================================================== */

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 38px;
  color: #003366;
  margin-bottom: 15px;
}

.section-title p {
  max-width: 900px;
  margin: auto;
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #ffffff;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border-top: 5px solid #004080;
}

.card:hover {
  transform: translateY(-6px);
}

.card i {
  font-size: 42px;
  color: #004080;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  color: #003366;
  font-size: 24px;
}

.content-box {
  background: #f0f4f8;
  padding: 40px;
  border-left: 5px solid #004080;
  border-radius: 10px;
  margin-bottom: 30px;
}

.content-box h3 {
  color: #003366;
  margin-bottom: 15px;
  font-size: 28px;
}

.search-section {
  background: #f0f4f8;
  color: #1a202c;
  padding: 80px 0;
}

.search-section .section-title h2 {
  color: #003366;
}

.search-section .section-title p {
  color: #4a5568;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.search-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.12);
  border-color: #cbd5e1;
}

.search-item h3,
.search-item a h3 {
  color: #003366;
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
  transition: color 0.25s ease;
}

.search-item i {
  font-size: 36px;
  margin-bottom: 15px;
  color: #d4af37;
}

.search-item .icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.search-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.search-item:hover a h3 {
  color: #004080;
}


/* ====================================================================
   5. CALL TO ACTION (CTA) COMPONENTS
   ==================================================================== */

.cta {
  background: linear-gradient(90deg, #004080, #003366);
  color: #ffffff;
  text-align: center;
  padding: 90px 20px;
}

.cta h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 46px;
  margin-bottom: 20px;
}

.cta-mid-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 35px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border-left: 4px solid #002244;
  width: 92%;
  max-width: 1400px;
  margin: 15px;
}

.btn-mid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff !important;
  padding: 13px 28px;
  border-radius: 6px;
  width: auto;
  box-sizing: border-box;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-mid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-mid-blue { background-color: #1a73e8; }
.btn-mid-blue:hover { background-color: #1557b0; }

.btn-mid-red { background-color: #ea4335; }
.btn-mid-red:hover { background-color: #b31412; }

.btn-mid-green { background-color: #34a853; }
.btn-mid-green:hover { background-color: #137333; }

@media (min-width: 680px) {
  .cta-mid-container {
    flex-direction: row;
    gap: 20px;
    padding: 25px 15px;
  }
  .btn-mid {
    width: auto;
    min-width: 180px;
  }
}


/* ====================================================================
   6. FOOTER & SITE DIRECTORY
   ==================================================================== */

footer {
  background: #e6ecf2;
  color: #1a202c;
  padding: 60px 0 30px;
  border-top: 2px solid #cbd5e1;
}

.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: #003366;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 2px solid #003366;
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-box p {
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
}

.footer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-box ul li a {
  color: #003366;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
  padding: 6px 0;
  width: 100%;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-box ul li a:hover {
  color: #b38f24;
  transform: translateX(2px);
}

.footer-box ul.two-column-list,
.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 #cbd5e1;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

.footer-bottom p {
  margin-bottom: 5px;
}

.footer-bottom a {
  color: #003366;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #b38f24;
}

/* Footer Breakpoint Adjustments */
@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-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .brand-box {
    grid-column: span 1;
  }
  /* Make this specific box take up 2 columns worth of width */
  .community-box {
    grid-column: span 2;
  }
  .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);
  }
  .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: #002244;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

#goto-top-btn:hover svg {
  transform: translateY(-2px);
}

.goto-top-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px);
}


/* ====================================================================
   8. GLOBAL RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   ==================================================================== */

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: #003366;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav ul li a {
    display: block;
    padding: 18px;
  }

  .hero h1,
  .section-title h2 {
    font-size: 32px;
  }

  .cta h2 {
    font-size: 34px;
  }
}

@media (max-width: 480px) {
  #goto-top-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  #goto-top-btn svg {
    width: 20px;
    height: 20px;
  }
}


/* ====================================================================
   9. PRINT STYLES (PDF & PAPER FORMATTING)
   ==================================================================== */

@media print {
  header,
  footer,
  nav,
  .menu-toggle,
  .hero-buttons,
  .cta,
  .cta-mid-container,
  #goto-top-btn,
  .search-section {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero {
    background: none !important;
    color: #000000 !important;
    padding: 20px 0 !important;
    text-align: left !important;
  }

  .hero h1 {
    font-size: 24pt !important;
    color: #000000 !important;
    margin-bottom: 10px !important;
  }

  .hero p {
    font-size: 12pt !important;
  }

  .section {
    padding: 20px 0 !important;
  }

  .section-title h2 {
    color: #000000 !important;
    font-size: 18pt !important;
  }

  .grid {
    display: block !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    border-top: 3px solid #003366 !important;
    margin-bottom: 15px !important;
    page-break-inside: avoid;
  }

  .content-box {
    background: #f9f9f9 !important;
    border-left: 3px solid #003366 !important;
    page-break-inside: avoid;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #555555;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}


/* ====================================================================
   10. SERVICE BOX (Clickable Link Rules & Color Utilities)
   ==================================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.service-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
  transition: all .3s ease;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.service-box a {
  display: block;
  padding: 30px 25px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.service-box i {
  font-size: 48px;
  color: #0d6efd;
  margin-bottom: 20px;
  transition: transform 0.2s ease, filter 0.2s ease, color 0.3s ease;
}

.service-box a:hover i {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.service-box h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-box:hover h3 {
  color: #003366;
}

.service-box p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  text-decoration: none;
}
/* for Contact information area */
/* Shared Service Box Base */
.service-box {
  padding: 30px 20px;
  text-align: center;
}

/* Shared Container Layout for Links */
.service-box .phone-links {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Comfortable touch spacing */
  margin-top: 15px;
}

/* Base style for all action buttons inside phone-links */
.service-box .phone-links a {
  display: inline-block;
  width: 100%;
  padding: 12px 16px; /* 44px+ touch target */
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* --------------------------------------------------------------------
   WHATSAPP SPECIFIC STYLES (Light Green Theme)
   -------------------------------------------------------------------- */
.whatsapp-box .phone-links a {
  background-color: #f0fdf4; /* Soft light green background */
  color: #166534;            /* Dark green text for readability */
  border: 1px solid #bbf7d0;  /* Subtle green border */
}

.whatsapp-box .phone-links a:hover,
.whatsapp-box .phone-links a:active {
  background-color: #25d366; /* Vibrant WhatsApp Green on hover */
  color: #ffffff;            /* White text */
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

/* --------------------------------------------------------------------
   DIAL / PHONE SPECIFIC STYLES (Light Blue/Purple Theme)
   -------------------------------------------------------------------- */
.dial-box .phone-links a {
  background-color: #f0f4f8; /* Soft blue-gray background */
  color: #003366;            /* Primary dark navy text */
  border: 1px solid #cbd5e1;  /* Slate border */
}

.dial-box .phone-links a:hover,
.dial-box .phone-links a:active {
  background-color: #8b5cf6; /* Matches icon-purple */
  color: #ffffff;            /* White text */
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
}

/* --------------------------------------------------------------------
   EMAIL / WRITE TO US SPECIFIC STYLES (Purple / Indigo Theme)
   -------------------------------------------------------------------- */
.email-box .phone-links a {
  background-color: #f5f3ff; /* Very soft purple background */
  color: #5b21b6;            /* Deep purple text */
  border: 1px solid #ddd6fe;  /* Subtle purple border */
}

.email-box .phone-links a:hover,
.email-box .phone-links a:active {
  background-color: #7c3aed; /* Vibrant Violet / Purple on hover */
  color: #ffffff;            /* Pure white text */
  border-color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}

.email-box .phone-links a i {
  font-size: 14px;
  margin-right: 6px;
  color: inherit; /* Ensures icon color matches the text/hover state */
}



/* Color Utilities */
.service-box i.icon-gold      { color: #d4af37; }
.service-box i.icon-teal      { color: #14b8a6; }
.service-box i.icon-blue      { color: #0d6efd; }
.service-box i.icon-purple    { color: #8b5cf6; }
.service-box i.icon-indigo    { color: #6366f1; }
.service-box i.icon-orange    { color: #f97316; }
.service-box i.icon-green     { color: #22c55e; }
.service-box i.icon-emerald   { color: #10b981; }
.service-box i.icon-cyan      { color: #06b6d4; }
.service-box i.icon-red       { color: #ef4444; }
.service-box i.icon-amber     { color: #f59e0b; }
.service-box i.icon-rose      { color: #f43f5e; }
.service-box i.icon-whatsapp  { color: #25d366; }
.service-box i.icon-pink      { color: #ec4899; }
.service-box i.icon-violet    { color: #7c3aed; }
.service-box i.icon-lime      { color: #84cc16; }
.service-box i.icon-sky       { color: #0ea5e9; }
.service-box i.icon-slate     { color: #64748b; }


/* =========================================================
   BACK TO SERVICES BUTTON
   ========================================================= */

.back-navigation-section {
    padding: 20px 0 5px;
}

.back-navigation-section .container {
    display: flex;
    align-items: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.25s ease;
}

.back-button i {
    font-size: 14px;
}

.back-button:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    text-decoration: none;
    transform: translateX(-2px);
}

.back-button:focus {
    outline: 2px solid #333;
    outline-offset: 3px;
}
