/* Reset only for header elements to avoid conflicts */
.rakmhsu-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main header container - FULLY FIXED */
.rakmhsu-header {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    background: white;
}

/* Custom Container - 85% Width */
.rakmhsu-container-custom {
    width: 85%;
    max-width: 85%;
    margin: 0 auto;
    padding: 0;
}

/* Skip to main content link */
.rakmhsu-skip-link {
    position: absolute;
    left: -9999px;
    z-index: 10002;
    padding: 10px;
    background-color: #8B0000;
    color: white;
    text-decoration: none;
}

.rakmhsu-skip-link:focus {
    left: 10px;
    top: 10px;
}

/* ============================================================
   Top Banner - Patronage & Rankings (full-width, responsive,
   rebuilt as crisp HTML/CSS so it stays sharp on every screen)
   ============================================================ */
/* RAKMHSU brand palette: crimson #b5111b / deep red #8a0d15, gold #e3b85a accents */
.rakmhsu-topbar {
    width: 100%;
    background: linear-gradient(180deg, #b5111b 0%, #8a0d15 100%);
    border-bottom: 2px solid #e3b85a;
    font-family: Arial, Helvetica, sans-serif;
    /* subtle gold arabesque texture over the crimson */
    background-image:
        linear-gradient(180deg, #b5111b 0%, #8a0d15 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M20 0l20 20-20 20L0 20z' fill='none' stroke='%23e3b85a' stroke-width='1' opacity='0.14'/></svg>");
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, 40px 40px;
}

.rakmhsu-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 0;
    flex-wrap: wrap;
}

/* --- Patronage block (left) --- */
.rakmhsu-topbar-patronage {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
    padding-left: 12px;
    position: relative;
}
.rakmhsu-topbar-patronage::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 78%;
    border-radius: 2px;
    background: linear-gradient(180deg, #f0d28a, #c9a227);
}
.rakmhsu-topbar-patronage-pre {
    font-size: 10px;
    color: #f0d28a;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.rakmhsu-topbar-patronage-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.rakmhsu-topbar-patronage-site {
    font-size: 10px;
    color: #f0d28a;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .9;
}
.rakmhsu-topbar-patronage-site:hover { text-decoration: underline; opacity: 1; }

/* --- Rankings & accreditation badges (right) --- */
.rakmhsu-topbar-badges {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.rtb-badge { display: flex; align-items: center; gap: 6px; }
.rtb-sep { width: 1px; height: 26px; background: rgba(240, 210, 138, .45); }

/* THE - Arab University Rankings (gold chip to match the brand) */
.rtb-the .rtb-the-logo {
    background: #e3b85a;
    color: #8a0d15;
    font-weight: 800;
    font-size: 13px;
    padding: 3px 5px;
    border-radius: 3px;
    letter-spacing: .5px;
    line-height: 1;
}
.rtb-the .rtb-the-txt {
    font-size: 8.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
    text-transform: uppercase;
}

/* RANKED n IN ... (gold label, white figure) */
.rtb-rank { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; }
.rtb-rank-top { font-size: 13px; font-weight: 800; color: #f0d28a; letter-spacing: .3px; }
.rtb-rank-top strong { font-size: 17px; color: #fff; }
.rtb-rank-sub {
    font-size: 7.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    letter-spacing: .2px;
    text-transform: uppercase;
    border-top: 1px solid #e3b85a;
    padding-top: 1px;
    margin-top: 2px;
}

/* RAKMHSU quality seal (white disc so the green emblem reads on crimson) */
.rtb-seal {
    height: 34px;
    width: auto;
    display: block;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 0 0 1px rgba(240, 210, 138, .6);
}

/* QS - Excellent 5 stars */
.rtb-qs { flex-direction: column; align-items: center; gap: 1px; line-height: 1; }
.rtb-qs-top { font-size: 8.5px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.rtb-stars { color: #f0d28a; font-size: 11px; letter-spacing: 1px; }
.rtb-qs-logo {
    background: #e3b85a;
    color: #8a0d15;
    font-weight: 800;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 2px;
}

/* Topbar responsive: below desktop, drop the squeezed badge cluster
   and center the patronage line so it stays clean on tablet/phone */
@media (max-width: 991px) {
    .rakmhsu-topbar-inner { justify-content: center; }
    .rakmhsu-topbar-badges { display: none; }
    .rakmhsu-topbar-patronage {
        align-items: center;
        text-align: center;
        padding-left: 0;
    }
    .rakmhsu-topbar-patronage::before { display: none; }
    .rakmhsu-topbar-patronage-name { white-space: normal; }
}

/* Header Container */
.rakmhsu-header-main {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.rakmhsu-header-main .rakmhsu-container-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo */
.rakmhsu-logo {
    display: flex;
    align-items: center;
}

.rakmhsu-logo a {
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.rakmhsu-logo img {
    height: 60px;
    width: auto;
}

/* Header Actions */
.rakmhsu-header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Search Button */
.rakmhsu-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    color: #000;
}

.rakmhsu-search-btn:hover {
    color: #8B0000;
}

.rakmhsu-search-icon {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.rakmhsu-search-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background-color: currentColor;
    bottom: -8px;
    right: -4px;
    transform: rotate(45deg);
}

/* Menu Button */
.rakmhsu-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.rakmhsu-menu-btn:hover .rakmhsu-menu-line {
    background-color: #8B0000;
}

.rakmhsu-menu-line {
    width: 25px;
    height: 2px;
    background-color: #000;
    transition: background-color 0.3s;
}

/* Navigation Bar */
.rakmhsu-nav {
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.rakmhsu-nav .rakmhsu-container-custom {
    padding: 0;
}

.rakmhsu-nav-list {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.rakmhsu-nav-list>li {
    position: relative;
}

.rakmhsu-nav-list>li>a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    padding: 18px 0;
    display: inline-block;
    transition: color 0.3s;
}

.rakmhsu-nav-list>li>a:hover {
    color: #8B0000;
}

/* Dropdown Menu */
.rakmhsu-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    padding: 20px 0;
    margin-top: 0;
}

.rakmhsu-nav-list>li:hover .rakmhsu-dropdown-menu,
.rakmhsu-nav-list>li:focus-within .rakmhsu-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rakmhsu-dropdown-header {
    padding: 0 25px 15px;
    border-bottom: 2px solid #8B0000;
    margin-bottom: 10px;
}

.rakmhsu-dropdown-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.rakmhsu-dropdown-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.rakmhsu-dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rakmhsu-dropdown-menu ul li a {
    display: block;
    padding: 12px 25px;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s;
}

.rakmhsu-dropdown-menu ul li a:hover {
    background-color: #f8f8f8;
    color: #8B0000;
    padding-left: 30px;
}

/* Nested flyout submenu inside a dropdown (e.g. Research -> Research Centers) */
.rakmhsu-dropdown-menu ul li.rakmhsu-has-submenu {
    position: relative;
}

.rakmhsu-dropdown-menu ul li.rakmhsu-has-submenu > a {
    position: relative;
    padding-right: 35px;
}

.rakmhsu-dropdown-menu ul li.rakmhsu-has-submenu > a::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #8B0000;
    border-bottom: 2px solid #8B0000;
    transform: translateY(-50%) rotate(-45deg);
}

.rakmhsu-dropdown-menu .rakmhsu-submenu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.25s ease;
    z-index: 10001;
}

.rakmhsu-dropdown-menu ul li.rakmhsu-has-submenu:hover > .rakmhsu-submenu,
.rakmhsu-dropdown-menu ul li.rakmhsu-has-submenu:focus-within > .rakmhsu-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Global visible focus indicator for keyboard users (WCAG 2.4.7).
   :focus-visible only shows for keyboard/AT, never on mouse click. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #b5111b;
    outline-offset: 2px;
}

/* Mobile Menu Overlay */
.rakmhsu-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rakmhsu-mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mega Menu */
.rakmhsu-mega-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 500px;
    height: 100vh;
    background-color: white;
    z-index: 100001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.rakmhsu-mega-menu.active {
    right: 0;
}

.rakmhsu-mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.rakmhsu-mega-menu-title {
    font-size: 24px;
    font-weight: 600;
}

.rakmhsu-close-menu-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rakmhsu-close-menu-btn:hover {
    color: #8B0000;
}

.rakmhsu-mega-menu-content {
    padding: 20px 0;
}

.rakmhsu-menu-section {
    border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 767px) {
    .rakmhsu-mega-menu-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .rakmhsu-mobile-header-search {
        order: 1;
        flex: 1 1 auto;
        max-width: none;
        margin: 0;
    }

    .rakmhsu-mega-menu-title {
        order: 2;
    }

    .rakmhsu-close-menu-btn {
        order: 3;
        margin-left: 1px;
    }

    .rakmhsu-mobile-apply-btn {
        order: 4;
        flex: 1 1 100%;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-top: 2px;
    }
}

.rakmhsu-mobile-apply-btn {
    display: none !important;
}

@media (max-width: 767px) {

    .rakmhsu-mobile-header-search,
    .rakmhsu-mobile-apply-btn {
        width: 280px !important;
        max-width: 280px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    .rakmhsu-mobile-apply-btn {
        flex: 0 0 auto !important;
        margin-top: 8px !important;
    }

    .rakmhsu-mobile-apply-btn i {
        width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 767px) {
    .rakmhsu-mobile-apply-btn {
        order: 4;
        flex: 1 1 100%;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 42px;
        padding: 0 18px;
        border-radius: 999px;
        background: #c10f1a;
        color: #fff !important;
        text-decoration: none;
        font-weight: 700;
        font-size: 18px;
        line-height: 1;
        border: 0;
        margin-top: 4px;
    }

    .rakmhsu-mobile-apply-btn:hover {
        background: #a60d16;
        color: #fff !important;
    }
}

.rakmhsu-menu-section-title {
    position: relative;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    padding-right: 80px;
}

.rakmhsu-menu-section-title:hover {
    background-color: #f8f8f8;
}

.rakmhsu-menu-section-title::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    text-align: center;
    line-height: 1;
}

.rakmhsu-menu-section-title.active::after {
    content: '−';
}

.rakmhsu-menu-subsection {
    display: none;
    padding: 10px 30px 20px;
    background-color: #fafafa;
}

.rakmhsu-menu-subsection.active {
    display: block;
}

.rakmhsu-menu-subsection a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.rakmhsu-menu-subsection a:hover {
    color: #8B0000;
}

/* Nested flyout items (e.g. Research Centers -> Item 1 / Item 2) shown indented in the mobile menu */
.rakmhsu-menu-subsection a.rakmhsu-mobile-subitem {
    padding-left: 18px;
    font-size: 14px;
    color: #555;
    position: relative;
}

.rakmhsu-menu-subsection a.rakmhsu-mobile-subitem::before {
    content: "–";
    position: absolute;
    left: 2px;
    color: #8B0000;
}

.rakmhsu-menu-subsection-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.rakmhsu-menu-quick-links {
    padding: 20px 30px;
    background-color: #f8f8f8;
}

.rakmhsu-menu-quick-links h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #666;
}

.rakmhsu-menu-quick-links a {
    display: block;
    padding: 10px 0;
    color: #000;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.rakmhsu-menu-quick-links a:hover {
    color: #8B0000;
}

/* Body padding for fixed header (fallback; JS syncs the exact value) */
body {
    padding-top: 150px;
    margin: 0;
}

/* Responsive Breakpoints */
@media (min-width: 1200px) {
    .rakmhsu-container-custom {
        width: 85%;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .rakmhsu-container-custom {
        width: 90%;
    }

    .rakmhsu-nav-list {
        gap: 25px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .rakmhsu-container-custom {
        width: 92%;
    }

    .rakmhsu-nav-list {
        gap: 20px;
    }

    .rakmhsu-nav-list>li>a {
        font-size: 14px;
        padding: 15px 0;
    }
}

@media (max-width: 767px) {
    body {
        /* Fallback before JS sync: patronage banner + logo row (nav hidden) */
        padding-top: 105px;
    }

    .rakmhsu-container-custom {
        width: 95%;
    }

    .rakmhsu-nav {
        display: none !important;
    }

    .rakmhsu-header-main .rakmhsu-container-custom {
        padding: 10px 0;
    }

    .rakmhsu-logo img {
        height: 45px;
    }

    .rakmhsu-header-actions {
        gap: 15px;
    }

    .rakmhsu-search-btn span,
    .rakmhsu-menu-btn span {
        display: none;
    }

    .rakmhsu-mega-menu {
        width: 100%;
        max-width: 100%;
    }

    .rakmhsu-dropdown-menu {
        display: none !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 90px;
    }

    .rakmhsu-container-custom {
        width: 98%;
    }

    .rakmhsu-logo img {
        height: 40px;
    }

    .rakmhsu-header-actions {
        gap: 10px;
    }
}

@supports (position: sticky) {
    .rakmhsu-header {
        position: fixed;
        top: 0;
    }
}

.rakmhsu-header-actions .rakmhsu-search-btn,
.rakmhsu-header-actions .rakmhsu-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid #b5111b;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.rakmhsu-search-btn {
    background-color: transparent;
    color: #b5111b;
}

.rakmhsu-search-btn:hover {
    background-color: #b5111b;
    color: #fff;
}

.rakmhsu-login-btn {
    background-color: #b5111b;
    color: #fff;
}

.rakmhsu-login-btn:hover {
    background-color: #8B0000;
    border-color: #8B0000;
    color: #fff;
}

@media (max-width: 767px) {

    .rakmhsu-header-actions .rakmhsu-search-btn span,
    .rakmhsu-header-actions .rakmhsu-login-btn span {
        display: none;
    }

    .rakmhsu-header-actions .rakmhsu-login-btn {
        padding: 8px 12px;
    }

    .rakmhsu-search-form {
        min-width: 120px;
        gap: 8px;
    }

    .rakmhsu-search-input {
        width: 92px;
    }

    .rakmhsu-header-actions .rakmhsu-search-form .rakmhsu-search-input {
        width: 14ch !important;
        min-width: 14ch !important;
    }
}

.rakmhsu-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #8aa5e6;
    padding: 2px 0;
    min-width: 150px;
}

.rakmhsu-search-icon-btn {
    border: 0;
    background: transparent;
    color: #1a1a1a;
    padding: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    line-height: 1;
}

.rakmhsu-search-icon-btn:hover {
    background: transparent;
    color: #1a1a1a;
}

.rakmhsu-search-input {
    width: 110px;
    height: 24px;
    border: 0;
    border-bottom: 1px solid #8aa5e6;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 30px;
    transform: scale(0.45);
    transform-origin: left center;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #111;
    outline: none;
    box-shadow: none;
}

.rakmhsu-search-input::placeholder {
    color: #111;
    opacity: 1;
    font-weight: 700;
}

.rakmhsu-search-input:focus::placeholder {
    color: #7a7a7a;
}

.rakmhsu-header-actions .rakmhsu-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #8aa5e6;
    padding: 2px 0;
    min-width: 150px;
}

.rakmhsu-header-actions .rakmhsu-search-form .rakmhsu-search-btn {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #1a1a1a;
    width: auto;
    height: auto;
    line-height: 1;
    box-shadow: none !important;
}

.rakmhsu-header-actions .rakmhsu-search-form .rakmhsu-search-input {
    border: 0 !important;
    outline: none;
    background: transparent;
    width: 90px;
    padding: 0;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    box-shadow: none !important;
    width: 16ch !important;
    min-width: 16ch !important;
    transform: none !important;
    font-size: 14px !important;
    letter-spacing: 0.4px;
}

.rakmhsu-header-actions .rakmhsu-search-form .rakmhsu-search-input::placeholder {
    color: #111;
    opacity: 1;
}

.rakmhsu-header-actions {
    align-items: center;
}

.rakmhsu-header-actions .rakmhsu-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 0 !important;
    padding: 8px 0;
    min-height: 42px;
    margin: 0;
}

.rakmhsu-header-actions .rakmhsu-search-form .rakmhsu-search-btn {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #1a1a1a;
    line-height: 1;
    box-shadow: none !important;
}

.rakmhsu-header-actions .rakmhsu-search-form .rakmhsu-search-input {
    border: 0 !important;
    border-bottom: 0 !important;
    outline: none;
    background: transparent;
    width: 16ch !important;
    min-width: 16ch !important;
    transform: none !important;
    font-size: 14px !important;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    padding: 0;
    margin: 0;
    line-height: 1.2;
    box-shadow: none !important;
}

.rakmhsu-header-actions .rakmhsu-search-form:focus-within {
    border-bottom: 1px solid #8aa5e6;
}

.rakmhsu-header-main .rakmhsu-container-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.rakmhsu-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    white-space: nowrap;
}

.rakmhsu-header-actions>* {
    flex: 0 0 auto;
}

.rakmhsu-header-actions .rakmhsu-search-form {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
}

.rakmhsu-header-actions .rakmhsu-search-form .rakmhsu-search-input {
    width: 16ch !important;
    min-width: 16ch !important;
}

.rakmhsu-header-actions .rakmhsu-login-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    margin: 0;
}

