/* 
   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;
}

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.02'%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;
}

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

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

.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);
}

/* Hero Carousel */
.hero-carousel .carousel-item {
    height: 600px;
    background-color: #000;
}

.hero-carousel img {
    height: 100%;
    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.4) 0%, rgba(10, 25, 45, 0.8) 100%);
    display: flex;
    align-items: center;
}

.hero-caption {
    color: #ffffff;
    max-width: 800px;
}

.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: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    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: 2.25rem;
    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;
}

.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;
}
