/* ============================================
   ROOT VARIABLES & COLOR SCHEME
   ============================================ */

:root {
    /* Primary Colors */
    --primary-color: #E67E22;
    --primary-dark: #D97706;
    --primary-light: #F39C12;

    /* Neutral Colors */
    --white: #FFFFFF;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E0;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --brand-yellow: #edab37;
    --brand-red: #f15c4e;
    --brand-blue-light: #FFFBF0;

    /* Legacy compatibility mappings */
    --brand-orange: var(--brand-red);
    --brand-blue: var(--brand-yellow);
    --primary-color: var(--brand-orange);
    --primary-dark: #D97706;
    --primary-light: #F39C12;
    --gray-200: var(--slate-200);
    --dark-text: var(--slate-900);
    --text-color: var(--slate-700);

    /* ... other variables ... */
    --gov-pill-bg: rgba(241, 92, 78, 0.08);
    /* Light brand red */
    --gov-pill-text: var(--brand-red);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Geist", "Geist Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--slate-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--slate-900);
    font-weight: 700;
}

/* Info Bar */
.info-bar {
    background-color: var(--brand-red);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.info-bar a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.info-bar a i {
    color: var(--brand-yellow);
    margin-right: 8px;
}

.info-bar a:hover {
    color: var(--brand-yellow);
}

.info-bar .divider {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 15px;
}

/* Responsiveness for Info Bar */
@media (max-width: 991px) {
    .info-bar .container {
        justify-content: center !important;
        flex-direction: column;
        padding: 10px 0;
    }

    .info-bar .contact-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .info-bar .divider {
        display: none;
    }
}

@media (min-width: 992px) {
    .info-bar {
        height: 40px;
        display: flex;
        align-items: center;
    }
}

/* Top Navbar Refined */
.top-navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--slate-100);
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.top-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-navbar .navbar-toggler {
    border: none;
    padding: 0;
}

.top-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.top-navbar .navbar-toggler-icon i {
    color: var(--brand-red) !important;
    font-size: 1.5rem;
}

.top-navbar .navbar-brand {
    padding: 0;
}

.main-logo {
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}

@media (max-width: 576px) {
    .main-logo {
        height: 50px;
    }
}

