/* ==========================================================================
   ODIACALENDAR.COM - GLOBAL FOUNDATION & DESIGN SYSTEM
   File: /mycss/global.style.css
   ========================================================================== */

:root {
    /* Brand & Surface Palette */
    --brand-primary: #b84a0b;       /* Warm terracotta */
    --brand-dark: #64220b;          /* Deep earthy brown-red */
    --brand-crimson: #9e2a2b;       /* Muted antique crimson */
    --brand-light: #fef7ee;         /* Ultra-soft warm ivory */
    --brand-subtle: #fae8d4;        /* Soft sand container tint */
    --border-color: #cbd5e1;        /* Tactile neutral border */
    
    /* High-Contrast Typography Colors (Senior-Friendly 40+) */
    --text-heading: #0f172a;        /* Deep slate black */
    --text-body: #1e293b;           /* Legible dark charcoal */
    --text-muted: #475569;          /* Medium slate */
    --bg-page: #fbfbf9;             /* Anti-glare soft natural white */
    
    /* Accessible Links */
    --link-color: #0f4c81;          /* Classic deep royal navy */
    --link-hover: #08294a;          /* Midnight blue on hover */
    --link-decoration: #93c5fd;     /* High-contrast soft underline */

    /* Elevation & Curves */
    --card-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

/* --------------------------------------------------------------------------
   RESET & FOUNDATIONAL RULES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'Noto Sans Oriya', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessible Interactive Pointers */
a, button, input[type="submit"], input[type="button"], select {
    cursor: pointer;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-color: var(--link-decoration);
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover, a:focus-visible {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
    text-decoration-thickness: 2px;
}

/* Headings & Multilingual Odia Font Integration */
h1, h2, h3, h4, .section-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.4;
}

.odia-text, [lang="or"] {
    font-family: 'Noto Sans Oriya', 'Lexend', sans-serif !important;
    font-size: 1.05em;
    line-height: 1.85;
}

/* --------------------------------------------------------------------------
   PAGE SECTION LAYOUT WRAPPERS
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.page-section {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto 20px auto;
    padding: 0 12px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .page-section {
        margin-bottom: 24px;
        padding: 0 16px;
    }
}

/* --------------------------------------------------------------------------
   STICKY RESPONSIVE HEADER
   -------------------------------------------------------------------------- */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.header-inner-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-img {
    height: 40px;
    width: auto;
    max-width: 165px;
    object-fit: contain;
    display: block;
}

/* Desktop Navigation (Uppercase) */
.desktop-main-nav {
    display: none;
    align-items: center;
    gap: 16px;
}

.nav-item-link {
    font-size: 13.5px;
    font-weight: 800;
    color: #1e293b !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-item-link:hover {
    color: var(--brand-primary) !important;
    background: #f8fafc;
}

.nav-btn-auth {
    background: #0f172a;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.nav-btn-auth:hover {
    background: var(--brand-primary);
    color: #ffffff !important;
}

/* Mobile Hamburger Button (3-Line Toggle) */
.mobile-hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 42px;
    height: 42px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 9px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.mobile-hamburger-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.ham-bar {
    width: 100%;
    height: 2.5px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Hamburger to "X" Transform */
.mobile-hamburger-btn.active .ham-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-hamburger-btn.active .ham-bar:nth-child(2) {
    opacity: 0;
}
.mobile-hamburger-btn.active .ham-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Slide-Down Drawer */
.mobile-nav-drawer {
    display: none;
    background: #ffffff;
    border-bottom: 2px solid #cbd5e1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav-drawer.active {
    display: block;
}

.mobile-nav-inner {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 1140px;
    margin: 0 auto;
}

.mobile-nav-link {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-link:hover {
    background: var(--brand-subtle);
    border-color: #fed7aa;
    color: var(--brand-primary) !important;
}

.mobile-auth-highlight {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
}

.mobile-auth-highlight:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff !important;
}

.mobile-adv-link {
    background: #fff7ed;
    color: #c2410c !important;
    border-color: #ffedd5;
}

@media (min-width: 768px) {
    .desktop-main-nav {
        display: flex;
    }
    .mobile-hamburger-btn {
        display: none;
    }
    .mobile-nav-drawer {
        display: none !important;
    }
    .site-logo-img {
        height: 44px;
        max-width: 180px;
    }
}

/* --------------------------------------------------------------------------
   ADVERTISING SLOTS
   -------------------------------------------------------------------------- */
.top-sticky-ad-wrapper {
    position: sticky;
    top: 64px;
    z-index: 990;
    background: rgba(251, 251, 249, 0.96);
    backdrop-filter: blur(6px);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.ad-banner-wrap {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 8px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.mid-ad-container {
    margin: 24px auto 28px auto;
}

/* --------------------------------------------------------------------------
   SHARED 5-EVENT HUBS (Festivals, Ekadashi, Sankranti, Purnima, Amavasya)
   -------------------------------------------------------------------------- */
.hub-cards-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.hub-item-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hub-item-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hub-item-icon { 
    font-size: 26px; 
}

.hub-item-title { 
    font-size: 19px; 
    font-weight: 800; 
    color: #0f172a; 
}

.hub-item-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
    color: #334155 !important;
}

.hub-upcoming-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 16px;
}

.hub-upcoming-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-dark);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.hub-upcoming-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14.5px;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    gap: 8px;
}

.hub-upcoming-row:last-child { 
    border-bottom: none; 
}

.hub-upcoming-name { 
    font-weight: 700; 
    color: #0f172a; 
}

.hub-upcoming-date {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f4c81;
    background: #e0f2fe;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.hub-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    background: #64748b;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    min-height: 48px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.hub-view-btn:hover { 
    background: #475569; 
}

@media (min-width: 768px) {
    .hub-cards-grid-v2 { 
        grid-template-columns: 1fr 1fr; 
        gap: 20px; 
    }
}

/* --------------------------------------------------------------------------
   FAQ COMPONENT
   -------------------------------------------------------------------------- */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
}

.faq-item:last-child { 
    border-bottom: none; 
}

.faq-question { 
    font-size: 17px; 
    font-weight: 700; 
    color: #0f172a; 
    margin-bottom: 4px; 
}

.faq-answer { 
    font-size: 15.5px; 
    line-height: 1.65; 
    color: #334155;
}

/* --------------------------------------------------------------------------
   FOOTER (High Contrast Slate & Full Uppercase Hierarchy)
   -------------------------------------------------------------------------- */
.modern-site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 34px 16px 24px 16px;
    font-size: 14px;
    border-top: 4px solid #475569;
    margin-top: 36px;
    box-sizing: border-box;
    width: 100%;
}

.footer-inner-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-top-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em;
}

.footer-main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-nav-link {
    color: #93c5fd !important;
    text-decoration: underline;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.03em;
    transition: color 0.15s ease;
}

.footer-nav-link:hover {
    color: #ffffff !important;
}

.footer-auth-link {
    color: #fed7aa !important;
}

.footer-cal-section-title {
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.footer-cal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.footer-cal-card-btn {
    display: flex;
    flex-direction: column;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s;
}

.footer-cal-card-btn:hover {
    background: #334155;
    border-color: #64748b;
}

.footer-cal-name {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase !important;
}

.footer-cal-year {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-transform: uppercase !important;
    margin-top: 2px;
}

.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 18px;
    border-top: 1px solid #334155;
    font-size: 12.5px;
    color: #94a3b8;
    text-transform: uppercase !important;
    letter-spacing: 0.02em;
    text-align: center;
}

@media (min-width: 600px) {
    .footer-top-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .footer-cal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .footer-bottom-bar {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .footer-cal-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
