:root {
    --maroon: #660000;
    --maroon-light: #800000;
    --saffron: #FF9933;
    --gold: #D4AF37;
    --gold-light: #F1D592;
    --off-white: #FFF9F0;
    --white: #FFFFFF;
    --text-dark: #2D2D2D;
    --glass: rgba(255, 255, 255, 0.9);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--off-white);
    background-image: url("https://www.transparenttextures.com/patterns/mandala.png");
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* Typography Scale */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--maroon);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 4vw, 2rem);
}

h4 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

/* Telugu font overrides */
[lang="te"] body,
[lang="te"] h1,
[lang="te"] h2,
[lang="te"] h3 {
    font-family: 'Ramabhadra', sans-serif;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation (Mobile First) */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold-light);
}

.top-bar {
    background: var(--maroon);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-bar .container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    text-align: center;
}

nav {
    padding: 8px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    width: 120px;
    height: 35px;
}

#temple-logo {
    height: 45px;
    width: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--gold);
    text-align: center;
    list-style: none;
    z-index: 999;
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    margin: 12px 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--maroon);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: var(--transition);
    display: block;
    padding: 5px;
}

.menu-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--maroon);
    cursor: pointer;
}

/* ── Top Bar Elements ── */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-info span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lang-switch button {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 15px;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 5px;
}

.lang-switch button:hover {
    background: var(--gold);
    color: var(--maroon);
}

/* ── Secondary Nav Bar (Mobile Scrollable) ── */
.secondary-nav {
    background: linear-gradient(90deg, var(--maroon) 0%, #8B0000 50%, var(--maroon) 100%);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    overflow: hidden;
}

.secondary-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
}

.secondary-nav-inner::-webkit-scrollbar {
    display: none;
}

.secondary-nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.secondary-nav-links li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 12px 18px;
    text-transform: uppercase;
    transition: var(--transition);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--maroon);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--maroon);
    cursor: pointer;
}

/* ── Secondary Nav Bar ── */
.secondary-nav {
    background: #7a0000; /* Deep maroon to match image */
    border-top: 2px solid #ffcc00; /* Bright gold border */
    border-bottom: 2px solid #ffcc00; /* Bright gold border */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.secondary-nav-inner {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    display: flex;
    -webkit-overflow-scrolling: touch;
}

/* Chrome/Safari */
.secondary-nav-inner::-webkit-scrollbar {
    display: none;
}

.secondary-nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 auto; /* Centers the list if it fits the screen width */
    white-space: nowrap;
    width: max-content;
}

.secondary-nav-links li {
    display: flex;
    align-items: center;
}

.secondary-nav-links li a {
    display: flex;
    align-items: center;
    gap: 5px; /* Further decreased gap */
    color: #ffcc00; /* Matching gold color from image */
    text-decoration: none;
    font-family: 'Playfair Display', serif; /* Or similar bold serif */
    font-size: 0.82rem; /* Slightly smaller font */
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 10px 10px; /* Reduced padding */
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 204, 0, 0.3); /* Gold separator */
    position: relative;
}

.secondary-nav-links li:first-child a {
    border-left: 1px solid rgba(255, 204, 0, 0.3);
}

.secondary-nav-links li a i {
    font-size: 0.9rem;
    color: #ffcc00; /* Matching gold for icons */
}

.secondary-nav-links li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.secondary-nav-links li a:hover i {
    color: var(--white);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .secondary-nav-links li a {
        font-size: 0.7rem;
        padding: 9px 8px; /* Leaner mobile padding */
        gap: 4px;
    }
}

.hero {
    height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    border-bottom: 5px solid var(--gold);
    overflow: hidden;
    padding: 20px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease-out forwards;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.4s forwards;
}

.hero-content .btn {
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::before {
    content: '🔱';
    display: block;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), var(--saffron), var(--gold), transparent);
}

