/*
 * IntelQI LMS — Enterprise Learning Platform
 * Hero Section Styles
 *
 * Brand Colors:
 * - Primary Blue: #154f95
 * - Primary Blue Dark: #0d3d7a
 * - Primary Blue Light: #1a5fae
 * - Light Blue Tint: #e8f4fc (backgrounds)
 * - Dark Blue: #0f172a (headings)
 *
 * Copyright © 2025 Euclideum Solutions Private Limited.
 */

/* ============================================
   Hero Wrapper (Contains Hero + Sketch)
   ============================================ */
.hero-wrapper {
    position: relative;
    background-color: #e8f4fc;
    background-image:
        /* Major grid lines every 80px */
        linear-gradient(rgba(21, 79, 149, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 79, 149, 0.08) 1px, transparent 1px),
        /* Minor grid lines every 20px */
        linear-gradient(rgba(21, 79, 149, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 79, 149, 0.04) 1px, transparent 1px);
    background-size:
        80px 80px,
        80px 80px,
        20px 20px,
        20px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

@media (min-width: 1024px) {
    .hero-wrapper {
        min-height: 520px;
    }
}

/* Bottom blend removed — hero and logo slider share same bg + grid */

[data-theme="dark"] .hero-wrapper {
    background-color: #0a1628;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(96, 165, 250, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.03) 1px, transparent 1px);
    background-size:
        80px 80px,
        80px 80px,
        20px 20px,
        20px 20px;
}

/* dark hero-wrapper::after removed — seamless with logo slider */

/* ============================================
   Animated Gradient Background — Disabled
   ============================================ */
.hero-gradient {
    display: none;
}

[data-theme="dark"] .hero-gradient {
    display: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: heroFloat 20s ease-in-out infinite;
}

.hero-blob--1 {
    width: 60%;
    height: 60%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, #154f95 0%, transparent 70%);
    animation-delay: 0s;
}

.hero-blob--2 {
    width: 50%;
    height: 50%;
    top: 20%;
    right: -15%;
    background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
    animation-delay: -5s;
    animation-duration: 25s;
}

.hero-blob--3 {
    width: 45%;
    height: 45%;
    bottom: 0%;
    left: 30%;
    background: radial-gradient(circle, #60a5fa 0%, transparent 70%);
    animation-delay: -10s;
    animation-duration: 22s;
}

.hero-blob--4 {
    width: 35%;
    height: 35%;
    top: 60%;
    left: 10%;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    animation-delay: -15s;
    animation-duration: 18s;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(5%, 10%) scale(1.05);
    }
    50% {
        transform: translate(-5%, 5%) scale(0.95);
    }
    75% {
        transform: translate(10%, -5%) scale(1.02);
    }
}

/* ============================================
   Hero Section Base
   Fills the wrapper and vertically centers content.
   ============================================ */
.hero {
    position: relative;
    padding: 40px 12px 48px;
    background-color: transparent;
    text-align: center;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

@media (min-width: 480px) {
    .hero {
        padding: 40px 16px 48px;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 48px 32px 24px;
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .hero {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 112px 40px 0;
    }
}

@media (min-width: 1400px) {
    .hero {
        padding: 128px 48px 0;
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1400px) {
    .hero-container {
        max-width: 1336px;
    }
}

.hero-content {
    max-width: 100%;
}

@media (min-width: 768px) {
    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 600px;
        margin: 0;
    }
}

@media (min-width: 1280px) {
    .hero-content {
        max-width: 650px;
    }
}

/* ============================================
   Trust Badge
   ============================================ */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .trust-badge {
    background-color: #111a2e;
    border-color: #334155;
}

.trust-badge-avatars {
    display: flex;
    align-items: center;
}

.trust-badge-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: cover;
    margin-left: -8px;
    background-color: #f1f5f9;
}

[data-theme="dark"] .trust-badge-avatar {
    border-color: #111a2e;
    background-color: #1e293b;
}

.trust-badge-avatar:first-child {
    margin-left: 0;
}

/* Slogan Icons */
.slogan-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
}

.slogan-icons svg {
    width: 14px;
    height: 14px;
    color: #154f95;
}

[data-theme="dark"] .slogan-icons svg {
    color: #60a5fa;
}

.trust-badge-divider {
    width: 1px;
    height: 14px;
    background-color: #e2e8f0;
}

[data-theme="dark"] .trust-badge-divider {
    background-color: #334155;
}

.trust-badge-text {
    font-size: 11px;
    font-weight: 500;
    color: #0f172a;
}

[data-theme="dark"] .trust-badge-text {
    color: #f1f5f9;
}

/* ============================================
   Hero Heading
   ============================================ */
.hero-heading {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #154f95;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .hero-heading {
    color: #60a5fa;
}

@media (min-width: 480px) {
    .hero-heading {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    .hero-heading {
        font-size: 32px;
    }
}

@media (min-width: 1024px) {
    .hero-heading {
        font-size: 36px;
        margin-bottom: 20px;
    }
}

@media (min-width: 1280px) {
    .hero-heading {
        font-size: 40px;
    }
}

/* ============================================
   Hero Subtitle
   ============================================ */
.hero-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #475569;
    max-width: 100%;
    margin: 0 auto 24px;
}

[data-theme="dark"] .hero-subtitle {
    color: #94a3b8;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 15px;
        margin: 0 auto 28px auto;
        max-width: 500px;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin: 0 0 32px 0;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 16px;
        margin: 0 0 32px 0;
        max-width: 560px;
    }
}

