/* 
   Shahid Smarak Boarding School - Custom Stylesheet
   Author: Antigravity AI
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0A192D;       /* Deep Navy */
    --secondary: #1E3A8A;     /* Premium Dark Blue */
    --accent-red: #E02424;    /* Vivid Brand Red */
    --brand-blue: #0000FA;    /* Logo Blue */
    --lime-green: #84CC16;    /* Logo Lime Green */
    --light-bg: #F8FAFC;
    --dark-text: #1E293B;
    --muted-text: #64748B;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

/* Custom Utilities */
.bg-lime-green {
    background-color: var(--lime-green) !important;
}
.bg-lime-green.bg-opacity-15 {
    background-color: rgba(132, 204, 22, 0.15) !important;
}
.bg-navy {
    background-color: var(--primary) !important;
}
.text-navy {
    color: var(--primary) !important;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Email Obfuscation (.enem) */
.enem {
    cursor: pointer;
}
.enem:before {
    content: attr(data-ext) "." attr(data-www) "\0040" attr(data-mbx);
    unicode-bidi: bidi-override;
    direction: rtl;
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%230A192D' fill-opacity='0.05'%3E%3C!-- Book --%3E%3Cpath d='M15 15h12v16H15zm2 2h8v12h-8zM19 21h4v2h-4zm0 4h4v2h-4z'/%3E%3C!-- Pencil --%3E%3Cpath d='M50 20l4-4 3 3-4 4zm5-3l1 1-1-1zm-6 7l1 1-5 5h-2v-2z'/%3E%3C!-- Grad Cap --%3E%3Cpath d='M85 15l15 6-15 6-15-6zm-10 9v5c0 4 4 6 10 6s10-2 10-6v-5'/%3E%3C!-- Ruler --%3E%3Cpath d='M15 75h22v6H15zm3 2v2m4-2v2m4-2v2m4-2v2'/%3E%3C!-- Blackboard --%3E%3Cpath d='M45 70h20v14H45zm2 2v10h16V72z'/%3E%3C!-- Apple --%3E%3Cpath d='M88 75c0-3 3-5 5-5s5 2 5 5c0 4-4 6-5 6s-5-2-5-6z'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Top bar styling */
.top-bar {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--lime-green);
}

/* Navbar styling */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-bottom: 2px solid transparent !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active,
.navbar-nav .show > .nav-link {
    color: var(--accent-red) !important;
    border-bottom-color: var(--accent-red) !important;
}

/* Testimonial Nav Pills */
.testimonial-pills .nav-link {
    border-bottom: none !important;
    color: var(--primary) !important;
    background-color: #f1f5f9;
}
.testimonial-pills .nav-link:hover {
    background-color: #e2e8f0;
    color: var(--primary) !important;
}
.testimonial-pills .nav-link.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.btn-navy {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    transition: var(--transition);
}
.btn-navy:hover,
.btn-navy:focus,
.btn-navy:active,
.btn-navy.active {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(10, 25, 45, 0.3) !important;
}
.btn-navy:disabled,
.btn-navy[disabled] {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    opacity: 0.85 !important;
}


.btn-admission {
    background-color: var(--accent-red);
    color: #ffffff !important;
    border-radius: 6px;
    padding: 8px 20px !important;
    font-weight: 700;
    transition: var(--transition);
    border: none !important;
}

.btn-admission:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.2);
}

.btn-login {
    background-color: #4984c1;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 8px 16px !important;
    font-weight: 700;
    transition: var(--transition);
    border: none !important;
    display: inline-flex;
    align-items: center;
}

.btn-login:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 132, 193, 0.2);
}

.btn-warning {
    background-color: #ffc107 !important;
    color: var(--primary) !important;
    border: 2px solid #ffc107 !important;
    transition: var(--transition) !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

.hero-carousel .carousel-item {
    height: auto;
    min-height: 380px;
    background-color: #0A192D;
    position: relative;
}

.hero-caption .btn {
    transition: var(--transition);
}

.hero-carousel img {
    height: 100%;
    width: 100%;
    min-height: 380px;
    max-height: 600px;
    object-fit: cover;
    opacity: 0.65;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 25, 45, 0.5) 0%, rgba(10, 25, 45, 0.85) 100%);
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
}

.hero-caption {
    color: #ffffff;
    max-width: 800px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        min-height: 480px;
    }

    .hero-carousel img {
        min-height: 480px;
    }

    .hero-overlay {
        padding: 1.5rem 0;
    }

    .hero-caption {
        padding-left: 2.2rem;
        padding-right: 2.2rem;
        text-align: center;
    }

    .hero-caption .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .hero-caption .btn {
        width: 100%;
        max-width: 280px;
        font-size: 0.92rem;
        padding: 0.6rem 1rem !important;
        margin: 0 auto;
    }

    .hero-badge {
        font-size: 0.68rem;
        padding: 4px 10px;
        letter-spacing: 0.5px;
        white-space: normal;
        word-break: break-word;
        margin-bottom: 12px !important;
    }

    .hero-title {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 34px;
        opacity: 0.85;
    }

    .hero-carousel .carousel-control-prev {
        left: 2px;
    }

    .hero-carousel .carousel-control-next {
        right: 2px;
    }
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    z-index: 10;
}

.hero-badge {
    background-color: var(--lime-green);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Section Header */
.section-tag {
    color: var(--accent-red);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--lime-green);
    margin-top: 12px;
    border-radius: 2px;
}

.section-title-center::after {
    margin: 12px auto 0 auto;
}

/* Stats Counter */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    padding: 60px 0;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--lime-green);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-title {
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Principal Message Card */
.message-card {
    background-color: var(--light-bg);
    border-radius: 12px;
    border-left: 6px solid var(--accent-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.principal-img {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    width: 100%;
    height: 380px;
}

/* Program Card */
.program-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.program-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.program-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-img-wrapper img {
    transform: scale(1.08);
}

.program-icon-badge {
    position: absolute;
    bottom: -20px;
    right: 24px;
    background-color: var(--lime-green);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(132, 204, 22, 0.3);
}

.program-body {
    padding: 30px 24px 24px 24px;
}

/* Testimonials */
.testimonial-card {
    background-color: var(--light-bg);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-quote {
    color: var(--muted-text);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

/* News / Blogs section */
.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.news-img {
    height: 200px;
    object-fit: cover;
}

.news-date {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-red);
}

/* Inner Banner */
.inner-banner {
    background: linear-gradient(180deg, rgba(10, 25, 45, 0.8) 0%, rgba(10, 25, 45, 0.95) 100%);
    padding: 100px 0 80px 0;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inner-banner-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--lime-green);
}

.breadcrumb-item.active {
    color: #ffffff;
}

/* Gallery Filter */
.gallery-filter-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 8px 24px;
    font-weight: 600;
    border-radius: 50px;
    margin: 5px;
    transition: var(--transition);
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    height: 260px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 45, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-hover {
    opacity: 1;
}

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

/* Footer */
.footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 30px 0;
    border-top: 5px solid var(--accent-red);
}

.footer-logo img {
    height: 70px;
    width: auto;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer h5::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--lime-green);
    margin-top: 10px;
}

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

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

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

.footer-links a:hover {
    color: var(--lime-green);
    padding-left: 6px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-info-list i {
    color: var(--lime-green);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* UI Utilities */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hover-top:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 28px rgba(10, 25, 45, 0.12) !important;
}