@media (max-width: 767px) {
    .rakmhsu-header-actions {
        gap: 8px;
    }

    .rakmhsu-header-actions .rakmhsu-search-form .rakmhsu-search-input {
        width: 12ch !important;
        min-width: 12ch !important;
    }
}


.rakmhsu-header-actions {
    display: flex;
    align-items: center !important;
    gap: 14px;
    flex-wrap: nowrap;
}

.rakmhsu-header-actions .rakmhsu-search-form {
    display: inline-flex !important;
    align-items: center !important;
    height: 44px;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #b5111b !important;
    border-radius: 30px;
    background: #fff;
}

.rakmhsu-header-actions .rakmhsu-search-form .rakmhsu-search-input {
    border: 0 !important;
    border-bottom: 0 !important;
    outline: none;
    background: transparent;
    width: 16ch !important;
    min-width: 16ch !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rakmhsu-header-actions .rakmhsu-search-btn,
.rakmhsu-header-actions .rakmhsu-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    height: 44px;
    line-height: 1;
    margin: 0 !important;
    vertical-align: middle;
    align-self: center;
}

.rakmhsu-header-actions .rakmhsu-search-btn {
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #111 !important;
    background: transparent !important;
    font-weight: 700;
}

.rakmhsu-header-actions .rakmhsu-search-btn i {
    margin-right: 8px;
    line-height: 1;
}

