:root {
    --primary-blue: #1565c0;
    --primary-red: #d32f2f;
    --accent-yellow: #ffc107;
    --dark-blue: #0d47a1;
    --dark-red: #b71c1c;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding-top: 100px; /* Adjusted for smaller sticky header */
}

.banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/banner.jpg') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    color: white;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Sticky Header Section */
.header-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.top-section {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8ff 100%);
    padding: 10px 20px; /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px; /* Reduced logo size */
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.2rem; /* Reduced font size */
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.8rem; /* Reduced font size */
    font-weight: 500;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.logo-acronym {
    font-size: 1.4rem; /* Reduced font size */
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
}

.top-buttons .btn {
    font-weight: 600;
    border-radius: 25px; /* Slightly smaller border-radius */
    padding: 8px 18px; /* Reduced padding */
    margin-left: 10px;
    font-size: 0.85rem; /* Reduced font size */
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.btn-enquire {
    background: var(--primary-red);
    color: white;
    border: 2px solid var(--primary-red);
}

.btn-register {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.top-buttons .btn i {
    margin-right: 6px; /* Reduced margin */
}

.btn-login i {
    color: var(--accent-yellow);
}

.btn-enquire i {
    color: white;
}

.btn-register i {
    color: var(--primary-red);
}

.top-buttons .btn:hover {
    transform: translateY(-2px); /* Reduced hover effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-login:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-enquire:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
}

.btn-register:hover {
    background: var(--primary-blue);
    color: white;
}

    .btn-register:hover i {
        color: white;
    }

/* Main Navigation */
.navbar {
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-blue) 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15); /* Reduced shadow */
    transition: all 0.4s ease;
}

    .navbar.scrolled {
        background: var(--primary-blue) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

        .navbar.scrolled .nav-link {
            padding: 8px 12px; /* Reduced padding */
        }

.container {
    max-width: 1400px;
}

.navbar-nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
    margin: 0 3px; /* Reduced margin */
}

.nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem; /* Reduced font size */
    text-transform: uppercase;
    padding: 10px 15px; /* Reduced padding */
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

    .nav-link::before {
        content: "";
        position: absolute;
        width: 0;
        height: 2px; /* Reduced height */
        background: var(--accent-yellow);
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.3s ease;
    }

    .nav-link:hover::before {
        width: 100%;
    }

    .nav-link:hover {
        color: white !important;
    }

    .nav-link.active::before {
        width: 100%;
/*        display: none;
*/    }

.dropdown-menu {
    background: white;
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    margin-top: 0;
    border-top: 3px solid var(--accent-yellow);
}

.dropdown-item {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 8px 18px; /* Reduced padding */
    transition: all 0.2s ease;
    position: relative;
}

    .dropdown-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: var(--primary-blue);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.2s ease;
    }

    .dropdown-item:hover {
        background: rgba(21, 101, 192, 0.05);
        color: var(--primary-blue);
        padding-left: 23px;
    }

        .dropdown-item:hover::before {
            transform: scaleY(1);
        }

.dropdown-divider {
    border-top: 1px solid rgba(0,0,0,0.05);
    margin: 5px 0;
}

.dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: 0.15em;
    transition: transform 0.3s ease;
}

.show .dropdown-toggle::after {
    transform: rotate(-180deg);
}

.navbar-toggler {
    border: none;
    padding: 0.4rem;
}

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 30px 0;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    body {
        padding-top: 95px;
    }
}

@media (max-width: 991.98px) {
    .top-section {
        flex-direction: column;
        padding: 10px;
    }

    .logo-container {
        margin-bottom: 10px;
        text-align: center;
        justify-content: center;
    }

    .top-buttons {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

        .top-buttons .btn {
            margin: 4px;
            padding: 7px 12px;
        }

    .navbar-nav {
        padding: 10px 0;
    }

    .nav-item {
        margin: 4px 0;
    }

    .nav-link {
        padding: 8px 12px;
    }

    .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-left: 3px solid var(--accent-yellow);
    }

    body {
        padding-top: 160px;
    }
}

@media (max-width: 767.98px) {
    .logo-main {
        font-size: 1rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    .logo-acronym {
        font-size: 1.2rem;
    }

    .top-buttons {
        flex-direction: column;
        align-items: center;
    }

        .top-buttons .btn {
            width: 100%;
            max-width: 200px;
            margin: 4px 0;
        }

    body {
        padding-top: 200px;
    }
}






