@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('marketplace.css?v=37');

/* Custom Font Support */
html {
    font-size: 90%;
    /* Scale down entire site proportionately */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #0a0a0a;
    /* Deepest black */
    color: #ffffff;
    -webkit-tap-highlight-color: transparent;
    /* Native feel */
    overflow-x: hidden;
}

/* Mobile Touch Optimization Global */
@media (max-width: 991px) {

    input,
    select,
    textarea,
    .form-control {
        font-size: 16px !important;
        /* Prevent iOS Zoom */
    }

    .btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Better scrolling container */
    .table-responsive,
    .scroll-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Color Variables */
:root {
    --vidra-red: #E63946;
    /* Vibrant Red */
    --vidra-black: #050505;
    --vidra-dark-gray: #121212;
    --vidra-text-muted: #a1a1aa;
}

/* General Utilities */
.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.fs-7 {
    font-size: 0.75rem;
}

/* Navbar */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.vidra-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
    color: #fff;
    position: relative;
    padding-right: 15px;
    /* Space for slash if needed */
}

/* Custom Search Input */
.search-container {
    width: 350px;
    background-color: #1a1a1a;
    border-radius: 50px;
    padding: 2px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--vidra-red);
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.2);
}

.search-container input::placeholder {
    color: #666;
    font-size: 0.9rem;
}

.search-container input {
    color: #fff;
}

.search-container .input-group-text i {
    color: #666;
}

/* Navbar Links */
.nav-link {
    color: #e5e5e5;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff;
}

/* =========================================
   SIDEBAR & NAVIGATION (Unified)
   ========================================= */
/* Sidebar Fixed Desktop */
.sidebar {
    width: 250px;
    background: #111;
    border-right: 1px solid #333;
    height: 100vh;
    position: fixed;
    /* Guaranteed fix */
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1040;
    transition: transform 0.3s ease-in-out;
}

