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

/* Bootstrap Override for Primary Color */
:root {
    --bs-primary: #2e3581;
    --bs-primary-rgb: 46, 53, 129;
    --bs-btn-active-bg: #252e6b;
    --bs-btn-active-border-color: #252e6b;
}

/* Bootstrap Component Overrides */
.bg-primary {
    background-color: #2e3581 !important;
}

.text-primary {
    color: #2e3581 !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2e3581;
    --bs-btn-border-color: #2e3581;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #252e6b;
    --bs-btn-hover-border-color: #252e6b;
    --bs-btn-focus-shadow-rgb: 46, 53, 129;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #252e6b;
    --bs-btn-active-border-color: #252e6b;
}

.btn-outline-primary {
    --bs-btn-color: #2e3581;
    --bs-btn-border-color: #2e3581;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2e3581;
    --bs-btn-hover-border-color: #2e3581;
    --bs-btn-focus-shadow-rgb: 46, 53, 129;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2e3581;
    --bs-btn-active-border-color: #2e3581;
}

:root {
    /* Colors */
    --primary-color: #2e3581;
    --secondary-color: #252e6b;
    --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;
}


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

/* ----- Navigation ----- */
.navbar {
    transition: all var(--transition-time) ease;
    padding: var(--spacing-sm) 0 !important;
}

.navbar.scrolled {
    padding: var(--spacing-unit) 0;
    background-color: rgba(46, 53, 129, 0.95) !important;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    position: relative;
    padding-left: 30px;
}

.school-icon {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
}

.school-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.school-main {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.school-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: block;
    line-height: 1.2;
    font-weight: 400;
}

/* ----- 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(46, 53, 129, 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;
    }
}

/* ===== HEADER LOGO STYLES ===== */
.college-header-logo {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Responsive breakpoints for logo size */

@media (min-width: 577px) and (max-width: 768px) {
    .college-header-logo {
        max-height: 100px !important;
    }
}

@media (min-width: 769px) {
    .college-header-logo {
        max-height: 120px !important;
    }
}

/* Header styling */
header {
    border-bottom: 2px solid var(--primary-color);
}