/* 
    Training Website Design System
    Theme: Professional, Premium, Trustworthy
*/

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
    /* Force scrollbar to prevent layout shift */
}

/* @import removed for performance */

:root {
    /* Colors (Mostar Institute Live Identity) */
    --primary-color: #0B1F3A; /* navy header color */
    --secondary-color: #061224; /* navy-dark (2 shades darker than header color #0B1F3A) */
    --accent-color: #C9963A; /* gold */
    --accent-hover: #E8BA68; /* gold-light */
    --text-dark: #0B1F3A; /* navy */
    --text-light: #4A5568; /* slate */
    --white: #ffffff;
    --off-white: #F0F4F8; /* mist */
    --border-color: #E2E8F0;

    /* Typography */
    --font-main: 'DM Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --container-padding: 2rem;
    --max-width: 1440px;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* RTL Override for Arabic Font */
html[dir="rtl"] {
    --font-main: 'Tajawal', sans-serif;
    --font-heading: 'Tajawal', sans-serif;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Main Body Styling */
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--off-white);
    overflow-x: clip;
    /* Add padding to account for fixed header (40px top-bar + 80px header) */
    padding-top: 130px;
    /* Extra space for mega menu to prevent content jumping */
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background Watermark */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/Logo/Watermark.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
    /* Size to make it look like a nice central watermark */
    opacity: 0.06;
    /* More visible watermark */
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

/* Header & Nav Fixed Positioning */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0;
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1002;
    /* Removed transition for stability */
}

.top-bar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-speed);

    /* Frame Styling */
    border: 1px solid var(--accent-color);
    /* Colored frame */
    padding: 2px 10px;
    /* Minimal padding to keep size same */
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.03);
    /* Very subtle fill */
}

.contact-info a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    opacity: 1;
}

.contact-info i {
    font-size: 0.875rem;
}

header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 40px;
    /* Below top-bar */
    left: 0;
    right: 0;
    width: 100%;
    height: 90px;
    z-index: 1001;
    /* Below top-bar */
    border-bottom: 2px solid var(--accent-color);
    /* Golden line under header - stays fixed as page scrolls */
}

.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8rem 0 !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-image 0.5s ease-in-out;
}

.page-header video,
.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header .container,
.page-header h1,
.page-header p {
    position: relative;
    z-index: 2;
}

header .container {
    height: 100%;
}

nav.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0;
    width: 100%;
}

/* Nav Container */
.nav-container {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo img {
    height: 85px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

/* Mobile Actions (Search & Menu) */
.mobile-actions,
.nav-toggle:not(.mobile-action-btn) {
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 1003;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px; /* English default */
}

html[dir="rtl"] .mobile-actions,
html[dir="rtl"] .nav-toggle:not(.mobile-action-btn) {
    right: auto;
    left: 15px;
}

.mobile-action-btn,
.nav-toggle:not(.mobile-action-btn) {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .mobile-action-btn,
    .nav-toggle:not(.mobile-action-btn) {
        display: flex;
    }
}

.mobile-action-btn:hover,
.nav-toggle:not(.mobile-action-btn):hover {
    background: #b58c2a; /* Slightly darker gold on hover, or use brightness */
    transform: translateY(-2px);
    color: white;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
    flex: 1;
    justify-content: flex-start;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    font-weight: 500;
    color: var(--white);
    padding: 0.5rem 0;
    display: inline-block;
    transition: color var(--transition-speed);
}

.nav-item:hover {
    color: var(--accent-color);
}

/* Calendar & Featured Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for optimal detail display */
    gap: 1.5rem;
}

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

/* Similar Courses / Educational Path Card Styles */
.similar-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.similar-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem;
    gap: 1rem;
    height: 90px;
}

[dir="rtl"] .similar-card {
    flex-direction: row;
    border-right: 4px solid var(--accent-color);
}

[dir="ltr"] .similar-card {
    border-left: 4px solid var(--accent-color);
    border-right: 1px solid #e2e8f0;
}

.similar-card:hover {
    background: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.similar-img {
    width: 100px;
    height: 70px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.similar-body {
    flex-grow: 1;
    min-width: 0;
    /* allow truncation */
}

.similar-body h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.similar-meta-strip {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.similar-body h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--primary-color);
}

/* Grouping Headers */
.month-group-header {
    grid-column: 1 / -1;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    text-transform: capitalize;
}

.year-group-subtitle {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 1.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
    background: rgba(217, 119, 6, 0.05);
    padding: 0.75rem 1rem;
}

html[dir="rtl"] .year-group-subtitle {
    padding-left: 0;
    padding-right: 1rem;
    border-left: none;
    border-right: 4px solid var(--accent-color);
}

.results-separator {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--border-color);
    margin: 4rem 0;
}

/* Similar Programs Section */
.related-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-section h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


.search-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}


.upcoming-section {
    padding: 4rem 0 0rem;
    background: #f1f5f9;
    /* Soft light gray for contrast */
}


