/* ===================================
   NAVBAR RESPONSIVE STYLES
   =================================== */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    background: #fff;
}

body {
    padding-top: 120px;
}

body.menu-open {
    overflow: hidden;
}

/* Progress Bar */
.progress-bar-top {
    height: 4px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
    z-index: 1;
}

#scroll-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00FF00 0%, #90EE90 10%, #ADFF2F 20%, #FFD700 40%, #FFA500 60%, #FF6347 80%, #DC143C 100%);
    box-shadow: 0 0 10px rgba(0,255,0,0.4), 0 0 15px rgba(220,20,60,0.4);
    transition: width 0.1s ease;
}

/* Header Top */
.header-top {
    background-color: #fff;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    position: relative;
}

/* Logo */
.navbar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #003366;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar .logo img {
    max-width: 65px;
    object-fit: cover;
    object-position: center;
    height: auto;
}

.navbar .logo-text {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
    line-height: 1.2;
}

.navbar .logo-text h1 {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: #E21B20;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.navbar .logo-text h1 span:first-child {
    display: block;
    font-size: 14px;
}

.navbar .logo-text h1 span:last-child {
    display: block;
    font-size: 24px;
}

.navbar .logo-text p {
    margin: 4px 0 0 0;
    padding: 0;
    font-size: 11px;
    color: #28a745;
    font-style: italic;
    font-weight: 500;
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #003366;
}

/* Actions */
.actions {
    display: flex;
    gap: 0;
    align-items: center;
    flex-shrink: 0;
}

.actions .btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    font-weight: 500;
}

.actions .btn.call {
    background: #28a745;
    color: #fff;
}

.actions .btn.call:hover {
    background: #218838;
}

.actions .btn.enrol {
    background: #E21B20;
    color: #fff;
}

.actions .btn.enrol:hover {
    background: #c41519;
}

.actions .btn.login {
    background: #eee;
    color: #333;
}

.actions .btn.login:hover {
    background: #ddd;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    flex-direction: column;
    gap: 6px;
    z-index: 10001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(13px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-13px);
}

/* Scrolling Text Bar */
.scrolling-text-bar {
    background: #E21B20;
    color: white;
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
    font-size: 14px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ===================================
   MOBILE & TABLET (max-width: 991px)
   =================================== */
@media (max-width: 991px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0.5rem 1rem;
    }

    .navbar .logo {
        flex: 0 1 auto;
    }

    .navbar .logo a {
        font-size: 1.2rem;
    }

    .navbar .logo img {
        max-width: 50px;
    }

    .hamburger {
        display: flex;
        order: 3;
        margin-left: auto;
    }

    .actions {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 9999;
        padding: 40px 20px;
        margin: 0;
        list-style: none;
        animation: slideIn 0.3s ease-out;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        color: #fff;
        font-size: 18px;
        display: block;
        padding: 15px 0;
    }

    .nav-links a:hover {
        color: #ff6600;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================
   DESKTOP (min-width: 992px)
   =================================== */
@media (min-width: 992px) {
    .navbar {
        flex-wrap: nowrap;
        gap: 30px;
    }

    .nav-links {
        display: flex;
    }

    .actions {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}
