/* SCHOLARiQ Redesign Styles */
/* ========================================================= 
   Migrated from Default.aspx
   ========================================================= */

.feature-list {
    display: block;
    margin-top: 12px;
}

.feature {
    display: block;
    padding-left: 24px;
    position: relative;
}

.feature::before {
    content: "▹";
    color: #c80036;
    position: absolute;
    left: 0;
}

/* =========================================
   UNIVERSAL SECTION HEADINGS - PROJECT STANDARD
   ========================================= */

/* Main Section Heading Container */
.heading-section {
    text-align: center;
    margin-bottom: 50px;
}

/* Primary Heading - Gold/Orange Theme */
.heading-section h2 {
    font-size: 42px;
    font-weight: 700;
    color: #B8860B;
    /* Brand Gold */
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

/* Subtitle Text - Gray */
.heading-section p,
.heading-section .sub {
    font-size: 17px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* Responsive Heading Sizes */
@media (max-width: 992px) {
    .heading-section h2 {
        font-size: 36px;
    }

    .heading-section p,
    .heading-section .sub {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .heading-section {
        margin-bottom: 40px;
    }

    .heading-section h2 {
        font-size: 30px;
    }

    .heading-section p,
    .heading-section .sub {
        font-size: 15px;
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .heading-section h2 {
        font-size: 26px;
    }

    .heading-section p,
    .heading-section .sub {
        font-size: 14px;
    }
}

/* Utility Classes */
.mb-60 {
    margin-bottom: 60px;
}

.mb-50 {
    margin-bottom: 50px;
}


.pb-0 {
    padding-bottom: 0 !important;
}

.text-center {
    text-align: center;
}

/* =========================================
   HERO SECTION - REDESIGN
   ========================================= */

.page-title-home1-redesign {
    position: relative;
    padding: 120px 0 100px;
    background-color: #fffdf5;
    /* Warm premium base */
    background-image: radial-gradient(#B8860B 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    /* Subtle dots */
    overflow: hidden;
}

/* Background Decorations */
.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* The Diagonal Cutout Shape - Abstract "Paper" look */
.hero-shape-main {
    position: absolute;
    top: -50px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #fffcf0 0%, #fff 100%);
    border-radius: 40px;
    transform: rotate(-15deg);
    box-shadow: -20px 20px 60px rgba(184, 134, 11, 0.05);
    /* Soft gold shadow */
    z-index: -1;
    overflow: hidden;
}

.hero-shape-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: #fffdf5;
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    /* Corner fold effect */
}

/* Floating EdTech Icons - HIDDEN as per request */
.hero-floating-icon {
    display: none;
}

.hero-floating-icon.icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.hero-floating-icon.icon-2 {
    bottom: 20%;
    left: 15%;
    animation-delay: 1.5s;
    font-size: 20px;
    width: 50px;
    height: 50px;
}

.hero-floating-icon.icon-3 {
    top: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Gradient Overlay to soften edges */
.page-title-home1-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 253, 245, 0.4) 0%, rgba(255, 253, 245, 1) 90%);
    pointer-events: none;
    z-index: 0;
}

.page-title-home1-redesign .content {
    position: relative;
    z-index: 2;
}

/* AI Tag */
.box-sub-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin: 0 auto 24px auto;
    /* Centered with margin-bottom */
}

.sub-tag-icon {
    color: #B8860B;
    display: flex;
    align-items: center;
}

.sub-tag-title p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}

/* Hero Text Rotator */
.hero-rotator-container {
    position: relative;
    height: 220px;
    /* Allocated height to prevent jumping */
    margin-bottom: 30px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hero Title - Reduced Size */
.hero-title {
    font-size: 42px;
    /* Reduced from 48px */
    line-height: 1.25;
    margin-bottom: 20px;
    color: #333333;
}

@media (max-width: 768px) {
    .hero-rotator-container {
        height: 340px;
        /* Balanced height for compact text */
    }

    .hero-title {
        font-size: 30px;
        /* Reduced from 36px */
    }
}

/* Subtitle - Reduced Size */
.hero-subtitle {
    font-size: 16px;
    /* Reduced from 18px */
    color: #515151;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Bottom Buttons Container */
.page-title-home1-redesign .bottom-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Enforces vertical center in the row */
    gap: 24px;
    /* Slightly wider gap for clarity */
    margin-top: 40px;
    flex-wrap: wrap;
}

/* =========================================
   UNIVERSAL THEME BUTTONS
   ========================================= */

/* Primary Theme Button (Bright Gold - High Contrast) */
/* Matches "Talk to Experts" in attachment */
.btn-theme-primary {
    background: #EAA400;
    /* Bright Golden Yellow */
    color: #1a1a1a;
    /* Strong dark text */
    border: 1.5px solid #EAA400;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    /* Bolder text */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(234, 164, 0, 0.25);
}

.btn-theme-primary:hover {
    background: #FFB81C;
    /* Slightly lighter/brighter on hover */
    border-color: #FFB81C;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(234, 164, 0, 0.4);
    color: #000000;
}

/* Secondary Theme Button (Dark Bronze - Premium) */
/* Matches "Who We Are" in attachment */
.btn-theme-secondary {
    background: #B8860B;
    /* Dark Golden Rod / Bronze */
    color: #ffffff;
    border: 1.5px solid #B8860B;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.2);
}

.btn-theme-secondary:hover {
    background: #9A7009;
    /* Darker bronze on hover */
    border-color: #9A7009;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.3);
}

/* Legacy Outline Class - Keeping for compatibility but updating to match Secondary if used elsewhere
   OR keeping as outline if specifically needed. For now, let's make it a true outline version of primary. */
.btn-theme-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1.5px solid #E4E4E7;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-theme-outline:hover {
    border-color: #B8860B;
    color: #B8860B;
}

/* Icon styles for buttons */
.btn-theme-primary i,
.btn-theme-secondary i,
.btn-theme-outline i {
    font-size: 15px;
    margin: 0 !important;
}

/* Maintain compatibility with old names for now OR replace usages */
.btn-premium-primary {
    /* Extending Primary */
    background: #EAA400;
    color: #1a1a1a;
    border: 1.5px solid #EAA400;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-premium-primary:hover {
    background: #FFB81C;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(184, 134, 11, 0.3);
    color: #ffffff;
}

.btn-premium-outline {
    background: #ffffff;
    color: #111111;
    border: 1px solid #e4e4e7;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-premium-outline:hover {
    border-color: #b8860b;
    color: #b8860b;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Icons in buttons */
/* Reset icon margins since we used gap */
.btn-premium-primary i,
.btn-premium-outline i {
    margin: 0 !important;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Alignment */
@media (max-width: 576px) {
    .page-title-home1-redesign .bottom-btns {
        flex-direction: column;
        gap: 16px;
    }

    .btn-premium-primary,
    .btn-premium-outline {
        width: 100%;
        /* Full width on mobile */
        max-width: 300px;
        min-width: auto;
    }
}

/* =========================================
   HOW IT WORKS - OPTIMIZED REDESIGN
   ========================================= */

.section-how-SCHOLARiQ-works-redesign {
    background: #ffffff;
    position: relative;
    padding: 60px 0;
    /* Balanced spacing - not too much, not too little */
    overflow: hidden;
}

.relative-steps-container {
    position: relative;
    padding-top: 20px;
}

/* Connecting Line - Clean & Subtle */
.steps-connecting-line {
    position: absolute;
    top: 75px;
    /* Aligned with icon center */
    left: 12%;
    width: 76%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #E8DCC4 15%, #E8DCC4 85%, transparent 100%);
    z-index: 0;
}

/* Step Card - Modern & Clean */
.step-card {
    background: #ffffff;
    border: 1px solid #f5f5f5;
    border-radius: 16px;
    padding: 35px 25px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.12);
    border-color: #E8DCC4;
}

/* Header */
.step-header {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    background: #fff;
    padding: 0 12px;
    z-index: 1;
}

/* Icon Circle - Balanced Size */
.step-icon-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #FFFCF5 0%, #FFF9E5 100%);
    border: 2px solid #E8DCC4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
    color: #B8860B;
    transition: all 0.35s ease;
    position: relative;
}

.step-card:hover .step-icon-circle {
    background: linear-gradient(135deg, #B8860B 0%, #9A7009 100%);
    color: #ffffff;
    border-color: #B8860B;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.25);
}

/* Number Badge - Clean Design */
.step-number-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: #1d2330;
    color: #ffffff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.step-card:hover .step-number-badge {
    background: #B8860B;
    color: #ffffff;
    border-color: #ffffff;
}

/* Typography */
.step-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.step-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* =========================================
   TOP CATEGORIES - PREMIUM REDESIGN
   ========================================= */

.section-categories-redesign {
    background: #fff;
    padding-bottom: 60px;
}

