/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --primary-color: #0d6efd;
    --secondary-color: #0b5ed7;
    --accent-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    
    /* Spacing */
    --spacing-unit: 1rem;
    --spacing-sm: calc(var(--spacing-unit) * 0.5);
    --spacing-md: calc(var(--spacing-unit) * 1.5);
    --spacing-lg: calc(var(--spacing-unit) * 2);
    
    /* Transitions */
    --transition-time: 0.3s;
    --transition-time-long: 0.5s;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all var(--transition-time) ease;
}

/* Nav link styles */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ffffff;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
    min-width: 200px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white !important;
    padding-left: 2rem;
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: white !important;
}

.admin-link {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1.2rem !important;
    margin-left: 0.5rem;
    font-weight: 600;
    color: #ffffff !important;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.7rem 1rem !important;
        border-left: 3px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-left-color: var(--accent-color);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.05);
        margin-left: 1rem;
    }
    
    .admin-link {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}


/* ===== COMPONENT STYLES ===== */

/* ----- Navigation ----- */
.navbar {
    transition: all var(--transition-time) ease;
    padding: 1rem 0 !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.5rem 0 !important;
    background-color: rgba(13, 110, 253, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.school-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.school-icon img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover .school-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.navbar-brand:hover .school-icon img {
    transform: scale(1.08);
}

.school-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.school-main {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0;
}

.school-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.65rem;
    display: block;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    margin: 0;
}

@media (max-width: 575px) {
    .navbar-brand {
        gap: 0.5rem;
    }
    
    .school-icon {
        width: 40px;
        height: 40px;
    }
    
    .school-main {
        font-size: 0.95rem;
    }
    
    .school-sub {
        font-size: 0.6rem;
    }
}

/* ----- Carousel ----- */
.carousel-item {
    height: 90vh;
    min-height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    bottom: 180px;
    padding: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-unit);
}

.carousel-caption p {
    font-size: 1.2rem;
}

/* ----- Cards ----- */
.feature-card {
    transition: all var(--transition-time) ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    transition: all var(--transition-time) ease;
    border-left: 4px solid var(--primary-color);
}

.success-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.testimonial-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-time) ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
}

/* ----- Buttons ----- */
.btn {
    padding: 10px 25px;
    font-weight: 600;
    transition: all var(--transition-time) ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    border-width: 2px;
}

.btn-outline-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* ----- Sections ----- */
.section-title {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ----- Gallery ----- */
.gallery-section {
    padding: var(--spacing-lg) 0;
}

.gallery-filter {
    margin-bottom: 40px;
    text-align: center;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    transition: all var(--transition-time) ease;
    position: relative;
}

.filter-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-time) ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary-color);
}

.filter-btn:hover:after,
.filter-btn.active:after {
    width: 60%;
}

.gallery-grid {
    margin-top: 30px;
}

.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-time) ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all var(--transition-time-long) ease;
}

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

.gallery-caption {
    padding: var(--spacing-unit);
    background: white;
}

.gallery-caption h4 {
    font-size: 1.125rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.gallery-caption p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ----- Counter ----- */
.counter-item {
    padding: 30px 20px;
    border-radius: 10px;
    transition: all var(--transition-time) ease;
}

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

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-color);
}

/* ----- Quick Links ----- */
.quick-link-item {
    transition: all var(--transition-time) ease;
    text-decoration: none;
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    background-color: var(--primary-color) !important;
    color: white !important;
}

.quick-link-item:hover i,
.quick-link-item:hover h5,
.quick-link-item:hover small {
    color: white !important;
}

/* ----- Social Icons ----- */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all var(--transition-time) ease;
}

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

/* ----- Lightbox ----- */
.lightbox .lb-image {
    border: 5px solid white;
    border-radius: 3px;
}

.lb-nav a.lb-prev, 
.lb-nav a.lb-next {
    opacity: 1 !important;
}

.lb-data .lb-close {
    opacity: 1 !important;
}

/* ===== UTILITY CLASSES ===== */
.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .school-icon {
        position: static;
        transform: none;
        display: inline-block;
        margin-right: 8px;
    }

    .school-name {
        flex-direction: row;
        align-items: center;
    }

    .school-main {
        font-size: 1.3rem;
        margin-right: 5px;
    }

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

@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
    }

    .carousel-caption {
        bottom: 100px;
    }

    .carousel-caption h5 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .gallery-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        margin: 5px;
        padding: 5px 15px;
        font-size: 14px;
    }

    .gallery-item img {
        height: 200px;
    }
}