/* 
  Project: Modern Responsive School Website
  Author: Senior Web Developer
  Description: Custom styles for school website
*/

:root {
    --primary-color: #003366;
    --secondary-color: #0056b3;
    --accent-color: #ffc107;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

   .hero-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

.btn-hero {
        padding: 12px 30px;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 50px;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
    }

    .btn-hero-primary {
        background: var(--accent-color);
        color: var(--primary-color);
        border: 2px solid var(--accent-color);
    }

    .btn-hero-primary:hover {
        background: transparent;
        color: var(--accent-color);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
    }

    .btn-hero-secondary {
        background: transparent;
        color: white;
        border: 2px solid white;
    }

    .btn-hero-secondary:hover {
        background: white;
        color: var(--primary-color);
        transform: translateY(-3px);
    }
/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 15px;
    transition: var(--transition);
}

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

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    transition: var(--transition);
}

.navbar-brand img {
    height: 80px;
}

.brand-text {
    padding-left: 10px;
}
.nav-link-hero {
            padding: 4px 25px;
            font-size: 1.1rem;
            font-weight: 500;
            border-radius:10px;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

.nav-link-hero-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.nav-link-hero-primary:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

 .nav-link-hero-secondary {
    background: transparent;
    color: var(--secondary-color);
}

.nav-link-hero-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}
.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    margin: 0 10px;
    font-size: 14px;
    position: relative;
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.sticky-top {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-slider .carousel-item {
    height: 80vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('https://picsum.photos/seed/school-banner/1920/600');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}

.page-banner h1 {
    font-weight: 700;
    text-transform: uppercase;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-top: 10px;
    justify-content: center;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--white);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

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

/* Cards */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-radius: 10px;
    overflow: hidden;
}

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

.card-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Statistics */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

/* Footer */
footer {
    background-color: #111;
    color: #bbb;
    padding: 80px 0 20px;
}

footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 600;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 50px;
    text-align: center;
    font-size: 14px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 500;
}

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

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Offcanvas Styling */
.offcanvas {
    width: 280px !important;
}

/* Dropdown on Hover for Desktop */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateY(15px);
        border: none;
        border-top: 3px solid var(--accent-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
    }

    .dropdown-item {
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 500;
        color: var(--primary-color);
        transition: var(--transition);
    }

    .dropdown-item:hover {
        background-color: var(--bg-light);
        color: var(--secondary-color);
        padding-left: 25px;
    }

    .navbar .nav-item.dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }
}

.offcanvas-title {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offcanvas .nav-link {
    padding: 12px 0;
    /*border-bottom: 1px solid #eee;*/
    margin: 0;
}

.offcanvas .nav-link::after {
    display: none;
}

.offcanvas .dropdown-menu {
    border: none;
    padding-left: 20px;
    background: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-slider .carousel-item {
        height: 60vh;
    }
    .nav-link-hero {
        width: 250px;
    }
}