/* Card Link Wrapper - Makes entire card clickable */
.card-link-wrapper {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
    /* Ensure wrapper fills column height */
}

.card-link-wrapper:hover {
    text-decoration: none !important;
}

.category-card-premium {
    background: #ffffff;
    border: 1.5px solid #f0f0f0;
    border-radius: 18px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center all children */
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    /* Fill wrapper height */
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
    /* Center text */
}

.category-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #B8860B 0%, #EAA400 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card-premium:hover::before {
    transform: scaleX(1);
}

.category-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(184, 134, 11, 0.15);
    border-color: #E8DCC4;
}

/* Active/Click effect on hover */
.card-link-wrapper:active .category-card-premium,
.category-card-premium:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 16px rgba(184, 134, 11, 0.2);
    transition: all 0.1s ease;
}

/* Icon Wrapper - LARGE & PREMIUM */
.category-icon-wrapper {
    width: 95px;
    height: 95px;
    min-width: 95px;
    min-height: 95px;
    background: linear-gradient(135deg, #FFFCF5 0%, #FFF9E5 100%);
    border: 2px solid #E8DCC4;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: inset 0 0 20px rgba(184, 134, 11, 0.05);
}

.category-card-premium:hover .category-icon-wrapper {
    background: linear-gradient(135deg, #B8860B 0%, #9A7009 100%);
    border-color: #B8860B;
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.25);
}

/* Icon Image - EXTRA LARGE, ALWAYS VISIBLE */
.icon-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 68px !important;
    max-height: 68px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: all 0.4s ease !important;
    display: block !important;
    opacity: 1 !important;
}

/* Hover - Keep icon visible in original color with slight zoom */
.category-card-premium:hover .icon-img {
    transform: scale(1.15) !important;
    opacity: 1 !important;
    /* No filter - icon stays in its original color */
}

/* Content Area */
.category-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align all content */
    text-align: center;
}

.category-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.3;
    letter-spacing: -0.3px;
    min-height: 50px;
    /* Reserve space for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    /* Center title */
    width: 100%;
}

.category-card-premium:hover .category-title {
    color: #B8860B;
}

/* Meta Section */
.category-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center meta items */
    margin-top: auto;
    width: 100%;
}

.course-count {
    font-size: 13px;
    color: #666;
    background: linear-gradient(135deg, #f8f8f8 0%, #f5f5f5 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #f0f0f0;
}

.arrow-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e4e4e7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d2330;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.category-card-premium:hover .arrow-link {
    background: linear-gradient(135deg, #1d2330 0%, #000000 100%);
    color: #ffffff;
    border-color: #1d2330;
    transform: rotate(45deg) scale(1.1);
}

/* =========================================
   UNIVERSAL ACTION BUTTONS - PROJECT STANDARD
   ========================================= */

/* Primary Action Button (Outline with Arrow) */
.btn-action-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: 2px solid #B8860B;
    background: transparent;
    color: #B8860B;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-action-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #B8860B 0%, #9A7009 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-action-primary:hover:before {
    left: 0;
}

.btn-action-primary:hover {
    color: #ffffff;
    border-color: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.25);
}

.btn-action-primary i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-action-primary:hover i {
    transform: translateX(4px);
}

