/* -------------------------------------------------------------
 * EDTECHX - Clean Udemy-Style Marketplace Design
 * Strict Rules: Zero blur shadows, clean borders, crisp typography
 * ------------------------------------------------------------- */
.edtechx-body {
    background-color: #ffffff;
    color: #2d2f31;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Common Card & Flat Styles */
.edtechx-card {
    background: #ffffff;
    border: 1px solid #d1d7dc;
    border-radius: 4px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-shadow: none !important;
}
.edtechx-card:hover {
    border-color: #2d2f31;
    box-shadow: none !important;
}

.edtechx-btn-primary {
    background-color: #2d2f31;
    color: #ffffff !important;
    border: 1px solid #2d2f31;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    box-shadow: none !important;
}
.edtechx-btn-primary:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff !important;
}

.edtechx-btn-outline {
    background-color: transparent;
    color: #2d2f31 !important;
    border: 1px solid #2d2f31;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    box-shadow: none !important;
}
.edtechx-btn-outline:hover {
    background-color: #f7f9fa;
    color: #000000 !important;
}

.edtechx-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 2px;
    display: inline-block;
}
.edtechx-badge-bestseller {
    background-color: #eceb98;
    color: #3d3c0a;
    border: 1px solid #d8d66b;
}
.edtechx-badge-live {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}
.edtechx-badge-free {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.edtechx-badge-category {
    background-color: #f7f9fa;
    color: #6a6f73;
    border: 1px solid #d1d7dc;
}

/* Hero Billboard Section with Glowing Ambiance */
.edtechx-hero-section {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}

/* Glowing Background System */
.edtechx-glow-wrapper {
    position: relative;
    overflow: hidden;
}

.edtechx-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
    will-change: transform, opacity;
}

.edtechx-glow-purple {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, rgba(99, 102, 241, 0.12) 45%, transparent 70%);
}

.edtechx-glow-teal {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, rgba(6, 182, 212, 0.1) 45%, transparent 70%);
}

.edtechx-glow-emerald {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.24) 0%, rgba(52, 211, 153, 0.08) 50%, transparent 70%);
}

.edtechx-glow-amber {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(251, 191, 36, 0.08) 50%, transparent 70%);
}

.edtechx-glow-mesh-section {
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
}

.edtechx-glow-mesh-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(20, 184, 166, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.edtechx-relative-content {
    position: relative;
    z-index: 1;
}

.edtechx-billboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #d1d7dc;
    border-radius: 6px;
    padding: 36px 36px 24px;
    position: relative;
    z-index: 1;
    box-shadow: none !important;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

/* Revolution Course Slider */
.edtechx-rev-slides {
    position: relative;
    flex-grow: 1;
}

.edtechx-rev-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.edtechx-rev-slide.active {
    display: block;
    opacity: 1;
}

.edtechx-rev-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6a6f73;
}

.edtechx-rev-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d2f31;
    font-weight: 600;
}

.edtechx-rev-instructor-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d1d7dc;
}

/* Revolution Slider Controls */
.edtechx-rev-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.edtechx-rev-progress-wrapper {
    flex-grow: 1;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 16px;
    overflow: hidden;
    position: relative;
}

.edtechx-rev-progress-bar {
    height: 100%;
    width: 0%;
    background: #2d2f31;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.edtechx-rev-nav-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.edtechx-rev-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #d1d7dc;
    background: #ffffff;
    color: #2d2f31;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: none !important;
}

.edtechx-rev-btn:hover {
    background: #2d2f31;
    color: #ffffff;
    border-color: #2d2f31;
}

.edtechx-rev-counter {
    font-size: 12px;
    font-weight: 700;
    color: #6a6f73;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.edtechx-rev-dots {
    display: flex;
    gap: 6px;
}

.edtechx-rev-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d7dc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edtechx-rev-dot.active {
    background: #2d2f31;
    width: 20px;
    border-radius: 4px;
}

.edtechx-hero-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: #2d2f31;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.edtechx-hero-desc {
    font-size: 15px;
    line-height: 1.55;
    color: #6a6f73;
    margin-bottom: 22px;
}

/* Right-Side Synced Hero Visuals */
.edtechx-hero-image-wrap {
    border: 1px solid #d1d7dc;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    z-index: 1;
    height: 420px;
}

.edtechx-visual-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    transform: scale(1.02);
}

.edtechx-visual-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.edtechx-visual-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edtechx-visual-floating-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #d1d7dc;
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.edtechx-visual-floating-badge h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #2d2f31;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.edtechx-visual-floating-badge p {
    font-size: 12px;
    color: #6a6f73;
    margin: 0;
}

/* Trust / Stats Row */
.edtechx-trust-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
}
.edtechx-trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
}
.edtechx-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: #f7f9fa;
    border: 1px solid #d1d7dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2d2f31;
    flex-shrink: 0;
}
.edtechx-trust-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #2d2f31;
}
.edtechx-trust-text p {
    font-size: 13px;
    color: #6a6f73;
    margin: 0;
}

/* Section Headers */
.edtechx-section-header {
    margin-bottom: 28px;
}
.edtechx-section-header h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #2d2f31;
    margin-bottom: 6px;
}
.edtechx-section-header p {
    font-size: 15px;
    color: #6a6f73;
    margin: 0;
}