.bg-light {
    background-color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 34px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: var(--white);
    box-shadow: 0 5px 15px rgba(102, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 0, 0, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--maroon);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* History Section Styles */
.history-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.history-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

#nagamma-img {
    max-width: 100%;
    max-height: 450px;
    object-fit: cover;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.1),
        0 0 0 5px var(--white),
        0 0 0 7px var(--gold);
}

.history-text {
    flex: 2;
    min-width: 300px;
    font-size: 1.15rem;
    line-height: 1.8;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--maroon);
    color: var(--white);
    font-size: 1.1rem;
}

tr:hover {
    background-color: #fff9f0;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.committee-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .committee-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--gold), var(--saffron));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--gold-light);
}

.card h3 {
    margin-bottom: 15px;
}

/* Chairman Card specific styles */
.card.reveal-right .chairman-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    overflow: hidden;
    margin-top: 10px;
}

.card.reveal-right .chairman-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    /* Moves the image content down slightly */
}

.card.reveal-right:hover .chairman-image {
    transform: scale(1.05);
    border-color: var(--saffron);
}

/* Video Section Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.video-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card h3 {
    margin: 10px 0 5px;
    font-size: 1.3rem;
    color: var(--maroon);
}

.video-card p {
    font-size: 0.95rem;
    color: #666;
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.price {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    color: var(--maroon);
    font-size: 1.2rem;
}

/* Events */
.event-item {
    display: flex;
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.event-date {
    background: var(--saffron);
    color: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.event-details {
    padding: 20px;
}

/* Gallery */
.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Gallery Carousel */
.gallery-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 40px;
}

.gallery-carousel {
    overflow: hidden;
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item {
    min-width: calc(33.333% - 14px);
    /* Show 3 images on desktop */
    height: 300px;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
    overflow: hidden;
    border-radius: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.carousel-btn {
    background: var(--glass);
    border: 2px solid var(--gold);
    color: var(--maroon);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.1);
}

.carousel-btn.prev {
    left: -10px;
}

.carousel-btn.next {
    right: -10px;
}

@media (max-width: 992px) {
    .gallery-item {
        min-width: calc(50% - 10px);
        /* Show 2 images on tablet */
    }
}

@media (max-width: 600px) {
    .gallery-carousel-wrapper {
        padding: 0 20px;
    }

    .gallery-item {
        min-width: 100%;
        /* Show 1 image on mobile */
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}

/* Donation Section */
.donation-card {
    background: var(--maroon);
    color: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.donation-card h2 {
    color: var(--gold);
    margin-bottom: 15px;
}

.donation-card p {
    max-width: 600px;
    margin-bottom: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    border: 3px solid var(--gold);
    position: relative;
    animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: var(--maroon);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    transform: rotate(90deg);
    color: var(--saffron);
}

.qr-popup-container {
    text-align: center;
}

.modal-qr {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-label {
    color: var(--maroon);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact-flex {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-info-block,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    width: 100%;
    /* Ensure full width */
}

/* About Section Premium Styles */
.about-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 8px solid var(--maroon);
}

.sub-title {
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.sub-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 2px;
    background: var(--gold);
}

.about-container p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.1rem;
}

.about-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

#shivalingam-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.1),
        0 0 0 5px var(--white),
        0 0 0 7px var(--gold);
    transition: var(--transition);
}

#shivalingam-img:hover {
    transform: scale(1.02);
}

.about-text-content {
    flex: 1.5;
    min-width: 300px;
}

.projects-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.projects-list li {
    background: var(--off-white);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--saffron);
    transition: var(--transition);
}

.projects-list li::before {
    content: '🛕';
    margin-right: 15px;
    font-size: 1.2rem;
}

.projects-list li:hover {
    transform: translateX(10px);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Image Pulse Animation */
.glow-pulse {
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    from {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    to {
        box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
    }
}

/* Staggered Card Animation Delay */
.card-grid .card:nth-child(1) {
    transition-delay: 0.1s;
}

.card-grid .card:nth-child(2) {
    transition-delay: 0.2s;
}

.card-grid .card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Compact Premium Footer */
footer {
    background: linear-gradient(to bottom, var(--maroon), #4a0000);
    padding: 50px 0 25px;
    /* Reduced padding from 80px to 50px */
    border-top: 4px solid var(--gold);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
    margin-bottom: 30px;
    /* Reduced margin */
}

.footer-logo img {
    height: 70px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 15px;
    /* Reduced margin */
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--saffron);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
    /* Reduced line spacing */
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links {
    margin-top: 0;
    /* Align with copyright text */
}

.social-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

/* Mobile Responsiveness */

/* ── Secondary Pages Common Styles ── */
.page-header {
    background: linear-gradient(135deg, var(--maroon) 0%, #4a0000 100%);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 4px solid var(--gold);
    color: var(--white);
}

.page-header h1 {
    color: var(--gold);
    margin-bottom: 10px;
}

.page-header .te {
    font-family: 'Ramabhadra', sans-serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 10px;
    display: block;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    padding: 12px 0;
    background: rgba(212, 175, 55, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.breadcrumb .container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--maroon);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb span {
    color: #888;
}

/* Common Info Grid & Cards */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card-header {
    background: linear-gradient(135deg, var(--maroon), #8B0000);
    padding: 25px;
    text-align: center;
    font-size: 2.5rem;
}

.info-card-body {
    padding: 25px;
}

.info-card-body h3 {
    color: var(--maroon);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.info-card-body .te-title {
    font-family: 'Ramabhadra', sans-serif;
    color: var(--saffron);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.info-card-body p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-card-body .te-desc {
    font-family: 'Ramabhadra', sans-serif;
    color: #666;
    font-size: 1rem;
}

/* Stats Box (e.g. Vedic School) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.stat-box {
    background: linear-gradient(135deg, var(--maroon), #8B0000);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px 10px;
    text-align: center;
}

.stat-box strong {
    display: block;
    font-size: 1.8rem;
    color: var(--gold);
}

.stat-box .te-label {
    font-family: 'Ramabhadra', sans-serif;
    font-size: 0.9rem;
    color: var(--gold-light);
    display: block;
}

/* Responsive Adjustments (Desktop Up) */
@media (min-width: 768px) {
    .container {
        width: 90%;
    }

    .top-bar .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .contact-info {
        flex-direction: row;
        gap: 20px;
    }

    .lang-switch button {
        margin-top: 0;
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
        gap: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links li a {
        padding: 0 0 4px;
        margin-left: 18px;
        font-size: 0.82rem;
        color: var(--text-dark);
        position: relative;
    }

    .nav-links li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gold);
        transition: var(--transition);
    }

    .nav-links li a:hover::after,
    .nav-links li a.active::after {
        width: 100%;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        color: var(--maroon);
    }

    .hero {
        height: 85vh;
        padding: 0;
    }

    .section {
        padding: 100px 0;
    }

    .about-flex,
    .history-flex,
    .contact-flex {
        flex-direction: row;
        gap: 50px;
        padding: 40px;
    }

    .about-text-content,
    .history-text,
    .contact-info-block,
    .contact-form {
        text-align: left;
    }

    .footer-content {
        text-align: left;
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }

    .footer-section h4::after {
        left: 0;
        transform: none;
    }

    .copyright {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Secondary Page Overrides */
    .page-header {
        padding: 60px 0;
    }

    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (min-width: 1024px) {
    .hero-content h2 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

/* Social Media Section */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.social-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--saffron));
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: left;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    transition: var(--transition);
    color: var(--maroon);
}

.social-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.social-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Platform specific colors on hover */
.social-card.twitter:hover .icon-wrapper {
    background: #000;
    color: white;
}

.social-card.twitter:hover h3 {
    color: #000;
}

.social-card.youtube:hover .icon-wrapper {
    background: #FF0000;
    color: white;
}

.social-card.youtube:hover h3 {
    color: #FF0000;
}

.social-card.facebook:hover .icon-wrapper {
    background: #1877F2;
    color: white;
}

.social-card.facebook:hover h3 {
    color: #1877F2;
}