/* Responsive Button */
@media (max-width: 576px) {
    .btn-action-primary {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Responsive Design - All Screen Sizes */
@media (max-width: 1200px) {
    .category-icon-wrapper {
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
    }

    .icon-img {
        max-width: 64px !important;
        max-height: 64px !important;
        min-width: 56px !important;
        min-height: 56px !important;
    }
}

@media (max-width: 992px) {
    .category-card-premium {
        padding: 28px 24px;
    }

    .category-icon-wrapper {
        width: 85px;
        height: 85px;
        min-width: 85px;
        min-height: 85px;
    }

    .icon-img {
        max-width: 60px !important;
        max-height: 60px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }

    .category-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .category-card-premium {
        padding: 24px 18px 22px;
        border-radius: 16px;
        gap: 18px;
    }

    .category-icon-wrapper {
        width: 75px;
        height: 75px;
        min-width: 75px;
        min-height: 75px;
        padding: 12px;
        border-radius: 14px;
    }

    .icon-img {
        max-width: 52px !important;
        max-height: 52px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }

    .category-title {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.25;
    }

    .course-count {
        font-size: 12px;
        padding: 4px 10px;
    }

    .arrow-link {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* Mobile Premium Optimization (2 per row) */
@media (max-width: 576px) {
    .section-categories-redesign .tf-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .category-card-premium {
        padding: 24px 18px;
        border-radius: 14px;
        gap: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .category-icon-wrapper {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
        padding: 12px;
        border-radius: 14px;
    }

    .icon-img {
        max-width: 56px !important;
        max-height: 56px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }

    .category-title {
        font-size: 16px;
        margin-bottom: 0;
        /* Remove bottom margin since meta is hidden */
        font-weight: 700;
        line-height: 1.3;
        min-height: auto;
        /* Reset min-height for mobile */
    }

    /* Hide course count and meta on mobile for cleaner look */
    .category-meta {
        display: none !important;
    }

    .course-count {
        display: none !important;
    }

    .arrow-link {
        display: none !important;
    }

    /* Reduce column gap for mobile */
    .categories-items .row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .categories-items .row>[class*='col-'] {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px;
    }
}

/* =========================================
   COURSE CARDS - PREMIUM REDESIGN (Mobile-First)
   ========================================= */

.course-card-premium {
    background: #fff;
    border: 1.5px solid #f5f5f5;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    margin: 0 0 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.course-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(184, 134, 11, 0.12);
    border-color: #E8DCC4;
}

/* Image Wrapper - Optimized for all image types */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 63%;
    /* 16:10 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.course-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.course-card-premium:hover .course-img {
    transform: scale(1.06);
}

/* Badges on Image */
.course-badge {
    position: absolute;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.course-badge.type {
    top: 12px;
    left: 12px;
    background: #ffffff;
    color: #1d2330;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-badge.duration {
    bottom: 12px;
    left: 12px;
    background: rgba(29, 35, 48, 0.90);
    color: #fff;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-badge.duration i {
    font-size: 10px;
}

/* Content */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Institute Meta */
.institute-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    min-height: 36px;
    /* Ensure consistent height */
    transition: transform 0.3s ease;
}

.course-card-premium:hover .institute-meta {
    transform: scale(1.05);
}


.institute-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    object-fit: contain;
    border-radius: 4px;
    background: #ffffff;
    padding: 4px;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
    display: block;
}

.institute-name {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

/* Title */
.course-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    height: 42px;
    /* Fixed height for exactly 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.course-card-premium:hover .course-title a {
    color: #B8860B;
}

/* Divider */
.card-divider {
    height: 1px;
    background: #f0f0f0;
    width: 100%;
    margin-top: auto;
}

/* Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    margin-top: auto;
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-box .label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-box .amount {
    font-size: 17px;
    font-weight: 700;
    color: #1d2330;
}

.btn-enroll-small {
    background: transparent;
    border: 2px solid #B8860B;
    color: #B8860B;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.btn-enroll-small i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.course-card-premium:hover .btn-enroll-small {
    background: linear-gradient(90deg, #B8860B 0%, #9A7009 100%);
    color: #ffffff;
    border-color: #B8860B;
}

.course-card-premium:hover .btn-enroll-small i {
    transform: translateX(3px);
}

/* Responsive Optimizations */
@media (min-width: 576px) {
    .course-card-premium {
        margin: 10px 5px;
    }

    .card-content {
        padding: 20px;
        gap: 12px;
    }

    .course-title {
        font-size: 16px;
        min-height: 45px;
    }

    .price-box .amount {
        font-size: 18px;
    }

    .btn-enroll-small {
        font-size: 13px;
        padding: 9px 16px;
    }
}

@media (min-width: 768px) {
    .card-image-wrapper {
        padding-top: 58%;
        /* Slightly different ratio for larger screens */
    }

    .card-content {
        padding: 22px;
    }

    .btn-enroll-small {
        padding: 9px 18px;
    }
}

@media (max-width: 575px) {
    .course-badge {
        font-size: 9px;
        padding: 5px 10px;
    }

    .institute-logo {
        width: 26px;
        height: 26px;
    }

    .institute-name {
        font-size: 11px;
    }

    .btn-enroll-small {
        font-size: 11px;
        padding: 7px 14px;
    }
}

@media (max-width: 575px) {
    .course-badge {
        font-size: 9px;
        padding: 5px 10px;
    }

    .institute-logo {
        width: 24px;
        height: 24px;
    }

    .institute-name {
        font-size: 11px;
    }
}

/* =========================================
   EXPERTS / LOGO CARDS - PREMIUM
   ========================================= */

.logo-card-premium {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    height: 100px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.logo-card-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-card-premium .logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-card-premium:hover .logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

.page-title-home1 {
    background-color: #f8f7f2;
}

.lazyloaded {
    padding: 15px;
}

.logo-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

.logo-img {
    max-width: 90px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.2 ease;
}

.logo-card:hover .logo-img {
    filter: grayscale(0%);
}

.form-search {
    position: relative;
}

/* =========================================
   AI Counseling Sections - REDESIGN
   ========================================= */

.counseling-section-container {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(180deg, #fffdf5 0%, #fff 100%);
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

.counseling-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin: 0 auto 20px;
}

.section-tag i {
    color: #B8860B;
}

.section-tag p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.counseling-section-title h2 {
    font-size: 42px;
    line-height: 1.2;
    color: #333333;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: #515151;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: #f8f7f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: #B8860B;
}

.feature-icon i {
    font-size: 24px;
    color: #B8860B;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: #fff;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1d2330;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: #585d69;
    line-height: 1.6;
    margin: 0;
}

.counseling-demo-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

@media (max-width: 991px) {
    .counseling-demo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.counseling-preview {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chat-message {
    display: flex;
    gap: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar.ai-avatar {
    background: linear-gradient(135deg, #B8860B 0%, #FFBE00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.avatar.user-avatar {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
}

.message-content {
    flex: 1;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.sender-name {
    font-size: 14px;
    font-weight: 700;
    color: #1d2330;
}

.timestamp {
    font-size: 12px;
    color: #999;
}

.message-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 2px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #B8860B;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.counseling-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: #f8f7f2;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: #B8860B;
}

.benefit-icon i {
    font-size: 22px;
    color: #B8860B;
    transition: color 0.3s ease;
}

.benefit-item:hover .benefit-icon i {
    color: #fff;
}

.benefit-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1d2330;
    margin-bottom: 8px;
}

.benefit-content p {
    font-size: 14px;
    color: #585d69;
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   COURSE GRID - REDESIGN (Swiper Override)
   ========================================= */

.course-grid-container .swiper-slide {
    height: auto !important;
}

.course-grid-container .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    transform: none !important;
}

/* =========================================
   STATISTICS SECTION - PREMIUM
   ========================================= */

.stats-section {
    background: linear-gradient(135deg, #1d2330 0%, #2c3544 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#B8860B 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #FFBE00;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 16px;
    color: #e4e4e7;
    font-weight: 500;
}

/* =========================================
   HEADER REDESIGN - CATEGORY DROPDOWN
   ========================================= */

.header-redesign {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e4e4e7;
}

.header-redesign .header-inner {
    padding: 0 40px;
}

.header-redesign .header-inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header-redesign .logo-link img {
    height: 42px;
}

.header-redesign .header-catalog {
    position: relative;
}

.header-redesign .header-catalog>a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8f7f2;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1d2330;
    transition: all 0.3s ease;
}

.header-redesign .header-catalog>a:hover {
    background: #B8860B;
    color: #fff;
    border-color: #B8860B;
}

.header-redesign .header-catalog>a i {
    font-size: 18px;
}

/* Mega Dropdown Styling */
.header-redesign .header-catalog ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 900px;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.header-redesign .header-catalog:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.header-redesign .header-catalog .has-children {
    padding: 0;
}

.header-redesign .header-catalog .has-children>a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.header-redesign .header-catalog .has-children>a:hover {
    background: #f8f7f2;
    border-color: #e4e4e7;
}

.header-redesign .header-catalog .has-children>a .category-name {
    font-size: 15px;
    font-weight: 700;
    color: #1d2330;
}

.header-redesign .header-catalog .has-children>a::before {
    display: none;
}

.header-redesign .header-catalog .sub-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    min-width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 12px !important;
    pointer-events: all !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.header-redesign .header-catalog .sub-menu li a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #585d69;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.header-redesign .header-catalog .sub-menu li a:hover {
    background: #fffdf5;
    color: #B8860B;
}

.header-redesign .header-search {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 30px;
}

.header-redesign .header-search .form-search {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: #f8f7f2;
    border: 1px solid #e4e4e7;
    border-radius: 50px;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.header-redesign .header-search .form-search:focus-within {
    background: #fff;
    border-color: #B8860B;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

/* Search Icon Inside */
.header-redesign .header-search .search-icon-inside {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

/* Input Field */
.header-redesign .header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 20px 14px 40px;
    font-size: 14px;
    color: #1d2330;
    outline: none;
}

header.header-redesign .header-search #txtSearch,
.tf-header.header-redesign .header-search input[type="text"] {
    padding-left: 40px;
}

.header-redesign .header-search input::placeholder {
    color: #999;
}

/* Arrow Button */
.header-redesign .header-search input {
    padding-right: 60px;
}

.header-redesign .header-search .button-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.header-redesign .header-search .button-submit button,
.header-redesign .header-search .button-submit a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1d2330;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-redesign .header-search .button-submit button[type="submit"],
.header-redesign .header-search .button-submit a[role="button"] {
    background: #1d2330;
}

.header-redesign .header-search .button-submit i {
    color: #fff;
    font-size: 16px;
}

/* Hover Effect on Search Button */
.header-redesign .header-search .button-submit a:hover {
    background: #B8860B;
    transform: translateY(-50%) scale(1.05);
}

.header-redesign .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-redesign .navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-redesign .navigation>li>a {
    font-size: 15px;
    font-weight: 600;
    color: #1d2330;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.header-redesign .navigation>li>a:hover {
    color: #B8860B;
}

@media (max-width: 991px) {
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
    }

    .header-redesign {
        border-bottom: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .highlight-item {
        display: none;
    }
}

/* =========================================
   HEADER SEARCH BOX BEAUTIFICATION
   Applied LAST to override all existing styles
   ========================================= */

/* Container Alignment */
#header_main .header-search {
    max-width: 600px;
    display: flex !important;
    align-items: center !important;
}

/* Form Container with Enhanced Visual Effects */
#header_main .header-search .form-search {
    position: relative;
    width: 100%;
    display: flex !important;
    align-items: center !important;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle glow effect on hover - Premium feel */
#header_main .header-search .form-search:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(228, 228, 231, 0.6);
    transform: translateY(-1px);
}

/* Enhanced glow on focus - Orange accent with animation */
#header_main .header-search .form-search:focus-within {
    box-shadow: 0 4px 20px rgba(246, 146, 30, 0.12), 0 0 0 2px rgba(246, 146, 30, 0.2);
    background: #FFFCF8;
    transform: translateY(-1px);
}

/* Field set Cleanup */
#header_main .header-search fieldset {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    width: 100%;
    border: none !important;
    padding: 0 !important;
}

/* Direct ID targeting for HIGHEST SPECIFICITY - Search Input Beautification */
#header_main #txtSearch {
    height: 48px !important;
    padding: 12px 45px 12px 20px !important;
    font-size: 15px !important;
    border: 1.5px solid #E4E4E7 !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Focus State - Enhanced with subtle animation */
#header_main #txtSearch:focus {
    outline: none !important;
    border-color: #F6921E !important;
    background-color: #FFFFFF !important;
}

/* Placeholder Styling with transition */
#header_main #txtSearch::placeholder {
    color: #A1A1AA !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
}

#header_main #txtSearch:focus::placeholder {
    color: #D4D4D8 !important;
}

/* Hide redundant search icon */
#header_main .header-search .search-icon-inside {
    display: none !important;
}

/* =========================================
   LOGO HOVER EFFECT
   ========================================= */

#site-logo .logo-link {
    display: inline-block;
    transition: all 0.3s ease;
}

#site-logo .logo-hover {
    transition: all 0.3s ease;
}

#site-logo .logo-link:hover .logo-hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* =========================================
   PROFESSIONAL TAB SECTION REDESIGN
   ========================================= */

/* Section Spacing Optimization */
.section-popular-courses {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.section-popular-courses .heading-section {
    margin-bottom: 32px !important;
}

/* Tab Container */
.section-popular-courses .widget-tabs {
    margin-top: 0;
}

/* Tab Menu Styling */
.section-popular-courses .widget-menu-tab {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 6px;
    background: #f8f8f8;
    border-radius: 50px;
    margin-bottom: 40px !important;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Tab */
.section-popular-courses .widget-menu-tab .item-title {
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #666 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    position: relative;
    white-space: nowrap;
}

/* Remove default underline */
.section-popular-courses .widget-menu-tab .item-title::after {
    display: none !important;
}

/* Active Tab */
.section-popular-courses .widget-menu-tab .item-title.active {
    background: linear-gradient(135deg, #B8860B 0%, #9A7009 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

/* Hover State */
.section-popular-courses .widget-menu-tab .item-title:hover {
    background: #ffffff !important;
    color: #B8860B !important;
}

/* Active Tab Hover */
.section-popular-courses .widget-menu-tab .item-title.active:hover {
    background: linear-gradient(135deg, #B8860B 0%, #9A7009 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35);
}

/* Tab Content */
.section-popular-courses .widget-content-tab {
    margin-top: 0 !important;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .section-popular-courses {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .section-popular-courses .heading-section {
        margin-bottom: 24px !important;
    }

    .section-popular-courses .widget-menu-tab {
        width: 100%;
        padding: 4px;
        gap: 6px;
        margin-bottom: 30px !important;
    }

    .section-popular-courses .widget-menu-tab .item-title {
        padding: 10px 20px !important;
        font-size: 14px !important;
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-popular-courses .widget-menu-tab {
        max-width: 100%;
    }
}

/* ==========================================================================
   20. AI-POWERED INTELLIGENCE SECTION (ENTERPRISE REDESIGN - STANDARD THEME)
   ========================================================================== */

/* --- Section Container (Light Standard Theme) --- */
/* --- Section Container (Hero Theme Match - Solid) --- */
.section-ai-counseling-enhanced.bg-5 {
    background-color: #fffdf5;
    /* Warm premium base from Hero */
    position: relative;
    overflow: hidden;
    color: var(--Primary);
    padding: 80px 0;
}

/* Ambient Glow Effects (Subtle for Light Theme) */
.section-ai-counseling-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.section-ai-counseling-enhanced::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.ai-counseling-content-wrapper {
    position: relative;
    z-index: 2;
}

/* --- Left Column: Typography & CTA --- */

/* AI Badge */
.ai-powered-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid rgba(184, 134, 11, 0.2);
    color: var(--Secondary);
    /* Gold */
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ai-powered-badge i {
    font-size: 16px;
}

/* Headings */
.ai-hero-heading {
    font-size: 42px;
    line-height: 1.2;
    color: var(--Primary);
    margin-bottom: 24px;
}

.ai-highlight-text {
    background: linear-gradient(90deg, #B8860B 0%, #d4a017 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.ai-highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #B8860B 0%, transparent 100%);
}

.ai-hero-subtext {
    color: var(--Soft-Text);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 540px;
}

/* Feature List */
.ai-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.ai-feature-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--Primary);
    font-size: 16px;
    font-weight: 500;
}

.ai-feature-icon {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--Secondary);
    /* Gold Accent */
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* [Removed unused ai-cta-btn styles] */

/* --- Right Column: Glassmorphism Report Card (Light) --- */
.ai-report-card-enhanced {
    background: rgba(255, 255, 255, 0.85);
    /* White Glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #ffffff;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    max-width: 500px;
    transform: perspective(1000px) rotateY(-2deg);
    transition: transform 0.5s ease;
}

.ai-report-card-enhanced:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Card Header */
.card-header-enhanced {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

/* AI Pulse Animation */
.ai-brain-icon {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    color: var(--Secondary);
    font-size: 24px;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.ai-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 2px solid rgba(184, 134, 11, 0.3);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 180%;
        height: 180%;
        opacity: 0;
    }
}

.header-text h4 {
    color: var(--Primary);
    font-weight: 700;
}

.header-text div {
    color: var(--Soft-Text) !important;
}

.header-text strong {
    color: var(--Primary);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #10b981;
    /* Success green */
    font-weight: 600;
}

.verified-badge i {
    animation: verify-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s forwards;
}

@keyframes verify-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Recommendation Banner */
.top-recommendation-banner {
    background: #FFF5E1;
    /* bg-4 (Light gold) */
    color: var(--Secondary);
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Program Info */
.program-recommendation {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.program-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--Primary);
    font-size: 20px;
}

.program-recommendation h3 {
    margin: 0;
    color: var(--Primary);
    font-weight: 700;
}

.program-recommendation p {
    color: var(--Soft-Text) !important;
}

/* Stats Grid */
.ai-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 24px 24px 24px;
}

.stat-block {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

.stat-block:hover {
    background: #f1f5f9;
}

.stat-icon-wrapper {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--Soft-Text);
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.career-match .stat-icon-wrapper {
    color: #db2777;
    /* Pink */
}

.salary .stat-icon-wrapper {
    color: #059669;
    /* Emerald */
}

.stat-content {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--Soft-Text);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--Primary);
}

/* Mini Progress Bar */
.progress-bar-mini {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--Secondary);
    /* Gold */
    border-radius: 2px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
    .ai-report-card-enhanced {
        margin: 40px auto 0 auto;
        transform: none;
    }

    .ai-report-card-enhanced:hover {
        transform: none;
    }

    .ai-hero-heading {
        font-size: 32px;
        text-align: center;
    }

    .ai-hero-subtext,
    .ai-powered-badge {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        text-align: center;
    }

    /* Keep feature list block centered, but align items left */
    .ai-feature-list {
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
        text-align: left;
    }

    .ai-feature-list li {
        justify-content: flex-start;
    }

    /* Target the standardized button within the AI section for mobile centering */
    .section-ai-counseling-enhanced .btn-theme-primary {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        width: fit-content;
    }


}

/* --- Z Fold / Ultra-Small Mobile Optimization (< 360px) --- */
@media (max-width: 360px) {
    .hero-title {
        font-size: 28px;
    }

    /* Compact Card content for narrow screens */
    .course-card-premium .card-content {
        padding: 15px;
    }

    .course-title {
        font-size: 14px;
        min-height: 40px;
    }

    .institute-meta {
        gap: 6px;
    }

    .institute-logo {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }

    .btn-enroll-small {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* --- Mobile Header Optimization --- */
@media (max-width: 991px) {

    /* Hide desktop search box on mobile */
    .header-search {
        display: none !important;
    }

    /* Hide categories dropdown on mobile */
    .header-catalog {
        display: none !important;
    }

    /* Three-column grid layout: Hamburger | Logo | Search */
    .header-inner-wrap {
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        align-items: center;
        gap: 10px;
    }

    /* Position hamburger on left */
    .mobile-nav-toggler {
        position: static;
        justify-self: start;
    }

    /* Center logo in middle column */
    .header-left {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-left: 0;
    }

    #site-logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #logo-header {
        height: 46px !important;
        width: auto;
        max-width: 220px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Logo hover effect */
    #logo-header:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }

    /* Style mobile search icon with circular background */
    .mobile-header-actions .header-text {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #B8860B 0%, #d4a017 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .mobile-header-actions .header-text:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
    }

    .mobile-header-actions .icon-search {
        color: #ffffff !important;
        font-size: 20px !important;
        font-weight: 400;
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
    }

    /* Position search icon on right */
    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .mobile-header-actions {
        display: flex !important;
    }
}

/* Fix for small screens (iPhone SE, Galaxy Fold) to prevent icon cutoff */
@media (max-width: 380px) {
    .header-inner-wrap {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .header-right {
        margin-right: -5px;
        /* Pull right slightly to maximize space */
    }
}

/* =========================================
   CATEGORIES DROPDOWN - VERTICAL FLY-OUT MENU
   ========================================= */

/* Categories Button - Beige Theme */
.header-redesign .header-catalog {
    position: relative;
    margin-right: 12px;
}

.header-redesign .header-catalog .header-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    padding: 12px 20px;
    background: #F5EFE0;
    border: 1px solid #E8DCC4;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.header-redesign .header-catalog .header-text:hover {
    background: #F0E8D5;
    border-color: #D4C5A8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-redesign .header-catalog .header-text .icon-arrow-bottom {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.header-redesign .header-catalog:hover .header-text .icon-arrow-bottom {
    transform: rotate(180deg);
}

/* Main Dropdown Container - Vertical List */
.header-redesign .header-catalog>ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 330px;
    /* Narrow vertical list */
    max-height: 400px;
    overflow-y: auto;
    background: #FFFCF5;
    border: 1px solid #E8DCC4;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 16px;
    display: none;
    z-index: 1000;
    list-style: none;
}

.header-redesign .header-catalog:hover>ul {
    display: block;
    /* Show as vertical list */
    animation: slideDown 0.3s ease;
}

/* Main Category Items - Full Width Vertical Stack with Enhanced Effects */
#header_main .header-catalog>ul>li.has-children {
    margin-bottom: 4px;
    position: relative;
    list-style: none;
    transition: all 0.2s ease;
}

#header_main .header-catalog>ul>li.has-children:hover {
    transform: translateX(2px);
}

#header_main .header-catalog>ul>li.has-children>a.item {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(246, 146, 30, 0);
}

/* First category special highlight */
#header_main .header-catalog>ul>li.has-children:first-child>a.item {
    color: #D4822E;
    background: #FFF8EF;
    box-shadow: 0 2px 8px rgba(212, 130, 46, 0.08);
}

#header_main .header-catalog>ul>li.has-children>a.item:hover {
    background: linear-gradient(135deg, #FFF8EF 0%, #FFFCF5 100%);
    box-shadow: 0 4px 12px rgba(246, 146, 30, 0.12);
    transform: translateX(3px);
}

/* Right arrow indicator for categories with submenus */
.header-redesign .header-catalog>ul>li.has-children>a.item::after {
    content: '›';
    font-size: 20px;
    color: #999;
    margin-left: auto;
}

/* Sub-menu Fly-out - Appears to the Right */
.header-redesign .header-catalog>ul>li.has-children .sub-menu {
    position: absolute;
    left: 100%;
    /* Position to the right of parent */
    top: 0;
    width: 330px;
    /* Same width as parent */
    background: #FFFCF5;
    border: 1px solid #E8DCC4;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 16px;
    margin-left: 8px;
    /* Small gap between parent and submenu */
    display: none;
    z-index: 1001;
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

/* Show submenu on parent hover */
.header-redesign .header-catalog>ul>li.has-children:hover .sub-menu {
    display: block;
    animation: slideIn 0.2s ease;
}

/* Subcategory Items */
.header-redesign .header-catalog>ul>li.has-children .sub-menu li {
    margin-bottom: 4px;
    list-style: none;
}

.header-redesign .header-catalog>ul>li.has-children .sub-menu li a.item {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #2C3E50;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-redesign .header-catalog>ul>li.has-children .sub-menu li a.item:hover {
    background: #F0F8FF;
    color: #1a5f7a;
}

/* Popular Badge - Star Icon Only (No Circle Background) */
#header_main .header-catalog .popular-badge {
    background: transparent;
    color: #FFD700;
    font-size: 0;
    /* Hide any text content */
    width: auto;
    height: auto;
    border-radius: 0;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Hover effect - subtle scale */
#header_main .header-catalog .popular-badge:hover {
    transform: scale(1.2);
}

/* Clean star icon with glow */
#header_main .header-catalog .popular-badge::before {
    content: '⭐';
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   MODERN FLYOUT REDESIGN - CARD STYLE
   ========================================= */

/* Enhanced Flyout Background with Gradient */
#header_main .header-catalog>ul>li.has-children .sub-menu {
    background: linear-gradient(135deg, #FFFCF5 0%, #FFFFFF 100%);
    border: 1.5px solid #E8DCC4;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 360px;
}

/* Individual Subcategory Items - Clean Text by Default */
#header_main .header-catalog .sub-menu li {
    margin-bottom: 4px;
}

#header_main .header-catalog .sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 10px;
    color: #4a4a4a;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: none;
}

