/* ==========================================================================
   Shree Machhi Mahajan School - Master Theme Stylesheet
   Based on Figma Design Specification
   ========================================================================== */

:root {
    --primary-maroon: #80141b;
    --primary-maroon-dark: #660f15;
    --primary-maroon-light: #9e1c24;
    --accent-orange: #f26522;
    --accent-orange-hover: #d95314;
    --navy-blue: #162973;
    --navy-blue-dark: #0f1c50;
    --soft-peach: #fff5f2;
    --card-bg-light: #f3f5fc;
    --card-border: #e3e6ef;
    --dark-charcoal: #1e2022;
    --muted-gray: #6c757d;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dark-charcoal);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark-charcoal);
    letter-spacing: -0.3px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-maroon);
    margin: 8px auto 0;
    border-radius: 2px;
}

.section-title.text-start::after {
    margin: 8px 0 0;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #ffffff;
    color: var(--dark-charcoal);
    border: 1.5px solid var(--dark-charcoal);
    margin-bottom: 12px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.school-navbar {
    background: #0f1c2e;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.school-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    text-decoration: none;
}

.school-navbar .school-logo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.school-navbar .school-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.school-navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px !important;
    position: relative;
    transition: all 0.25s ease;
}

.school-navbar .nav-link:hover,
.school-navbar .nav-link.active {
    color: #ffffff !important;
}

.school-navbar .nav-link.active::after,
.school-navbar .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

.btn-fees {
    background-color: var(--accent-orange);
    color: #ffffff !important;
    font-weight: 600;
    padding: 7px 22px;
    border-radius: 20px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.3);
}

.btn-fees:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(242, 101, 34, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-wrapper {
    position: relative;
    background: url('../images/school_campus_bg.jpg') center/cover no-repeat;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 28, 46, 0.88) 0%, rgba(15, 28, 46, 0.65) 60%, rgba(15, 28, 46, 0.4) 100%);
}

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

.hero-motto-badge {
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    color: #e2e8f0;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-orange {
    background-color: var(--accent-orange);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-orange:hover {
    background-color: var(--accent-orange-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 101, 34, 0.4);
}

.btn-hero-outline {
    background-color: var(--accent-orange);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-outline:hover {
    background-color: var(--accent-orange-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-image-arch {
    position: relative;
    border-radius: 180px 180px 20px 20px;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    max-width: 360px;
    margin-left: auto;
}

.hero-image-arch img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Page Inner Banners (About, Gallery, Events, Contact, etc.)
   ========================================================================== */
.page-banner {
    position: relative;
    background: url('../images/school_campus_bg.jpg') center/cover no-repeat;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 28, 46, 0.82);
}

.page-banner-title {
    position: relative;
    z-index: 2;
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    margin: 0;
}

/* ==========================================================================
   Stats Counters
   ========================================================================== */
.stats-section {
    background: var(--soft-peach);
    padding: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #e53e3e;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #4a5568;
}

/* ==========================================================================
   Welcome Section
   ========================================================================== */
.welcome-image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.btn-maroon {
    background-color: var(--primary-maroon);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-maroon:hover {
    background-color: var(--primary-maroon-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(128, 20, 27, 0.3);
}

/* ==========================================================================
   Upcoming Events Cards
   ========================================================================== */
.events-section-bg {
    background-color: #fcece8;
    padding: 80px 0;
}

.event-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    border: 1px solid #f0d5ce;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    width: fit-content;
}

.event-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.event-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-maroon);
    border-radius: 2px;
}

/* ==========================================================================
   Sister School Cards
   ========================================================================== */
.sister-school-card {
    background: #ffffff;
    border: 2px solid var(--navy-blue);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(22, 41, 115, 0.08);
    display: block;
    text-decoration: none;
}

.sister-school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(22, 41, 115, 0.18);
}

.sister-school-card .crest-wrapper {
    background: var(--navy-blue);
    padding: 35px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sister-school-card .crest-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sister-school-card .card-footer-title {
    background: var(--navy-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 16px 20px;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-filter-btn {
    border-radius: 8px;
    padding: 8px 24px;
    font-weight: 600;
    border: none;
    background-color: #f1f3f9;
    color: var(--dark-charcoal);
    transition: all 0.3s ease;
    text-decoration: none;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background-color: #e53e3e;
    color: #ffffff;
}

.gallery-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    background: #ffffff;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card {
    background: var(--card-bg-light);
    border-radius: var(--border-radius-lg);
    padding: 35px 25px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.testimonial-stars {
    color: #ffb800;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-charcoal);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: #718096;
}

/* ==========================================================================
   Contact & Admission Form (Figma Container.png exact match)
   ========================================================================== */
.admission-form-wrapper {
    background: #ffffff;
    border: 2px solid #1e2022;
    border-radius: 20px;
    padding: 50px 45px 40px;
    position: relative;
    box-shadow: 12px 12px 0px rgba(30, 32, 34, 0.9);
    margin-top: 30px;
}

.social-top-badges {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.social-badge-btn {
    width: 60px;
    height: 46px;
    border-radius: 8px;
    border: 2px solid #1e2022;
    background-color: #ffd8d3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #1e2022;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-badge-btn:hover {
    background-color: #ffbcb3;
    color: #1e2022;
    transform: translateY(-2px);
}

.form-label-custom {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e2022;
    margin-bottom: 6px;
}

.form-control-custom,
.form-select-custom {
    border: 2px solid #1e2022;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.2s;
    background-color: #ffffff;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: var(--primary-maroon);
    outline: none;
    box-shadow: 0 0 0 3px rgba(128, 20, 27, 0.15);
}

.btn-submit-admission {
    background-color: var(--primary-maroon);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px;
    border-radius: 8px;
    border: none;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit-admission:hover {
    background-color: var(--primary-maroon-dark);
    box-shadow: 0 4px 14px rgba(128, 20, 27, 0.35);
}

/* Why Choose Us Cards */
.feature-box-figma {
    border: 2px solid #1e2022;
    border-radius: 12px;
    padding: 30px 24px;
    position: relative;
    background: #ffffff;
    box-shadow: 6px 6px 0px #1e2022;
    height: 100%;
}

.feature-box-icon {
    position: absolute;
    top: -22px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid #1e2022;
    background: #ffd8d3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1e2022;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.school-footer {
    background-color: var(--primary-maroon);
    color: #ffffff;
    padding: 70px 0 25px;
}

.school-footer h5 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
}

.footer-logo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ffffff;
    padding: 3px;
    margin-bottom: 20px;
}

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

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    margin-right: 8px;
    transition: all 0.25s ease;
}

.footer-social-btn:hover {
    background-color: #ffffff;
    color: var(--primary-maroon);
    transform: translateY(-2px);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 45px;
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.floating-contact-pill {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-action-btn {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-action-btn.call {
    background: var(--grad-cta);
}

.floating-action-btn.top {
    background: #0a1728;
    font-size: 1.2rem;
}

.floating-action-btn:hover {
    transform: scale(1.1) translateY(-3px);
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .stats-ribbon {
        margin-top: -30px;
    }

    .stat-box:not(:last-child)::after {
        display: none;
    }

    .stat-box {
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 15px;
    }

    .hero-wrapper {
        padding: 60px 0 80px;
    }

    .floating-stat-card {
        display: none;
    }
}