/* style.css */
:root {
    --bg-color: #fdfbf6;
    --text-main: #3a2a1a;
    --text-muted: #6b5544;
    --primary-color: #8f5c1d;
    --primary-hover: #724715;
    --border-color: #e5dcc5;
    --accent-gold: #d4af37;
}

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

body {
    font-family: 'Mukta', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(143, 92, 29, 0.3);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
}

.btn-secondary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(143, 92, 29, 0.3);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.95rem;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(143, 92, 29, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo-area:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    mix-blend-mode: multiply; /* Helps blend solid backgrounds if the logo has one */
}

.logo-text h1 {
    font-family: 'Yatra One', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: rgba(143, 92, 29, 0.05);
    border: 1px solid rgba(143, 92, 29, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.4rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(143, 92, 29, 0.1);
}

/* Hero Section */
.hero {
    padding: 30px 0;
    background: radial-gradient(circle at center, #ffffff 0%, #f9f5ea 100%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-icon-top {
    font-size: 2.5rem;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 10px;
}

.hero-title {
    font-family: 'Yatra One', serif;
    font-size: 4rem;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.hero-subtitle {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-subtitle i {
    color: var(--accent-gold);
}

.hero-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 25px;
}

.hero-pillars {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 110px;
}

.pillar i {
    font-size: 2rem;
    color: var(--primary-color);
    background-color: #fff;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.pillar:hover i {
    transform: scale(1.1);
}

.pillar span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    font-size: 1.1rem;
    padding: 12px 30px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(143, 92, 29, 0.15);
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.8s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    font-family: 'Yatra One', serif;
    font-size: 2.2rem;
    color: var(--text-main);
    position: relative;
    padding: 0 40px;
}

.section-title h2::before,
.section-title h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
}

.section-title h2::before {
    left: -30px;
}

.section-title h2::after {
    right: -30px;
}

.section-title h2 i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin: 0 10px;
}

/* Curriculum Section */
.curriculum {
    padding: 80px 0;
    background-color: #fff;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.curriculum-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curriculum-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-header {
    padding: 25px 20px;
    text-align: center;
}

.dept-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.group-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.group-title i {
    margin-right: 5px;
}

.group-desc {
    font-size: 0.9rem;
    color: var(--text-main);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.class-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    align-items: flex-start;
    transition: background-color 0.3s ease;
}

.class-item:hover {
    filter: brightness(0.95);
}

.class-icon {
    font-size: 1.8rem;
    margin-top: 5px;
}

.class-info {
    flex: 1;
}

.class-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.class-badge {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2px 0 5px;
}

.class-detail {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-main);
}

/* Schools Section */
.schools-section {
    padding: 80px 0;
    background-color: #fdfbf6;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.school-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(143, 92, 29, 0.08);
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.school-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.school-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(143, 92, 29, 0.15);
}

.school-card:hover::before {
    opacity: 1;
}

.school-icon-wrap {
    width: 70px;
    height: 70px;
    background-color: #fdfbf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.school-card:hover .school-icon-wrap {
    background-color: var(--primary-color);
    color: #fff;
}

.school-card h4 {
    font-family: 'Yatra One', serif;
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.school-card .loc-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.school-card .contact-text {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(143, 92, 29, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-item {
    flex: 1;
    min-width: 150px;
    max-width: 220px;
    text-align: center;
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: #f6efe1;
    padding-top: 60px;
    position: relative;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.footer-about {
    flex: 1;
    min-width: 280px;
}

.footer-about h3, .footer-contact h3 {
    font-family: 'Yatra One', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-about p, .footer-contact p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-image {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.footer-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 250px;
    filter: drop-shadow(0 -5px 15px rgba(0,0,0,0.05));
    opacity: 0.9;
}

.footer-contact {
    flex: 1;
    min-width: 280px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 0;
    position: relative;
    z-index: 2;
}

.bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 15px;
}

.bottom-links a {
    color: #fff;
    margin: 0 10px;
}

.bottom-links a:hover {
    text-decoration: underline;
}

.mb-3 {
    margin-bottom: 15px !important;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column-reverse;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header-btn .btn {
        display: none;
    }
    .logo-text h1 {
        font-size: clamp(1.1rem, 5vw, 1.4rem);
        white-space: nowrap;
    }
    .logo-text p {
        font-size: 0.75rem;
    }
    .logo-img {
        height: 50px;
        width: 50px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        white-space: nowrap;
    }
    .section-title h2 {
        font-size: clamp(1rem, 4.5vw, 1.5rem);
        padding: 0;
        white-space: nowrap;
    }
    .footer-inner {
        flex-direction: column;
    }
    .footer-image {
        order: 3;
    }
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    .section-title h2::before,
    .section-title h2::after {
        display: none;
    }
}
