/* ===== HERO SECTION ===== */
.course-hero {
    background: linear-gradient(145deg, #0b1a33 0%, #1a2a4a 50%, #0d1f3c 100%);
    padding: 7rem 0 4rem;
    /* increased top padding to clear fixed header */
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.course-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(13, 110, 253, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(111, 66, 193, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.course-hero .container {
    position: relative;
    z-index: 2;
}

.course-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1.2rem 0.4rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a8c8ff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.course-hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: #0d6efd;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.course-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.course-hero h1 .highlight {
    background: linear-gradient(135deg, #4dabf7, #9775fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-hero p.lead {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.course-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.course-hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.course-hero-meta .meta-item i {
    font-size: 1.2rem;
    color: #4dabf7;
}

.course-hero-meta .meta-item strong {
    color: #ffffff;
    font-weight: 600;
}

.course-hero .hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-hero .hero-illustration img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float-illustration 6s ease-in-out infinite;
}

@keyframes float-illustration {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ----- Floating Particles (decorative) ----- */
.course-hero .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(77, 171, 247, 0.08);
    pointer-events: none;
    animation: particle-float 20s linear infinite;
}

.course-hero .particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    animation-duration: 25s;
}

.course-hero .particle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: 10%;
    animation-duration: 30s;
    animation-delay: 2s;
}

.course-hero .particle:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 20%;
    background: rgba(151, 117, 250, 0.06);
    animation-duration: 18s;
    animation-delay: 4s;
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(40px, 30px) scale(1.02);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ===== SECTION STYLING ===== */
.course-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 0;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(111, 66, 193, 0.1));
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FORM CARD (SIMPLIFIED) ===== */
.course-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.course-form-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ===== FORM ELEMENTS ===== */
.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.form-label i {
    font-size: 1.1rem;
}

.form-control-lg,
.form-select-lg {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: #f8fafc;
    border: 2px solid #e9edf2;
    transition: all 0.2s ease;
}

.form-control-lg:focus,
.form-select-lg:focus {
    border-color: #0d6efd;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    border: 2px solid #ced4da;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #212529;
}

/* ===== SUBMIT BUTTON ===== */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    border: none;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.35);
}

/* ===== INFO CARDS (SIMPLIFIED) ===== */
.course-info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.course-info-card.highlight {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.03), rgba(111, 66, 193, 0.03));
    border-color: rgba(13, 110, 253, 0.1);
}

.course-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.course-info-icon.blue {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.course-info-icon.purple {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.course-info-icon.green {
    background: rgba(32, 201, 151, 0.1);
    color: #20c997;
}

.course-info-icon.orange {
    background: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

/* ===== FORM MESSAGES ===== */
.form-message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: linear-gradient(135deg, #d1e7dd, #a3cfbb);
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f1aeb5);
    color: #842029;
    border: 1px solid #f1aeb5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .course-hero {
        padding: 6rem 0 4rem;
        /* slightly less top padding on tablets */
        min-height: auto;
    }

    .course-hero .hero-illustration {
        margin-top: 2rem;
    }

    .course-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .course-hero {
        padding: 5rem 0 3rem;
        /* extra top space for mobile */
        text-align: center;
        min-height: 0;
    }

    .course-hero p.lead {
        margin-left: auto;
        margin-right: auto;
    }

    .course-hero-meta {
        justify-content: center;
    }

    .course-section {
        padding: 3rem 0;
    }

    .section-description {
        font-size: 1rem;
    }

    .course-form-card {
        padding: 1.5rem;
    }

    .course-info-card {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .course-hero {
        padding: 4.5rem 0 2.5rem;
        /* further adjustment for very small phones */
    }

    .btn-primary {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .form-control-lg,
    .form-select-lg {
        font-size: 0.95rem;
        padding: 0.6rem 0.875rem;
    }

    .course-hero-meta {
        gap: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .course-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}