/* Centralized Course Details Sidebar Sticky Fix */
.sticky-sidebar {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 130px !important; /* Sticks exactly adjacent to the bottom of the 130px header */
    z-index: 50 !important;
    align-self: start !important; /* prevents stretched grid height */
    transform: none !important; /* Removes transform to prevent browser GPU rendering scroll glitches */
    margin-top: -20px !important; /* Safely shifts sidebar up visually without transform side-effects */
}

@media (max-width: 768px) {
    .sticky-sidebar {
        position: static !important;
        transform: none !important;
        margin-top: 0 !important;
        max-width: 100% !important;
    }
}
/* Global fix for Arabic text scrambling in inputs and selects */
input, select, textarea {
    font-family: 'Tajawal', sans-serif !important;
    letter-spacing: normal !important;
}

/* WebKit / Safari Performance Optimization: GPU Compositing Layers */
video,
.new-hero,
.new-hero video,
.new-hero-overlay,
.hero-actions,
.number-13,
.video-banner-content .program-meta span {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}



/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    color: var(--primary-color, #2e3d62);
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: var(--accent-color, #c9963a);
    color: var(--accent-color, #c9963a);
}

.pagination-btn.active {
    background-color: var(--primary-color, #2e3d62);
    border-color: var(--primary-color, #2e3d62);
    color: #fff;
    pointer-events: none;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f5f9;
}

/* --- Dynamic Department Filtering & Pagination Pilot Styles (Scoped to 3-Month Page) --- */
.pilot-3-months .departments-container {
    position: relative;
    margin: -4.5rem auto 2rem !important; /* Elegant overlap with Hero */
    z-index: 50;
    padding: 0 1rem;
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
}

.pilot-3-months .departments-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color, #2e3d62);
    margin-bottom: 1rem;
}

.pilot-3-months .departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    width: 100%;
}

.pilot-3-months .department-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    min-height: 52px;
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

.pilot-3-months .department-btn i {
    font-size: 1.1rem;
    color: var(--primary-color, #2e3d62);
    transition: color 0.2s ease;
}

.pilot-3-months .department-btn:hover {
    background-color: #f8fafc;
    border-color: var(--accent-color, #c9963a);
    color: var(--accent-color, #c9963a);
}

.pilot-3-months .department-btn:focus-visible {
    outline: 2px solid var(--accent-color, #c9963a);
    outline-offset: 2px;
}

.pilot-3-months .department-btn.active {
    background-color: var(--primary-color, #2e3d62);
    border-color: var(--primary-color, #2e3d62);
    color: #fff;
    pointer-events: none;
}

.pilot-3-months .department-btn.active i {
    color: #fff;
}

.pilot-3-months .department-btn .dept-count {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
    font-weight: 600;
    transition: all 0.2s ease;
}

[dir="rtl"] .pilot-3-months .department-btn {
    text-align: right;
}

[dir="rtl"] .pilot-3-months .department-btn .dept-count {
    margin-left: 0;
    margin-right: auto;
}

.pilot-3-months .department-btn.active .dept-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pilot-3-months .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #64748b;
    font-weight: bold;
}

@media (max-width: 768px) {
    .pilot-3-months .departments-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
    }
    .pilot-3-months .department-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-height: 46px;
        gap: 8px;
    }
    .pilot-3-months .department-btn i {
        font-size: 1rem;
    }
    .pilot-3-months .department-btn .dept-count {
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    .pilot-3-months .pagination-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 6px;
        font-size: 0.8rem;
    }
    .pilot-3-months .pagination-ellipsis {
        padding: 4px;
        font-size: 0.8rem;
    }
}

/* --- Specializations Container & Grid (Scoped to 3-Month Page) --- */
.pilot-3-months .specializations-container {
    position: relative;
    margin: 0 auto 2rem !important;
    margin-top: 0 !important;
    z-index: 50;
    padding: 0 1rem;
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
}

.pilot-3-months .specializations-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color, #2e3d62);
    margin-bottom: 1rem;
}

.pilot-3-months .specializations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    width: 100%;
}

.pilot-3-months .specialization-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    min-height: 52px;
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

.pilot-3-months .specialization-btn i {
    font-size: 1.1rem;
    color: var(--primary-color, #2e3d62);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.pilot-3-months .specialization-btn:hover {
    background-color: #f8fafc;
    border-color: var(--accent-color, #c9963a);
    color: var(--accent-color, #c9963a);
}

.pilot-3-months .specialization-btn:hover i {
    color: var(--accent-color, #c9963a);
}

.pilot-3-months .specialization-btn:focus-visible {
    outline: 2px solid var(--accent-color, #c9963a);
    outline-offset: 2px;
}

.pilot-3-months .specialization-btn.active {
    background-color: var(--primary-color, #2e3d62);
    border-color: var(--primary-color, #2e3d62);
    color: #fff;
    pointer-events: none;
}

.pilot-3-months .specialization-btn.active i {
    color: #fff;
}

.pilot-3-months .specialization-btn .spec-count {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

[dir="rtl"] .pilot-3-months .specialization-btn {
    text-align: right;
}

[dir="rtl"] .pilot-3-months .specialization-btn .spec-count {
    margin-left: 0;
    margin-right: auto;
}

.pilot-3-months .specialization-btn.active .spec-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pilot-3-months .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #64748b;
    font-weight: bold;
}

/* Results header for pilot-3-months */
.pilot-3-months .pilot-results-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.pilot-3-months .pilot-results-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color, #2e3d62);
    margin: 0;
}

.pilot-3-months .pilot-results-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color, #c9963a);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    min-width: 28px;
}

@media (max-width: 768px) {
    .pilot-3-months .specializations-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
    .pilot-3-months .specialization-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-height: 46px;
        gap: 8px;
    }
    .pilot-3-months .specialization-btn i {
        font-size: 1rem;
    }
    .pilot-3-months .specialization-btn .spec-count {
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    .pilot-3-months .pagination-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 6px;
        font-size: 0.8rem;
    }
    .pilot-3-months .pagination-ellipsis {
        padding: 4px;
        font-size: 0.8rem;
    }
}

.pilot-3-months main.container {
    width: 100%;
}

/* Hide month select by default on general pages */
.month-select-group {
    display: none !important;
}

/* Show it only in Stage 3 on the pilot page */
.pilot-3-months .branch-page-layout .month-select-group {
    display: block !important;
}

/* Pilot layout overrides: search container margin adjustments when buttons are present */
.pilot-3-months .horizontal-search-container:not(.departments-container):not(.specializations-container) {
    margin-top: 0 !important;
    margin-bottom: 2.5rem !important;
}

@media (max-width: 991px) {
    .pilot-3-months .departments-container {
        margin-top: -2rem !important;
        margin-bottom: 1.5rem !important;
    }
    .pilot-3-months .specializations-container {
        margin-top: 0 !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Sticky search bar on desktop/tablet */
@media (min-width: 768px) {
    .pilot-3-months .horizontal-search-container:not(.departments-container):not(.specializations-container) {
        position: sticky;
        top: var(--fixed-header-height, 130px);
        z-index: 999;
        background-color: transparent;
        transition: padding 0.2s ease, background-color 0.2s ease;
    }

    /* Style the search box specifically when sticking */
    .pilot-3-months .horizontal-search-container:not(.departments-container):not(.specializations-container).is-sticky .search-box {
        background-color: #ffffff;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow so it stands out over content */
        border: 1px solid rgba(46, 61, 98, 0.1); /* Subtle dark blue border for distinction */
        border-radius: 8px; /* Slightly tighter border-radius when sticking */
        padding: 0.9rem 1.25rem; /* Slightly more compact vertical padding */
    }
}

/* Desktop Stage 3 layout order: Program Name | City | Month/Date | Duration | Type */
.pilot-3-months .branch-page-layout .search-box {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
}

.pilot-3-months .branch-page-layout .text-group {
    order: 1 !important;
    flex: 2.5 1 300px !important; /* Program Name occupies more space */
}
.pilot-3-months .branch-page-layout .city-select-group {
    order: 2 !important;
    flex: 1 1 180px !important;
}
.pilot-3-months .branch-page-layout .month-select-group {
    order: 3 !important;
    flex: 1 1 180px !important;
}
.pilot-3-months .branch-page-layout .duration-select-group {
    order: 4 !important;
    flex: 1 1 180px !important;
}
.pilot-3-months .branch-page-layout .type-select-group {
    order: 5 !important;
    flex: 1 1 180px !important;
}

@media (min-width: 1200px) {
    .pilot-3-months .branch-page-layout .search-box {
        flex-wrap: nowrap !important; /* Force a single line on large screens */
    }
}

@media (max-width: 767px) {
    .pilot-3-months .branch-page-layout .search-box {
        flex-direction: column !important;
    }
    .pilot-3-months .branch-page-layout .search-group {
        width: 100% !important;
        flex: none !important;
    }
}



/* Verify Certificate Button Styling (Header Dropdown & Footer) */
.verify-menu-link {
    background-color: var(--accent-color, #f59e0b) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 4px;
    margin: 4px 10px 8px 10px;
    padding: 8px 12px;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}
.verify-menu-link:hover {
    background-color: #e6910a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.footer-col .verify-menu-link {
    margin: 4px 0 0 0;
    display: inline-block;
    padding: 6px 12px;
    font-weight: 500 !important;
}

/* Clean sans-serif typography for all course, program, and workshop titles to resolve decorative ampersand issues */
.course-card h3,
.course-title,
.course-title-list,
.program-title,
.video-banner-content .program-title {
    font-family: var(--font-main) !important;
}