/* Courses Section Ambient Glow System */
.edtechx-courses-glow-section {
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Category Pill Row */
.edtechx-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.edtechx-pill {
    border: 1px solid #d1d7dc;
    background: #ffffff;
    color: #2d2f31;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.edtechx-pill:hover, .edtechx-pill.active {
    background: #2d2f31;
    border-color: #2d2f31;
    color: #ffffff !important;
}

/* Course Card (Udemy Marketplace Layout with Subtle Glow) */
.edtechx-course-card {
    border: 1px solid #d1d7dc;
    border-radius: 6px;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.edtechx-course-card:hover {
    border-color: #818cf8;
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12), 0 0 16px rgba(99, 102, 241, 0.08) !important;
}
.edtechx-course-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background: #e2e8f0;
    border-bottom: 1px solid #d1d7dc;
}
.edtechx-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.edtechx-course-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.edtechx-course-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #2d2f31;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.edtechx-course-instructor {
    font-size: 12px;
    color: #6a6f73;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.edtechx-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 8px;
}
.edtechx-rating-score {
    font-weight: 800;
    color: #b4690e;
}
.edtechx-rating-stars {
    color: #e59819;
    font-size: 11px;
}
.edtechx-rating-count {
    color: #6a6f73;
    font-size: 12px;
}
.edtechx-course-meta {
    font-size: 12px;
    color: #6a6f73;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.edtechx-course-price {
    font-size: 17px;
    font-weight: 800;
    color: #2d2f31;
    margin-top: auto;
}

/* Category Grid Cards */
.edtechx-cat-box {
    border: 1px solid #d1d7dc;
    border-radius: 4px;
    padding: 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #2d2f31;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.edtechx-cat-box:hover {
    border-color: #2d2f31;
    background: #f7f9fa;
    color: #2d2f31;
}
.edtechx-cat-icon {
    width: 46px;
    height: 46px;
    background: #f7f9fa;
    border: 1px solid #d1d7dc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2d2f31;
    flex-shrink: 0;
}
.edtechx-cat-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px 0;
}
.edtechx-cat-info p {
    font-size: 12px;
    color: #6a6f73;
    margin: 0;
}

/* Promo Split Banner with Ambient Glow */
.edtechx-promo-dark {
    background-color: #161719;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(20, 184, 166, 0.18) 0%, transparent 45%);
    color: #ffffff;
    border-radius: 6px;
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}
.edtechx-promo-dark .edtechx-btn-primary {
    background-color: #ffffff;
    color: #161719 !important;
    border-color: #ffffff;
}
.edtechx-promo-dark .edtechx-btn-primary:hover {
    background-color: #f1f5f9;
    border-color: #f1f5f9;
}
.edtechx-promo-light {
    background-color: #f8fafc;
    background-image: radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    color: #2d2f31;
    border-radius: 6px;
    padding: 44px;
    border: 1px solid #d1d7dc;
    position: relative;
    overflow: hidden;
}

/* Value Block Grid */
.edtechx-value-item {
    border: 1px solid #d1d7dc;
    border-radius: 6px;
    padding: 26px;
    background: #ffffff;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.edtechx-value-item:hover {
    border-color: #2d2f31;
    transform: translateY(-3px);
}
.edtechx-value-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #d1d7dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2d2f31;
    margin-bottom: 16px;
}
.edtechx-value-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2d2f31;
}
.edtechx-value-item p {
    font-size: 14px;
    line-height: 1.5;
    color: #6a6f73;
    margin: 0;
}

/* Instructor Profile Card */
.edtechx-instructor-card {
    border: 1px solid #d1d7dc;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    background: #ffffff;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.edtechx-instructor-card:hover {
    border-color: #2d2f31;
    transform: translateY(-3px);
}
.edtechx-instructor-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d1d7dc;
    margin: 0 auto 14px;
    display: block;
}

/* Testimonial Quote Card */
.edtechx-testimonial-card {
    border: 1px solid #d1d7dc;
    border-radius: 6px;
    padding: 26px;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.edtechx-testimonial-card:hover {
    border-color: #2d2f31;
    transform: translateY(-3px);
}
.edtechx-testimonial-comment {
    font-size: 14px;
    line-height: 1.6;
    color: #2d2f31;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Newsletter Glowing Box */
.edtechx-newsletter-box {
    background: #1e293b;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(20, 184, 166, 0.25) 0%, transparent 45%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 48px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.edtechx-newsletter-box h2 {
    color: #ffffff !important;
}
.edtechx-newsletter-box p {
    color: #cbd5e1 !important;
}
.edtechx-input {
    border: 1px solid #475569;
    border-radius: 4px;
    padding: 13px 18px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.6);
    outline: none;
    width: 100%;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.edtechx-input::placeholder {
    color: #94a3b8;
}
.edtechx-input:focus {
    border-color: #818cf8;
    background: rgba(15, 23, 42, 0.85);
}

/* Subscription Featured Card Glow */
.edtechx-subscription-featured {
    border: 2px solid #6366f1 !important;
    position: relative;
    background: #ffffff;
}
.edtechx-subscription-featured::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(20, 184, 166, 0.35));
    z-index: -1;
    filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
}

/* Keyframes for Continuous Glow Ambiance */
@keyframes edtechxPulseGlow {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.18) translate(15px, -10px);
        opacity: 0.85;
    }
}

@keyframes edtechxFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.edtechx-pulse-glow {
    animation: edtechxPulseGlow 8s ease-in-out infinite;
}

.edtechx-floating {
    animation: edtechxFloat 5s ease-in-out infinite;
}