@media (min-width: 1280px) {
    .hero-subtitle {
        max-width: 610px;
    }
}

/* ============================================
   Hero Buttons
   ============================================ */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        gap: 16px;
        max-width: none;
        width: auto;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: center;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    width: 100%;
}

@media (min-width: 480px) {
    .btn-hero {
        width: auto;
    }
}

/* Outline Button */
.btn-hero-outline {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-hero-outline:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-hero-outline {
    background-color: #111a2e;
    color: #f1f5f9;
    border-color: #334155;
}

[data-theme="dark"] .btn-hero-outline:hover {
    background-color: #1e293b;
    border-color: #475569;
}

/* Filled Button - Brand Blue */
.btn-hero-filled {
    background-color: #154f95;
    color: #ffffff;
    border: 1px solid #154f95;
    box-shadow: 0 1px 3px rgba(21, 79, 149, 0.3);
}

.btn-hero-filled:hover {
    background-color: #0d3d7a;
    border-color: #0d3d7a;
    box-shadow: 0 4px 6px -1px rgba(21, 79, 149, 0.4);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-hero-filled {
    background-color: #60a5fa;
    border-color: #60a5fa;
    box-shadow: 0 1px 3px rgba(50, 148, 227, 0.3);
}

[data-theme="dark"] .btn-hero-filled:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(50, 148, 227, 0.4);
}

/* ============================================
   Categories Section
   ============================================ */
.categories-section {
    position: relative;
    padding: 24px 0 48px;
    background-color: transparent;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 768px) {
    .categories-section {
        padding: 32px 0 56px;
    }
}

@media (min-width: 1024px) {
    .categories-section {
        padding: 40px 0 64px;
    }
}

/* ============================================
   Category Carousel
   ============================================ */
.category-carousel {
    display: flex;
    gap: 16px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

@media (min-width: 480px) {
    .category-carousel {
        gap: 20px;
        padding: 0 32px;
    }
}

@media (min-width: 768px) {
    .category-carousel {
        padding: 0 48px;
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .category-carousel {
        padding: 0 60px;
        gap: 28px;
    }
}

@media (min-width: 1400px) {
    .category-carousel {
        justify-content: center;
        padding: 0 80px;
    }
}

/* ============================================
   Category Card
   ============================================ */
.category-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 160px;
    padding: 24px 16px 20px;
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .category-card {
    background-color: #111a2e;
}

@media (min-width: 480px) {
    .category-card {
        width: 150px;
        height: 170px;
        padding: 26px 18px 22px;
        border-radius: 18px;
    }
}

@media (min-width: 768px) {
    .category-card {
        width: 170px;
        height: 190px;
        padding: 30px 22px 26px;
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .category-card {
        width: 180px;
        height: 200px;
        padding: 32px 24px 28px;
    }
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px -8px rgba(21, 79, 149, 0.2);
}

/* Card Background Variants */

/* Light Blue Tint - for some cards */
.category-card--light {
    background-color: #dbeafe;
}

[data-theme="dark"] .category-card--light {
    background-color: #1e3a5f;
}

/* White - default */
.category-card--white {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .category-card--white {
    background-color: #111a2e;
}

/* Dark Blue Gradient - for accent cards */
.category-card--dark {
    background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 100%);
}

[data-theme="dark"] .category-card--dark {
    background: linear-gradient(145deg, #2d4a6f 0%, #1e293b 100%);
}

.category-card--dark .category-icon {
    color: #ffffff;
}

.category-card--dark .category-label {
    color: #ffffff;
}

/* ============================================
   Category Icon
   ============================================ */
.category-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .category-icon {
    color: #94a3b8;
}

@media (min-width: 480px) {
    .category-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }
}

@media (min-width: 768px) {
    .category-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }
}

@media (min-width: 1024px) {
    .category-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

/* Icon color variants */
.category-icon--blue {
    color: #154f95;
}

[data-theme="dark"] .category-icon--blue {
    color: #60a5fa;
}

.category-icon--light-blue {
    color: #3b82f6;
}

.category-icon--white {
    color: #ffffff;
}

.category-icon--gray {
    color: #64748b;
}

/* ============================================
   Category Label
   ============================================ */
.category-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.35;
    max-width: 100%;
}

[data-theme="dark"] .category-label {
    color: #94a3b8;
}

@media (min-width: 768px) {
    .category-label {
        font-size: 14px;
    }
}

/* ============================================
   Hero Sketch - WCE College Image
   Mobile: hidden | Tablet: below text | Desktop: beside text
   ============================================ */

/* --- Mobile: hidden --- */
.hero-sketch {
    display: none;
}

/* --- Tablet (768px–1023px): flows below content --- */
@media (min-width: 768px) {
    .hero-sketch {
        display: block;
        position: relative;
        width: 100%;
        overflow: hidden;
        pointer-events: none;
        text-align: center;
        margin-top: -20px;
        z-index: 2;
    }

    .hero-sketch img {
        width: 80%;
        max-width: 600px;
        height: auto;
        object-fit: contain;
        filter: grayscale(100%);
        margin: 0 auto;
        display: block;
    }

    /* No top gradient on tablet - avoid overlapping buttons */
    .hero-sketch::before {
        content: none;
        pointer-events: none;
        z-index: 2;
    }

    .hero-sketch::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(to top, rgba(232, 244, 252, 0.85) 0%, transparent 100%);
        pointer-events: none;
        z-index: 2;
    }

    [data-theme="dark"] .hero-sketch::before {
        background: linear-gradient(to bottom, rgba(10, 22, 40, 0.85) 0%, transparent 100%);
    }

    [data-theme="dark"] .hero-sketch::after {
        background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, transparent 100%);
    }

    [data-theme="dark"] .hero-sketch img {
        filter: grayscale(100%) invert(1);
        opacity: 1;
    }
}

/* --- Desktop (1024px+): absolute positioned beside text --- */
@media (min-width: 1024px) {
    .hero-sketch {
        display: flex;
        position: absolute;
        top: 48px;
        right: 0;
        bottom: 0;
        width: 100%;
        z-index: 1;
        justify-content: flex-end;
        align-items: flex-start;
        overflow: hidden;
        margin-top: 0;
        text-align: initial;
    }

    .hero-sketch img {
        width: auto;
        max-width: none;
        height: 100%;
        object-fit: contain;
        object-position: right top;
        margin: 0;
        display: block;
    }

    /* Sketch fade overlays removed — grid pattern handles the visual blend */
    .hero-sketch::before,
    .hero-sketch::after {
        content: none;
    }
}
