/* ============================================
   Sabarimala Temple - Modern Materialistic Design
   ============================================ */

:root {
    --primary: #e65100;
    --primary-light: #ff8a50;
    --primary-dark: #ac1900;
    --secondary: #ff6f00;
    --accent: #d4a017;
    --surface: #ffffff;
    --surface-alt: #f5f5f7;
    --surface-dark: #1a1a2e;
    --surface-darker: #0f0f1a;
    --text-primary: #1a1a2e;
    --text-secondary: #5f6368;
    --text-on-dark: #ffffff;
    --text-on-dark-muted: rgba(255,255,255,0.7);
    --border: #e0e0e0;
    --focus-ring: #1976d2;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #e65100 0%, #ff6f00 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-gold: linear-gradient(135deg, #d4a017 0%, #f0c040 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Noto Sans Malayalam', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--surface-alt);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ ACCESSIBILITY ============ */
.skip-link {
    position: absolute; top: -60px; left: 0;
    background: var(--primary); color: #fff;
    padding: 12px 24px; z-index: 10000;
    transition: top 0.3s; text-decoration: none;
    font-weight: 600; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; outline: 3px solid var(--focus-ring); outline-offset: 2px; }

a:focus, button:focus, input:focus, select:focus, textarea:focus, [tabindex]:focus {
    outline: none;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--focus-ring); outline-offset: 2px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-contrast: high) {
    :root { --text-primary: #000; --text-secondary: #333; --border: #000; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============ TOP BAR ============ */
.top-bar {
    background: var(--surface-darker);
    color: var(--text-on-dark-muted);
    padding: 6px 0;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar .top-left { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top-bar .top-separator {
    color: rgba(255,255,255,0.3);
    padding: 0 2px;
    font-weight: 400;
}
.top-bar .top-official {
    color: rgba(255,255,255,0.55);
    padding: 4px 2px;
    font-weight: 500;
}
.top-bar .top-pill {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition-fast);
}
.top-bar .top-pill:hover,
.top-bar .top-pill:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.top-bar .top-icon-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
}
.top-bar .top-icon-btn:hover,
.top-bar .top-icon-btn:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.top-bar .top-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.top-bar a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.top-bar a:hover, .top-bar a:focus {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.top-bar a img { height: 16px; width: auto; opacity: 0.7; }
.top-bar .lang-selector {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    transition: var(--transition-fast);
    cursor: pointer;
    font-weight: 500;
}
.top-bar .lang-selector:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.top-bar .lang-selector option { background: var(--surface-dark); color: #fff; }

/* ============ HEADER ============ */
.header-main {
    background: var(--surface);
    padding: 14px 0;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}
.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.header-main .brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    min-width: 0;
}
.header-main .brand-logo {
    height: 64px;
    width: auto;
    transition: var(--transition);
    flex-shrink: 0;
}
.header-main .brand:hover .brand-logo { transform: rotate(-5deg) scale(1.05); }
.header-main .brand-text { min-width: 0; }
.header-main .site-title,
.header-main .site-subtitle {
    display: block;
}
.site-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.5;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    padding-top: 4px;
    padding-bottom: 4px;
}
.site-title .highlight { color: var(--primary); }
.site-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 2px 0 0;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.5;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
}
.header-main .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-main .header-actions .btn-icon {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}
.header-main .header-actions .btn-icon:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230,81,0,0.3);
}
.header-main .header-actions .menu-toggle { display: none; cursor: pointer; }
.mobile-menu-close { display: none; }
.mobile-menu-brand { display: none; }
.site-title {
    font-size: 1.5rem; font-weight: 800;
    color: var(--primary);
    margin: 0; letter-spacing: -0.02em;
    line-height: 1.2;
}
.site-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 2px 0 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Hindi / Devanagari text adjustments */
[lang="hi"] .site-title,
[lang="hi"] .site-subtitle,
[lang="hi"] .page-header h1,
[lang="hi"] .section-heading h2 {
    line-height: 1.7;
    overflow: visible;
    white-space: normal;
    letter-spacing: 0;
    padding-top: 6px;
    padding-bottom: 6px;
}
[lang="hi"] .site-title { font-size: 1.25rem; }
[lang="hi"] .page-header h1 { font-size: 2rem; }

