/* ========================================= */
/* 1. FONTS & EXTERNAL CSS IMPORTS           */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Anek+Sinhala:wght@300;400;600;700&family=Iskoola+Pota&family=Poppins:wght@300;400;600&display=swap');

:root {
--brand-gold: #d4a373;
--brand-darkGold: #b08d55;
--brand-green: #27ae60;
--brand-darkGreen: #1a7a4a;
--bg-color: #fafafa;
--text-main: #1f2937;
--text-muted: #4b5563;
--text-light: #9ca3af;
}

/* ========================================= */
/* 2. BASE RESETS & TYPOGRAPHY               */
/* ========================================= */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: 'Anek Sinhala', sans-serif;
background-color: var(--bg-color);
color: var(--text-main);
line-height: 1.5;
display: flex;
flex-direction: column;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
}

a {
text-decoration: none;
color: inherit;
transition: color 0.2s ease;
}

ul {
list-style: none;
}

/* ========================================= */
/* 3. LAYOUT UTILITIES                       */
/* ========================================= */
.container {
max-width: 1152px;
margin: 0 auto;
padding: 0 1rem;
width: 100%;
}

@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

/* ========================================= */
/* 4. HEADER & NAVIGATION                    */
/* ========================================= */
.site-header {
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
position: sticky;
top: 0;
z-index: 50;
border-bottom: 1px solid rgba(212, 163, 115, 0.2);
}

.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
}

.logo-group {
display: flex;
align-items: center;
gap: 0.5rem;
}

.logo-icon {
color: var(--brand-darkGold);
font-size: 1.5rem;
animation: spin 10s linear infinite;
}

.logo-text {
font-size: 1.5rem;
font-weight: 700;
letter-spacing: -0.025em;
}

.logo-text span {
color: var(--brand-gold);
}

.desktop-nav {
display: none;
align-items: center;
gap: 2rem;
font-weight: 600;
color: var(--text-muted);
}

.desktop-nav a:hover {
color: var(--brand-darkGold);
}

.auth-buttons {
display: none;
align-items: center;
}

.btn-link {
font-weight: 600;
color: var(--text-muted);
margin-right: 1rem;
}

.btn-link:hover {
color: var(--brand-darkGold);
}

.btn-primary {
background-color: var(--brand-darkGold);
color: white;
padding: 0.5rem 1.25rem;
border-radius: 9999px;
font-weight: 700;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
border: none;
cursor: pointer;
}

.btn-primary:hover {
background-color: var(--brand-gold);
}

.btn-danger {
background-color: #ef4444;
color: white;
padding: 0.5rem 1.25rem;
border-radius: 9999px;
font-weight: 700;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
}

.btn-danger:hover {
background-color: #dc2626;
}

.mobile-menu-btn {
display: block;
background: none;
border: none;
font-size: 1.5rem;
color: var(--text-muted);
cursor: pointer;
}

.mobile-menu-btn:hover {
color: var(--brand-darkGold);
}