/* Premium Hover Effects - Show Box on Hover Only */
#header_main .header-catalog .sub-menu li a:hover {
    background: #FFFFFF;
    border-color: #b8860b;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.12);
    color: #1a1a1a;
    font-weight: 600;
}

/* =========================================
   PROGRAMS MEGA MENU REDESIGN
   ========================================= */

/* Dropdown Container */
#header_main .navigation .mega-menu {
    background: linear-gradient(135deg, #FFFCF5 0%, #FFFFFF 100%);
    border: 1.5px solid #E8DCC4;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    min-width: 500px;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    /* Flex layout for columns */
    gap: 32px;
}

#header_main .navigation>li:hover .mega-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Column Structure */
#header_main .navigation .mega-menu>li.has-item-children {
    flex: 1;
}

/* Titles - Fixed Layout */
#header_main .navigation .mega-menu .title {
    font-size: 14px;
    font-weight: 700;
    color: #b8860b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E8DCC4;
    display: block;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Menu Items - Clean Text Default */
#header_main .navigation .mega-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    margin-bottom: 6px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 10px;
    color: #4a4a4a;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover Effect - Card Style */
#header_main .navigation .mega-menu li a:hover {
    background: #FFFFFF;
    border-color: #b8860b;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.12);
    color: #1a1a1a;
    font-weight: 600;
}

