/* Professional Educational Color Palette */
:root {
    --primary: #2c3e50;
    /* Professional navy for credibility */
    --secondary: #3498db;
    /* Trustworthy blue */
    --accent: #e74c3c;
    /* Energetic red for CTAs */
    --light: #f8f9fa;
    /* Clean light background */
    --dark: #2c3e50;
    /* Professional dark text */
    --success: #27ae60;
    /* Fresh green for education */
    --warning: #f39c12;
    /* Warm orange for highlights */
    --info: #2980b9;
    /* Deeper blue for information */
    --white: #ffffff;
    --light-gray: #ecf0f1;
}

/* General Styles */
body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Segoe UI', 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #555;
}

/* Fixed Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
    background-color: var(--white) !important;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar>.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-left: 0;
}

.navbar-dark .navbar-toggler-icon,
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(0,0,0,0.9)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}



.navbar-brand img {
    height: 45px;
    margin-right: 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.nav-link {
    position: relative;
    color: var(--primary) !important;
    font-weight: 600;
    margin: 0 8px;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 0.95rem;
}

.navbar-nav {
    gap: 5px;
}

.nav-link:hover {
    color: var(--secondary) !important;
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    bottom: 0;
    left: 16px;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-link:hover::after {
    width: calc(100% - 32px);
}

.nav-link.active {
    color: var(--secondary) !important;
    font-weight: 700;
}

.nav-link.active::after {
    width: calc(100% - 32px);
}

/* Banner Section */
#banners,
#about-banner,
#gallery-banner,
#events-banner,
#programs-banner,
#admissions-banner,
#contact-banner {
    margin-top: 85px;
    position: relative;
    height: 700px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
}

.banner {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: absolute;
    width: 100%;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-visible {
    opacity: 1;
    z-index: 2;
}

.banner-hidden {
    opacity: 0;
    z-index: 1;
}

.banner-content {
    text-align: center;
    max-width: 900px;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    line-height: 1.2;
    color: white;
    letter-spacing: -0.5px;
}

.banner p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.banner .btn {
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid white;
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.banner .btn i {
    margin-left: 10px;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.banner .btn:hover {
    background: linear-gradient(135deg, #c0392b, var(--accent));
    border-color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
}

.banner .btn:hover i {
    transform: translateX(5px);
}

/* Section Styles */
.section {
    padding: 120px 0;
    position: relative;
}

.section.bg-light {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    width: 100%;
    text-align: center;
    letter-spacing: -0.5px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 5px;
}

.section h2 i {
    color: var(--secondary);
    margin-right: 15px;
    background: linear-gradient(135deg, var(--secondary), var(--info));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: #666;
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.6;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    border-top: 5px solid transparent;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-top-color: var(--secondary);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: all 0.6s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 30px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-text {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.card .badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Featured Box (for highlight sections) */
.feature-box {
    padding: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-box i {
    display: block;
    margin-bottom: 15px;
}

.feature-box h5 {
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .banner h1 {
        font-size: 3.5rem;
    }

    .section h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .banner h1 {
        font-size: 3rem;
    }

    .section {
        padding: 100px 0;
    }

    .section h2 {
        font-size: 2.5rem;
    }

    .card-img-top {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .navbar>.container {
        padding: 0 15px;
    }

    .banner h1 {
        font-size: 2.5rem;
    }

    .banner p {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand img {
        height: 35px;
    }

    .card-img-top {
        height: 200px;
    }

    .banner .btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 2.2rem;
    }

    .banner p {
        font-size: 1.1rem;
    }

    .banner .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section {
        padding: 80px 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        height: 30px;
        margin-right: 10px;
    }

    #banners {
        height: 600px;
        margin-top: 75px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* Button Styles */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--info));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--info), var(--secondary));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, #4b4db6, #2c2a8a);
    border: none;
    color: white !important;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #4b4db6, #2c2a8a);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, #1a252f 100%);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--success));
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    color: white;
}

.footer p {

    color: white;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 25px;
    text-align: left;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
    color: var(--secondary);
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 5px;
    border: 2px solid transparent;
}

.footer-social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    border-color: white;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-shape {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
}

.footer-shape-1 {
    top: 20%;
    left: 10%;
    width: 150px;
    height: 150px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, var(--accent), var(--warning));
    animation: float 8s ease-in-out infinite;
}

.footer-shape-2 {
    bottom: 20%;
    right: 10%;
    width: 180px;
    height: 180px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: linear-gradient(135deg, var(--success), var(--secondary));
    animation: float 10s ease-in-out infinite;
}

/* Newsletter Styles */
.newsletter-input {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Additional Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1a252f 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--info));
}

.shadow-soft {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.shadow-hard {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.rounded-large {
    border-radius: 20px;
}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }

    .footer h5 {
        text-align: center;
        display: block;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social-links {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.footer {
    position: relative;
}

.footer-credits {
    position: absolute;
    right: 15px;
    bottom: 10px;
    font-size: 11px;
    color: #aaa;
    margin: 0;
}