.mobile-menu {
display: none;
background-color: white;
border-top: 1px solid #f3f4f6;
padding: 0.5rem 1rem 1rem 1rem;
position: absolute;
width: 100%;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.show {
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.mobile-menu a {
font-weight: 600;
color: #374151;
display: block;
}

.mobile-menu a:hover {
color: var(--brand-darkGold);
}

/* ========================================= */
/* 5. HERO SECTION                           */
/* ========================================= */
.hero-section {
flex-grow: 1;
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 5rem 0;
overflow: hidden;
}

.hero-pattern {
position: absolute;
inset: 0;
background-image: radial-gradient(var(--brand-gold) 1px, transparent 1px);
background-size: 30px 30px;
opacity: 0.1;
pointer-events: none;
}

.hero-content {
position: relative;
max-width: 896px;
margin: 0 auto;
padding: 0 1rem;
text-align: center;
z-index: 10;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(212, 163, 115, 0.08);
  color: var(--brand-darkGold);
  font-size: 0.875rem;
  font-weight: 700;
  font-style: italic; 
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 163, 115, 0.3);
  border-radius: 16px 0 16px 0; 
  box-shadow: inset 0 0 8px rgba(212, 163, 115, 0.1); 
}
.hero-title {
font-size: 2.25rem;
font-weight: 800;
color: #111827;
margin-bottom: 1.5rem;
line-height: 1.2;
}

.hero-title .gradient-text {
background: linear-gradient(to right, var(--brand-darkGold), var(--brand-gold));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.hero-subtitle {
font-size: 1.125rem;
color: var(--text-muted);
margin-bottom: 2.5rem;
max-width: 42rem;
margin-left: auto;
margin-right: auto;
}

.hero-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
padding: 1rem 2rem;
background-color: var(--brand-darkGold);
color: white;
font-size: 1.125rem;
font-weight: 700;
border-radius: 0.5rem;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
transition: all 0.2s ease;
}

.hero-btn:hover {
background-color: #d4a373;
transform: translateY(-4px);
}

/* ========================================= */
/* 6. SERVICES SECTION                       */
/* ========================================= */
.services-section {
padding: 4rem 0;
background-color: white;
border-top: 1px solid #f3f4f6;
}

.section-header {
text-align: center;
margin-bottom: 3rem;
}

.section-title {
font-size: 1.875rem;
font-weight: 700;
color: #1f2937;
}

.section-divider {
width: 5rem;
height: 0.25rem;
background-color: var(--brand-gold);
margin: 1rem auto 0;
border-radius: 9999px;
}

.services-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
padding: 0 1rem;
}

.service-card {
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 2rem;
border-radius: 1rem;
text-align: center;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
transition: box-shadow 0.2s ease;
position: relative;
}

.service-card:hover {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.service-card.highlight {
border-color: rgba(212, 163, 115, 0.4);
}

.popular-badge {
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -50%);
background-color: var(--brand-darkGold);
color: white;
font-size: 0.75rem;
font-weight: 700;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
width: 4rem;
height: 4rem;
margin: 0 auto 1.5rem;
border-radius: 9999px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: var(--brand-darkGold);
}

.icon-gold { background-color: rgba(212, 163, 115, 0.1); }
.icon-green { background-color: rgba(39, 174, 96, 0.1); }

.service-title {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.75rem;
color: var(--text-main);
}

.service-desc {
color: var(--text-muted);
font-size: 0.875rem;
line-height: 1.6;
}

/* ========================================= */
/* 7. DESKTOP FOOTER                         */
/* ========================================= */
.site-footer {
background-color: #111827;
color: #d1d5db;
padding: 3rem 0;
border-top: 4px solid var(--brand-darkGold);
margin-top: auto;
}

.footer-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
padding: 0 1rem;
}

.footer-logo-group {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
}

.footer-logo-group h4 {
font-size: 1.25rem;
font-weight: 700;
color: white;
}

.footer-desc {
font-size: 0.875rem;
color: #9ca3af;
line-height: 1.6;
max-width: 24rem;
}

.footer-heading {
color: white;
font-weight: 700;
margin-bottom: 1rem;
border-bottom: 1px solid #374151;
padding-bottom: 0.5rem;
display: inline-block;
}

.footer-links li {
margin-bottom: 0.5rem;
}

.footer-links a:hover {
color: var(--brand-gold);
}

.footer-bottom {
margin-top: 2.5rem;
padding-top: 1.5rem;
border-top: 1px solid #1f2937;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
text-align: center;
font-size: 0.75rem;
color: #6b7280;
padding-left: 1rem;
padding-right: 1rem;
}

.social-links {
display: flex;
gap: 1rem;
font-size: 1.125rem;
}

.social-links a:hover {
color: white;
}

/* ========================================= */
/* 8. MEDIA QUERIES (DESKTOP / TABLET)       */
/* ========================================= */
@media (min-width: 640px) {
.hero-btn { width: auto; }
.hero-title { font-size: 3.75rem; }
.hero-subtitle { font-size: 1.25rem; }
}