.top-navbar .nav-link {
    color: var(--slate-700) !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 15px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.top-navbar .nav-link:hover,
.top-navbar .nav-item.active .nav-link,
.top-navbar .nav-item.dropdown:hover>.nav-link {
    color: var(--brand-red) !important;
    background-color: #FFF1F0 !important;
}

/* Main Navbar */
.main-navbar {
    background-color: var(--white) !important;
    border-top: 1px solid #EDEDED;
    border-bottom: 1px solid #EDEDED;
    padding: 8px 0;
    /* position: sticky; */
    top: 0;
    z-index: 500;
}

.main-navbar .navbar-nav .nav-item {
    border-right: 1px solid #EDEDED;
}

.main-navbar .navbar-nav .nav-item:last-child {
    border-right: none;
}

.main-navbar .navbar-nav .nav-link {
    color: #4B5563 !important;
    padding: 10px 18px !important;
    margin: 0 4px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-navbar .navbar-nav .nav-link i {
    color: #9CA3AF;
    transition: color 0.2s;
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-item.active .nav-link {
    background-color: #FFF5F0 !important;
    color: var(--primary-color) !important;
}

.main-navbar .navbar-nav .nav-link:hover i,
.main-navbar .navbar-nav .nav-item.active .nav-link i {
    color: var(--primary-color) !important;
}

.main-navbar .navbar-toggler {
    border: none;
    padding: 0;
}

.main-navbar .navbar-toggler-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-navbar .navbar-toggler-icon i {
    color: var(--brand-red);
    font-size: 1.5rem;
}

@media (max-width: 991px) {
    .main-navbar .navbar-nav .nav-item {
        border-right: none;
        border-bottom: 1px solid #EDEDED;
    }

    .main-navbar .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .main-navbar .navbar-nav .nav-link {
        margin: 5px 0;
        padding: 12px 15px !important;
    }

    .main-navbar .navbar-collapse {
        margin-top: 15px;
    }

    .main-navbar .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 0;
        background: transparent;
    }

    .main-navbar .dropdown-item {
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .main-navbar {
        padding: 5px 0;
    }

    .main-navbar .navbar-brand {
        padding: 0 15px;
    }

    .main-navbar .navbar-nav {
        padding: 10px 0;
    }

    .main-navbar .navbar-nav .nav-item {
        border: none;
    }

    .main-navbar .navbar-nav .nav-link {
        margin: 0;
        padding: 10px 15px !important;
        font-size: 14px;
        color: #4B5563 !important;
    }

    .main-navbar .dropdown-menu {
        padding-left: 15px;
    }

    .main-navbar .dropdown-item {
        padding: 8px 12px;
        font-size: 13px;
    }

    .main-navbar .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .main-navbar {
        padding: 0;
    }

    .main-navbar .navbar-brand {
        font-size: 18px;
        padding: 10px 15px;
    }

    .main-navbar .navbar-nav .nav-link {
        padding: 8px 12px !important;
        font-size: 13px;
    }

    .main-navbar .dropdown-menu {
        padding-left: 12px;
    }

    .main-navbar .dropdown-item {
        padding: 6px 10px;
        font-size: 12px;
    }

    .main-navbar .navbar-toggler-icon i {
        font-size: 1.25rem;
    }
}

/* Governance Dashboard UI Components */
.gov-pill {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--gov-pill-bg);
    color: var(--gov-pill-text);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    color: var(--slate-600);
    font-size: 0.875rem;
}

.hero-stats i {
    color: var(--brand-blue);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.quote-card {
    background: #F8FAFC;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--slate-100);
}

.quote-card blockquote {
    font-style: italic;
    color: var(--slate-700);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.quote-card .quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quote-card .author-avatar {
    width: 44px;
    height: 44px;
    background: #DBEAFE;
    color: #1D4ED8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.quote-card .author-info h4 {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 700;
    color: var(--slate-900);
}

.quote-card .author-info p {
    font-size: 0.75rem;
    margin-bottom: 0;
    color: var(--gray-700);
}

/* Multilevel Dropdown Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    margin-top: 15px;
    border-radius: 12px;
    min-width: 260px;
    max-width: 320px;
    white-space: normal;
    padding: 12px 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: dropdownPop 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes dropdownPop {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover-based Dropdowns (Desktop) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        z-index: 9999;
        /* Align perfectly on hover */
    }

    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

    /* Ensure sub-menus don't flicker when moving mouse */
    .dropdown-menu {
        margin-top: 0;
    }
}

/* Mega Menu Refined */
.mega-menu {
    min-width: 850px !important;
    padding: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

@media (max-width: 991px) {
    .mega-menu {
        min-width: 100% !important;
        left: 0 !important;
        transform: none !important;
        padding: 20px !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .mega-menu-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .mega-title {
        font-size: 1rem !important;
        margin-top: 15px !important;
    }

    .mega-actions {
        margin-top: 20px !important;
    }
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.mega-title {
    color: var(--brand-red);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(241, 92, 78, 0.1);
}

.mega-item {
    display: block;
    padding: 10px 0;
    color: var(--slate-700);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.mega-item:hover {
    color: var(--brand-red);
    padding-left: 10px;
    background-color: rgba(241, 92, 78, 0.03);
    border-radius: 4px;
}

.mega-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mega-action-link {
    color: #2563eb;
    font-weight: 700;
    font-size: 16px;
    text-decoration: underline !important;
    transition: color 0.2s;
}

.mega-action-link:hover {
    color: var(--brand-red);
}

/* Submenu Toggles */
.dropdown-item {
    padding: 12px 24px;
    color: var(--slate-700);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--brand-blue-light);
    color: var(--brand-red);
    padding-left: 30px;
}

/* Wobble Horizontal Animation */
@keyframes wobble-horizontal {
    16.65% {
        transform: translateX(8px);
    }

    33.3% {
        transform: translateX(-6px);
    }

    49.95% {
        transform: translateX(4px);
    }

    66.6% {
        transform: translateX(-2px);
    }

    83.25% {
        transform: translateX(1px);
    }

    100% {
        transform: translateX(0);
    }
}

.wobble-horizontal:hover {
    animation-name: wobble-horizontal;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--dark-text);
    white-space: normal;
    /* Allow wrapping within items */
    position: relative;
    /* For arrow positioning */
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Multilevel specific adjustments */
@media (min-width: 992px) {

    /* Arrow positioning fix: Center vertically */
    .dropdown-menu .dropdown-toggle::after {
        transform: translateY(-50%) rotate(-90deg);
        position: absolute;
        right: 1rem;
        top: 50%;
    }

    .dropdown-menu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: 0;
        border-radius: 4px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    }

    /* Smart positioning: if submenu goes off-screen, show it on the left */
    .dropdown-menu.show-left {
        left: auto;
        right: 100%;
        margin-right: -5px;
        /* Slight overlap for aesthetics */
    }
}

/* Mobile Dropdown & Submenu Adjustments */
@media (max-width: 991px) {
    .dropdown-menu {
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        margin-top: 0;
        background: rgba(0, 0, 0, 0.02);
        animation: none;
        max-width: 100%;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-submenu>.dropdown-menu {
        display: none;
        position: static;
        width: 100%;
    }

    .dropdown-submenu>.dropdown-menu.show {
        display: block;
    }

    .dropdown-toggle::after {
        float: right;
        margin-top: 10px;
    }
}

/* Breadcrumbs */
.breadcrumb-container {
    background-color: #fff;
    padding: 10px 0;
    border-top: 1px solid #EDEDED;
    border-bottom: 1px solid #EDEDED;
    margin-bottom: 0;
}

.breadcrumb-home-icon {
    color: var(--brand-red) !important;
}

.breadcrumb {
    padding: 0;
    margin: 0;
    background: transparent;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: #6B7280;
    font-weight: 400;
}

.breadcrumb-item.active {
    color: #111827;
    font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: #9CA3AF;
}

.breadcrumb-item i {
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Banner (Now part of Header) */
.page-banner {
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
    color: var(--dark-text);
    padding: 5rem 0;
    text-align: left;
    margin-bottom: 0;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #52a4ec08;
    pointer-events: none;
}

.page-banner h1 {
    color: #0F172A;
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

.page-banner p {
    color: #64748B;
    font-size: 1.25rem;
    max-width: 700px;
    line-height: 1.5;
}

/* Content Sections */
.content-section {
    padding: 2rem;
    /* Increased padding */
    background-color: #fff;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    /* Softer shadow */
}

.section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    font-weight: 600;
}

/* Tabs */
.nav-tabs .nav-link {
    color: var(--text-color);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

/* Tab Content Styling */
.tabs-container {
    background: #fff;
    border-radius: var(--radius-lg);
}

.tabs-list {
    display: inline-flex;
    background: #F1F5F9;
    padding: 6px;
    border-radius: 50px;
    margin-bottom: 2.5rem;
    gap: 4px;
}

.tab-trigger {
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-trigger:hover {
    color: #334155;
}

.tab-trigger.active {
    background: #fff;
    color: #0F172A;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    font-weight: 600;
}

.tab-trigger:focus,
.tab-trigger.active:focus {
    outline: none;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Cards */
.checklist-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
}

.checklist-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checklist-card ul {
    list-style: none;
    padding: 0;
}

.checklist-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.checklist-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Composition Lists */
.composition-group h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.composition-list {
    list-style: none;
    padding: 0;
}

.composition-list li {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
    position: relative;
    padding-left: 1.25rem;
}

.composition-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Committee Cards */
.committee-card-v2 {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    transition: all 0.2s ease;
    height: 100%;
}

.committee-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-orange);
}

.committee-card-v2 i {
    color: var(--brand-orange);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.committee-card-v2 h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.committee-card-v2 p {
    font-size: 0.875rem;
    color: var(--slate-600);
    margin-bottom: 0;
}

/* Member Cards V2 */
.member-card-v2 {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
}

.member-card-v2 img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-bottom: 1px solid var(--slate-100);
}

.member-card-v2 .member-info {
    padding: 1.5rem;
}

.member-card-v2 h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--slate-900);
    font-weight: 700;
}

.member-card-v2 .member-role {
    color: var(--brand-orange);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.member-card-v2 .member-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--slate-100);
    color: var(--slate-600);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid var(--slate-200);
}

.member-card-v2 .view-profile-btn,
.member-card-v2 .board-profile-btn,
.member-card .board-profile-btn,
.board-profile-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    color: var(--slate-700);
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
}

.member-card-v2 .view-profile-btn:hover,
.member-card-v2 .board-profile-btn:hover,
.member-card .board-profile-btn:hover,
.board-profile-btn:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-900);
    text-decoration: none;
}