/* Popular Badge - Star Icon Style */
#header_main .navigation .mega-menu li a .popular-badge {
    font-size: 0;
    /* Hide text */
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
}

#header_main .navigation .mega-menu li a .popular-badge::before {
    content: '⭐';
    font-size: 14px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
    animation: subtle-pulse 2s ease-in-out infinite;
}

/* =========================================
   RESOURCES & STANDARD DROPDOWN REDESIGN
   ========================================= */

/* Dropdown Container - Standard Menus (Resources) */
#header_main .navigation>li>ul:not(.mega-menu) {
    background: linear-gradient(135deg, #FFFCF5 0%, #FFFFFF 100%);
    border: 1.5px solid #E8DCC4;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 280px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block;
    /* Ensure block display for transform to work */
}

#header_main .navigation>li:hover>ul:not(.mega-menu) {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: all;
}

/* Menu Items - Clean Text Default */
#header_main .navigation>li>ul:not(.mega-menu) li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    margin-bottom: 4px;
    background: transparent;
    border: 1.5px solid transparent;
    /* Reserve space for border */
    border-radius: 10px;
    color: #4a4a4a;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    height: auto;
    /* Override default fixed height */
    line-height: normal;
    /* Override default line-height */
}

/* Hover Effect - Card Style */
#header_main .navigation>li>ul:not(.mega-menu) li a:hover {
    background: #FFFFFF;
    border-color: #b8860b;
    /* Gold Border */
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.12);
    /* Gold Shadow */
    color: #1a1a1a;
    font-weight: 600;
}

/* Override default hover background from main styles */
#header_main .navigation>li>ul>li:not(.has-item-children):hover,
#header_main .navigation>li>ul:not(.mega-menu) li:hover {
    background-color: transparent !important;
}

/* =========================================
   SIGN IN BUTTON - CLEAN & PREMIUM (upGrad Style)
   ========================================= */

/* Header CTA Container */
#header_main .header-cta {
    margin-left: 16px;
}

/* AI Counsellor CTA - Compact Box with Icon */
#header_main .btn-career-cta {
    padding: 8px 18px;
    background: linear-gradient(135deg, #b8860b 0%, #9a6f09 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

#header_main .btn-career-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
    background: linear-gradient(135deg, #9a6f09 0%, #7d5907 100%);
    color: #ffffff;
}

#header_main .btn-career-cta i {
    font-size: 13px;
}

/* Header Auth Container */
#header_main .header-auth {
    margin-left: 12px;
    display: flex;
    align-items: center;
}

/* Account Button - Clean Icon Style (Compact Size) */
#header_main .btn-account {
    padding: 8px 16px;
    background: #FFFFFF;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 13px;
    border-radius: 50px;
    border: 1.5px solid #E4E4E7;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

#header_main .btn-account:hover {
    border-color: #F6921E;
    background: #FFF8F0;
    color: #F6921E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(246, 146, 30, 0.15);
}

#header_main .btn-account i {
    font-size: 14px;
}

/* Clean Navigation Items - Minimal Style */
.header-redesign .main-menu .navigation>li>a {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #1a1a1a;
    padding: 10px 16px;
    transition: color 0.25s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-redesign .main-menu .navigation>li>a:hover {
    color: #B8860B;
}

.header-redesign .main-menu .navigation>li.has-children>a::after {
    content: '\f107';
    /* Font Awesome down arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.25s ease;
}

.header-redesign .main-menu .navigation>li.has-children:hover>a::after {
    transform: rotate(180deg);
}

/* Resources Dropdown - Clean & Simple */
.header-redesign .main-menu .navigation>li>ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    display: none;
    z-index: 1000;
}

.header-redesign .main-menu .navigation>li:hover>ul {
    display: block;
}

.header-redesign .main-menu .navigation>li>ul li {
    list-style: none;
}

.header-redesign .main-menu .navigation>li>ul li a {
    display: block;
    padding: 10px 20px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-redesign .main-menu .navigation>li>ul li a:hover {
    background: #f9fafb;
    color: #B8860B;
    padding-left: 24px;
}

/* Hide on mobile */
@media (max-width: 991px) {
    .header-redesign .header-auth {
        display: none;
    }
}

/* =========================================
   OFFLINE TRAINING HIGHLIGHT
   ========================================= */

/* Desktop Navigation - Offline Training Highlight */
#header_main .main-menu .navigation>li.offline-training-highlight>a {
    color: #b8860b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#header_main .main-menu .navigation>li.offline-training-highlight>a i {
    font-size: 14px;
}

#header_main .main-menu .navigation>li.offline-training-highlight>a:hover {
    color: #9a6f09;
}

/* =================================================
   MOBILE SEARCH OFFCANVAS - REDESIGNED
   ================================================= */

.offcanvas-search-redesigned {
    height: auto;
    max-height: 60vh;
    background: #ffffff;
    border-bottom: 3px solid #B8860B;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1055;
}

.offcanvas-search-redesigned.show {
    background: #ffffff;
}

/* Add backdrop overlay */
.offcanvas-backdrop.show {
    opacity: 0.7;
    background-color: #000;
}