.rakmhsu-header-actions .rakmhsu-login-btn {
    padding: 0 22px !important;
    border-radius: 999px;
}

@media (max-width: 767px) {
    .rakmhsu-header-actions .rakmhsu-search-form {
        height: 40px;
        padding: 0 22px !important;
        border-radius: 999px;
    }

    .rakmhsu-header-actions .rakmhsu-search-form .rakmhsu-search-input {
        width: 10ch !important;
        min-width: 10ch !important;
    }

    .rakmhsu-header-actions .rakmhsu-search-btn,
    .rakmhsu-header-actions .rakmhsu-login-btn {
        height: 40px;
    }
}

/* //////////////////////////////////////////////// from ambarish ////////////////////// */


.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li a {
    text-decoration: none;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.breadcrumb li a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Separator */
.breadcrumb li+li::before {
    content: "›";
    margin: 0 10px;
    color: #6c757d;
    font-size: 16px;
}

/* Active Page */
.breadcrumb .active {
    color: #6c757d;
    font-weight: 600;
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 12px;
        padding: 0;
    }
}

/* Sidebar Container */
.rak-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    padding: 15px 0;
    font-family: "Poppins", Arial, sans-serif;
    border: 1px solid #eee;
}

/* Sidebar Title */
.rak-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #b5111b;
    padding: 12px 20px;
    border-left: 4px solid #b5111b;
    margin-bottom: 10px;
}