/* Checklist & Info Cards (Refined for Brand Consistency) */
.checklist-card,
.info-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.checklist-card:hover,
.info-card:hover {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.checklist-card h3,
.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checklist-card i,
.info-card i {
    color: var(--brand-orange);
    font-size: 1.125rem;
}

/* If i is inside h3 (modern pattern) */
.checklist-card h3 i,
.info-card h3 i {
    margin-bottom: 0;
}

/* Policy Documents (Orange Icons) */
.policy-card,
.policy-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.policy-card:hover,
.policy-link:hover {
    border-color: var(--brand-orange);
    background: var(--slate-50);
}

.policy-card i,
.policy-link i {
    color: var(--brand-orange);
    font-size: 1.25rem;
}

/* Icon Lists with Dots */
.icon-list {
    list-style: none;
    padding-left: 0;
}

.icon-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--slate-600);
    font-size: 0.9375rem;
}

.icon-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--slate-400);
    font-size: 1.2rem;
    line-height: 1;
}

/* Governance Chart (Tree) */
.tree-container {
    width: 100%;
    overflow-x: auto;
    background: #FBFCFD;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 40px;
}

/* Custom Scrollbar for tree-container */
.tree-container::-webkit-scrollbar {
    height: 8px;
}

.tree-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.tree-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.tree-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.tree {
    display: inline-flex;
    padding: 20px;
}

.tree ul {
    padding-top: 30px;
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
}

.tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 30px 10px 0 10px;
    transition: all 0.5s;
}

/* Connectors refinement */
.tree li::before,
.tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 1px solid #E2E8F0;
    width: 50%;
    height: 30px;
}

.tree li::after {
    right: auto;
    left: 50%;
    border-left: 1px solid #E2E8F0;
}

.tree li:only-child::after,
.tree li:only-child::before {
    display: none;
}

.tree li:only-child {
    padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
    border: 0 none;
}

.tree li:last-child::before {
    border-right: 1px solid #E2E8F0;
    border-radius: 0 5px 0 0;
}

.tree li:first-child::after {
    border-radius: 5px 0 0 0;
}

.tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 1px solid #E2E8F0;
    width: 0;
    height: 30px;
}

.tree-node-content {
    background: #FFFBF0;
    border: 1px solid rgba(237, 171, 55, 0.3);
    padding: 18px 25px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-width: 180px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(237, 171, 55, 0.08);
    line-height: 1.4;
}

.chairperson-info {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(237, 171, 55, 0.15);
}