@media (min-width: 768px) {
.desktop-nav { display: flex; }
.auth-buttons { display: flex; }
.mobile-menu-btn { display: none; }
.mobile-menu { display: none !important; }

.hero-title br { display: block; }

.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card.highlight { transform: translateY(-1rem); }

.footer-grid { grid-template-columns: repeat(4, 1fr); }
.footer-col-main { grid-column: span 2 / span 2; }

.footer-bottom {
flex-direction: row;
justify-content: space-between;
}
}

/* ========================================= */
/* 9. MOBILE BOTTOM NAV BAR                  */
/* ========================================= */

@media (max-width: 767px) {
    body {
        padding-bottom: 64px;
    }
    .site-footer {      /* ← added */
        display: none;
    }
}

.mobile-bottom-nav {
display: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 60px;
background: #111827;
border-top: 3px solid var(--brand-darkGold);
z-index: 200;
align-items: stretch;
justify-content: space-around;
box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

@media (max-width: 767px) {
.mobile-bottom-nav { display: flex; }
}

.mbn-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
color: #9ca3af;
background: none;
border: none;
cursor: pointer;
text-decoration: none;
font-family: 'Anek Sinhala', sans-serif;
padding: 6px 2px;
transition: color 0.2s ease, background 0.2s ease;
position: relative;
}

.mbn-item:hover,
.mbn-item.active {
color: var(--brand-gold);
background: rgba(212, 163, 115, 0.08);
}

.mbn-item.active::after {
content: '';
position: absolute;
top: 0;
left: 25%;
right: 25%;
height: 2px;
background: var(--brand-gold);
border-radius: 0 0 2px 2px;
}

.mbn-icon {
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}

.mbn-label {
font-size: 0.58rem;
font-weight: 600;
white-space: nowrap;
letter-spacing: 0.01em;
}

/* ── More Menu Popup ── */
.mbn-more-menu {
display: none;
position: fixed;
bottom: 64px;
left: 0;
right: 0;
background: #1f2937;
border-top: 2px solid var(--brand-darkGold);
border-radius: 1rem 1rem 0 0;
z-index: 199;
padding: 1rem;
box-shadow: 0 -8px 30px rgba(0,0,0,0.4);
animation: mbnSlideUp 0.25s ease;
}

.mbn-more-menu.open {
display: block;
}

@keyframes mbnSlideUp {
from { transform: translateY(30px); opacity: 0; }
to   { transform: translateY(0);    opacity: 1; }
}

.mbn-more-header {
display: flex;
justify-content: space-between;
align-items: center;
color: white;
font-weight: 700;
font-size: 1rem;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #374151;
}

.mbn-more-close {
background: none;
border: none;
color: #9ca3af;
font-size: 1.1rem;
cursor: pointer;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
transition: color 0.2s;
}

.mbn-more-close:hover { color: white; }

.mbn-more-links {
list-style: none;
margin-bottom: 1rem;
}

.mbn-more-links li {
border-bottom: 1px solid #374151;
}

.mbn-more-links a {
display: block;
padding: 0.75rem 0.25rem;
color: #d1d5db;
font-size: 0.95rem;
font-weight: 600;
transition: color 0.2s;
}

.mbn-more-links a:hover { color: var(--brand-gold); }

.mbn-more-social {
display: flex;
gap: 0.75rem;
padding-top: 0.5rem;
}

.mbn-more-social a {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.65rem 0.5rem;
border-radius: 0.5rem;
font-size: 0.85rem;
font-weight: 700;
transition: opacity 0.2s;
color: white;
text-decoration: none;
}

.mbn-more-social a:first-child { background: #1877f2; }
.mbn-more-social a:last-child  { background: #25d366; }
.mbn-more-social a:hover       { opacity: 0.85; }

/* ── Overlay ── */
.mbn-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.5);
z-index: 198;
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
}

.mbn-overlay.show { display: block; }