/* ============ NAVIGATION ============ */
.navbar-temple {
    background: var(--gradient-dark);
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: none;
}
.navbar-temple::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
}
.navbar-temple .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-temple .navbar-nav {
    gap: 2px;
    padding: 6px 0;
    flex-wrap: wrap;
}
.navbar-temple .navbar-collapse { min-width: 0; }
html[lang="ml"] .navbar-temple .navbar-nav .nav-link {
    padding: 9px 10px;
    font-size: 0.8rem;
}
html[lang="ml"] .navbar-temple .navbar-nav .nav-link .bi { font-size: 0.95rem; }
.navbar-temple .navbar-nav .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 9px 16px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    border-radius: var(--radius-full);
    letter-spacing: 0.01em;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-temple .navbar-nav .nav-link .bi {
    font-size: 1rem;
    opacity: 0.7;
    transition: var(--transition);
}
.navbar-temple .navbar-nav .nav-link:hover,
.navbar-temple .navbar-nav .nav-link:focus {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.navbar-temple .navbar-nav .nav-link:hover .bi { opacity: 1; }
.navbar-temple .navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--accent);
}
.navbar-temple .navbar-nav .nav-link.active .bi { opacity: 1; color: var(--accent); }
.navbar-temple .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    color: #fff; padding: 8px 12px;
    border-radius: var(--radius-sm);
}
.navbar-temple .navbar-toggler:focus { box-shadow: none; }
.navbar-temple .navbar-toggler:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.navbar-temple .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    margin-top: 8px;
    animation: dropdownSlide 0.2s ease;
}
@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-menu .dropdown-item {
    padding: 10px 16px;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}
.dropdown-menu .dropdown-item .bi {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
}
.dropdown-menu .dropdown-item:hover .bi,
.dropdown-menu .dropdown-item:focus .bi {
    opacity: 1;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: var(--surface-alt);
    color: var(--primary);
}
.dropdown-menu .dropdown-item.active { background: var(--primary); color: #fff; }

/* ============ HERO SLIDESHOW ============ */
.hero-section { position: relative; overflow: hidden; }
.hero-section .carousel-item img {
    width: 100%; height: 480px;
    object-fit: cover;
}
.hero-section .carousel-caption {
    padding: 0;
    bottom: 40px;
    background: none;
    border: 0;
    box-shadow: none;
}
.hero-section .carousel-caption h2 {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: 0.01em;
    text-shadow:
        0 2px 10px rgba(0,0,0,0.8),
        0 0 16px rgba(255,255,255,0.28),
        0 0 34px rgba(255,215,0,0.18);
}

/* ============ NEWS TICKER ============ */
.news-ticker {
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.news-ticker .ticker-label {
    background: rgba(0,0,0,0.25);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
}
.news-ticker .ticker-content { display: flex; animation: ticker 30s linear infinite; }
.news-ticker .ticker-item {
    white-space: nowrap;
    margin-right: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.news-ticker .ticker-item:hover { text-decoration: underline; opacity: 0.9; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ BOOKING CARDS ============ */
.booking-section { padding: 32px 0; background: var(--surface-alt); }
.booking-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    border: 1px solid var(--border);
    background: var(--surface);
}
.booking-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.booking-card img { width: 100%; height: 110px; object-fit: cover; }

/* ============ QUICK LINKS (ICONS) ============ */
.quick-links-section {
    padding: 60px 0;
    background: var(--surface);
}
.quick-links-section .section-title {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 16px 24px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    height: 100%;
    gap: 16px;
}
.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}
.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.quick-link-card:hover::before { transform: scaleX(1); }
.quick-link-card .bi {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    line-height: 1;
}
.quick-link-card:hover .bi { transform: scale(1.15); }
.quick-link-card [data-temple-icon] {
    display: block;
    width: 90px;
    height: 90px;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.quick-link-card [data-temple-icon] svg {
    width: 100%;
    height: 100%;
}
.quick-link-card:hover [data-temple-icon] {
    transform: scale(1.1) rotate(-3deg);
    filter: drop-shadow(0 6px 16px rgba(212,160,23,0.4));
}
.quick-link-card .card-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: -0.01em;
}

/* ============ SECTION TITLES ============ */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}
.section-heading h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.section-heading .heading-line {
    width: 60px; height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

/* ============ ABOUT SECTION ============ */
.about-section { padding: 70px 0; background: var(--surface-alt); }
.about-section .section-title {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 16px;
}
.about-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}
.about-image-container img {
    max-width: 100%; height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}
.about-image-container img:hover { transform: scale(1.02); }
.about-section .lead {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.8;
}
.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}
.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}
.view-more-btn .bi { font-size: 1.1rem; }