/* Custom Header */
.offcanvas-header-custom {
    padding: 20px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.search-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1d2330;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-heading .icon-search {
    font-size: 20px;
    background: linear-gradient(135deg, #B8860B 0%, #d4a017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-close-custom {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-close-custom:hover {
    background: #f5f5f5;
    border-color: #B8860B;
    transform: rotate(90deg);
}

.btn-close-custom i {
    font-size: 14px;
    color: #666;
}

/* Custom Body */
.offcanvas-body-custom {
    padding: 24px 0 32px;
}

/* Search Input Wrapper */
.search-input-wrapper {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-input-wrapper:focus-within {
    border-color: #B8860B;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.2);
}

.search-icon-left {
    padding: 16px 12px 16px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-right: 1px solid #e5e5e5;
}

.search-icon-left i {
    font-size: 20px;
    color: #999;
}

.search-fieldset {
    flex: 1;
    border: none;
    margin: 0;
    padding: 0;
}

.search-input-modern {
    width: 100%;
    height: 100%;
    border: none;
    padding: 16px 12px;
    font-size: 15px;
    color: #1d2330;
    background: transparent;
    outline: none;
}

.search-input-modern::placeholder {
    color: #999;
}

.search-btn-modern {
    padding: 14px 24px;
    background: linear-gradient(135deg, #B8860B 0%, #d4a017 100%);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn-modern:hover {
    background: linear-gradient(135deg, #9A7009 0%, #B8860B 100%);
    color: #ffffff;
    transform: translateX(-2px);
}

.search-btn-modern i {
    font-size: 18px;
}

/* Search Suggestions */
.search-suggestions {
    margin-top: 24px;
    padding: 16px;
    background: #fffdf5;
    border-radius: 12px;
}

.suggestions-title {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 14px;
    color: #1d2330;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-item:hover {
    background: linear-gradient(135deg, #B8860B 0%, #d4a017 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .search-heading {
        font-size: 16px;
    }

    .search-btn-modern span {
        display: none;
    }

    .search-btn-modern {
        padding: 14px 20px;
    }
}

/* =================================================
   MOBILE MENU ARROW FIX (PURE CSS VERSION)
   ================================================= */
/* Constrain list items to menu width */
#menu .mm-listitem {
    max-width: 100% !important;
    width: 92% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Targets all list items with submenus across all levels */
#menu .mm-listitem .mm-btn--next::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    right: 15px !important;
    /* Moved left to be visible inside menu */
    top: 50% !important;
    width: 10px !important;
    height: 10px !important;
    border-top: 2.5px solid #666 !important;
    /* Darker gray for better visibility */
    border-right: 2.5px solid #666 !important;
    transform: translateY(-50%) rotate(45deg) !important;
    background: none !important;
    font-size: 0 !important;
    /* Hides any broken font characters */
}

/* Ensure the parent has enough padding so text doesn't overlap arrow */
#menu .mm-listitem .mm-btn {
    padding-left: 30px !important;
    /* Left padding for text */
    padding-right: 45px !important;
    /* Right padding to accommodate arrow */
    position: relative !important;
    /* Required for absolute positioned ::after */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile Menu Close Button Fix - Override styles.css */
#menu>a.close {
    right: 31px !important;
    /* Moved inside menu boundary */
    top: 10px !important;
}

/* Ensure mmenu close button is also visible */
#menu .mm-navbar .mm-btn_close {
    right: 31px !important;
}

/* =================================================
   MOBILE MENU NAVBAR BEAUTIFICATION
   ================================================= */
#menu .mm-navbar {
    background: #FFFCF5 !important;
    /* Cream background matching desktop */
    border-bottom: 1px solid #E8DCC4 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    padding: 15px 20px !important;
    min-height: 60px !important;
}

/* Navbar Title Styling */
#menu .mm-navbar .mm-navbar__title {
    color: #4a4a4a !important;
    /* Darker gray for readability */
    font-size: 16px !important;
    font-weight: 500 !important;
    /* Normal weight */
    letter-spacing: 0.3px !important;
    text-transform: capitalize !important;
}

/* Back Button Styling */
#menu .mm-navbar .mm-btn_prev {
    color: #B8860B !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

#menu .mm-navbar .mm-btn_prev:hover {
    background: #FFF8EF !important;
}

/* =================================================
   MOBILE MENU PREMIUM CARD STYLE (MATCHING DESKTOP)
   ================================================= */
/* Set mobile menu background to white */
#menu .mm-panel {
    background: #ffffff !important;
}

#menu .mm-listview {
    background: #ffffff !important;
    padding: 20px !important;
    list-style: none !important;
}

#menu .mm-listitem {
    margin-bottom: 12px !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
}

/* Remove default mmenu selection bars and borders */
#menu .mm-listitem:before,
#menu .mm-listitem:after,
#menu .mm-listitem--selected:before,
#menu .mm-listitem--selected:after {
    display: none !important;
}

/* Card styling for all menu items */
#menu .mm-listitem__text,
#menu .mm-listitem__btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #1A1A1A !important;
    padding: 15px 20px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: 1px solid #f2f2f2 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Handle the arrow indicator for submenu items */
#menu .mm-btn--next:after {
    right: 20px !important;
    left: auto !important;
    border-color: #1A1A1A !important;
    width: 10px !important;
    height: 10px !important;
    margin-top: -5px !important;
}

/* Premium Hover & Selected State - Matches Desktop Categories */
#menu .mm-listitem__text:hover,
#menu .mm-listitem__btn:hover,
#menu .mm-listitem--selected>.mm-listitem__text,
#menu .mm-listitem--selected>.mm-listitem__btn {
    background: linear-gradient(135deg, #fff8ef 0%, #fffcf5 100%) !important;
    color: #b8860b !important;
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.15) !important;
    transform: translateX(6px) !important;
    border-color: #E8DCC4 !important;
}

/* Change arrow color on hover */
#menu .mm-listitem__text:hover:after,
#menu .mm-listitem__btn:hover:after,
#menu .mm-listitem--selected>.mm-listitem__text:after,
#menu .mm-listitem--selected>.mm-listitem__btn:after {
    border-color: #b8860b !important;
}

/* Navbar Title Premium Styling */
#menu .mm-navbar {
    height: 70px !important;
    background: #ffffff !important;
    border-bottom: 2px solid #F8F8F8 !important;
}

#menu .mm-navbar__title {
    color: #b8860b !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}



/* =================================================
   MOBILE HEADER LOGO SIZING
   ================================================= */
@media (max-width: 991px) {

    #site-logo,
    #site-logo img {
        max-width: 250px !important;
        width: 250px !important;
        height: 56px !important;
    }
}

/* =================================================
   DESKTOP PROGRAMS & RESOURCES - PREMIUM CARD STYLE
   ================================================= */
/* Programs Mega Menu & Resources Dropdown Items */
#header_main .navigation>li>ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    margin-bottom: 6px !important;
    background: transparent !important;
    border: 1.5px solid transparent !important;
    border-radius: 10px !important;
    color: #4a4a4a !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* Premium Hover Effect - Match Categories */
#header_main .navigation>li>ul li a:hover {
    background: #FFFFFF !important;
    border-color: #b8860b !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.12) !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
}


/* Apply Categories has-children styling to Programs & Resources parent items */
#header_main .navigation>li.has-children>ul>li.has-children>a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    background: transparent !important;
    border: 1.5px solid transparent !important;
    border-radius: 10px !important;
    color: #4a4a4a !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* Hover effect for has-children items in Programs & Resources */
#header_main .navigation>li.has-children>ul>li.has-children>a:hover {
    background: #FFFFFF !important;
    border-color: #b8860b !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.12) !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

/* Submenu styling for Programs & Resources has-children items */
#header_main .navigation>li.has-children>ul>li.has-children>ul {
    background: linear-gradient(135deg, #FFFCF5 0%, #FFFFFF 100%) !important;
    border: 1.5px solid #E8DCC4 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 16px !important;
}


/* First item special highlight for Programs & Resources dropdowns */
#header_main .navigation>li>ul>li:first-child>a {
    color: #D4822E !important;
    background: #FFF8EF !important;
    box-shadow: 0 2px 8px rgba(212, 130, 46, 0.08) !important;
}

#header_main .navigation>li>ul>li:first-child>a:hover {
    background: linear-gradient(135deg, #FFF8EF 0%, #FFFCF5 100%) !important;
    box-shadow: 0 4px 12px rgba(246, 146, 30, 0.12) !important;
    transform: translateX(3px) !important;
}


/* =================================================
   DESKTOP MENU RESPONSIVE OPTIMIZATION
   ================================================= */
