/* ========================================
   श्री 1008 आदिनाथ दिगंबर जैन मंदिर
   Temple Website Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Jain Flag Colors - Traditional Theme */
    --saffron: #FF6B00;
    --saffron-light: #FF8C33;
    --saffron-dark: #CC5500;
    --maroon: #800020;
    --maroon-light: #A0003A;
    --gold: #D4AF37;
    --gold-light: #E6C65A;
    --white: #FFFFFF;
    --cream: #FFF8E7;
    --cream-dark: #F5ECD7;

    /* Text Colors */
    --text-dark: #2C1810;
    --text-medium: #5C4033;
    --text-light: #8B7355;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* Spacing */
    --section-padding: 60px 0;
    --container-padding: 0 20px;

    /* Font */
    --font-main: 'Noto Sans Devanagari', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
    border-radius: 2px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: auto;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

.temple-name h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.3;
}

.temple-name p {
    font-size: 0.8rem;
    color: var(--cream);
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Toggle */
.lang-toggle {
    background: var(--gold);
    color: var(--maroon);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.lang-toggle:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--gold);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   HERO CAROUSEL
   ======================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #3D0010;
}

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 300px;
    max-height: 500px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #3D0010;
}

/* Text Panel Below Image */
.slide-overlay {
    display: none;
}

.carousel-slide.active .slide-overlay {
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 0;
    text-align: center;
}