/* Hover effects matching brand */
.tree-node-content:hover {
    background: #ffffff;
    border-color: var(--brand-red);
    color: var(--brand-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(241, 92, 78, 0.12);
}

.tree-node-content:hover+ul li::after,
.tree-node-content:hover+ul li::before,
.tree-node-content:hover+ul::before,
.tree-node-content:hover+ul ul::before {
    border-color: var(--brand-red);
}

/* Specific Node Themes */
.node-theme-blue {
    background: #F1F7FF;
    border-color: #C2D9FF;
    color: #1E3A8A;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.node-theme-blue strong {
    color: #1E3A8A;
}

.node-theme-blue .chairperson-info {
    color: #3B82F6;
    border-top-color: rgba(59, 130, 246, 0.15);
}

.node-theme-blue:hover {
    border-color: #3B82F6;
    color: #1E3A8A;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.12);
}

.node-theme-orange {
    background: #FFF5F1;
    border-color: #FFD6C2;
    color: #7C2D12;
    box-shadow: 0 4px 12px rgba(241, 92, 78, 0.08);
}

.node-theme-orange .chairperson-info {
    color: #EA580C;
    border-top-color: rgba(241, 92, 78, 0.15);
}

.node-theme-orange:hover {
    border-color: var(--brand-red);
    color: #7C2D12;
    box-shadow: 0 10px 25px rgba(241, 92, 78, 0.15);
}

/* Responsive Utilities */
@media (max-width: 992px) {
    .tabs-list {
        display: none;
    }

    .mobile-tab-select {
        display: block !important;
        margin-bottom: 2rem;
    }

    .tab-select {
        width: 100%;
        padding: 14px 20px;
        border-radius: 12px;
        border: 1px solid var(--slate-200);
        background: #fff;
        color: var(--slate-900);
        font-weight: 600;
        font-size: 1rem;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 20px center;
        background-size: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        cursor: pointer;
    }
}

.mobile-tab-select {
    display: none;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 3rem 1.5rem;
    }

    .page-banner h1 {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }

    .page-banner p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .content-section {
        padding: 1.25rem;
    }

    .compliance-box {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .compliance-box .d-flex {
        flex-direction: column;
        align-items: center !important;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 2rem 1rem;
    }

    .page-banner h1 {
        font-size: 1.5rem;
    }

    .page-banner p {
        font-size: 0.9rem;
    }
}

    .compliance-icon-wrapper {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .btn-teqsa {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .tabs-container {
        margin-top: -1rem;
    }

    .footer-heading {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .ack-title {
        font-size: 1.8rem;
    }

    .gov-back-to-top {
        bottom: 20px;
        right: 20px;
    }


/* Board of Directors Specific Styles */
.expert-card {
    border: 1px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: #fff;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.expert-card .expert-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.expert-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.observer-bar {
    background: #F7FAFC;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}

.observer-bar h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.observer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.observer-pill {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.file-img-footer{
    background-size: 90px;
    background-repeat: no-repeat;
    background-position:left center;
    height: auto;
    width: 60px;
}

.icon-box-v2 {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-box-v2 i {
    color: var(--primary-color);
    font-size: 1.25rem;
    padding-top: 4px;
}

.icon-box-v2 h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ============================================
   FOOTER REDESIGN
   ============================================ */

.footer-acknowledgement {
    background-color: #2C2C2C;
    color: #ffffff;
    padding: 60px 0;
}

.ack-title {
    font-weight: 800;
    font-size: 2.2rem;
}

.gradient-text {
  background: linear-gradient(274.78deg, #F47920 6.66%, #EFB61D 94.13%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.ack-text {
    color: #efb61d !important;;
    font-size: 1.15rem;
    max-width: 950px;
    margin: 0 auto;
    font-weight: 400 !important;
    line-height: 1.8;
}

.footer-divider-pattern {
    height: 70px;
    background-color: #1a1a1a;
    background-image: url("https://ihm.edu.au/wp-content/themes/mwt-ihm/assets/images/footer-line-design.webp");
    background-repeat: repeat-x;
    background-position: center;
    /* border-top: 1px solid rgba(241, 92, 78, 0.3); */
    /* border-bottom: 1px solid rgba(241, 92, 78, 0.3); */
}

.main-footer {
    background-color: #2C2C2C;
    color: #ffffff;
    padding-top: 60px;
}

.footer-logo-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    display: inline-block;
}

.footer-logo-card img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.accreditation-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.footer-heading {
    color: var(--brand-yellow);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 202px;
    height: 1px;
    background: white;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.footer-links li a:hover {
    color: var(--brand-yellow);
    padding-left: 5px;
}

.footer-contact-info p {
    margin-bottom: 0px;
}

.corporate-profile-box {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}


/* .corporate-profile-box:hover {
    border-color: var(--brand-yellow);
    background: rgba(255, 255, 255, 0.05);
} */

.footer-bottom {
    background-color: #2C2C2C;
    /* border-top: 1px solid rgba(255, 255, 255, 0.05); */
}

.gov-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 101px;
    width: 42px;
    height: 42px;
    background: linear-gradient(180deg, #f7aa2f 0%, #ee8f1d 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 1100;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.gov-back-to-top i {
    display: none;
}

.gov-back-to-top::before,
.gov-back-to-top::after {
    content: '';
    position: absolute;
    left: 50%;
    pointer-events: none;
}

.gov-back-to-top::before {
    top: 12px;
    width: 10px;
    height: 10px;
    border-top: 2.5px solid #fff;
    border-left: 2.5px solid #fff;
    transform: translateX(-50%) rotate(45deg);
}

.gov-back-to-top::after {
    top: 25px;
    width: 12px;
    height: 2.5px;
    background: #fff;
    border-radius: 999px;
    transform: translateX(-50%);
}

.gov-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.gov-back-to-top:hover {
    background: linear-gradient(180deg, #ef9f24 0%, #e38415 100%);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .gov-back-to-top {
        bottom: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
    }

    .gov-back-to-top::before {
        top: 11px;
        width: 9px;
        height: 9px;
    }

    .gov-back-to-top::after {
        top: 23px;
        width: 11px;
    }
}

.study-aus-text {
    letter-spacing: 0.2em;
    font-size: 2rem;
    margin-top: 25px;
    color: #fff;
}

@media (max-width: 768px) {
    .policy-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   OVERVIEW PAGE REFINEMENTS
   ============================================ */

.btn-view-library {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 50px;
    color: var(--slate-800);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
}

.btn-view-library:hover {
    background: #fff;
    border-color: var(--brand-red);
    color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 92, 78, 0.12);
}

.doc-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.doc-icon {
    width: 44px;
    height: 44px;
    background: #F1F5F9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.doc-card:hover .doc-icon {
    background: #FFF1F0;
    color: var(--brand-red);
}

.doc-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.doc-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
}

.compliance-box {
    background-color: #0F172A;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.2);
}

.compliance-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compliance-icon-wrapper i {
    color: #FB923C;
    font-size: 1.75rem;
}

.btn-teqsa {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-teqsa:hover {
    background: #ffffff;
    color: #0F172A;
    border-color: #ffffff;
}

/* ============================================
   MOBILE NAVIGATION REFINEMENTS
   ============================================ */

@media (max-width: 991px) {

    /* Ensure navbars remain relative/static on mobile */
    .top-navbar,
    .main-navbar {
        position: relative;
        z-index: 1000;
    }

    /* Standardize Toggler Appearance */
    .navbar-toggler {
        padding: 8px !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 8px !important;
    }

    .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(241, 92, 78, 0.2);
    }

    /* Premium Pill Toggler */
    .gov-pill-toggler {
        display: flex !important;
        align-items: center;
        gap: 12px;
        background: #fff !important;
        border: 1px solid rgba(241, 92, 78, 0.2) !important;
        border-radius: 50px !important;
        padding: 8px 18px !important;
        box-shadow: 0 4px 12px rgba(241, 92, 78, 0.08) !important;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        margin-left: auto;
    }

    .gov-pill-toggler:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(241, 92, 78, 0.15) !important;
        border-color: var(--brand-red) !important;
    }

    .gov-pill-toggler:active {
        transform: scale(0.95);
    }

    .toggler-label {
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--slate-800);
    }

    .toggler-icon-premium {
        display: flex;
        flex-direction: column;
        gap: 3px;
        width: 18px;
    }

    .toggler-icon-premium span {
        display: block;
        height: 2px;
        background-color: var(--brand-red);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .toggler-icon-premium span:nth-child(2) {
        width: 14px;
        margin-left: auto;
    }

    .gov-pill-toggler[aria-expanded="true"] .toggler-icon-premium span:nth-child(2) {
        width: 18px;
    }

    /* Force Collapse Background */
    .navbar-collapse {
        background-color: #fff;
        padding: 15px;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Vertical Navigation Layout */
    .navbar-nav {
        padding: 0;
    }

    .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 12px 10px !important;
        font-size: 15px !important;
    }

    /* Dropdown Adjustments for Mobile */
    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        background-color: #f8fafc !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 15px !important;
        transform: none !important;
        display: none;
    }

    .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-item {
        padding: 10px 15px !important;
        font-size: 14px !important;
        border: none !important;
        white-space: normal !important;
    }

    /* Governance Sub-menu specifically */
    .dropdown-submenu>.dropdown-menu {
        padding-left: 20px !important;
        background-color: #f1f5f9 !important;
    }

    .dropdown-toggle::after {
        float: right;
        margin-top: 7px;
    }
}

@media (max-width: 768px) {
    /* Small Tablets and Large Phones - Enhanced Mobile Styles */
    .government-content-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }

    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    .gov-pill-toggler {
        padding: 6px 12px !important;
        gap: 8px;
    }

    .toggler-label {
        font-size: 10px;
    }

    .toggler-icon-premium {
        width: 16px;
    }

    .toggler-icon-premium span {
        height: 2px;
    }
}

@media (max-width: 576px) {
    /* Extra Small Devices - Phone Optimization */
    .navbar-collapse {
        max-height: calc(100vh - 200px);
    }

    .gov-pill-toggler {
        padding: 5px 10px !important;
        gap: 6px;
        margin-left: auto;
    }

    .toggler-label {
        font-size: 9px;
        letter-spacing: 0.05em;
    }

    .toggler-icon-premium {
        width: 14px;
    }

    .toggler-icon-premium span {
        height: 2px;
    }

    .nav-link {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    .dropdown-item {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .dropdown-submenu>.dropdown-menu {
        padding-left: 15px !important;
    }
}

/* ============================================
   MOBILE MENU POPUP (IHM HEADER)
   ============================================ */

/* Mobile Menu Button */
.ihm-mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    position: relative;
    z-index: 150;
}

.ihm-mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.ihm-mobile-menu-btn:hover span {
    background-color: #f15c4e;
}

@media (max-width: 992px) {
    .ihm-mobile-menu-btn {
        display: flex !important;
        order: 100;
    }

    .ihm-nav-content {
        gap: 15px;
    }
}

/* Mobile Menu Modal Overlay */
.ihm-menu-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1030;
    transition: background 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.ihm-menu-modal-overlay-active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Mobile Menu Modal Popup */
.ihm-menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    z-index: 1040;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    min-height: 100vh;
}

.ihm-menu-modal.ihm-menu-modal-active {
    display: flex !important;
    transform: translateX(0) !important;
}

/* Mobile Menu Modal Header */
.ihm-menu-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.ihm-menu-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

/* Close Button */
.ihm-menu-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    transition: color 0.2s ease;
}

.ihm-menu-modal-close:hover {
    color: #f15c4e;
}

/* Modal Content */
.ihm-menu-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: block !important;
    width: 100%;
    background: white;
    height: auto;
    min-height: 200px;
}

.ihm-menu-modal-content .ihm-main-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    padding: 0;
    list-style: none;
    margin: 0;
    width: 100%;
    background: white;
    min-width: 100%;
}

.ihm-menu-modal-content .ihm-main-menu > * {
    display: block !important;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

.ihm-menu-modal-content .ihm-main-menu a {
    display: block !important;
    padding: 14px 15px !important;
    border-bottom: 1px solid #f0f0f0;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    background: white !important;
    visibility: visible !important;
    min-height: 45px;
    line-height: 1.5;
}

.ihm-menu-modal-content .ihm-main-menu a:hover,
.ihm-menu-modal-content .ihm-main-menu a.ihm-active {
    background: #f9f9f9 !important;
    color: #f15c4e !important;
    padding-left: 20px !important;
}

.ihm-menu-modal-content .ihm-main-menu a.ihm-active {
    border-left: 3px solid #f15c4e;
}

/* Dropdown Parent in Modal */
.ihm-menu-modal-content .ihm-dropdown-parent {
    position: relative;
    width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0;
    padding: 0;
}

.ihm-menu-modal-content .ihm-dropdown-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 15px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 45px;
    box-sizing: border-box;
}

.ihm-menu-modal-content .ihm-dropdown-toggle:hover {
    background: #f9f9f9 !important;
    color: #f15c4e !important;
    padding-left: 20px !important;
}

.ihm-menu-modal-content .ihm-dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
    transform: rotate(-90deg);
    flex-shrink: 0;
    margin-left: auto;
}