/* ========================================= */
/* RESULTS TAB LAYOUT                        */
/* ========================================= */

.tabs-container {
    margin-top: 20px;
    width: 100%;
}

.tab-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
    gap: 8px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    margin-bottom: 25px;
}

.tab-btn {
    width: 100%;
    padding: 10px 5px; /* Slightly tighter padding for mobile */
    background: transparent;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem; /* Slightly smaller text for mobile */
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--bg-color);
    color: var(--brand-darkGold);
}

.tab-btn.active {
    background: var(--brand-darkGold);
    color: white;
    border-color: var(--brand-darkGold);
    box-shadow: 0 4px 10px rgba(176, 141, 85, 0.25);
}

/* On screens larger than 600px, stretch it back to a single row */
@media (min-width: 600px) {
    .tab-nav {
        grid-template-columns: repeat(4, 1fr); /* 4 in a row */
    }
    .tab-btn {
        font-size: 0.95rem;
        padding: 12px 18px;
    }
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ========================================= */
/* APP UI COMPONENTS (Migrated from hadahana)*/
/* ========================================= */

/* --- 1. Form Controls --- */
.controls-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.input-group-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-row { display: flex; gap: 10px; margin-bottom: 15px; }
.input-wrapper { position: relative; flex: 1; }

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    text-align: center;
    color: var(--text-main);
    transition: all 0.3s ease;
}
input:focus {
    outline: none;
    border-color: var(--brand-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

.date-select, .time-select { 
    padding: 10px 5px; 
    border-radius: 8px; 
    border: 1px solid #ccc; 
    font-size: 0.95rem; 
    outline: none; 
    background: #fff; 
    cursor: pointer; 
}
.date-select:focus, .time-select:focus { border-color: var(--brand-darkGold); }

button.btn-calculate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-darkGold));
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.1s;
}
button.btn-calculate:active { transform: scale(0.98); }

#cityResults li:hover { background: #fdfcf8; }
#cityResults li:last-child { border-bottom: none; }

/* --- 2. Charts & Headers --- */
.chart-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    margin-top: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    text-align: center;
    overflow: hidden;
}
.sl-chart { width: 100%; max-width: 500px; margin: 0 auto; }

.section-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-darkGold);
    margin: 30px 0 35px 0;
    font-size: 1.2rem;
    font-weight: 600;
    padding-left: 10px;
}
.section-header::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--brand-gold), #f6d365, var(--brand-gold), transparent);
}

