/* =========================================================
   CLASS 8 HERO — col-8 (Main) / col-4 (Sidebar)
   Prefix: .cls8hero-
   ========================================================= */

.cls8hero {
    background: var(--bg-wash);
    padding: clamp(40px, 6vw, 70px) 0;
}

/* ---------- Left: Main content ---------- */
.cls8hero-main {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 2.4vw, 32px);
    box-shadow: 0 8px 25px rgba(11, 37, 69, 0.06);
}

.cls8hero-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-wash);
    margin-bottom: 22px;
}

.cls8hero-img img {
    width: 100%;
    height: clamp(145px, 30vw, 325px);
    object-fit: cover;
    display: block;
}

.cls8hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    margin-bottom: 16px;
    background: rgba(242, 121, 12, 0.10);
    border: 1px solid rgba(242, 121, 12, 0.22);
    border-radius: 999px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cls8hero-title {
    margin: 0 0 16px;
    color: var(--navy-deep);
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cls8hero-title span {
    color: var(--orange);
}

.cls8hero-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.85;
}

/* ---------- Right: Sidebar ---------- */
.cls8hero-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--navy-deep);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 2.6vw, 32px);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.cls8hero-sidebar-title {
    margin: 0 0 18px;
    color: var(--white);
    font-size: 25px;
    font-weight: 600;
}

.cls8hero-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cls8hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15.5px;
    font-weight: 500;
    color: #dbe6f2;
    line-height: 1.5;
}

.cls8hero-list li i {
    color: var(--orange);
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cls8hero-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
}

.cls8hero-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cls8hero-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 13px;
    transition: color 0.2s ease;
}

.cls8hero-contact-item:hover {
    color: var(--orange);
}

.cls8hero-contact-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 121, 12, 0.14);
    border: 1px solid rgba(242, 121, 12, 0.25);
    border-radius: 9px;
    color: var(--orange);
    font-size: 15px;
}

.cls8hero-contact-item small {
    display: block;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.cls8hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    padding: 13px 22px;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cls8hero-btn i {
    transition: transform 0.25s ease;
}

.cls8hero-btn:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(242, 121, 12, 0.32);
}

.cls8hero-btn:hover i {
    transform: translateX(4px);
}

/* =========================================================
   JOIN NOW MODAL
   ========================================================= */

.cls8-modal {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cls8-modal .modal-header {
    background: var(--navy-deep);
    border-bottom: none;
    padding: 18px 22px;
}

.cls8-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
}

.cls8-modal .modal-title i {
    color: var(--orange);
}

.cls8-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.cls8-modal .modal-body {
    padding: 24px 22px;
}

.cls8-modal-note {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.cls8-modal .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.cls8-modal .form-control {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}

.cls8-modal .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(242, 121, 12, 0.12);
}

/* =========================================================
   CLASS 8 SUBJECTS SECTION
   ========================================================= */

.cls8sub {
    background: var(--white);
    padding: clamp(50px, 7vw, 80px) 0;
}

.cls8sub-heading {
    max-width: 640px;
    margin-bottom: clamp(30px, 4vw, 42px);
}

.cls8-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    margin-bottom: 16px;
    background: rgba(242, 121, 12, 0.10);
    border: 1px solid rgba(242, 121, 12, 0.22);
    border-radius: 999px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cls8-title {
    margin: 0;
    color: var(--navy-deep);
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cls8-title span {
    color: var(--orange);
}

.cls8-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    height: 100%;
    padding: clamp(18px, 2vw, 26px);
    background: var(--bg-wash);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cls8-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: var(--navy-deep);
    color: var(--orange);
    border-radius: 12px;
    font-size: 19px;
    transition: background 0.25s ease, color 0.25s ease;
}

.cls8-card h3 {
    margin: 0 0 6px;
    color: var(--navy-deep);
    font-size: 15.5px;
    font-weight: 700;
}

.cls8-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.cls8-card:hover {
    background: var(--white);
    border-color: rgba(242, 121, 12, 0.28);
    box-shadow: 0 14px 30px rgba(11, 37, 69, 0.10);
    transform: translateY(-4px);
}

.cls8-card:hover .cls8-icon {
    background: var(--orange);
    color: var(--white);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .cls8hero-sidebar {
        margin-top: 0;
    }
}

@media (max-width: 575.98px) {
    .cls8hero {
        padding: 34px 0;
    }

    .cls8hero-title {
        font-size: clamp(22px, 7vw, 27px);
    }

    .cls8hero-text {
        font-size: 13.5px;
    }

    .cls8sub {
        padding: 42px 0;
    }

    .cls8-card h3 {
        font-size: 14px;
    }

    .cls8-card p {
        font-size: 11.5px;
    }
}

/* ---------- Touch devices ---------- */
@media (hover: none) {

    .cls8hero-btn:hover,
    .cls8-card:hover {
        transform: none;
        box-shadow: none;
    }

    .cls8hero-btn:hover {
        box-shadow: var(--shadow-sm);
    }

    .cls8-card:hover {
        background: var(--bg-wash);
        border-color: var(--border);
    }

    .cls8-card:hover .cls8-icon {
        background: var(--navy-deep);
        color: var(--orange);
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

    .cls8hero-btn,
    .cls8hero-btn i,
    .cls8-card,
    .cls8-icon {
        transition: none;
    }
}