.ihm-menu-modal-content .ihm-dropdown-toggle.active-dropdown::after {
    transform: rotate(0deg);
}

/* Dropdown Menu in Modal */
.ihm-menu-modal-content .ihm-dropdown-menu {
    display: none !important;
    position: static !important;
    width: 100%;
    background: #f9f9f9;
    box-shadow: none !important;
    padding: 0;
    margin: 0 !important;
    padding-left: 15px;
    border: none !important;
    flex-direction: column;
    visibility: visible !important;
    opacity: 1 !important;
}

.ihm-menu-modal-content .ihm-dropdown-menu.show {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ihm-menu-modal-content .ihm-dropdown-item {
    padding: 12px 15px !important;
    border-bottom: 1px solid #efefef;
    font-size: 14px;
    color: #555 !important;
    background: #f9f9f9 !important;
    display: block !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box;
    visibility: visible !important;
    opacity: 1 !important;
}

.ihm-menu-modal-content .ihm-dropdown-item:last-child {
    border-bottom: none;
}

.ihm-menu-modal-content .ihm-dropdown-item:hover {
    background: #efefef !important;
    color: #f15c4e !important;
}

/* Force left alignment for modal menu and dropdown items (override centering rules) */
.ihm-menu-modal-content .ihm-main-menu a,
.ihm-menu-modal-content .ihm-dropdown-toggle,
.ihm-menu-modal-content .ihm-dropdown-item,
.ihm-menu-modal-content .ihm-dropdown-menu {
    text-align: left !important;
    padding-left: 18px !important;
}

/* Also ensure desktop/header dropdown items are left-aligned */
.ihm-dropdown-menu .ihm-dropdown-item,
.ihm-dropdown-menu {
    text-align: left !important;
    left: 0 !important;
    right: auto !important;
}

/* Mobile Menu Custom Scrollbar */
.ihm-menu-modal::-webkit-scrollbar {
    width: 6px;
}

.ihm-menu-modal::-webkit-scrollbar-track {
    background: transparent;
}

.ihm-menu-modal::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.ihm-menu-modal::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Search modal styles */
.ihm-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}
.ihm-search-overlay.ihm-search-overlay-active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ihm-search-modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    min-width: 320px;
    max-width: 90vw;
    background: #fff;
    z-index: 1051;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 18px;
    transition: transform 0.18s ease, opacity 0.18s ease;
    opacity: 0;
    visibility: hidden;
}
.ihm-search-modal.ihm-search-modal-active {
    display: block !important;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1 !important;
    visibility: visible !important;
}

