/* Styles for resources/views/web/home.blade.php (moved from inline <style>) */
.hero-clickable-image {
    display: block;
    transition: all 0.3s ease;
}
.hero-clickable-image:hover {
    transform: translateY(-8px) scale(1.02);
}
.hero-clickable-image:hover img {
    box-shadow: 0 25px 50px -12px rgba(117, 65, 143, 0.3) !important;
}
.empowerment-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}
.empowerment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(117, 65, 143, 0.08) !important;
}
.empowerment-card:hover .icon-container {
    transform: scale(1.1);
}
.empowerment-card:hover .program-name {
    color: #75418F !important;
}
.empowerment-card:hover .see-more-btn .arrow-icon {
    transform: translateX(6px);
}
[dir="rtl"] .empowerment-card:hover .see-more-btn .arrow-icon {
    transform: translateX(-6px);
}

    /* National Directory: Primary Sector & Secondary Subcategory Filters */
    .sector-tabs-wrapper {
        position: relative;
        padding: 0 45px;
    }
    @media (max-width: 767px) {
        .sector-tabs-wrapper {
            padding: 0;
        }
    }
    .sector-scroll-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        color: #475569;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        cursor: pointer;
        z-index: 5;
        transition: all 0.25s ease;
    }
    .sector-scroll-arrow:hover {
        background: #75418F;
        color: #ffffff;
        border-color: #75418F;
        box-shadow: 0 6px 16px rgba(117, 65, 143, 0.25);
    }
    .sector-scroll-start {
        inset-inline-start: 0;
    }
    .sector-scroll-end {
        inset-inline-end: 0;
    }
    .sector-pills-nav {
        display: flex;
        align-items: center;
        gap: 10px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 6px 2px;
    }
    .sector-pills-nav::-webkit-scrollbar {
        display: none;
    }
    .sector-nav-pill {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 9px 18px;
        border-radius: 50px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        color: #334155;
        font-size: 0.93rem;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    }
    .sector-nav-pill:hover {
        border-color: #75418F;
        color: #75418F;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(117, 65, 143, 0.12);
    }
    .sector-nav-pill .pill-icon-box {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        background: rgba(117, 65, 143, 0.08);
        color: #75418F;
        transition: all 0.25s ease;
    }
    .sector-nav-pill.active {
        background: linear-gradient(135deg, #75418F 0%, #9333ea 100%) !important;
        color: #ffffff !important;
        border-color: transparent !important;
        box-shadow: 0 8px 20px rgba(117, 65, 143, 0.32) !important;
        transform: translateY(-2px);
    }
    .sector-nav-pill.active .pill-icon-box {
        background: rgba(255, 255, 255, 0.22) !important;
        color: #ffffff !important;
    }

    /* Mobile Sector Dropdown Styling */
    .mobile-select-card {
        border: 1px solid rgba(117, 65, 143, 0.15) !important;
        background: #ffffff;
    }
    .sector-mobile-select {
        height: 50px;
        padding: 10px 18px;
        border-radius: 14px;
        border: 1.5px solid rgba(117, 65, 143, 0.25);
        background-color: #fcfbfe;
        font-weight: 700;
        font-size: 0.98rem;
        color: #1e293b;
        cursor: pointer;
        transition: all 0.25s ease;
    }
    .sector-mobile-select:focus {
        border-color: #75418F;
        background-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(117, 65, 143, 0.12);
        outline: none;
    }

    /* Secondary Filter Box */
    .subcategories-filter-box {
        border: 1px solid rgba(117, 65, 143, 0.12) !important;
        background: #ffffff;
        box-shadow: 0 8px 30px rgba(117, 65, 143, 0.04) !important;
        border-radius: 20px;
    }
    .sub-pill-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 16px;
        border-radius: 30px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #475569;
        font-size: 0.88rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .sub-pill-btn:hover {
        background: #faf5ff;
        color: #75418F;
        border-color: #c084fc;
        transform: translateY(-1px);
    }
    .sub-pill-btn.active {
        background: #75418F !important;
        color: #ffffff !important;
        border-color: #75418F !important;
        box-shadow: 0 4px 14px rgba(117, 65, 143, 0.25) !important;
    }
    .btn-outline-purple {
        color: #75418F !important;
        border: 1.5px solid #75418F !important;
        background: transparent !important;
        transition: all 0.25s ease;
    }
    .btn-outline-purple:hover {
        background: #75418F !important;
        color: #ffffff !important;
        box-shadow: 0 6px 18px rgba(117, 65, 143, 0.25);
    }

    /* Subcategory Cards transition */
    .subcategory-card-item {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .subcategory-card-item.filter-fade-in {
        animation: subcardFadeIn 0.35s ease forwards;
    }
    @keyframes subcardFadeIn {
        from {
            opacity: 0;
            transform: translateY(12px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* CSS Variables & Utilities */
    :root {
        --premium-primary: #6366f1;
        --premium-primary-hover: #4f46e5;
        --premium-secondary: #ec4899;
        --premium-dark: #0f172a;
        --premium-light: #f8fafc;
        --premium-border: #e2e8f0;
    }
    
    /* Premium Service Cards floating grid */
    .premium-service-card {
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border: 1px solid rgba(117, 65, 143, 0.08) !important;
        position: relative;
        overflow: hidden;
    }
    .premium-service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(117, 65, 143, 0.12) !important;
        border-color: rgba(117, 65, 143, 0.25) !important;
    }
    .premium-service-card .card-icon {
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .premium-service-card:hover .card-icon {
        transform: scale(1.1) rotate(5deg);
        background-color: rgba(117, 65, 143, 0.15) !important;
    }
    
    .section-space { padding: 90px 0; }
    .secondary-bg { background-color: var(--premium-light); }
    .z-index-2 { z-index: 2; }
    
    /* Buttons */
    .btn-premium-primary { background: linear-gradient(135deg, var(--premium-primary) 0%, var(--premium-primary-hover) 100%); color: white; border: none; transition: all 0.3s ease; }
    .btn-premium-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2); color: white; }
    .btn-premium-outline { background: transparent; color: var(--premium-primary); border: 2px solid var(--premium-primary); transition: all 0.3s ease; }
    .btn-premium-outline:hover { background: var(--premium-primary); color: white; transform: translateY(-2px); }
    .btn-premium-outline.border-white:hover { background: white; color: var(--premium-primary) !important; }
    .btn-premium-secondary { background: #75418F; color: white; border: 2px solid #ffffff; transition: all 0.3s ease; }
    .btn-premium-secondary:hover { background: #5F3477; color: white; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(117, 65, 143, 0.2); }

    /* Section Headers */
    .sub-title { color: var(--premium-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; margin-bottom: 10px; display: block; }
    .main-title { font-size: 2.5rem; font-weight: 800; color: var(--premium-dark); margin-bottom: 20px; }
    .section-desc { color: #64748b; max-width: 600px; line-height: 1.7; font-size: 1.1rem; }

    /* 1. Hero Section */
    .home-hero-premium {
        padding: 110px 0 90px;
        background-color: #75418F;
        color: white;
        position: relative;
        overflow: hidden;
    }
    .hero-badge { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 20px; display: inline-block; color: #ffffff; }
    .hero-title { font-size: 3rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .hero-description { font-size: 1.15rem; color: #ffffff !important; line-height: 1.8; opacity: 0.98; }
    .hero-buttons .btn { padding: 12px 24px; border-radius: 50px; font-weight: 600; }
    
    .hero-shapes .shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; z-index: 1; }
    .shape-1 { width: 400px; height: 400px; background: var(--premium-primary); top: -100px; left: -100px; }
    .shape-2 { width: 300px; height: 300px; background: var(--premium-secondary); bottom: -100px; right: 0; }
    .shape-3 { width: 200px; height: 200px; background: #3b82f6; top: 20%; left: 40%; }
    
    .hero-image-wrapper { position: relative; z-index: 2; }
    .floating-badge { position: absolute; background: white; padding: 15px 20px; border-radius: 16px; display: flex; align-items: center; gap: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); color: var(--premium-dark); }
    .floating-badge i { font-size: 24px; padding: 12px; background: var(--premium-light); border-radius: 12px; }
    .floating-badge strong { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1; margin-bottom: 5px; }
    .floating-badge span { font-size: 0.85rem; color: #64748b; font-weight: 500; }
    .badge-1 { bottom: 10%; left: -30px; }
    .badge-2 { top: 15%; right: -20px; }
    
    .animate-float { animation: float 6s ease-in-out infinite; }
    .animate-float-delayed { animation: float 6s ease-in-out infinite 3s; }
    @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

    /* 2. New Premium Sectors Layout Styling */
    .sector-block-wrapper {
        border-bottom: 1px dashed var(--premium-border);
    }
    .sector-block-wrapper:last-child {
        border-bottom: none;
    }
    .sector-block-header {
        margin-top: 15px;
    }
    .sector-block-title {
        font-size: 1.6rem;
        font-weight: 800;
        color: var(--premium-dark);
        letter-spacing: -0.5px;
    }
    .sector-header-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        flex-shrink: 0;
    }
    .sector-see-more {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--premium-primary);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
    }
    .sector-see-more:hover {
        color: var(--premium-primary-hover);
    }
    .sector-see-more .arrow-icon {
        font-size: 1.1rem;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .sector-see-more:hover .arrow-icon {
        transform: translateX(4px);
    }
    html[dir="rtl"] .sector-see-more:hover .arrow-icon {
        transform: translateX(-4px);
    }

    /* 2.5 Original Career Paths Cards Style (.sector-card) */
    .sector-card { 
        background: white; 
        border: 1px solid var(--premium-border); 
        border-radius: 24px; 
        padding: 30px 24px; 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
        align-items: center;
        text-align: center; 
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.015);
    }
    .sector-card:hover { 
        transform: translateY(-8px); 
        box-shadow: 0 20px 40px rgba(99, 102, 241, 0.08); 
        border-color: var(--premium-primary); 
    }
    .sector-card .icon-box { 
        width: 70px; 
        height: 70px; 
        border-radius: 20px; 
        margin: 0 auto 20px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-size: 32px; 
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    }
    .sector-card:hover .icon-box { 
        transform: scale(1.1) rotate(5deg); 
    }
    .sector-card h3 { 
        font-size: 1.15rem; 
        font-weight: 700; 
        color: var(--premium-dark); 
        margin-bottom: 8px; 
        transition: color 0.3s ease;
    }
    .sector-card:hover h3 {
        color: var(--premium-primary);
    }
    .sector-card span.program-count { 
        color: #64748b; 
        font-size: 0.9rem; 
        font-weight: 500;
        background-color: var(--premium-light);
        padding: 4px 12px;
        border-radius: 50px;
        display: inline-block;
        margin-bottom: 15px;
        transition: all 0.3s ease;
    }
    .sector-card:hover span.program-count {
        background-color: rgba(99, 102, 241, 0.08);
        color: var(--premium-primary);
    }
    .sector-card .sector-action {
        margin-top: auto;
        padding-top: 15px;
        width: 100%;
        border-top: 1px dashed var(--premium-border);
    }
    .sector-card:hover .sector-action {
        border-top-color: rgba(99, 102, 241, 0.2);
    }
    .sector-card .action-btn {
        color: var(--premium-primary);
        font-size: 0.9rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
        opacity: 0.85;
    }
    .sector-card:hover .action-btn {
        opacity: 1;
        color: var(--premium-primary-hover);
    }
    .sector-card .arrow-icon {
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        font-size: 1.1rem;
    }
    .sector-card:hover .arrow-icon {
        transform: translateX(5px);
    }
    /* Direction-aware translation for Arabic (RTL) layout */
    html[dir="rtl"] .sector-card:hover .arrow-icon,
    body[dir="rtl"] .sector-card:hover .arrow-icon {
        transform: translateX(-5px);
    }

    /* Subcategory Premium Card */
    .subcategory-premium-card {
        background: white;
        border: 1px solid var(--premium-border);
        border-radius: 20px;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.015);
        overflow: hidden;
    }
    .subcategory-premium-card:hover {
        transform: translateY(-6px);
        border-color: var(--sector-color, var(--premium-primary));
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04), 0 4px 15px rgba(0, 0, 0, 0.01);
    }
    .subcategory-premium-card .icon-circle {
        width: 55px;
        height: 55px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .subcategory-premium-card:hover .icon-circle {
        transform: scale(1.1) rotate(5deg);
    }
    .subcategory-premium-card .subcategory-title {
        font-size: 1.05rem;
        font-weight: 750;
        color: var(--premium-dark);
        line-height: 1.4;
        margin-bottom: 0;
        transition: color 0.3s ease;
    }
    .subcategory-premium-card:hover .subcategory-title {
        color: var(--sector-color, var(--premium-primary));
    }
    .subcategory-premium-card .card-footer-action {
        background-color: #fafafa !important;
        transition: background-color 0.3s ease;
    }
    .subcategory-premium-card:hover .card-footer-action {
        background-color: #f7f7f7 !important;
    }
    .subcategory-premium-card .action-text {
        color: #64748b;
        font-size: 0.88rem;
        font-weight: 700;
        transition: color 0.3s ease;
    }
    .subcategory-premium-card:hover .action-text {
        color: var(--sector-color, var(--premium-primary));
    }
    .subcategory-premium-card .arrow-icon {
        font-size: 1.05rem;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .subcategory-premium-card:hover .arrow-icon {
        transform: translateX(4px);
    }
    html[dir="rtl"] .subcategory-premium-card:hover .arrow-icon {
        transform: translateX(-4px);
    }

    /* 3. Career Paths */
    .career-sector-box { background: white; border: 1px solid var(--premium-border); transition: all 0.3s ease; }
    .career-sector-box:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.05); transform: translateY(-5px); border-color: var(--premium-primary); }
    .hover-primary:hover { color: var(--premium-primary) !important; padding-inline-start: 5px; }
    .transition-all { transition: all 0.2s ease; }

    /* 4. Future Skills (Modern Light Theme) */
    .future-skill-card { 
        background: white; 
        border: 1px solid var(--premium-border); 
        padding: 30px 20px; 
        border-radius: 24px; 
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.015);
    }
    .future-skill-card:hover { 
        transform: translateY(-8px); 
        background: white; 
        border-color: var(--premium-primary); 
        box-shadow: 0 15px 35px rgba(99, 102, 241, 0.08);
    }
    .skill-icon { 
        width: 70px; 
        height: 70px; 
        border-radius: 50%; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-size: 30px; 
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    }
    .future-skill-card:hover .skill-icon { 
        transform: scale(1.1) rotate(-5deg); 
    }
    .future-skill-card h5 {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--premium-dark);
        transition: color 0.3s ease;
    }
    .future-skill-card:hover h5 {
        color: var(--premium-primary);
    }


    /* Target Entities */
    .target-entity-card {
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .target-entity-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(99, 102, 241, 0.1) !important;
        border-color: var(--premium-primary) !important;
    }
    .target-entity-card .entity-icon {
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .target-entity-card:hover .entity-icon {
        transform: scale(1.15) rotate(8deg);
    }
    .target-entity-card h6 {
        transition: color 0.3s ease;
    }
    .target-entity-card:hover h6 {
        color: var(--premium-primary) !important;
    }

    /* 6. Course Marketplace Card */
    .course-marketplace-card { background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--premium-border); transition: all 0.4s ease; }
    .course-marketplace-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); border-color: var(--premium-primary); }
    .course-thumb { height: 180px; }
    .object-fit-cover { object-fit: cover; }
    .delivery-badge, .cert-badge { font-size: 0.75rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); backdrop-filter: blur(4px); }
    /* AI recommended card style override */
    .recommended-card-glowing {
        border: 1px solid rgba(117, 65, 143, 0.15) !important;
        box-shadow: 0 10px 30px rgba(117, 65, 143, 0.04) !important;
    }
    .recommended-card-glowing:hover {
        border-color: #75418F !important;
        box-shadow: 0 15px 35px rgba(117, 65, 143, 0.12) !important;
    }

    /* Corporate Academy Custom Style */
    .corp-cta-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .corp-cta-card:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .corp-cta-card:hover .cta-arrow {
        color: white !important;
        transform: translateX(5px);
    }
    [dir="rtl"] .corp-cta-card:hover .cta-arrow {
        transform: translateX(-5px);
    }

    /* 7. Final CTA */
    .cta-premium-box { background: #75418F; }
    .cta-bg-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.05); }
    .shape-left { width: 300px; height: 300px; top: -100px; left: -100px; }
    .shape-right { width: 200px; height: 200px; bottom: -50px; right: -50px; }

    /* Animations */
    .animate-fade-in { animation: fadeIn 1s ease forwards; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        /* Responsive */
        @media (max-width: 991px) {
            .hero-title { font-size: 2.2rem; }
            .badge-1, .badge-2 { display: none; }
            .section-space { padding: 60px 0; }
            .hero-search-box .d-flex.flex-wrap { flex-direction: column; }
            .hero-search-box select, .hero-search-box button { width: 100% !important; }
        }
        @media (max-width: 576px) {
            .empowerment-card {
                padding: 12px 8px !important;
                border-radius: 12px !important;
            }
            .empowerment-card .icon-container {
                width: 36px !important;
                height: 36px !important;
                font-size: 15px !important;
                margin-bottom: 5px !important;
            }
            .empowerment-card .program-name {
                font-size: 0.72rem !important;
                line-height: 1.35 !important;
                min-height: 52px !important;
                margin-bottom: 4px !important;
            }
            .empowerment-card .see-more-btn {
                font-size: 0.72rem !important;
                gap: 1px !important;
            }
        }
