/* --- GOOGLE FONT --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

/* --- GLOBAL STYLES --- */
body {
    font-family: 'Poppins', sans-serif;
    color: #444;
}

.section {
    padding: 80px 0;
    position: relative; 
    z-index: 2;
}

.bg-light {
    background-color: rgba(248, 249, 250, 0.95) !important; 
    backdrop-filter: blur(5px);
}

.section-title {
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
}

.section-subtitle {
    margin-bottom: 3rem;
    font-size: 1.15rem;
    color: #666;
}

/*
====================================
"DRIVING MOVEMENT" BACKGROUND
====================================
*/
#page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
    background-image: url(images/background2.jpg) ;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 0;
    animation: driveRoad 40s linear infinite;
}

@keyframes driveRoad {
    from { background-position: center 0%; }
    to { background-position: center 100%; }
}


/* --- HOMEPAGE HEADER & NAVBAR --- */
.homepage-header .navbar {
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar-brand .navbar-logo {
    height: 40px;
    
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.1);
}

/* Scrolled state for the navbar */
.homepage-header .navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- HERO & PAGE HEADER SECTIONS --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 2;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    margin-right: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.page-header {
    height: 50vh; 
    min-height: 300px;
    text-align: center;
    justify-content: center;
}

/* --- HOMEPAGE: FEATURES SECTION --- */
.feature-item .feature-icon {
    font-size: 3rem;
    color: #0d6efd;
}

/* --- HOMEPAGE: SERVICES CARD --- */
.service-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}

.service-card .card-header {
    background-color: #0d6efd;
    color: #fff;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom: none;
}
.service-card .card-header h4 {
    margin: 0;
    font-weight: 500;
}

/* --- HOMEPAGE: CTA SECTION --- */
.cta-section {
    background-color: rgba(255, 255, 255, 0.9);
}

/* --- PACKAGES PAGE --- */
.package-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}
.package-card:hover {
    transform: translateY(-10px);
}
.package-card img {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    height: 250px;
    object-fit: cover;
}
.package-card-body {
    padding: 2rem;
}
.price-list {
    font-size: 1.1rem;
}
.price-list strong {
    color: #0d6efd;
}

/* --- BRANCHES PAGE --- */
.branch-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}
.branch-icon {
    font-size: 3rem;
    color: #0d6efd;
}

/* --- EXAM PAPERS PAGE --- */
.exam-paper-list .list-group-item {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}
.exam-paper-list .list-group-item i.bi-download {
    color: #0d6efd;
    font-size: 1.2rem;
}

/* --- STREET SIGNS PAGE --- */
.sign-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}
.sign-card:hover {
    transform: translateY(-10px);
}
.sign-icon {
    font-size: 4rem;
    padding: 1.5rem;
    display: inline-block;
}
.sign-regulatory { color: #dc3545; }
.sign-warning { color: #ffc107; }

/* --- NOTICE PAGE --- */
.notice-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    margin-bottom: 2rem;
}

/* --- ABOUT US PAGE --- */
.team-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.07);
    text-align: center;
}
.team-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: -75px auto 0;
    border: 5px solid #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* --- CONTACT US PAGE --- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
}
.contact-info-item i {
    font-size: 1.5rem;
    color: #0d6efd;
    margin-right: 1.5rem;
    margin-top: 5px;
}
.contact-info-item p {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
.homepage-footer {
    background-color: #222;
    z-index: 2; 
    position: relative;
}

.homepage-footer a.text-white:hover {
    text-decoration: underline !important;
}

/*
====================================
FADE-IN TRANSITIONS
====================================
*/
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the animations */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }
.fade-in:nth-child(7) { transition-delay: 0.7s; }
.fade-in:nth-child(8) { transition-delay: 0.8s; }

/*
====================================
NEW DROPDOWN MENU STYLES
====================================
*/
.navbar .dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

/* Style for the dropdowns on the transparent-first homepage nav */
.navbar:not(.scrolled) .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}
.navbar:not(.scrolled) .dropdown-item {
    color: #333;
}
.navbar:not(.scrolled) .dropdown-item:hover {
    background-color: #0d6efd;
    color: #fff;
}


/* Style for the dropdowns on scrolled nav (and all sub-pages) */
.navbar.scrolled .dropdown-menu {
    background-color: rgba(30, 30, 30, 0.95); /* Dark background when scrolled */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .dropdown-item {
    color: #eee;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar.scrolled .dropdown-item:hover {
    background-color: #0d6efd;
    color: #fff;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
}