.ihm-search-modal-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 8px 16px 8px;
}

.ihm-search-close {
    position: absolute;
    right: 7px;
    top: 10px;
    border: none;
    background: -webkit-linear-gradient(#F47920, #EFB61D);
    font-size: 20px;
    cursor: pointer;
    color: white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(18,18,18,0.08);
}

.ihm-search-form {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}

.ihm-search-form input[type="search"] {
    flex: 1 1 auto;
    padding: 14px 16px 14px 44px;
    border: 1px solid rgba(16,24,32,0.06);
    border-radius: 10px;
    font-size: 18px;
    color: #0f1722;
    background-color: #fff;
    box-shadow: 0 6px 30px rgba(15,23,34,0.06);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    outline: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-repeat: no-repeat;
    background-position: 14px center;
}

.ihm-search-form input[type="search"]:focus {
    box-shadow: 0 14px 40px rgba(15,23,34,0.12);
    transform: translateY(-1px);
    border-color: rgba(241,92,78,0.18);
}

.ihm-search-submit {
    padding: 10px 16px;
    border-radius: 8px;
    background: linear-gradient(180deg,var(--primary-orange), #c44e13);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 26px rgba(196,78,19,0.12);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ihm-search-submit:active {
    transform: translateY(1px) scale(0.998);
}

.ihm-search-hint {
    margin: 6px 4px 0 4px;
    font-size: 13px;
    color: #6b7280;
    text-align: left;
}

/* overlay blur for supported browsers */
.ihm-search-overlay.ihm-search-overlay-active {
    backdrop-filter: blur(4px) saturate(1.05);
}

/* tweak modal size for larger screens */
@media (min-width: 900px) {
    .ihm-search-modal { min-width: 520px; max-width: 720px; }
    .ihm-search-form input[type="search"] { font-size: 20px; }
}


/* Hide desktop menu on mobile */
@media (max-width: 992px) {
    .ihm-bottom-nav-row {
        display: none !important;
    }

    .ihm-search-icon {
        display: none !important;
    }

    .ihm-mobile-menu-btn {
        display: flex !important;
    }
}

/* Hide mobile button on desktop */
@media (min-width: 993px) {
    .ihm-mobile-menu-btn {
        display: none !important;
    }

    .ihm-menu-modal {
        display: none !important;
    }

    .ihm-menu-modal-overlay {
        display: none !important;
    }

    /* But show them when active, even on desktop */
    .ihm-menu-modal.ihm-menu-modal-active {
        display: flex !important;
    }

    .ihm-menu-modal-overlay.ihm-menu-modal-overlay-active {
        display: block !important;
    }
}

/* Responsive Mobile Menu */
@media (max-width: 768px) {
    .ihm-menu-modal {
        max-width: 85vw;
    }

    .ihm-menu-modal-header {
        padding: 15px 12px;
    }

    .ihm-menu-modal-header h3 {
        font-size: 16px;
    }

    .ihm-menu-modal-content .ihm-main-menu a {
        padding: 12px 12px;
        font-size: 14px;
    }

    .ihm-menu-modal-content .ihm-dropdown-item {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .ihm-menu-modal {
        max-width: 90vw;
    }

    .ihm-menu-modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .ihm-menu-modal-content .ihm-main-menu a {
        padding: 11px 10px;
        font-size: 13px;
    }

    .ihm-menu-modal-content .ihm-dropdown-item {
        padding: 9px 10px;
        font-size: 12px;
    }
}





/* header-revamp-css */

/* Google Fonts import is in HTML for performance */
:root {
    --primary-orange: #C05615;
    --secondary-orange: #C05615;

    --color-enquire: #c85a17;
    /* Matches the dark orange button */
    --color-refer: #c85a17;
    /* They look identical in color in some designs, let's keep them same or slightly distinct if needed */

    /* The yellow pill gradient */
    --pill-yellow-start: #eebf2f;
    --pill-yellow-end: #f58225;

    --text-dark: #222;
    --text-light: #fff;
    --font-family: 'Roboto', sans-serif;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #fff;
    border-top: 3px solid #000;
    /* Top thin black border if any, usually valid for such headers */
}

/* Header Container */
.ihm-main-header {
    width: 100%;
    margin: 0 auto;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1020;
}

/* Fixed header variant (behaves like Bootstrap's fixed-top) */
.ihm-main-header.fixed-top {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1020 !important;
    background: white;
}
/* -------------------------------------------
   Top Bar Section
------------------------------------------- */
.ihm-header-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-right: 20px;
    position: relative;
    z-index: 10;
    min-height: 56px;
}

/* The container for the two top left tabs */
.ihm-top-left-tabs {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    margin-left: 0;
    flex-shrink: 0;
}

.ihm-tab-link {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 11px;
    /* Smaller font for these top buttons */
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.ihm-enquire-btn {
    background-color: #c05814;
    /* Rust orange */
    padding: 8px 15px;
    margin-right: 60px;
    /* Significant gap between buttons as seen in image */
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ihm-refer-btn {
    background-color: #c05814;
    /* Same color */
    padding: 8px 15px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* The yellow pill container */
.ihm-top-right-pill {
    margin-top: 10px;
    margin-left: auto;
    margin-right: 0;
    /* Push to the right end */
}

.ihm-pill-nav {
    background: linear-gradient(90deg, #ecc335 0%, #f48024 100%);
    padding: 15px 22px;
    border-radius: 50px;
    border-bottom-right-radius: 50px;
    border-top-right-radius: 50px;
    display: flex;
    gap: 25px;
}

.ihm-pill-nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------
   Main Navigation Section
------------------------------------------- */
.ihm-header-main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Align bottom to match logo baseline roughly */
    padding: 10px 40px 12px 40px;
    /* Top padding small since tabs are above */
    max-width: 1878px;
    /* Use a slightly wider container for main nav to match logo pos */
    margin: 0 auto;
}

.ihm-logo-container {
    padding-bottom: 5px;
}

.ihm-logo-container img {
    height: 80px;
    width: auto;
}

.ihm-nav-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 40px;
    justify-content: flex-end;
}

/* Contact Info Row */
.ihm-contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align text */
    gap: 3px;
    font-size: 13px;
    color: #333;
    width: auto;
    margin: 0 auto;
    /* Center the block itself within the available space */
}

.ihm-contact-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 14px;
}

.ihm-contact-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    /* Smaller font for phone numbers */
    color: #333;
    font-weight: 500;
}

.ihm-phone-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icons */
.fa-envelope {
    font-size: 16px;
    color: #000;
}

.fa-phone {
    font-size: 12px;
    color: #000;
    transform: rotate(90deg);
    /* Phone icon often rotated in these designs */
}

.ihm-email-text {
    font-weight: 700;
}

/* Main Menu Row */
.ihm-bottom-nav-row {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: flex-end;
    width: auto;
    /* Change from 100% to auto */
}

.ihm-main-menu {
    display: flex;
    gap: 35px;
}

.ihm-main-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding-bottom: 5.5px;
}