/* --- 3. Tables & Nakshatra --- */
.table-wrapper {
    background: white;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
table { width: 100%; border-collapse: collapse; min-width: 300px; }
th { background: #fcf9f2; color: var(--brand-darkGold); padding: 12px; text-align: left; font-size: 0.9rem; font-weight: 600; }
td { padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }

.nakshatra-banner {
    background: linear-gradient(135deg, #fdfbf7, #fff);
    border: 1px solid #efeadd;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.attr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media(min-width: 600px) { .attr-grid { grid-template-columns: repeat(3, 1fr); } }

.attr-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 3px solid transparent;
}
.attr-icon { font-size: 1.2rem; color: var(--brand-gold); margin-bottom: 5px; opacity: 0.7;}
.attr-label { font-size: 0.7rem; color: #999; text-transform: uppercase; letter-spacing: 1px;}
.attr-value { font-size: 0.95rem; color: var(--text-main); font-weight: 600; margin-top: 2px;}


/* --- 4. Life Reading --- */
.life-reading-card { 
    background: #fff; 
    border-radius: 12px; 
    padding: 25px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.06); 
    margin-bottom: 25px; 
}
.reading-title { 
    color: var(--brand-darkGold); 
    margin-top: 20px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 8px; 
    font-size: 1.1rem; 
}
.reading-title:first-child { margin-top: 0; }
.reading-text { font-size: 0.95rem; color: #444; line-height: 1.7; margin-bottom: 20px; }
.reading-yogas-box { background: #b9ceab; padding: 15px; border-radius: 8px;  }
.reading-doshas-box { background: #e6c0c0; padding: 15px; border-radius: 8px; }

/* --- 5. Loader Overlay --- */
.loader-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}
.loader-overlay.active { display: flex; }

.loader-box {
    background: #fff8f0;
    border-radius: 16px;
    padding: 36px 48px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    animation: loaderFadeIn 0.3s ease;
}
.loader-spinner {
    width: 52px; height: 52px; margin: 0 auto 16px;
    border: 5px solid #f0dcc8; border-top-color: var(--brand-darkGold);
    border-radius: 50%;
    animation: loaderSpin 0.85s linear infinite;
}
.loader-text { color: var(--brand-darkGold); font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: 0.02em; }

@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
/* FAQ Container */
.astro-faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Individual FAQ Card */
.astro-faq-item {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.astro-faq-item:hover {
    border-color: var(--brand-darkGold, #d4af37);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Clickable Header Area */
.astro-faq-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

/* Title inside Header */
.astro-faq-title {
    color: #1f2937;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dropdown Icon Animation */
.astro-faq-icon {
    color: var(--brand-darkGold, #d4af37);
    font-size: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === The Magic Smooth Animation using CSS Grid === */
.astro-faq-content {
    display: grid;
    grid-template-rows: 0fr; /* Collapsed */
    opacity: 0;
    transition: grid-template-rows 0.4s ease, opacity 0.4s ease;
}

/* Expanded State */
.astro-faq-item.active {
    background-color: #faf9f6; /* Very subtle warm background when opened */
    border-color: rgba(212, 175, 55, 0.4); 
}

.astro-faq-item.active .astro-faq-content {
    grid-template-rows: 1fr; /* Expands to fit content */
    opacity: 1;
}

.astro-faq-item.active .astro-faq-icon {
    transform: rotate(180deg); /* Flips the arrow */
}

/* Inner Content Styling */
.astro-faq-inner {
    overflow: hidden;
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.astro-faq-inner p {
    color: var(--text-muted, #4b5563);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.astro-faq-inner ul {
    line-height: 1.8;
    padding-left: 20px;
    margin: 0;
    color: var(--text-muted, #4b5563);
    font-size: 0.95rem;
}

.astro-faq-inner ul li {
    margin-bottom: 0.5rem;
}
/* 1. The main container holding the icons */
.floating-icons {
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    pointer-events: none; /* Prevents icons from blocking clicks on buttons/links */
    overflow: hidden;
}

/* 2. Base styles for the icons */
.floating-icon {
    position: absolute;
    font-size: 4rem;
    opacity: 0.12; /* Adjust this if you want them darker/lighter */
    animation: float-around 15s infinite ease-in-out;
}

/* 3. Unique placement, sizing, and staggered animation timing for each icon */
.floating-icon:nth-child(1) { left: 8%; top: 15%; animation-delay: 0s; }
.floating-icon:nth-child(2) { right: 12%; top: 10%; animation-delay: -3s; font-size: 2.5rem; }
.floating-icon:nth-child(3) { left: 15%; bottom: 20%; animation-delay: -6s; font-size: 4.5rem; }
.floating-icon:nth-child(4) { right: 8%; bottom: 15%; animation-delay: -9s; }
.floating-icon:nth-child(5) { left: 45%; top: 8%; animation-delay: -12s; font-size: 3.75rem; }
.floating-icon:nth-child(6) { right: 25%; top: 35%; animation-delay: -2s; font-size: 3.5rem; }

/* 4. The keyframes creating the actual floating movement */
@keyframes float-around {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
    75% { transform: translateY(-25px) rotate(3deg); }
}
.mask-icon {
    display: inline-block;
    width: 1em;     /* Forces the icon to take the size of the font-size in your existing CSS */
    height: 1em;
    background-color: currentColor; /* Grabs your light/dark mode text color */
    
    /* Creates the SVG stencil */
    -webkit-mask-image: var(--svg-icon);
    mask-image: var(--svg-icon);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}