/* Shri Navdeep Vidyamandir Website Styles */
/* Design Tokens */
/* :root {
    --primary-color: #6A4C93;
    --primary-dark: #5a3c83;
    --secondary-color: #8BE8CB;
    --secondary-dark: #7dd8bc;
    --white: #FFFFFF;
    --bg-light: #f8f9ff;
    --bg-soft: #f0f8ff;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 5px 20px rgba(106, 76, 147, 0.1);
    --shadow-medium: 0 10px 30px rgba(106, 76, 147, 0.15);
    --shadow-cta: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-radius-lg: 20px;
    --border-radius-md: 15px;
    --border-radius-sm: 10px;
    --transition-base: all 0.3s ease;
} */

:root {
    --primary-color: #2F3A8F;
    --primary-dark: #1F2A6A;

    --secondary-color: #8AE6D4;
    --secondary-dark: #6FD8C3;

    --white: #FFFFFF;
    --bg-light: #F7F9FF;
    --bg-soft: #EEF3FF;

    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: rgba(255, 255, 255, 0.94);

    --shadow-soft: 0 6px 22px rgba(47, 58, 143, 0.12);
    --shadow-medium: 0 14px 36px rgba(47, 58, 143, 0.18);
    --shadow-cta: 0 12px 28px rgba(0, 0, 0, 0.05);

    --border-radius-lg: 20px;
    --border-radius-md: 14px;
    --border-radius-sm: 9px;

    --transition-base: all 0.3s ease;
}



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

body {
    font-family: 'Inter', 'Noto Sans Gujarati', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(106, 76, 147, 0.3);
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.school-logo {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--secondary-color);
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.school-tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-base);
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-toggle button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    transition: var(--transition-base);
}

.language-toggle button.active {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 500;
}

/* Navigation */
.nav {
    background: var(--white);
    padding: 0.8rem 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 2rem;
}

.nav-item a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition-base);
}

.nav-item a:hover,
.nav-item a.active {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section - Compact & Unified */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark), var(--secondary-color), var(--primary-color));
    background-size: 300% 300%;
    animation: gradientMove 15s ease infinite;
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
    border: 2px solid transparent;
}

.hero-cta:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.text-center .card-icon {
    margin-left: auto;
    margin-right: auto;
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.section+.section {
    padding-top: 0;
}

/* Section Styles */
.section {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Philosophy Section */
.philosophy {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-soft));
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.philosophy h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.philosophy-gujarati {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.philosophy-english {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.philosophy-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 2.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    body {
        font-size: 0.85rem;
    }

    .header-container {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
        padding: 0 1rem;
    }

    .school-logo {
        width: 40px;
        height: 40px;
    }

    .school-info h1 {
        font-size: 1.1rem;
    }

    .school-tagline {
        font-size: 0.7rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.4rem;
        display: none;
        padding: 0.8rem 0;
    }

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

    .mobile-menu-toggle {
        display: block;
        font-size: 1.2rem;
    }

    .hero {
        padding: 2.5rem 0;
        margin-bottom: 0.75rem;
    }

    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .hero-cta {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    .section {
        padding: 0.75rem 0;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .card {
        padding: 0.75rem;
    }

    .card-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-bottom: 0.5rem;
    }

    .card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .philosophy {
        padding: 1rem;
        margin: 1rem 0;
    }

    .philosophy-guj {
        font-size: 1.2rem;
    }

    .philosophy-description {
        font-size: 0.8rem;
    }

    .footer {
        padding: 2rem 0 1rem;
        margin-top: 1.5rem;
    }

    .footer-content {
        gap: 1.2rem;
    }

    .cta-card {
        padding: 1.25rem 0.75rem;
        gap: 0.75rem;
    }

    .cta-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .cta-card h3 {
        font-size: 1.1rem;
    }

    .cta-card p {
        font-size: 0.8rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .highlight-card {
        padding: 1rem;
    }

    .highlight-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .highlight-card p {
        font-size: 0.8rem;
    }

    .event-card {
        padding: 1rem;
        gap: 0.6rem;
    }

    .event-details h3 {
        font-size: 0.95rem;
    }

    .event-details p {
        font-size: 0.8rem;
    }

    .gallery-info {
        padding: 0.75rem;
    }

    .gallery-info h4 {
        font-size: 1rem;
    }

    .gallery-info p {
        font-size: 0.8rem;
    }
}

/* Social Links in Footer */
.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

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

/* Gallery Improvements */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.gallery-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-soft), #e6e6fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
    overflow: hidden;
}

.gallery-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.gallery-info .date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.gallery-info p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Event Cards */
.event-calendar {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-soft));
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 3rem 0;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.event-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-base);
    border-left: 4px solid var(--primary-color);
}

.event-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.event-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
}

.event-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.event-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Highlight Cards */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px rgba(106, 76, 147, 0.08);
    border: 1px solid rgba(139, 232, 203, 0.3);
    transition: var(--transition-base);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(106, 76, 147, 0.12);
    border-color: var(--secondary-color);
}

.highlight-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.highlight-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* CTA Section Styles */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cta-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-cta);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(106, 76, 147, 0.1);
}

.cta-card .card-icon {
    width: 70px;
    height: 70px;
    font-size: 30px;
}

.cta-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.cta-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}