/* ============ NEAREST PLACES ============ */
.places-section { padding: 70px 0; background: var(--surface); }
.place-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    height: 100%;
}
.place-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    border-color: transparent;
}
.place-card img {
    width: 100%; height: 180px;
    object-fit: cover;
    transition: var(--transition);
}
.place-card:hover img { transform: scale(1.05); }
.place-card .img-wrapper { overflow: hidden; }
.place-card .place-name {
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

/* ============ PAGE HEADER ============ */
.page-header {
    background: var(--gradient-dark);
    color: #fff;
    padding: 50px 0;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
}
.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
}
.breadcrumb-custom { background: transparent; padding: 0; margin: 12px 0 0; }
.breadcrumb-custom .breadcrumb-item a { color: var(--accent); text-decoration: none; font-weight: 500; }
.breadcrumb-custom .breadcrumb-item.active { color: rgba(255,255,255,0.8); }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ============ CONTENT SECTIONS ============ */
.content-section {
    padding: 48px 0;
    background: var(--surface);
    min-height: 400px;
}
.content-section h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    letter-spacing: -0.02em;
}
.content-section h3 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 28px;
    margin-bottom: 16px;
}
.content-section p {
    margin-bottom: 16px;
    text-align: justify;
    color: var(--text-secondary);
    line-height: 1.8;
}
.content-section ul, .content-section ol {
    margin-bottom: 24px;
    padding-left: 24px;
}
.content-section li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============ TABLES ============ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); }
.table-temple {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.table-temple th,
.table-temple td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table-temple th {
    background: var(--gradient-dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.table-temple tbody tr { transition: var(--transition-fast); }
.table-temple tbody tr:nth-child(even) { background: var(--surface-alt); }
.table-temple tbody tr:hover { background: #fff3e0; }
.table-temple tbody tr:last-child td { border-bottom: none; }

/* ============ SIDEBAR CARDS ============ */
.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.sidebar-card:hover { box-shadow: var(--shadow-md); }
.sidebar-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}

/* ============ CONTACT & HELPLINE SECTION ============ */
.helpline-section {
    background: linear-gradient(135deg, #10182d 0%, #1a1a2e 55%, #16213e 100%);
    color: #fff;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.helpline-section::before {
    content: '';
    position: absolute;
    top: -45%; right: -10%;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(230,81,0,0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.helpline-section .container { position: relative; z-index: 1; }
.contact-card {
    height: 100%;
    background: rgba(255,255,255,0.065);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,160,23,0.4);
    box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}
.contact-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-card-icon {
    width: 56px; height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1.65rem;
    box-shadow: 0 6px 18px rgba(230,81,0,0.35);
}
.contact-card-header h2,
.contact-card-header h3 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}
.contact-card-header p {
    color: rgba(255,255,255,0.62);
    font-size: 0.86rem;
    margin: 3px 0 0;
}
.contact-list { display: grid; gap: 12px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition-fast);
}
.contact-item:hover,
.contact-item:focus {
    background: rgba(255,255,255,0.1);
    border-color: rgba(212,160,23,0.35);
    color: #fff;
    transform: translateX(4px);
}
.contact-item-icon {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(212,160,23,0.14);
    color: var(--accent);
    font-size: 1.05rem;
}
.contact-item-text { display: flex; flex-direction: column; min-width: 0; }
.contact-item-text small {
    color: rgba(255,255,255,0.55);
    font-size: 0.75rem;
    line-height: 1.3;
}
.contact-item-text strong {
    color: #fff;
    font-size: 0.96rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.contact-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
}
.contact-social .social-icons { margin-top: 0; }
.contact-social .social-icons a { color: #fff; }
.contact-emergency {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.contact-emergency-icon {
    width: 78px; height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212,160,23,0.22), rgba(230,81,0,0.14));
    border: 1px solid rgba(212,160,23,0.35);
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 18px;
    box-shadow: 0 0 0 10px rgba(212,160,23,0.04);
}
.contact-emergency h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px;
}
.contact-emergency p {
    color: rgba(255,255,255,0.62);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 20px;
    max-width: 360px;
}
.helpline-number {
    display: inline-block;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 22px;
    transition: var(--transition-fast);
}
.helpline-number:hover,
.helpline-number:focus { color: #fff; }
.contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(230,81,0,0.28);
    transition: var(--transition);
}
.contact-cta:hover,
.contact-cta:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(230,81,0,0.4);
}

@media (max-width: 767.98px) {
    .helpline-section { padding: 40px 0; }
    .contact-card { padding: 22px; }
    .contact-card-header { gap: 12px; }
    .contact-card-header h2,
    .contact-card-header h3 { font-size: 1.2rem; }
    .contact-social { align-items: flex-start; flex-direction: column; gap: 10px; }
    .contact-cta { width: 100%; padding: 12px 16px; }
}

/* ============ FOOTER ============ */
.footer-main {
    position: relative;
    background: linear-gradient(135deg, #0d1120 0%, #1a1a2e 55%, #16213e 100%);
    color: var(--text-on-dark-muted);
    padding: 56px 0 0;
    overflow: hidden;
}
.footer-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.footer-main::after {
    content: '';
    position: absolute;
    top: -140px; right: -100px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(230,81,0,0.14) 0%, transparent 70%);
    pointer-events: none;
}
.footer-main .container { position: relative; z-index: 1; }
.footer-main .row > [class*="col"] { padding: 0 28px 28px; }
.footer-main .row > [class*="col"] + [class*="col"] {
    border-left: 1px solid rgba(255,255,255,0.08);
}
.footer-main h4 {
    position: relative;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.footer-main h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 38px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
}
.footer-main p {
    color: rgba(255,255,255,0.62);
    line-height: 1.85;
    font-size: 0.9rem;
}
.footer-main a {
    color: rgba(255,255,255,0.66);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    transition: var(--transition-fast);
    font-size: 0.88rem;
}
.footer-main a::before {
    content: '\203A';
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
    transition: var(--transition-fast);
}
.footer-main a:hover,
.footer-main a:focus {
    color: #fff;
    transform: translateX(4px);
}
.footer-main a:hover::before,
.footer-main a:focus::before { color: var(--primary-light); }
.footer-bottom {
    background: rgba(0,0,0,0.24);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    margin-top: 14px;
    color: rgba(255,255,255,0.5);
}
.footer-bottom p { color: inherit; }
.footer-bottom a {
    color: var(--accent);
    display: inline;
    padding: 0;
}
.footer-bottom a::before { content: none; }
.footer-bottom a:hover,
.footer-bottom a:focus { color: #fff; transform: none; }

.social-icons { display: flex; gap: 12px; margin-top: 16px; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    margin: 0;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.social-icons a::before { content: none; }
.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(230,81,0,0.4);
}
.social-icons img { width: 22px; height: 22px; }

@media (max-width: 767.98px) {
    .footer-main { padding-top: 40px; }
    .footer-main .row > [class*="col"] { padding: 0 12px 24px; }
    .footer-main .row > [class*="col"] + [class*="col"] { border-left: none; }
    .footer-main h4 { margin-bottom: 14px; }
    .footer-bottom { text-align: left; padding: 18px 12px; }
}

/* ============ INSTRUCTION CARDS ============ */
.instruction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.instruction-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: transform .25s, box-shadow .25s;
}
.instruction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}
.instruction-card.full { grid-column: 1 / -1; }
.instruction-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: #f7f8fa;
    border-bottom: 1px solid #ececec;
}
.instruction-card-header i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    font-size: 1.25rem;
    color: #fff;
}
.instruction-card-header h2 {
    color: #1a1a2e;
    font-size: 1.15rem;
    font-weight: 750;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1.4;
}
.instruction-card-body { padding: 22px; }
.instruction-card-body p { color: var(--text-secondary); line-height: 1.8; }
.instruction-card-body p:last-child { margin-bottom: 0; }
.instruction-card-body ul { margin-bottom: 0; }
.instruction-card.do { border-top: 4px solid #2e7d32; }
.instruction-card.do .instruction-card-header { background: #eef8f0; }
.instruction-card.do .instruction-card-header i { background: #2e7d32; }
.instruction-card.dont { border-top: 4px solid #c62828; }
.instruction-card.dont .instruction-card-header { background: #fff0f0; }
.instruction-card.dont .instruction-card-header i { background: #c62828; }
.instruction-card.security { border-top: 4px solid #e65100; }
.instruction-card.security .instruction-card-header { background: #fff4e8; }
.instruction-card.security .instruction-card-header i { background: #e65100; }
.instruction-card.green { border-top: 4px solid #00897b; }
.instruction-card.green .instruction-card-header { background: #e9f7f4; }
.instruction-card.green .instruction-card-header i { background: #00897b; }
.instruction-card.info { border-top: 4px solid #5c6bc0; }
.instruction-card.info .instruction-card-header { background: #eef0fb; }
.instruction-card.info .instruction-card-header i { background: #5c6bc0; }
.instruction-card .do-list,
.instruction-card .dont-list { border-left-width: 3px; }
.instruction-card .do-list li,
.instruction-card .dont-list li { font-size: 0.93rem; }

@media (max-width: 767.98px) {
    .instruction-grid { grid-template-columns: 1fr; gap: 18px; }
    .instruction-card-header { padding: 16px 18px; }
    .instruction-card-header h2 { font-size: 1.05rem; }
    .instruction-card-body { padding: 18px; }
}

/* ============ TABS / PILLS ============ */
.nav-pills .nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    transition: var(--transition);
    border: 1px solid var(--border);
    margin: 0 4px;
}
.nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.nav-pills .nav-link:not(.active):hover {
    background: var(--surface-alt);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============ DOS AND DON'TS ============ */
.do-list {
    border-left: 4px solid #2e7d32;
    padding-left: 24px;
    list-style: none;
}
.do-list li {
    color: #2e7d32;
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
}
.do-list li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    font-weight: 700;
    font-size: 1.1rem;
}
.dont-list {
    border-left: 4px solid #c62828;
    padding-left: 24px;
    list-style: none;
}
.dont-list li {
    color: #c62828;
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
}
.dont-list li::before {
    content: '✕';
    position: absolute;
    left: 0; top: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============ FACILITY ICONS ============ */
.facility-icon {
    width: 64px; height: 64px;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 3rem;
}

/* ============ GALLERY ============ */
.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: var(--transition);
}
.gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.gallery-item img {
    width: 100%; height: 200px;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption {
    padding: 14px 16px;
    text-align: center;
    background: var(--surface);
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

/* ============ EXTERNAL LINK ============ */
.external-link::after { content: ' ↗'; font-size: 0.8em; opacity: 0.7; }

/* ============ ACCORDION ============ */
.accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.accordion-button {
    font-weight: 600;
    color: var(--text-primary);
    padding: 20px 24px;
}
.accordion-button:not(.collapsed) {
    background: #fff3e0;
    color: var(--primary);
    box-shadow: none;
}
.accordion-button::after { filter: invert(40%) sepia(90%) saturate(2000%) hue-rotate(0deg); }

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 96px; right: 20px;
    width: 48px; height: 48px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.92);
    transition:
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.35s,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: var(--shadow-xl);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* ============ SECTION DIVIDER ============ */
.section-divider { text-align: center; margin: 20px 0; }
.section-divider img { max-width: 200px; opacity: 0.6; }

/* ============ UTILITIES ============ */
.text-saffron { color: var(--secondary); }
.text-temple-red { color: var(--primary); }
.text-temple-gold { color: var(--accent); }
.bg-temple-dark { background: var(--surface-dark); }
.bg-temple-red { background: var(--primary); }
.bg-temple-cream { background: var(--surface-alt); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1199.98px) {
    body.mobile-menu-open { overflow: hidden; }
    .header-main .header-actions .menu-toggle { display: inline-flex; }

    .navbar-temple {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(84vw, 360px);
        height: 100vh;
        height: 100dvh;
        z-index: 2000;
        padding: 20px 0 24px;
        overflow-y: auto;
        align-content: flex-start;
        justify-content: flex-start;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 0.3s ease, visibility 0.3s ease;
        box-shadow: 8px 0 30px rgba(0,0,0,0.35);
    }
    body.mobile-menu-open .navbar-temple {
        visibility: visible;
        transform: translateX(0);
    }
    .navbar-temple .container {
        display: block;
        width: 100%;
        padding: 0 14px;
    }
    .navbar-temple .navbar-collapse {
        display: block;
        width: 100%;
    }
    .navbar-temple .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 0;
    }
    .navbar-temple .nav-item { width: 100%; }
    .navbar-temple .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .navbar-temple .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 4px 0 8px;
        background: rgba(255,255,255,0.06);
        border: 0;
        box-shadow: none;
    }
    .navbar-temple .dropdown-item {
        color: rgba(255,255,255,0.82);
        padding: 10px 16px 10px 42px;
    }
    .navbar-temple .dropdown-item:hover,
    .navbar-temple .dropdown-item:focus {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 50%;
        background: rgba(255,255,255,0.08);
        color: #fff;
        cursor: pointer;
        z-index: 2;
    }
    .mobile-menu-close:hover,
    .mobile-menu-close:focus { background: rgba(255,255,255,0.16); }

    .mobile-menu-brand {
        display: flex;
        flex: 0 0 100%;
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 8px 24px 18px;
    }
    .mobile-menu-brand img {
        height: 54px;
        width: auto;
        max-width: 100%;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1990;
        background: rgba(0,0,0,0.55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .mobile-menu-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 1200px) {
    .navbar-temple .navbar-nav .nav-link { padding: 9px 12px; }
    .navbar-temple .navbar-nav .nav-link .bi { display: none; }
    html[lang="ml"] .navbar-temple .navbar-nav .nav-link { padding: 9px 7px; font-size: 0.78rem; }
}

@media (min-width: 1400px) {
    html[lang="ml"] .navbar-temple .navbar-nav .nav-link { padding: 9px 8px; font-size: 0.8rem; }
}

@media (max-width: 991.98px) {
    .hero-section .carousel-item img { height: 320px; }
    .hero-section .carousel-caption h2 { font-size: 1.3rem; }
    .site-title { font-size: 1.25rem; }
    .page-header h1 { font-size: 1.75rem; }
    .quick-links-section .section-title,
    .section-heading h2,
    .about-section .section-title { font-size: 1.6rem; }
}

@media (max-width: 767.98px) {
    .hero-section .carousel-item img { height: 260px; }
    .hero-section .carousel-caption { left: 6%; right: 6%; bottom: 30px; padding: 0; }
    .hero-section .carousel-caption h2 { font-size: 1.15rem; line-height: 1.35; }
    .page-header { padding: 36px 0; }
    .page-header h1 { font-size: 1.5rem; }
    .content-section { padding: 32px 0; }
    .content-section h2 { font-size: 1.3rem; }
    .quick-link-card { padding: 24px 12px 20px; }
    .quick-link-card .bi { font-size: 2rem; }
    .about-section, .places-section, .quick-links-section { padding: 48px 0; }
    .top-bar { font-size: 0.75rem; }
    .logo-container img, .col-auto img { max-height: 56px; }
    .header-main { padding: 10px 0; }
    .header-main .container { gap: 10px; }
    .header-main .brand { gap: 10px; }
    .header-main .brand-logo { height: 48px; }
    .header-main .site-title {
        font-size: 1rem;
        line-height: 1.3;
        white-space: normal;
    }
    .header-main .site-subtitle {
        font-size: 0.68rem;
        line-height: 1.35;
        white-space: normal;
    }
    .header-main .header-actions { gap: 6px; }
    .header-main .header-actions .btn-icon { width: 34px; height: 34px; }
}

@media (max-width: 575.98px) {
    .hero-section .carousel-item img { height: 200px; }
    .hero-section .carousel-caption { padding: 0; bottom: 26px; }
    .hero-section .carousel-caption h2 { font-size: 1rem; }
    .site-title { font-size: 1.1rem; }
    .header-main .site-subtitle { display: none; }
    .section-heading h2 { font-size: 1.4rem; }
    .table-temple th, .table-temple td { padding: 10px 12px; font-size: 0.85rem; }
}

/* ============ PRINT ============ */
@media print {
    .top-bar, .navbar-temple, .news-ticker, .hero-section,
    .booking-section, .footer-main, .skip-link, .back-to-top { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .content-section { padding: 0; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* ============ FOCUS OVERRIDES (no blue box on mouse click) ============ */
*:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}
*:focus-visible {
    outline: 3px solid var(--focus-ring) !important;
    outline-offset: 2px !important;
}
/* Keep skip link working */
.skip-link:focus {
    top: 0 !important;
    outline: 3px solid #fff !important;
}
