
/* ==========================================
   CITY COLLEGE — OPTION B
   TWO-TIER PREMIUM HEADER
   ========================================== */

.cc-option-f .cc-header-utility {
    display: none;
}

@media (min-width: 768px) {

    /* Header outer shell */
    .cc-option-f.navbar-area {
        padding: 0 !important;
        background: #fff !important;
        box-shadow: 0 5px 22px rgba(18, 43, 75, .08) !important;
        border: 0 !important;
    }

    /* Navy top utility bar */
    .cc-option-f .cc-header-utility {
        display: block;
        width: 100%;
        margin: 0;
        background: linear-gradient(100deg, #082b55, #06427b);
        border: 0;
    }

    .cc-option-f .cc-header-utility .container {
        max-width: 1450px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .cc-option-f .cc-utility-inner {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }

    .cc-option-f .cc-utility-left,
    .cc-option-f .cc-utility-right {
        display: flex;
        align-items: center;
        gap: 18px;
        color: #fff;
        font-size: 12px;
        font-weight: 500;
    }

    .cc-option-f .cc-utility-left span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        white-space: nowrap;
    }

    .cc-option-f .cc-utility-left i,
    .cc-option-f .cc-utility-right i {
        color: #fff;
        font-size: 16px;
    }

    .cc-option-f .cc-utility-right a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #fff;
        text-decoration: none;
        white-space: nowrap;
        transition: opacity .2s ease;
    }

    .cc-option-f .cc-utility-right a:hover {
        color: #fff;
        opacity: .75;
    }

    .cc-option-f .cc-utility-divider {
        display: inline-block;
        width: 1px;
        height: 16px;
        background: rgba(255,255,255,.45);
        flex-shrink: 0;
    }

    /* Main white navigation */
    .cc-option-f .desktop-nav {
        position: relative;
        width: 100%;
        max-width: none;
        margin: 0;
        background: #fff !important;
        border: 0;
        border-radius: 0;
        box-shadow: none !important;
    }

    .cc-option-f .desktop-nav > .container {
        max-width: 1450px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .cc-option-f .desktop-nav .navbar {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        min-height: 100px;
        padding: 12px 0;
    }

    /* Logo */
    .cc-option-f .desktop-nav .navbar-brand {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        margin-right: 35px;
        padding-right: 28px;
        border-right: 1px solid #d9e2ee;
    }

    .cc-option-f .desktop-nav
    .navbar-brand .main-logo {
        display: block !important;
        width: auto;
        max-width: 205px;
        max-height: 76px;
        object-fit: contain;
    }

    .cc-option-f .desktop-nav
    .navbar-brand .white-logo {
        display: none !important;
    }

    /* Navigation */
    .cc-option-f .desktop-nav .navbar-collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        min-width: 0;
    }

    .cc-option-f .desktop-nav .navbar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 4px;
        margin: 0;
    }

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item {
        margin: 0;
    }

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item > .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 44px;
        padding: 11px 13px !important;
        color: #132b46 !important;
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-radius: 0;
        box-shadow: none !important;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        white-space: nowrap;
        position: relative;
    }

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:not(.enrol)
    > .nav-link:hover {
        color: #087bc5 !important;
    }

    /* Active underline */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:not(.enrol)
    > .nav-link.active {
        color: #087bc5 !important;
    }

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:not(.enrol)
    > .nav-link.active::before {
        content: "";
        position: absolute;
        left: 13px;
        right: 13px;
        bottom: 2px;
        height: 2px;
        background: #087bc5;
    }

    /* Replace original top-level dropdown arrows */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item
    > .nav-link.dropdown-toggle::after {
        content: "";
        display: inline-block !important;
        position: static !important;
        width: 7px !important;
        height: 7px !important;
        margin: -4px 0 0 2px !important;
        border: 0 !important;
        border-right: 1.8px solid currentColor !important;
        border-bottom: 1.8px solid currentColor !important;
        border-radius: 0 !important;
        background: none !important;
        transform: rotate(45deg) !important;
        vertical-align: middle;
    }

    /* Hide desktop duplicates of utility links */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item.nav-login,
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:last-child {
        display: none !important;
    }

    /* Remove original enrol parent decoration */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item.enrol {
        margin-left: 22px;
        padding: 0 !important;
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item.enrol::before,
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item.enrol::after {
        content: none !important;
        display: none !important;
    }

    /* Single gradient CTA */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item.enrol > .nav-link {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        padding: 10px 15px !important;
        background: linear-gradient(
            110deg,
            #bb4857 0%,
            #95638c 48%,
            #148fd5 100%
        ) !important;
        color: #fff !important;
        border: 0 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        font-size: 14px;
        font-weight: 600;
        transform: none !important;
        filter: none !important;
    }

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item.enrol > .nav-link:hover {
        filter: brightness(1.07) !important;
    }

    /* Dropdowns */
    .cc-option-f .desktop-nav
    .navbar-nav .dropdown-menu {
        background: #fff !important;
        border: 1px solid #e5ebf2;
        border-radius: 10px;
        box-shadow: 0 16px 36px rgba(10, 37, 70, .15);
    }

    .cc-option-f .desktop-nav
    .navbar-nav .dropdown-menu a {
        color: #213750 !important;
    }

    .cc-option-f .desktop-nav
    .navbar-nav .dropdown-menu a:hover {
        color: #087bc5 !important;
    }

    /* Sidebar trigger */
    .cc-option-f .desktop-nav .others-options {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        margin-left: 24px;
    }

    .cc-option-f .desktop-nav
    .others-options .icon {
        color: #0e2948 !important;
        font-size: 27px;
        cursor: pointer;
    }

    /* Homepage override */
    body:has(.hero-video-section)
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:not(.enrol)
    > .nav-link {
        color: #132b46 !important;
    }
}