/* Ensure dropdowns don't overflow viewport on smaller screens */
@media (max-width: 1440px) {

    #header_main .header-catalog>ul,
    #header_main .navigation .mega-menu,
    #header_main .navigation>li>ul {
        max-width: 90vw !important;
    }

    #header_main .header-catalog>ul>li.has-children .sub-menu {
        width: 320px !important;
        max-width: 85vw !important;
    }
}

@media (max-width: 1200px) {

    /* Adjust dropdown widths for medium screens */
    #header_main .header-catalog>ul {
        width: 300px !important;
    }

    #header_main .navigation .mega-menu {
        min-width: 450px !important;
        max-width: 85vw !important;
    }

    /* DISABLED: Conflicts with Programs & Resources centering */
    /* #header_main .navigation>li>ul {
        left: auto !important;
        right: 0 !important;
    } */
}

/* Fix dropdown positioning for edge cases */
#header_main .header-catalog>ul,
#header_main .navigation>li>ul {
    position: absolute !important;
    z-index: 9999 !important;
}

/* Ensure flyout menus stay within viewport */
#header_main .header-catalog>ul>li.has-children {
    position: relative !important;
}

#header_main .header-catalog>ul>li.has-children .sub-menu {
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
}

/* Auto-adjust if flyout would go off-screen (right edge) */
@media (max-width: 1600px) {
    #header_main .header-catalog>ul>li.has-children .sub-menu {
        left: 100% !important;
        right: auto !important;
        margin-left: 5px !important;
    }
}

/* Cross-browser compatibility */
#header_main .navigation .mega-menu,
#header_main .navigation>li>ul,
#header_main .header-catalog>ul {
    -webkit-transform: translateY(10px) !important;
    -moz-transform: translateY(10px) !important;
    -ms-transform: translateY(10px) !important;
    transform: translateY(10px) !important;
}

#header_main .navigation>li:hover>.mega-menu,
#header_main .navigation>li:hover>ul,
#header_main .header-catalog:hover>ul {
    -webkit-transform: translateY(0) !important;
    -moz-transform: translateY(0) !important;
    -ms-transform: translateY(0) !important;
    transform: translateY(0) !important;
}

/* Smooth scrolling for long dropdown menus */
#header_main .header-catalog>ul,
#header_main .navigation>li>ul {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Custom scrollbar for dropdowns (webkit browsers) */
#header_main .header-catalog>ul::-webkit-scrollbar,
#header_main .navigation>li>ul::-webkit-scrollbar {
    width: 6px !important;
}

#header_main .header-catalog>ul::-webkit-scrollbar-track,
#header_main .navigation>li>ul::-webkit-scrollbar-track {
    background: #f5f5f5 !important;
    border-radius: 10px !important;
}

#header_main .header-catalog>ul::-webkit-scrollbar-thumb,
#header_main .navigation>li>ul::-webkit-scrollbar-thumb {
    background: #E8DCC4 !important;
    border-radius: 10px !important;
}

#header_main .header-catalog>ul::-webkit-scrollbar-thumb:hover,
#header_main .navigation>li>ul::-webkit-scrollbar-thumb:hover {
    background: #b8860b !important;
}


/* Fix Offline Training text wrapping on medium desktop screens */
#header_main .navigation>li>a {
    white-space: nowrap !important;
}

/* Optimize Desktop Header for screens 1000px to 1220px */
@media screen and (max-width: 1220px) and (min-width: 1000px) {

    /* Reduce horizontal spacing between nav items */
    #header_main .navigation>li {
        padding-right: 8px !important;
    }

    /* Slightly smaller font for navigation links */
    #header_main .navigation>li>a {
        font-size: 14px !important;
    }

    /* Compact CTA Buttons (AI Counsellor & Account) */
    #header_main .btn-career-cta,
    #header_main .btn-account {
        padding: 8px 12px !important;
        font-size: 13px !important;
        height: auto !important;
        min-height: unset !important;
    }

    /* Scale down logo slightly */
    #header_main .logo-link img {
        max-width: 120px !important;
    }

    /* Narrow search bar to reclaim space */
    #header_main #txtSearch {
        width: 130px !important;
    }
}

/* =================================================
   CATEGORIES SUB-MENU FIX
   ================================================= */

/* 1. Remove overflow restriction to allow sub-menus to fly out to the right */
#header_main .header-catalog>ul {
    overflow: visible !important;
}

/* 2. Ensure sub-menus are visible on hover of parent item */
#header_main .header-catalog ul li.has-children:hover>.sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateX(0px) translateY(0px) !important;
}

/* 3. Standardize sub-menu positioning and ensure it stays above other content */
#header_main .header-catalog ul li.has-children .sub-menu {
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    margin-left: 5px !important;
    /* Small gap to prevent overlap */
    min-width: 330px !important;
    z-index: 10001 !important;
    transition: all 0.3s ease !important;
}

/* 4. Fix for cases where sub-menus might be defaults to hidden */
#header_main .header-catalog ul .sub-menu {
    display: none;
    /* Hidden by default */
}


/* =================================================
   MOBILE MENU (MMENU) OPTIMIZATION & ARROW FIX
   ================================================= */

/* 1. Standardize Next Arrow (Chevron >) Visibility & Position */
#menu .mm-listitem .mm-btn--next::after,
#menu .mm-btn--next::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    right: 22px !important;
    /* Balanced distance from edge */
    top: 50% !important;
    transform: translateY(-50%) rotate(45deg) !important;
    width: 10px !important;
    height: 10px !important;
    border-top: 2.2px solid #555 !important;
    /* Consistent thickness and contrast */
    border-right: 2.2px solid #555 !important;
    border-bottom: none !important;
    border-left: none !important;
    margin-top: 0 !important;
    /* Crucial: Remove conflicting old-style offset */
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 5 !important;
    transition: all 0.2s ease !important;
}

/* 2. Prevent Arrows from being clipped by containers */
#menu .mm-listitem__btn,
#menu .mm-btn--next,
#menu .mm-listitem,
#menu .mm-listitem__text {
    overflow: visible !important;
}

/* 3. Optimize Text Spacing for Mobile */
#menu .mm-listitem__text {
    padding-right: 60px !important;
    /* Prevents text from overlapping the arrow */
    font-size: 15.5px !important;
    font-weight: 500 !important;
    color: #333 !important;
}

/* 4. Smooth Hover State for Chevrons */
#menu .mm-listitem:hover .mm-btn--next::after {
    border-color: #D4822E !important;
    /* Changes to Gold/Orange on hover */
    right: 19px !important;
    /* Subtle interactive movement */
}

/* 5. Mobile Popular Badge - Star Icon (Match Desktop) */
#menu .popular-badge {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 8px !important;
    font-size: 0 !important;
    /* Hide the 'Popular' text */
    box-shadow: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Show star icon using ::before pseudo-element */
#menu .popular-badge::before {
    content: '⭐' !important;
    font-size: 16px !important;
    color: #FFD700 !important;
    /* Gold/yellow color */
    display: inline-block !important;
    vertical-align: middle !important;
}

/* 6. Tablet/Large Mobile Compatibility (Surface Pro 7 Fix) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #menu.mm-menu--offcanvas {
        width: 360px !important;
        /* Wider menu for better readability on tablets */
    }

    #menu .mm-listitem__text {
        font-size: 16.5px !important;
        /* Slightly larger text for tablet screens */
    }
}




/* =================================================
   MOBILE MENU FLYOUT DIRECTION FIX
   ================================================= */

/* Ensure mobile menu sub-levels don't have direction issues */
#menu .mm-listitem.has-children>.mm-panel,
#menu .mm-panel .mm-listview {
    /* Mobile menu uses panels, not flyouts, but ensure no conflicts */
    position: relative !important;
}


/* Center Programs & Resources dropdowns below their parent menu items - HIGH SPECIFICITY */
@media (min-width: 992px) {
    #header_main .navigation>li.has-children>ul:not(.sub-menu) {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        top: 100% !important;
        margin-top: 0px !important;
    }

    /* Ensure Programs mega-menu stays centered */
    #header_main .navigation>li>.mega-menu {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        top: 100% !important;
    }
}

/* Apply Categories-style premium design to Programs & Resources dropdown items */
#header_main .navigation>li.has-children>ul>li>a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    margin-bottom: 6px !important;
    background: transparent !important;
    border: 1.5px solid transparent !important;
    border-radius: 10px !important;
    color: #4a4a4a !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* Premium Hover Effect - Match Categories */
#header_main .navigation>li.has-children>ul>li>a:hover {
    background: #FFFFFF !important;
    border-color: #b8860b !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.12) !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

/* First item special highlight - Match Categories first item (Engineering & Technology) */
#header_main .navigation>li.has-children>ul>li:first-child>a {
    color: #D4822E !important;
    background: #FFF8EF !important;
    box-shadow: 0 2px 8px rgba(212, 130, 46, 0.08) !important;
    font-weight: 600 !important;
}