/* Navigation List */
.rak-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List Items */
.rak-sidebar ul li {
    position: relative;
}

/* Links */
.rak-sidebar ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14.5px;
    color: #333;
    text-decoration: none;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
    cursor: pointer;
}

/* Left icon */
.rak-sidebar ul li a .link-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Right arrow */
.rak-sidebar ul li a .link-arrow {
    font-size: 12px;
    transition: all 0.3s ease;
}

/* Hover Effect */
.rak-sidebar ul li a:hover {
    background: #fff5f6;
    color: #b5111b;
    border-left: 4px solid #b5111b;
    padding-left: 24px;
}

.rak-sidebar ul li a:hover .link-arrow {
    opacity: 1;
}

/* Active Link */
.rak-sidebar ul li a.active {
    background: linear-gradient(90deg, #b5111b, #8a0d15);
    color: #fff;
    border-left: 4px solid #b5111b;
    font-weight: 500;
}

.rak-sidebar ul li a.active .link-arrow {
    opacity: 1;
    color: #fff;
}

/* Toggle arrow styling */
.rak-sidebar ul li a .link-arrow {
    transition: transform 0.3s ease;
}

.rak-sidebar ul li a.toggle-open .link-arrow {
    transform: rotate(90deg);
}

/* Submenu - Hidden by default */
.rak-sidebar ul li ul {
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

/* Submenu - Open state */
.rak-sidebar ul li ul.submenu-open {
    max-height: 500px;
    /* Adjust based on content */
    opacity: 1;
    visibility: visible;
    transition: max-height 0.5s ease-in, opacity 0.4s ease;
}

.rak-sidebar ul li ul li a {
    font-size: 13.5px;
    padding: 10px 20px;
    background: #fafafa;
}

.rak-sidebar ul li ul li a:hover {
    background: #fff0f1;
}

/* Parent item with submenu indicator */
.rak-sidebar ul li.has-submenu>a {
    cursor: pointer;
}

.rak-mobile-menu {
    display: none;
    position: relative;
    margin-bottom: 15px;
}

.rak-mobile-menu-btn {
    background: linear-gradient(90deg, #b5111b, #8a0d15);
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 15px;
}

.rak-mobile-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 999;
}

.rak-mobile-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rak-mobile-dropdown li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14.5px;
    color: #333;
    text-decoration: none;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
    cursor: pointer;
}


/* Hover Effect */
.rak-mobile-dropdown ul li a:hover {
    background: #fff5f6;
    color: #b5111b;
    border-left: 4px solid #b5111b;
    padding-left: 24px;
}

.rak-mobile-dropdown ul li a:hover .link-arrow {
    opacity: 1;
}

/* Active Link */
.rak-mobile-dropdown ul li a.active {
    background: linear-gradient(90deg, #b5111b, #8a0d15);
    color: #fff;
    border-left: 4px solid #b5111b;
    font-weight: 500;
}

.rak-mobile-dropdown ul li a.active .link-arrow {
    opacity: 1;
    color: #fff;
}



.rak-mobile-dropdown ul li ul li a {
    font-size: 13.5px;
    padding: 10px 20px;
    background: #fafafa;
}

.rak-mobile-dropdown ul li ul li a:hover {
    background: #fff0f1;
}




@media (max-width:1199px) {

    .rak-mobile-menu {
        display: block;
    }

    .rak-sidebar {
        display: none;
    }

}

.submenu {
    display: none;
    padding-left: 15px;
}

.submenu.submenu-open {
    display: block !important;
}

.has-submenu>a {
    cursor: pointer;
}

/* ///////////////////////////////////////////////// till here //////////////////////// */
/* Mobile search in mega menu header */
.rakmhsu-mobile-header-search {
    display: none;
}

@media (max-width: 767px) {
    .rakmhsu-mobile-header-search {
        display: inline-flex;
        align-items: center;
        flex: 1;
        max-width: 220px;
        margin: 0 10px;
        height: 38px;
        border: 1px solid #b5111b;
        border-radius: 24px;
        padding: 0 10px;
        background: #fff;
    }

    .rakmhsu-mobile-header-search-btn {
        border: 0;
        background: transparent;
        color: #111;
        padding: 0 6px 0 0;
        line-height: 1;
    }

    .rakmhsu-mobile-header-search-input {
        border: 0 !important;
        outline: none !important;
        background: transparent;
        box-shadow: none !important;
        -webkit-appearance: none;
        appearance: none;
        flex: 1;
        min-width: 0;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        color: #111;
    }

    .rakmhsu-mobile-header-search-input::placeholder {
        color: #666;
        opacity: 1;
    }
}

@media (max-width: 767px) {

    .rakmhsu-header-actions .rakmhsu-search-form,
    .rakmhsu-header-actions .rakmhsu-login-btn {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .rakmhsu-mega-menu-header .rakmhsu-logo {
        display: none !important;
    }
}

.rakmhsu-mobile-primary-nav {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    margin-bottom: 12px;
    background: #fff;
}

.rakmhsu-mobile-primary-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rakmhsu-mobile-primary-nav-list>li {
    border-bottom: 1px solid #f0f0f0;
}

.rakmhsu-mobile-primary-link {
    display: block;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.rakmhsu-mobile-primary-link:hover {
    color: #8B0000;
}

.rakmhsu-mobile-primary-submenu {
    padding: 0 30px 10px 30px;
}

.rakmhsu-mobile-primary-submenu a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #444;
    text-decoration: none;
}

.rakmhsu-mobile-primary-submenu a:hover {
    color: #8B0000;
}

.rakmhsu-mobile-primary-item {
    border-bottom: 1px solid #f0f0f0;
}

.rakmhsu-mobile-primary-toggle {
    width: 100%;
    display: block;
    position: relative;
    padding: 12px 30px;
    min-height: 48px;
    background: #fff;
    border: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-align: left;
    cursor: pointer;
    line-height: 1.3;
}

.rakmhsu-mobile-primary-nav {
    border-bottom: 1px solid #e0e0e0;
}

.rakmhsu-mobile-primary-toggle::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.rakmhsu-menu-section-title {
    padding-right: 58px;
}

.rakmhsu-menu-section-title::after {
    right: 30px;
    width: 16px;
    text-align: center;
    line-height: 1;
}

.rakmhsu-mobile-primary-item.open .rakmhsu-mobile-primary-toggle::after {
    content: '-';
}

.rakmhsu-mobile-primary-submenu {
    display: none;
    padding: 0 30px 10px 30px;
    background: #fff;
}

.rakmhsu-mobile-primary-item.open .rakmhsu-mobile-primary-submenu {
    display: block;
}

@media (min-width: 768px) {
    .rakmhsu-mobile-primary-nav {
        display: none;
    }
}

.breadcrumbs_rakcoms {
    min-height: 320px;
    background: url('../images/rakcom_bg_new.jpg') center center / cover no-repeat !important;
}

.breadcrumbs_library {
    min-height: 320px;
    background: url('../images/library_bg.jpg') center center / cover no-repeat;
}



.content-section {
    padding-top: 24px;
}

.content-section .col-md-3 .rak-sidebar {
    margin-top: 40px;
}

.content-section .home_slider,
.content-section .home_slider .bx-wrapper,
.content-section .home_slider .bx-viewport {
    width: 100% !important;
    max-width: 100% !important;
}

.content-section .home_slider .bx-wrapper img {
    width: 100% !important;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .content-section .kf_convocation_outer_wrap {
        margin-top: 0px !important;
    }

    .content-section .col-md-9.mt-xs {
        margin-top: 0px !important;
    }

    .content-section {
        padding-top: 0px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .rakmhsu-dropdown-menu {
        max-height: calc(100vh - 170px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .rakmhsu-dropdown-menu ul {
        max-height: inherit;
    }

    .rakmhsu-dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }

    .rakmhsu-dropdown-menu::-webkit-scrollbar-thumb {
        background: #b5111b;
        border-radius: 10px;
    }

    /* A right-side flyout would be clipped by overflow-x:hidden in this range,
       so render the nested submenu inline (indented), opening downward on hover. */
    .rakmhsu-dropdown-menu .rakmhsu-submenu {
        position: static;
        min-width: 0;
        padding: 0 0 0 25px;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .rakmhsu-dropdown-menu ul li.rakmhsu-has-submenu:hover > .rakmhsu-submenu {
        display: block;
        transform: none;
    }

    /* caret points down (inline) rather than right (flyout) */
    .rakmhsu-dropdown-menu ul li.rakmhsu-has-submenu > a::after {
        transform: translateY(-50%) rotate(45deg);
    }
}


/* Add padding to account for fixed header on anchor links */
html {
    scroll-padding-top: 150px;
    scroll-behavior: smooth;
}

/* ====================================================================
   Breadcrumb / header spacing.
   DESKTOP keeps the site's ORIGINAL spacing (the .content-section 24px
   top padding + the .kf_convocation_outer_wrap 30px top margin) — nothing
   below collapses those on desktop. The normalization that collapses the
   legacy wrapper spacing is applied on MOBILE ONLY, where those wrappers
   left an oversized gap under the fixed header.
   ==================================================================== */

/* Shared section breadcrumb banners (About Us + Admission): tighten the gap
   between the breadcrumb banner image and the content below it. Scoped to pages
   that include about_breadcrumb_section.php / admission_breadcrumb_section.php
   (their <section> carries .rak-breadcrumb-banner), so other site banners keep
   their original spacing. The content-section is a later sibling of the banner
   (a hidden <h1> may sit between them), hence `~`. Collapses the legacy 24px
   content-section top padding + 30px wrapper margin down to a small uniform gap.
   Mobile rules below still win via !important. */
.rak-breadcrumb-banner ~ .content-section,
.rak-breadcrumb-banner ~ section.single {
    padding-top: 0;
}
.rak-breadcrumb-banner ~ section .kf_convocation_outer_wrap {
    margin-top: 14px;
}

/* Force the custom (ul) breadcrumb to render as a horizontal row on EVERY
   page. Several pages carry page-level content-list CSS such as
   `.kf_convocation_wrap > ul li { display:list-item }` that is more specific
   than a plain `.breadcrumb` rule and was turning the breadcrumb into a broken
   vertical bullet list (looked "hidden"/wrong on desktop). These high-
   specificity !important rules override that. No top margin here, so on desktop
   the original wrapper spacing above the breadcrumb is preserved untouched. */
ul.breadcrumb,
.kf_convocation_wrap > ul.breadcrumb,
.kf_convocation_outer_wrap ul.breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

ul.breadcrumb > li,
.kf_convocation_wrap > ul.breadcrumb > li {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    float: none !important;
}

ul.breadcrumb > li::marker,
.kf_convocation_wrap > ul.breadcrumb > li::marker {
    content: "" !important;
}

/* Remove the background (grey pill / MDB colour) from EVERY breadcrumb on the
   whole site — plain text breadcrumb, no box. */
.breadcrumb,
ul.breadcrumb,
ol.breadcrumb {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* MOBILE ONLY: collapse the legacy wrapper spacing (it left a big gap under the
   fixed header) and give the breadcrumb a small uniform top gap instead. */
@media (max-width: 767px) {
    .content-section {
        padding-top: 0 !important;
    }

    .kf_convocation_outer_wrap {
        margin-top: 0 !important;
    }

    .col-md-9.mt-xs {
        margin-top: 0 !important;
    }

    ul.breadcrumb,
    .kf_convocation_wrap > ul.breadcrumb,
    .kf_convocation_outer_wrap ul.breadcrumb,
    ol.breadcrumb {
        margin-top: 14px !important;
    }
}

/* Menu button label (was inline style) */
.rakmhsu-menu-btn .rakmhsu-menu-label {
    font-size: 15px;
    margin-top: 2px;
}