/* Narrow desktop spacing */
@media (min-width: 1200px) and (max-width: 1399px) {

    .cc-option-f .desktop-nav > .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cc-option-f .desktop-nav .navbar-brand {
        margin-right: 18px;
        padding-right: 18px;
    }

    .cc-option-f .desktop-nav
    .navbar-brand .main-logo {
        max-width: 165px;
        max-height: 70px;
    }

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item > .nav-link {
        font-size: 12px;
        padding: 10px 8px !important;
    }

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item.enrol {
        margin-left: 10px;
    }

    .cc-option-f .desktop-nav
    .others-options {
        margin-left: 12px;
    }
}

/* Preserve original MeanMenu mobile navigation */
@media (max-width: 1199.98px) {
    .cc-option-f .cc-header-utility {
        display: none !important;
    }
}

/* ==============================================
   CITY COLLEGE — OPTION B FINAL REFINEMENTS
   Light blue utility bar + dropdown arrow fix
   ============================================== */

@media (min-width: 768px) {

    /* Light blue top utility bar */
    .cc-option-f .cc-header-utility {
        background: #DDF1FB !important;
        border-bottom: 1px solid #C5E5F6 !important;
    }

    /* Top bar text */
    .cc-option-f .cc-utility-left,
    .cc-option-f .cc-utility-right,
    .cc-option-f .cc-utility-left span,
    .cc-option-f .cc-utility-right a {
        color: #123B5B !important;
    }

    /* Top bar icons */
    .cc-option-f .cc-utility-left i,
    .cc-option-f .cc-utility-right i {
        color: #1688C7 !important;
    }

    /* Top bar separators */
    .cc-option-f .cc-utility-divider {
        background: #9BC9E2 !important;
    }

    /* ==========================================
       REMOVE ORIGINAL THEME DROPDOWN ARROWS
       ========================================== */

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item
    > .nav-link.dropdown-toggle::before {
        content: none !important;
        display: none !important;
    }

    /* Hide theme's icon-based arrows */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item
    > .nav-link.dropdown-toggle i {
        display: none !important;
    }

    /* Create one properly aligned arrow */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item
    > .nav-link.dropdown-toggle::after {
        content: "" !important;
        display: inline-block !important;

        position: relative !important;
        top: -2px !important;
        right: auto !important;
        left: auto !important;

        width: 7px !important;
        height: 7px !important;

        margin-left: 8px !important;
        margin-right: 0 !important;

        border: 0 !important;
        border-right: 2px solid currentColor !important;
        border-bottom: 2px solid currentColor !important;

        background: transparent !important;
        background-image: none !important;

        transform: rotate(45deg) !important;
        vertical-align: middle !important;
    }

    /* Prevent original arrow positioning */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item
    > .nav-link.dropdown-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center;
        gap: 0 !important;
    }

    /* Enrol Now arrow: white */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item.enrol
    > .nav-link.dropdown-toggle::after {
        border-right-color: #fff !important;
        border-bottom-color: #fff !important;
    }
}
/* CITY COLLEGE — MATCH TOP BAR WITH ENROL BUTTON */