#header_main .navigation>li.has-children>ul>li:first-child>a:hover {
    background: linear-gradient(135deg, #FFF8EF 0%, #FFFCF5 100%) !important;
    box-shadow: 0 4px 12px rgba(246, 146, 30, 0.12) !important;
    transform: translateX(3px) !important;
}

/* =================================================
   CATEGORIES FLYOUT HOVER BRIDGE FIX
   ================================================= */

/* Fix hover glitch when moving cursor from parent to flyout submenu
   The 5px margin-left creates a gap that breaks the hover state.
   This invisible bridge covers the gap so hover is maintained. */
#header_main .header-catalog ul li.has-children .sub-menu::before {
    content: '' !important;
    position: absolute !important;
    left: -15px !important;
    /* Covers the 5px gap + 10px safety overlap */
    top: 0 !important;
    width: 15px !important;
    height: 100% !important;
    background: transparent !important;
    z-index: 10002 !important;
    display: block !important;
    pointer-events: auto !important;
}


/* =================================================
   MOBILE MENU POPULAR BADGE STAR ICON
   ================================================= */

/* Replace 'Popular' text with star icon in mobile menu - Match desktop */
#menu .popular-badge {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 8px !important;
    font-size: 0 !important;
    /* Hide the 'Popular' text */
    box-shadow: none !important;
}

/* Show star icon using ::before pseudo-element */
#menu .popular-badge::before {
    content: '' !important;
    font-size: 16px !important;
    color: #FFD700 !important;
    /* Gold/yellow color */
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Desktop Programs mega-menu popular badges - keep star styling */
.mega-menu .popular-badge {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 6px !important;
    font-size: 0 !important;
    box-shadow: none !important;
}

.mega-menu .popular-badge::before {
    content: '' !important;
    font-size: 14px !important;
    color: #FFD700 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* =================================================
   MODERN MOBILE BOTTOM NAVIGATION MENU
   ================================================= */

@media (max-width: 767px) {

    /* Floating glassmorphic container - FIXED FOR NARROW SCREENS */
    .bottom_menu {
        position: fixed !important;
        bottom: 0 !important;

        /* FIX: Use left/right instead of width+margin to prevent overflow */
        left: 12px !important;
        right: 12px !important;
        width: auto !important;

        /* Glassmorphism */
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;

        /* Floating pill shape */
        margin: 0 0 12px 0 !important;
        border-radius: 30px !important;

        /* Premium elevation */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12),
            0 2px 8px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.8) !important;

        /* Improved padding */
        padding: 8px 8px !important;
        /* Reduced from 12px for narrow screens */
        padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;

        display: inline-flex !important;
        z-index: 1111 !important;
    }

    /* Navigation list */
    .bottom_menu ul {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
    }

    /* Navigation items */
    .bottom_menu ul li {
        display: flex !important;
        flex: 1 1 0 !important;
        /* Equal width distribution */
        position: relative !important;
        min-width: 0 !important;
        /* Allow flex shrinking below content size */
    }

    /* Remove the divider after first item */
    .bottom_menu ul li:nth-of-type(1)::after {
        display: none !important;
    }

    /* Link styling */
    .bottom_menu ul li a {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px 8px !important;
        border-radius: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        /* Prevent overflow */
        text-decoration: none !important;
        position: relative !important;
        box-sizing: border-box !important;
        /* Include padding in width */

        /* Smooth transitions */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Icon styling */
    .bottom_menu ul li svg,
    .bottom_menu ul li i {
        width: 22px !important;
        height: 22px !important;
        font-size: 22px !important;
        color: #4a4a4a !important;
        margin-bottom: 4px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Text label styling */
    .bottom_menu ul li span {
        color: #4a4a4a !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        text-align: center !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Active state - Sliding pill background */
    .bottom_menu ul li.active a {
        background: linear-gradient(135deg, #FFF8EF 0%, #FFFCF5 100%) !important;
        box-shadow: 0 4px 12px rgba(212, 130, 46, 0.15) !important;
        transform: translateY(-2px) !important;
    }

    /* Active icon */
    .bottom_menu ul li.active a svg,
    .bottom_menu ul li.active a i {
        color: #D4822E !important;
        font-size: 24px !important;
        width: 24px !important;
        height: 24px !important;
    }

    .bottom_menu ul li.active a svg path {
        fill: #D4822E !important;
    }

    /* Active text */
    .bottom_menu ul li.active a span {
        color: #D4822E !important;
        font-weight: 700 !important;
    }

    /* Tap feedback */
    .bottom_menu ul li a:active {
        transform: scale(0.95) !important;
        transition-duration: 0.1s !important;
    }

    /* Hover state (for larger touch devices) */
    @media (hover: hover) {
        .bottom_menu ul li a:hover:not(.active a) {
            background: rgba(212, 130, 46, 0.05) !important;
        }

        .bottom_menu ul li a:hover svg,
        .bottom_menu ul li a:hover i {
            transform: scale(1.1) !important;
        }
    }

    /* Adjust scroll-to-top button position */
    .progress-wrap {
        bottom: 80px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .bottom_menu {
        margin: 0 20px 20px !important;
        padding: 10px 16px !important;
    }

    .bottom_menu ul li a {
        padding: 14px 10px !important;
    }

    .bottom_menu ul li svg,
    .bottom_menu ul li i {
        width: 24px !important;
        height: 24px !important;
        font-size: 24px !important;
    }

    .bottom_menu ul li span {
        font-size: 12px !important;
    }
}

/* =================================================
   MOBILE MENU PANEL RESPONSIVE FIX
   ================================================= */

/* Fix mobile menu width for narrow screens (Galaxy Z Fold, etc.) */
/* Fix mobile menu width for narrow screens (Galaxy Z Fold, etc.) */
@media (max-width: 767px) {
    #menu.mm-menu--offcanvas {
        width: min(85%, 360px) !important;
        /* Responsive percentage with max cap */
        max-width: 90vw !important;
        /* Never exceed 90% of viewport width */
    }

    /* Ensure close button stays visible within narrower panels */
    #menu .mm-navbar .mm-btn_close {
        right: 15px !important;
        top: 15px !important;
    }

    /* Ensure arrows stay visible and correctly positioned */
    #menu .mm-btn--next::after,
    #menu .mm-listitem.has-children>span::after,
    #menu .mm-listitem.has-children>a::after {
        right: 15px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Even more responsive on very narrow screens */


.bottom_menu {
    left: 8px !important;
    right: 8px !important;
    border-radius: 25px !important;
    /* Slightly less rounded on tiny screens */
    max-width: calc(100vw - 16px) !important;
    /* Prevent any overflow */
}

.bottom_menu ul li a {
    padding: 10px 4px !important;
    /* Even tighter on narrow screens */
}

.bottom_menu ul li svg,
.bottom_menu ul li i {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
}

.bottom_menu ul li span {
    font-size: 10px !important;
}


/* Ultra narrow devices (Galaxy Fold folded, small feature phones) */
@media (max-width: 320px) {
    .bottom_menu {
        left: 6px !important;
        right: 6px !important;
        padding: 6px 6px !important;
        border-radius: 20px !important;
    }

    .bottom_menu ul li a {
        padding: 8px 4px !important;
    }

    .bottom_menu ul li svg,
    .bottom_menu ul li i {
        width: 18px !important;
        height: 18px !important;
        font-size: 18px !important;
        margin-bottom: 2px !important;
    }

    .bottom_menu ul li span {
        font-size: 9px !important;
    }
}

/* Extreme narrow - 280px and below */
@media (max-width: 280px) {
    .bottom_menu {
        left: 4px !important;
        right: 4px !important;
        padding: 4px 4px !important;
    }

    .bottom_menu ul li a {
        padding: 6px 2px !important;
    }

    .bottom_menu ul li svg,
    .bottom_menu ul li i {
        width: 16px !important;
        height: 16px !important;
        font-size: 16px !important;
    }

    .bottom_menu ul li span {
        font-size: 8px !important;
    }
}


/* =================================================
   HIDE FOOTER ON MOBILE (KEEP ONLY COPYRIGHT)
   ================================================= */

@media (max-width: 767px) {

    /* Hide footer body (all links, logo, etc.) */
    .footer-body {
        display: none !important;
    }

    /* Keep copyright section visible */
    .footer-bottom {
        display: block !important;
    }

    /* Adjust footer bottom spacing */
    #footer {
        padding-top: 0 !important;
    }

    .footer-bottom {
        padding: 20px 0 !important;
        border-top: 1px solid #f0f0f0 !important;
    }

    /* Adjust copyright text for mobile */
    .footer-bottom-wrap p {
        font-size: 12px !important;
        line-height: 1.6 !important;
        text-align: center !important;
        padding: 0 20px !important;
    }
}