.ihm-main-menu a:hover,
.ihm-main-menu a.ihm-active,
.ihm-dropdown-toggle.ihm-active {
    color: #eba933;
    /* The active yellow color */
}

.ihm-main-menu a.ihm-active,
.ihm-dropdown-toggle.ihm-active {
    border-bottom: 2px solid #eba933;
}

.ihm-login-link {
    margin-left: 20px;
    /* Separate login a bit more if needed */
}

.ihm-search-icon {
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    color: #000;
}

/* Dropdown Styles */
.ihm-dropdown-parent {
    position: relative;
    padding-bottom: 8px;
    /* Match the padding of other links for hover area */
}

.ihm-dropdown-toggle {
    /* Inherits styles from .ihm-main-menu a effectively due to structure, but let's ensure */
    padding-bottom: 0 !important;
    /* Remove individual padding since parent has it */
}

.ihm-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    /* Wide enough for "Our Policies & Procedures" */
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 2px;
    /* Slight rounding or none based on image which looks sharp-ish */
}

.ihm-dropdown-parent:hover .ihm-dropdown-menu {
    display: flex;
}

.ihm-dropdown-item {
    padding: 12px 25px;
    font-size: 14px !important;
    /* Override main menu size */
    color: #333 !important;
    font-weight: 700 !important;
    text-transform: none;
    transition: background-color 0.2s;
    border-bottom: none !important;
    /* No active border for items */
}

.ihm-dropdown-item:hover {
    background-color: #f9f9f9;
    color: #000 !important;
}

/* Maintain active state style on parent if needed, or hover color */
.ihm-dropdown-parent:hover .ihm-dropdown-toggle {
    color: #eba933;
}

/* Mega-menu specific styles (Courses) */
.ihm-megamenu {
    width: 1380px;
    /* center under the parent link by default */
    /* left: 0; */
    transform: translateX(-77%);
    /* right: 100%; */
    position: absolute;
    display: none;
    padding: 22px;
    box-shadow: 0 14px 40px rgba(7,13,20,0.08);
    border-radius: 6px;
    z-index: 1100;
    gap: 24px;
}

.ihm-dropdown-parent:hover .ihm-megamenu {
    display: flex !important;
    flex-direction: row;
}

.ihm-mega-col {
    flex: 1 1 50%;
    min-width: 280px;
}

.mega-section-title {
    display: inline-block;
    background: #f3f3f3;
    padding: 8px 12px;
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 12px;
    border-radius: 2px;
    width: 100%;
}