/* Caption Panel - Separate from image */
.carousel-caption-panel {
    background: linear-gradient(135deg, var(--maroon) 0%, #5C0015 100%);
    padding: 20px;
    text-align: center;
    position: relative;
}

.carousel-caption-panel h2 {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.carousel-caption-panel p {
    color: var(--cream);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.carousel-caption-panel .sponsor-text {
    font-size: 0.85rem;
    font-style: italic;
    color: #FFFFFF;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--maroon);
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    border: 2px solid var(--gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--maroon);
    transform: scale(1.1);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--gold-light);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: var(--section-padding);
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.about-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.about-card.highlight {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border: 2px solid var(--gold);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-card h3 {
    color: var(--maroon);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ========================================
   EVENT SECTION
   ======================================== */
.event-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--maroon) 0%, #5C0015 100%);
    color: var(--cream);
}

.event-section .section-title {
    color: var(--gold);
}

.event-section .section-title::after {
    background: linear-gradient(90deg, var(--gold), var(--white), var(--gold));
}

.event-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--cream);
    margin-top: -25px;
    margin-bottom: 40px;
}

/* Saints Section */
.saints-section {
    margin-bottom: 50px;
}

.saints-title {
    text-align: center;
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.saints-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.saint-card {
    text-align: center;
    max-width: 200px;
}

.saint-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.saint-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saint-card h4 {
    color: var(--cream);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Main Saint Card (Pattacharya) */
.saint-card.saint-main {
    max-width: 250px;
}

.saint-card.saint-main .saint-image {
    width: 150px;
    height: 150px;
    border-width: 5px;
}

.saint-card.saint-main h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
}

/* Saints Subtitle (Inke Shishya) */
.saints-subtitle {
    text-align: center;
    color: var(--gold);
    font-size: 1.4rem;
    margin: 25px 0 20px;
    font-style: normal;
    font-weight: 500;
}

/* Saints Title at End (Pavan Sannidhya) */
.saints-section .saints-title {
    margin-top: 40px;
    margin-bottom: 30px;
}

/* Schedule Tabs */
.schedule-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 100px;
    font-family: var(--font-main);
}

.tab-btn:hover {
    background: rgba(212, 175, 55, 0.2);
}

.tab-btn.active {
    background: var(--gold);
}

.tab-btn .tab-date {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}

.tab-btn.active .tab-date {
    color: var(--maroon);
}

.tab-btn .tab-month {
    display: block;
    font-size: 0.8rem;
    color: var(--cream);
    margin-bottom: 5px;
}

.tab-btn.active .tab-month {
    color: var(--maroon);
}

.tab-btn .tab-event {
    display: block;
    font-size: 0.75rem;
    color: var(--gold-light);
    font-weight: 500;
}

.tab-btn.active .tab-event {
    color: var(--maroon-light);
}

/* Schedule Content */
.schedule-day {
    display: none;
}

.schedule-day.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-day h4 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.schedule-list {
    list-style: none;
}

.schedule-list li {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: flex-start;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list .time {
    min-width: 100px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
}

.schedule-list li span:last-child {
    color: var(--cream);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    padding: var(--section-padding);
    background: var(--cream-dark);
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.gallery-main {
    flex: 1;
    max-width: 800px;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--gold);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
    transition: transform 0.3s ease;
}

.gallery-btn {
    background: var(--maroon);
    color: var(--gold);
    border: 2px solid var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-btn:hover {
    background: var(--maroon-light);
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumb:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.thumb.active {
    opacity: 1;
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: var(--section-padding);
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    color: var(--maroon);
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.committee-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 35px;
}

.committee-member {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    border-left: 4px solid var(--saffron);
    box-shadow: var(--shadow-sm);
}

.committee-member .role {
    font-size: 0.8rem;
    color: var(--saffron);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.committee-member .name {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.committee-member .phone {
    color: var(--maroon);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.committee-member .phone:hover {
    color: var(--saffron);
}

/* Committee Member with Logo */
.committee-member.with-logo {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.committee-member.with-logo .member-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.committee-member.with-logo .member-logo {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-left: 15px;
    flex-shrink: 0;
    border: 2px solid var(--gold);
}

.committee-member.with-logo .member-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.address-block {
    padding: 20px;
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--white) 100%);
    border-radius: 12px;
    border: 1px solid var(--gold);
}

.address-block h4 {
    color: var(--maroon);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.address-block p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Bank Details Block */
.address-block.bank-block {
    background: linear-gradient(135deg, #FFF8E7 0%, #FDF5E6 100%);
    border: 2px solid var(--saffron);
    margin-top: 15px;
}

.address-block.bank-block h4 {
    color: var(--saffron-dark);
}

.address-block.bank-block strong {
    color: var(--maroon);
}

.address-block.bank-block em {
    color: var(--saffron);
    font-size: 0.95rem;
}

.contact-map {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-map iframe {
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--gold);
}

.map-link {
    display: inline-block;
    background: var(--maroon);
    color: var(--gold);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: var(--maroon-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--maroon) 0%, #3D0010 100%);
    padding: 50px 0 0;
    color: var(--cream);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 70px;
    background: white;
    border-radius: 10px;
    padding: 5px;
}

.footer-logo p {
    color: var(--gold);
    font-style: italic;
    font-size: 0.95rem;
}

.footer-organizer {
    text-align: center;
}

.footer-organizer>p:first-child {
    font-size: 0.85rem;
    color: var(--cream);
    opacity: 0.8;
    margin-bottom: 5px;
}

.footer-organizer h4 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.footer-areas {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 400px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--cream);
    opacity: 0.9;
    margin-bottom: 8px;
}

.credits a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.credits a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Advertisement Line */
.ad-line {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.85;
    margin-top: 5px;
}

.ad-line a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.ad-line a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 350px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Header */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--maroon);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .temple-name h1 {
        font-size: 1rem;
    }

    .temple-name p {
        font-size: 0.7rem;
    }

    .logo {
        width: 40px;
    }

    /* Hero Carousel - Mobile */
    .carousel-slides {
        height: 35vh;
        min-height: 200px;
        max-height: 300px;
    }

    .carousel-caption-panel {
        padding: 12px 15px;
    }

    .carousel-caption-panel h2 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .carousel-caption-panel p {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }

    .carousel-caption-panel .sponsor-text {
        font-size: 0.75rem;
    }

    .carousel-nav {
        padding: 10px;
        gap: 12px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    /* Gallery */
    .gallery-container {
        flex-direction: column;
    }

    .gallery-main {
        height: 280px;
        width: 100%;
    }

    .gallery-btn {
        display: none;
    }

    .thumb {
        width: 60px;
        height: 45px;
    }

    /* Schedule */
    .schedule-container {
        padding: 20px 15px;
    }

    .tab-btn {
        min-width: 70px;
        padding: 10px 12px;
    }

    .tab-btn .tab-date {
        font-size: 1.4rem;
    }

    .tab-btn .tab-event {
        font-size: 0.65rem;
    }

    .schedule-list li {
        flex-direction: column;
        gap: 5px;
    }

    .schedule-list .time {
        min-width: auto;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo-section {
        gap: 10px;
    }

    .temple-name h1 {
        font-size: 0.9rem;
    }

    .lang-toggle {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .about-card {
        padding: 20px 18px;
    }

    .saints-grid {
        gap: 20px;
    }

    .saint-image {
        width: 90px;
        height: 90px;
    }

    .committee-member {
        padding: 12px;
    }

    .schedule-tabs {
        gap: 6px;
    }

    .tab-btn {
        min-width: 60px;
        padding: 8px 10px;
    }

    .tab-btn .tab-date {
        font-size: 1.2rem;
    }

    .tab-btn .tab-month,
    .tab-btn .tab-event {
        font-size: 0.6rem;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .temple-name {
        display: none;
    }

    .header-container {
        justify-content: space-between;
    }

    .logo {
        width: 45px;
    }
}

/* Print Styles */
@media print {

    .header,
    .carousel-btn,
    .carousel-dots,
    .gallery-btn,
    .lang-toggle,
    .menu-toggle {
        display: none !important;
    }

    .hero-carousel {
        height: auto;
    }

    .carousel-slide {
        position: relative;
        opacity: 1;
    }

    .carousel-slide:not(:first-child) {
        display: none;
    }
}