@media (min-width: 1200px) {

    .cc-option-f .cc-header-utility {
        background: linear-gradient(
            110deg,
            #BB4857 0%,
            #95638C 48%,
            #148FD5 100%
        ) !important;

        border-bottom: none !important;
    }

    /* White text */
    .cc-option-f .cc-utility-left,
    .cc-option-f .cc-utility-right,
    .cc-option-f .cc-utility-left span,
    .cc-option-f .cc-utility-right a {
        color: #FFFFFF !important;
    }

    /* White icons */
    .cc-option-f .cc-utility-left i,
    .cc-option-f .cc-utility-right i {
        color: #FFFFFF !important;
    }

    /* Subtle white separators */
    .cc-option-f .cc-utility-divider {
        background: rgba(255, 255, 255, 0.45) !important;
    }
}



/* ==========================================
   CITY COLLEGE — CENTER NAVIGATION MENU
   ========================================== */

@media (min-width: 1200px) {

    /* Use the available space between logo and sidebar */
    .cc-option-f .desktop-nav .navbar-collapse {
        display: flex !important;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Center menu links within the available area */
    .cc-option-f .desktop-nav .navbar-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Keep menu text slightly bold */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:not(.enrol):not(.nav-login)
    > .nav-link {
        font-weight: 600 !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    /* Maintain spacing before Enrol Now */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item.enrol {
        margin-left: 18px !important;
    }

    /* Sidebar icon stays on the right */
    .cc-option-f .desktop-nav .others-options {
        flex-shrink: 0;
        margin-left: 20px !important;
    }
}


/* ============================================
   CITY COLLEGE — CENTER MENU LINKS ONLY
   Keep Enrol Now and hamburger on the right
   ============================================ */

@media (min-width: 1200px) {

    /* Navigation area takes remaining width */
    .cc-option-f .desktop-nav .navbar-collapse {
        display: flex !important;
        flex: 1 1 0% !important;
        min-width: 0;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    /* Menu occupies the space before the CTA */
    .cc-option-f .desktop-nav .navbar-nav {
        display: flex !important;
        flex: 1 1 auto !important;
        width: 100%;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        margin: 0 !important;
    }

    /* Center the five links in their own area */
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item:first-child {
        margin-left: auto !important;
    }

    /* Push Enrol Now to the far right */
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol {
        margin-left: auto !important;
        flex-shrink: 0;
    }

    /* Maintain button design */
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol > .nav-link {
        font-weight: 700 !important;
    }

    /* Keep hamburger at the far right */
    .cc-option-f .desktop-nav .others-options {
        flex-shrink: 0 !important;
        margin-left: 20px !important;
    }
}

/* ============================================
   CITY COLLEGE — DROPDOWN POSITION REFINEMENT
   ============================================ */

@media (min-width: 1200px) {

    /* Anchor top-level dropdowns to their menu item */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item {
        position: relative;
    }

    /* Top-level dropdowns only */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item > .dropdown-menu {
        top: calc(100% - 4px) !important;
        margin-top: 0 !important;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    /* Keep dropdowns attached to their parent */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:hover > .dropdown-menu {
        transform: translateY(0) !important;
    }

    /* Maintain comfortable dropdown item spacing */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item > .dropdown-menu > li > a {
        padding-top: 11px;
        padding-bottom: 11px;
        line-height: 1.35;
    }
}


/* ============================================
   CITY COLLEGE — NESTED SUBMENU OVERFLOW FIX
   Forms & Policies / Agents / Courses
   ============================================ */

@media (min-width: 1200px) {

    /* Nested submenu anchor */
    .cc-option-f .desktop-nav
    .dropdown-menu .dropdown-submenu {
        position: relative;
    }

    /* Submenus normally open to the right */
    .cc-option-f .desktop-nav
    .dropdown-menu .dropdown-submenu > .dropdown-menu {
        top: 0 !important;
        left: 100%;
        right: auto;
        margin: 0 !important;
        transform: none !important;
    }

    /* Forms & Policies nested menus open left */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:has(> .nav-link[title="Forms & Policies"])
    .dropdown-submenu > .dropdown-menu {
        left: auto !important;
        right: 100% !important;
    }

    /* Agents nested menus also open left */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:has(> .nav-link[title="Agents"])
    .dropdown-submenu > .dropdown-menu {
        left: auto !important;
        right: 100% !important;
    }

    /* Keep nested menus above page content */
    .cc-option-f .desktop-nav
    .dropdown-menu {
        z-index: 1050;
    }

    /* Avoid excessive submenu width */
    .cc-option-f .desktop-nav
    .dropdown-menu .dropdown-submenu > .dropdown-menu {
        width: 340px;
        max-width: min(340px, 90vw);
        white-space: normal;
    }

    /* Allow long policy titles to wrap */
    .cc-option-f .desktop-nav
    .dropdown-menu .dropdown-submenu > .dropdown-menu a {
        white-space: normal !important;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
}

/* Force the last major dropdown groups to open left */

@media (min-width: 1200px) {

    /* Forms & Policies and Agents */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:nth-child(4)
    .dropdown-submenu > .dropdown-menu,

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:nth-child(5)
    .dropdown-submenu > .dropdown-menu {
        left: auto !important;
        right: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* ============================================
   CITY COLLEGE — ACTUAL NESTED MENU FIX
   Targets original theme's LI-based structure
   ============================================ */

@media (min-width: 1200px) {

    /* Nested LI is the positioning anchor */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item > .dropdown-menu > li {
        position: relative;
    }

    /* Override original left:350px */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item > .dropdown-menu
    > li > .dropdown-menu {
        left: 100% !important;
        right: auto !important;
        top: 0 !important;
        margin: 0 !important;
        transform: none !important;
        width: 320px;
        max-width: 90vw;
    }

    /* Forms & Policies: open second level LEFT */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:nth-child(4)
    > .dropdown-menu > li > .dropdown-menu {
        left: auto !important;
        right: 100% !important;
    }

    /* Agents: open second level LEFT */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:nth-child(5)
    > .dropdown-menu > li > .dropdown-menu {
        left: auto !important;
        right: 100% !important;
    }

    /* Correct deeper levels */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item > .dropdown-menu
    li > .dropdown-menu li > .dropdown-menu {
        left: auto !important;
        right: 100% !important;
        top: 0 !important;
        margin: 0 !important;
        transform: none !important;
        max-width: 90vw;
    }

    /* Long policy names wrap properly */
    .cc-option-f .desktop-nav
    .navbar-nav .dropdown-menu li a {
        white-space: normal !important;
        overflow-wrap: anywhere;
        line-height: 1.4 !important;
    }
}

/* ================================================
   CITY COLLEGE — LONG DROPDOWN SCROLL FIX
   Keep all Forms & Policies links accessible
   ================================================ */

@media (min-width: 1200px) {

    /* Long nested dropdowns */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:nth-child(4)
    > .dropdown-menu > li > .dropdown-menu {

        max-height: calc(100vh - 205px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;

        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #86b8d8 #f2f6fa;
    }

    /* Compact dropdown links */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:nth-child(4)
    > .dropdown-menu > li > .dropdown-menu > li > a {

        padding: 10px 15px !important;
        line-height: 1.35 !important;
        font-size: 13px !important;
        white-space: normal !important;
    }

    /* Scrollbar styling */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:nth-child(4)
    > .dropdown-menu > li > .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:nth-child(4)
    > .dropdown-menu > li > .dropdown-menu::-webkit-scrollbar-thumb {
        background: #86b8d8;
        border-radius: 10px;
    }
}


/* ============================================
   CITY COLLEGE — ENROL NOW REFINEMENT
   Remove green background + dropdown spacing
   ============================================ */

@media (min-width: 1200px) {

    /* Remove old theme background from parent */
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol,
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol:hover {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Remove any decorative parent overlays */
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol::before,
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol::after {
        content: none !important;
        display: none !important;
    }

    /* Keep the gradient on the button itself */
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol > .nav-link,
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol:hover > .nav-link {
        background: linear-gradient(
            110deg,
            #BB4857 0%,
            #95638C 48%,
            #148FD5 100%
        ) !important;

        color: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
        filter: none !important;
        transform: none !important;
    }

    /* Remove theme pseudo-element decorations */
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol > .nav-link::before {
        content: none !important;
        display: none !important;
    }

    /* Keep the existing single dropdown arrow */
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol > .nav-link::after {
        border-right-color: #ffffff !important;
        border-bottom-color: #ffffff !important;
    }

    /* Position the Enrol dropdown below the button */
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol {
        position: relative;
    }

    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol > .dropdown-menu {
        top: calc(100% + 10px) !important;
        margin-top: 0 !important;
        transform: none !important;
        z-index: 1050;
    }
}

@media (min-width: 1200px) {
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item.enrol > .dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -10px;
        height: 10px;
        background: transparent;
    }
}
/* CITY COLLEGE — NAVIGATION FONT SIZE REFINEMENT */

@media (min-width: 1400px) {

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:not(.enrol):not(.nav-login)
    > .nav-link {
        font-size: 16px !important;
        font-weight: 600 !important;
    }
}

/* Slightly smaller on compact desktops */
@media (min-width: 1200px) and (max-width: 1399px) {

    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item:not(.enrol):not(.nav-login)
    > .nav-link {
        font-size: 13.5px !important;
        font-weight: 600 !important;
    }
}

/* ============================================
   CITY COLLEGE — HEADER PROPORTION REFINEMENT
   ============================================ */

@media (min-width: 1400px) {

    /* Consistent content width */
    .cc-option-f .cc-header-utility .container,
    .cc-option-f .desktop-nav > .container {
        max-width: 1440px !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Reduce top bar height */
    .cc-option-f .cc-utility-inner {
        min-height: 42px !important;
    }

    /* Reduce excessive white space */
    .cc-option-f .desktop-nav .navbar {
        min-height: 80px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    /* Enlarge the actual logo image */
    .cc-option-f .desktop-nav
    .navbar-brand .main-logo {
        max-width: 190px !important;
        max-height: 74px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }

    /* Keep logo divider aligned */
    .cc-option-f .desktop-nav .navbar-brand {
        padding-right: 22px !important;
        margin-right: 22px !important;
    }

    /* Preserve existing menu layout */
    .cc-option-f .desktop-nav .navbar-nav
    > .nav-item > .nav-link {
        line-height: 1.3 !important;
    }
}

/* Compact desktop / laptop */
@media (min-width: 1200px) and (max-width: 1399px) {

    .cc-option-f .cc-utility-inner {
        min-height: 40px !important;
    }

    .cc-option-f .desktop-nav .navbar {
        min-height: 76px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .cc-option-f .desktop-nav
    .navbar-brand .main-logo {
        max-width: 165px !important;
        max-height: 66px !important;
    }
}
/* CITY COLLEGE — PROPORTIONAL LOGO SIZING */

@media (min-width: 1400px) {

    .cc-option-f .desktop-nav .navbar {
        min-height: 94px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .cc-option-f .desktop-nav
    .navbar-brand .main-logo {
        width: auto !important;
        height: 78px !important;
        max-height: 78px !important;
        max-width: none !important;
        object-fit: contain;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {

    .cc-option-f .desktop-nav .navbar {
        min-height: 88px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .cc-option-f .desktop-nav
    .navbar-brand .main-logo {
        width: auto !important;
        height: 72px !important;
        max-height: 72px !important;
        max-width: none !important;
        object-fit: contain;
    }
}

/* CITY COLLEGE — LARGER ORIGINAL LOGO */

@media (min-width: 1400px) {

    .cc-option-f .desktop-nav .navbar {
        min-height: 112px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .cc-option-f .desktop-nav
    .navbar-brand .main-logo {
        width: auto !important;
        height: 110px !important;
        max-height: 110px !important;
        max-width: none !important;
        object-fit: contain !important;
    }
}

/* Smaller laptop screens */
@media (min-width: 1200px) and (max-width: 1399px) {

    .cc-option-f .desktop-nav .navbar {
        min-height: 98px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .cc-option-f .desktop-nav
    .navbar-brand .main-logo {
        width: auto !important;
        height: 88px !important;
        max-height: 88px !important;
        max-width: none !important;
        object-fit: contain !important;
    }
}

/* ============================================
   CITY COLLEGE — CONSISTENT HEADER WIDTH
   Match header content to website layout
   ============================================ */

@media (min-width: 1200px) {

    /* Header content container */
    .cc-option-f .desktop-nav > .container,
    .cc-option-f .cc-header-utility .container {
        width: 100% !important;
        max-width: 1320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Keep logo aligned inside container */
    .cc-option-f .desktop-nav .navbar-brand {
        flex-shrink: 0 !important;
    }

    /* Preserve navigation alignment */
    .cc-option-f .desktop-nav .navbar-collapse {
        min-width: 0;
    }
}

/* Larger displays */
@media (min-width: 1600px) {

    .cc-option-f .desktop-nav > .container,
    .cc-option-f .cc-header-utility .container {
        max-width: 1440px !important;
    }
}

/* ============================================
   CITY COLLEGE — MATCH FOOTER CONTAINER WIDTH
   ============================================ */

@media (min-width: 1200px) {

    /* Match the same Bootstrap container as footer */
    .cc-option-f .desktop-nav > .container,
    .cc-option-f .cc-header-utility .container {
        width: 100% !important;
        max-width: 1140px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (min-width: 1400px) {

    .cc-option-f .desktop-nav > .container,
    .cc-option-f .cc-header-utility .container {
        max-width: 1320px !important;
    }
}

/* ==========================================
   CITY COLLEGE — DROPDOWN ARROW FINAL FIX
   ========================================== */

@media (min-width: 1200px) {

    /* Top-level navigation dropdowns */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item > a.nav-link.dropdown-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center;
        gap: 9px !important;
        position: relative !important;
    }

    /* Use Bootstrap's existing arrow */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item > a.nav-link.dropdown-toggle::after {
        content: "" !important;
        display: inline-block !important;
        position: static !important;

        width: 7px !important;
        height: 7px !important;

        border: 0 !important;
        border-right: 2px solid currentColor !important;
        border-bottom: 2px solid currentColor !important;

        margin: -4px 0 0 0 !important;
        padding: 0 !important;

        transform: rotate(45deg) !important;
        flex-shrink: 0 !important;
    }

    /* Enrol Now typography */
    .cc-option-f .desktop-nav
    .navbar-nav > .nav-item.enrol > a.nav-link {
        font-size: 15px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
    }
}


/* CC TABLET HEADER FIX V1 */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .cc-option-f .cc-header-utility { display: block !important; }
  .cc-option-f .mobile-responsive-nav { display: none !important; }
  .cc-option-f .desktop-nav { display: block !important; }
  .cc-option-f .desktop-nav .navbar-collapse { display: flex !important; min-width: 0; }
  .cc-option-f .desktop-nav .navbar-nav { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: center; padding-left: 0 !important; column-gap: 4px; }
  .cc-option-f .desktop-nav .navbar-brand { flex-shrink: 0; }
  .cc-option-f .desktop-nav .navbar-nav > .nav-item > .nav-link { font-size: 11px; padding: 8px 5px !important; }
  .cc-option-f .cc-header-utility .cc-utility-inner { flex-wrap: wrap; gap: 8px; }
}


/* CC TABLET HEADER FIX V2 */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .cc-option-f .cc-header-utility { display: block !important; background: #DDF1FB !important; border-bottom: 1px solid #C5E5F6 !important; }
  .cc-option-f .mobile-responsive-nav, .cc-option-f .mean-bar, .cc-option-f .meanmenu-reveal, .cc-option-f .navbar-toggler { display: none !important; }
  .cc-option-f .cc-header-utility .cc-utility-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .cc-option-f .desktop-nav .navbar-brand img { max-height: 65px !important; width: auto !important; object-fit: contain !important; }
  .cc-option-f .desktop-nav .navbar-nav { flex-wrap: nowrap !important; justify-content: flex-end !important; gap: 3px !important; }
  .cc-option-f .desktop-nav .navbar-nav > .nav-item > .nav-link { font-size: 10px !important; padding: 8px 4px !important; white-space: nowrap; }
  .cc-option-f .desktop-nav .navbar-nav > .nav-item > .nav-link.dropdown-toggle::after { margin-left: 4px !important; }
}


/* CC TABLET UTILITY GRADIENT */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .cc-option-f .cc-header-utility { background: linear-gradient(100deg, #082b55, #06427b) !important; border-bottom: 0 !important; }
  .cc-option-f .cc-utility-left, .cc-option-f .cc-utility-right, .cc-option-f .cc-utility-left span, .cc-option-f .cc-utility-right a { color: #fff !important; }
  .cc-option-f .cc-utility-left i, .cc-option-f .cc-utility-right i { color: #fff !important; }
  .cc-option-f .cc-utility-divider { background: rgba(255,255,255,.45) !important; }
}


/* CC UNIFIED UTILITY GRADIENT */
@media (min-width: 768px) {
  .cc-option-f .cc-header-utility { background: linear-gradient(110deg, #BB4857 0%, #95638C 48%, #148FD5 100%) !important; border-bottom: 0 !important; }
  .cc-option-f .cc-utility-left, .cc-option-f .cc-utility-right, .cc-option-f .cc-utility-left span, .cc-option-f .cc-utility-right a { color: #fff !important; }
  .cc-option-f .cc-utility-left i, .cc-option-f .cc-utility-right i { color: #fff !important; }
  .cc-option-f .cc-utility-divider { background: rgba(255,255,255,.45) !important; }
}


/* CC HIDE DUPLICATE TABLET DOT MENU */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .cc-option-f .others-option-for-responsive {
    display: none !important;
  }
}






/* CC NESTED SUBMENU FONT CONSISTENCY */
@media (min-width: 768px) {
  .cc-option-f .desktop-nav .navbar-nav .dropdown-menu .dropdown-menu a {
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: Poppins, sans-serif !important;
  }
}


/* CC FORMS POLICIES SUBMENU FONT FIX */
@media (min-width: 768px) {
  .cc-option-f .desktop-nav .navbar-nav > .nav-item:has(> a.nav-link.dropdown-toggle) > .dropdown-menu .nav-item > a:not(.nav-link) {
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: Poppins, sans-serif !important;
  }
}


/* CC ONLINE FORMS VERTICAL ALIGNMENT FIX */
@media (min-width: 1200px) {
  .cc-option-f .desktop-nav .navbar-nav > .nav-item:nth-child(4) > .dropdown-menu > li:nth-child(3) > .dropdown-menu {
    transform: translateY(-43px) !important;
  }
}


/* CC HOME-NEW ABOUT-US STICKY HEADER FIX */
/* Prevent horizontal overflow from breaking sticky positioning */
body:has(.navbar-area.cc-option-f) {
    overflow-x: clip !important;
}
html:has(body .navbar-area.cc-option-f) {
    overflow-x: clip !important;
}


/* CC DESKTOP NAV MENU CENTER ALIGNMENT V2 */
@media (min-width: 1200px) {
  .cc-option-f .desktop-nav .navbar-nav > .nav-item:nth-child(-n+5) {
    position: relative !important;
    left: -57px !important;
    transform: none !important;
  }
}