.mega-list {
    list-style: none;
    margin: 8px 0 18px 0;
    padding: 0;
}
.mega-list.slim { margin-bottom: 20px; }
.mega-list li { padding: 8px 0; }
.mega-list li a { color: #0f1722; text-decoration: none; font-weight: 700; }
.mega-list li a:hover { color: var(--primary-orange); }

.mega-cta {
    display: block;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 12px;
    background: linear-gradient(90deg,#f4b03d,#e67a1a);
    box-shadow: 0 10px 30px rgba(230,122,26,0.12);
}
.mega-cta:hover{
    color: #fff;
}
/* .mega-cta.secondary { background: linear-gradient(90deg,#f2a933,#d96b10); } */

@media (max-width: 1100px) {
    .ihm-megamenu { width: calc(100vw - 60px); left: 30px; right: 30px; transform: none; }
    .ihm-dropdown-parent:hover .ihm-megamenu { left: 30px; transform: none; }
    .ihm-mega-col { min-width: 200px; }
}



/* Media Queries for Responsiveness */
@media (max-width: 1100px) {
    .ihm-header-top-bar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-bottom: 15px;
        max-width: 100%;
        padding-right: 0;
        min-height: 0;
    }

    .ihm-top-left-tabs {
        position: static;
        transform: none;
        margin-left: 0;
        margin-bottom: 0;
        justify-content: center;
        width: 100%;
    }

    .ihm-enquire-btn {
        margin-right: 20px;
    }

    .ihm-top-right-pill {
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .ihm-pill-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ihm-header-main-nav {
        flex-direction: row;
        align-items: center;
        padding: 0 20px 20px 20px;
        gap: 20px;
    }

    .ihm-contact-info {
        margin: 0;
        align-items: center;
        justify-content: center;
    }

    .ihm-nav-content {
        width: 100%;
        align-items: center;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
    }

    .ihm-bottom-nav-row {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 15px;
    }

    .ihm-main-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .ihm-header-top-bar {
        flex-direction: column;
        gap: 15px;
    }

    .ihm-top-left-tabs {
        justify-content: center;
        gap: 10px;
    }

    .ihm-top-right-pill {
        width: 100%;
    }

    .ihm-pill-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ihm-header-main-nav {
        flex-direction: row;
        padding: 15px;
        gap: 15px;
    }

    .ihm-contact-info {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        font-size: 12px;
    }

    .ihm-contact-item {
        font-size: 12px;
    }

    .ihm-contact-details {
        font-size: 10px;
        text-align: center;
    }

    .ihm-phone-row {
        justify-content: center;
    }

    .ihm-nav-content {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 15px;
    }

    .ihm-bottom-nav-row {
        display: none !important;
    }

    .ihm-search-icon {
        display: none !important;
    }

    .ihm-main-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .ihm-main-header {
        font-size: 13px;
    }

    .ihm-header-top-bar {
        flex-direction: column;
        padding: 15px 15px;
        gap: 10px;
    }

    .ihm-top-left-tabs {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 8px;
        margin-bottom: 10px;
    }

    .ihm-enquire-btn,
    .ihm-refer-btn {
        padding: 6px 12px;
        font-size: 10px;
        margin-right: 0;
    }

    .ihm-top-right-pill {
        width: 100%;
        margin: 0;
        margin-top: 10px;
    }

    .ihm-pill-nav {
        padding: 10px 12px;
        gap: 8px;
        font-size: 12px;
        border-radius: 30px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .ihm-pill-nav a {
        font-size: 12px;
        white-space: nowrap;
    }

    /* Main Navigation for Tablet */
    .ihm-header-main-nav {
        flex-direction: row;
        padding: 15px;
        gap: 15px;
    }

    .ihm-logo-container img {
        height: 60px;
    }

    .ihm-contact-info {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        font-size: 12px;
    }

    .ihm-contact-item {
        font-size: 12px;
    }

    .ihm-contact-details {
        font-size: 10px;
        text-align: center;
    }

    .ihm-phone-row {
        justify-content: center;
    }

    .ihm-nav-content {
        width: 100%;
        gap: 15px;
    }

    .ihm-bottom-nav-row {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .ihm-main-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: stretch;
    }

    .ihm-main-menu a {
        text-align: center;
        font-size: 14px;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    .ihm-main-menu a:last-child {
        border-bottom: none;
    }

    .ihm-dropdown-parent {
        width: 100%;
        padding: 0;
    }

    .ihm-dropdown-toggle {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .ihm-menu {
        position: relative;
    }

    .ihm-search-icon {
        display: none;
    }
}

@media (max-width: 576px) {
    /* Extra Small Screens */
    .ihm-main-header {
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
    }

    .ihm-header-top-bar {
        padding: 10px 10px;
        gap: 8px;
    }

    .ihm-top-left-tabs {
        gap: 5px;
    }

    .ihm-enquire-btn,
    .ihm-refer-btn {
        padding: 5px 10px;
        font-size: 9px;
        margin-right: 0;
    }

    .ihm-top-right-pill {
        margin: 0;
    }

    .ihm-pill-nav {
        padding: 8px 10px;
        gap: 5px;
        font-size: 11px;
    }

    .ihm-pill-nav a {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ihm-header-main-nav {
        flex-direction: row;
        padding: 10px;
        gap: 10px;
    }

    .ihm-logo-container img {
        height: 50px;
    }

    .ihm-contact-info {
        width: 100%;
        gap: 5px;
        font-size: 11px;
    }

    .ihm-contact-item {
        font-size: 11px;
        gap: 5px;
    }

    .ihm-contact-item i,
    .ihm-contact-details i {
        font-size: 12px;
    }

    .ihm-contact-details {
        font-size: 10px;
        gap: 2px;
    }

    .ihm-phone-row {
        gap: 8px;
    }

    .ihm-bottom-nav-row {
        flex-direction: column;
    }

    .ihm-main-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .ihm-main-menu a {
        font-size: 13px;
        padding: 8px 0;
    }

    .ihm-dropdown-parent {
        width: 100%;
    }

    .ihm-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        margin-top: 0;
        display: none;
        max-width: 100%;
        padding-left: 15px;
    }

    .ihm-dropdown-menu.show {
        display: flex;
    }

    .ihm-dropdown-item {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Fix for dropdown going off-screen on the right side */
.ihm-dropdown-parent:last-child .ihm-dropdown-menu,
.ihm-dropdown-parent:nth-last-child(2) .ihm-dropdown-menu {
    left: auto;
    right: 0;
}

/* Mobile dropdown menu display fix */
@media (max-width: 768px) {
    .ihm-dropdown-menu {
        position: static !important;
        display: none;
        box-shadow: none;
        background: #f9f9f9;
        left: 0 !important;
        right: auto !important;
    }

    .ihm-dropdown-menu.show {
        display: flex;
    }

    .ihm-dropdown-parent:hover .ihm-dropdown-menu {
        display: none;
    }
}