/* Push content to right on desktop */
@media (min-width: 992px) {
    .main-content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

.sidebar .nav-link {
    color: #888;
    padding: 8px 20px;
    /* Condensed Padding */
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-size: 0.9rem;
    /* Compact Font */
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background: rgba(229, 9, 20, 0.1);
    border-right: 3px solid #E50914;
}

/* Mobile Sidebar Pull-out */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        /* Hidden by default */
        display: block !important;
        /* Override d-none */
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        padding-bottom: 20px;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.btn-primary {
    background-color: var(--vidra-red);
    border-color: var(--vidra-red);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d62839;
    border-color: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-teal {
    background-color: #20c997;
    border-color: #20c997;
    color: #000;
    transition: all 0.3s ease;
}

.btn-teal:hover {
    background-color: #1aa179;
    border-color: #1aa179;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
}

/* Hero Section - Udemy Style Refactor */
/* Hero Section - Vidra Premium Polish */
/* Hero Section - Vidra Premium Polish */
.hero-banner {
    background: #1E1E1E;
    min-height: 350px;
    /* Base for Mobile */
    display: flex;
    /* align-items: center; Removed to ensure container stretches to full height */
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Floating Card */
.hero-card {
    background-color: #ffffff;
    color: #0f172a;
    padding: 1.75rem;
    max-width: 460px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    border-radius: 8px;
}

.hero-card h1 {
    font-weight: 800;
    font-size: 2rem;
    /* Restored size */
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #1e3a8a;
    letter-spacing: -0.03em;
}

.hero-card p {
    font-size: 1rem;
    /* Restored size */
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #475569;
    font-weight: 400;
}

/* Custom Buttons for Hero */
.btn-hero-primary {
    background-color: #2563eb;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    /* Restored padding */
    border-radius: 6px;
    border: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-hero-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: #fff;
}

.btn-hero-secondary {
    background-color: #fff;
    color: #2563eb;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: 2px solid #2563eb;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-hero-secondary:hover {
    background-color: #eff6ff;
    color: #1e40af;
    transform: translateY(-2px);
}

.hero-img-col {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-image {
    max-height: 320px;
    /* Mobile Image */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

/* Responsiveness */
/* Responsiveness */
@media (min-width: 992px) {
    .hero-banner {
        min-height: 440px;
    }

    /* Card uses standard layout, no absolute needed as column is centered */
    .hero-card {
        margin-left: 20px;
        /* Spacing from edge */
    }

    .hero-image {
        /* Standard flow for bottom alignment in flex column */
        max-height: 460px;
        width: auto;
        position: relative;
        /* Keep relative for z-index/stacking if needed */
        margin-bottom: -1px;
        /* Ensure flush fit */
    }
}

/* Cards (Domestika Style) */
.course-card {
    background-color: #121212;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .card-img-top {
    transform: scale(1.05);
}

.course-card .card-body {
    padding: 1.5rem;
}

.course-card .instructor-name {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.course-card .card-title {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.course-card .price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

/* Feature Section */
.bg-dark-subtle {
    background-color: #111 !important;
}

/* Footer */
footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: #fff !important;
}

/* Fix for large logo causing navbar expansion */
.navbar-brand img {
    max-height: 120px;
    width: auto;
    margin-top: -25px;
    margin-bottom: -25px;
    position: relative;
    z-index: 10;
}

/* Bento Grid Section - Reimagine Career */
.bento-section {
    background-color: #1e1e1e;
    border-radius: 16px;
    overflow: hidden;
    padding: 3rem;
}

.bento-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.bento-content .lead {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 2.5rem;
}

.bento-features {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.bento-feature-item {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 500;
}

.bento-feature-item i {
    width: 24px;
    margin-right: 10px;
    color: #a0a0a0;
}

.bento-grid-images {
    display: grid !important;
    grid-template-columns: 0.9fr 1.1fr !important;
    /* Balanced columns */
    gap: 16px !important;
    height: 450px !important;
    /* Explicit height required for child percentages to work */
    width: 100%;
}

.bento-col-left {
    height: 100% !important;
    overflow: hidden !important;
    /* Prevent overflow */
    border-radius: 12px;
}

.bento-col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100% !important;
    overflow: hidden !important;
    /* Prevent overflow */
}

.bento-img {
    width: 100%;
    height: 100% !important;
    /* Force fit to container */
    object-fit: cover;
    /* Default to cover for nice fill */
    border-radius: 12px;
    display: block;
    /* Remove inline-block gaps */
}

.bento-img-tall {
    height: 100%;
}

.bento-img-stack {
    height: 100%;
    display: grid !important;
    grid-template-rows: 1fr 2fr 1fr !important;
    gap: 16px !important;
    overflow: hidden !important;
}

.bento-sparkle {
    background: #f0f0f0;
}

.bento-portrait {
    object-fit: cover !important;
    /* Revert to cover to fill space */
    object-position: top center;
    /* Focus on face */
    background-color: transparent;
}

.bento-vr {
    background: #dcd6f7;
}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================= */
@media (max-width: 991px) {

    /* --- General Typography & Layout --- */
    html {
        font-size: 85%;
        /* Slightly smaller base text */
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    h1,
    .display-3,
    .display-4,
    .display-5 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .lead {
        font-size: 1rem !important;
    }

    /* --- Navbar --- */
    .navbar-brand img {
        height: 60px !important;
        width: auto !important;
        margin: 0 !important;
    }

    .navbar-toggler {
        border: none;
        padding: 0;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* --- Hero Section --- */
    .hero-banner {
        min-height: auto;
        flex-direction: column;
        padding-bottom: 0;
        text-align: center;
    }

    .hero-card {
        margin: 0 auto 2rem auto;
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .hero-card h1 {
        font-size: 2rem !important;
    }

    .hero-img-col {
        justify-content: center;
        height: auto;
    }

    .hero-image {
        max-height: 350px;
        width: 100%;
        object-fit: contain;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    /* --- Bento Grid Mobile Stack --- */
    .bento-section {
        padding: 2rem 1.5rem;
    }

    .bento-features {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .bento-grid-images {
        display: flex !important;
        flex-direction: column;
        grid-template-columns: none !important;
        height: auto !important;
        max-height: none !important;
        gap: 1rem !important;
        margin-top: 2rem;
    }

    .bento-col-left,
    .bento-col-right {
        height: auto !important;
        width: 100% !important;
        display: block !important;
    }

    .bento-img-tall,
    .bento-img {
        height: 300px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .bento-img-stack {
        display: flex !important;
        flex-direction: column;
        gap: 1rem !important;
        height: auto !important;
        grid-template-rows: none !important;
    }

    /* --- Pricing Cards --- */
    .card {
        margin-bottom: 1.5rem;
    }

    /* --- Ticker --- */
    .ticker-wrap .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* Alert Styles */
.alert-custom {
    background-color: #fff;
    border: 1px solid var(--vidra-red);
    color: #333;
    position: relative;
    z-index: 9999;
}

.alert-custom i {
    color: var(--vidra-red);
}

.alert-custom .btn-close {
    filter: none;
    /* Default bootstrap close button */
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #E63946 0%, #B91C1C 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-banner .btn-light {
    color: #B91C1C !important;
    transition: transform 0.2s;
}

.welcome-banner .btn-light:hover {
    transform: translateY(-2px);
    background-color: #fff;
}