/* ================================================================
   Courses Page – Full Redesign
   Font: DM Sans / Open Sans | Colors: #19293D · #F2930E
   ================================================================ */

/* ── Course Hero (full-width dark) ────────────────────────── */
.course-hero {
    background: #19293D;
    padding: 60px 0 0;
}

.course-hero-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    align-items: stretch;
    min-height: 280px;
}

/* Left: Title block */
.course-hero-left {
    padding: 0 48px 48px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-tag-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(242, 147, 14, 0.15);
    color: #F2930E;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-family: 'DM Sans', sans-serif;
    width: fit-content;
}

.course-hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
}

.course-hero-title span {
    color: #F2930E;
}

.course-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    font-family: 'DM Sans', sans-serif;
}

.hero-accent-line {
    width: 50px;
    height: 4px;
    background: #F2930E;
    border-radius: 2px;
}

/* Right: Latest News Sidebar */
.course-hero-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
}

.sidebar-section-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    font-family: 'DM Sans', sans-serif;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.news-item:hover {
    opacity: 0.8;
}

.news-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(242, 147, 14, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #F2930E;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.35;
    font-family: 'DM Sans', sans-serif;
}

.news-info span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'DM Sans', sans-serif;
}

.btn-view-all-news {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #F2930E;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(242, 147, 14, 0.35);
    border-radius: 8px;
    padding: 9px 16px;
    margin-top: 20px;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    justify-content: center;
}

.btn-view-all-news:hover {
    background: rgba(242, 147, 14, 0.12);
    border-color: #F2930E;
    color: #F2930E;
}

/* ── Content Area (below hero) ─────────────────────────────── */
.course-content-section {
    background: #f0f4f8;
    padding: 40px 0 60px;
}

.course-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.cov-card-wrap {
    background: #fff;
    border: 1px solid rgba(19, 41, 61, 0.09);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(19, 41, 61, 0.07);
    margin-bottom: 20px;
}

.cov-top-bar {
    background: #19293D;
    padding: 18px 28px;
    display: flex;
    border-bottom: 6px solid #F2930E;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.cov-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(242, 147, 14, 0.15);
    color: #F2930E;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(242, 147, 14, 0.25);
    animation: pulseBadge 3s ease-in-out infinite;
    font-family: 'DM Sans', sans-serif;
}

.cov-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F2930E;
    animation: blinkDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseBadge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(242, 147, 14, 0);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(242, 147, 14, 0.1);
    }
}

@keyframes blinkDot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.cov-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-share-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    font-family: 'DM Sans', sans-serif;
}

.btn-share-new:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.btn-start-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F2930E;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-start-new::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.8s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    60%,
    100% {
        transform: translateX(100%);
    }
}

.btn-start-new:hover {
    background: #d97e0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 147, 14, 0.3);
    color: #fff;
}

.cov-body {
    padding: 26px 28px 24px;
}

.cov-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.cov-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(242, 147, 14, 0.1);
    border: 1px solid rgba(242, 147, 14, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #F2930E;
    flex-shrink: 0;
    margin-top: 2px;
}

.cov-title {
    font-size: 20px;
    font-weight: 700;
    color: #19293D;
    margin: 0 0 4px;
    line-height: 1.3;
    font-family: 'DM Sans', sans-serif;
}

.cov-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(19, 41, 61, 0.45);
    font-family: 'DM Sans', sans-serif;
    margin: 0;
}

.cov-divider {
    height: 1px;
    background: rgba(19, 41, 61, 0.08);
    margin: 0 0 18px;
}

.cov-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #5a6a7a;
    margin: 0 0 20px;
    font-family: 'DM Sans', sans-serif;
}

.cov-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cov-stat {
    background: #f8fafb;
    border: 1px solid rgba(19, 41, 61, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.2s, transform 0.2s;
}

.cov-stat:hover {
    border-color: rgba(242, 147, 14, 0.35);
    transform: translateY(-2px);
}

.cov-stat-icon {
    font-size: 18px;
    color: #F2930E;
    flex-shrink: 0;
}

.cov-stat-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #19293D;
    font-family: 'DM Sans', sans-serif;
}

.cov-stat-info span {
    font-size: 11px;
    color: #8a9aaa;
    font-family: 'DM Sans', sans-serif;
}

@media (max-width: 768px) {
    .cov-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .cov-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .cov-actions {
        width: 100%;
    }

    .btn-start-new {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cov-stats-row {
        grid-template-columns: 1fr;
    }

    .cov-body {
        padding: 20px 18px;
    }

    .cov-top-bar {
        padding: 16px 18px;
    }
}

/* ── Standalone Course Overview Card (inside grid column) ─── */
.overview-standalone-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border: 1px solid rgba(19, 41, 61, 0.09);
    border-radius: 14px;
    padding: 22px 28px;
    box-shadow: 0 4px 20px rgba(19, 41, 61, 0.06);
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.overview-standalone-left {
    flex: 1;
    min-width: 180px;
}

.overview-standalone-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #19293D;
    text-decoration: none;
    transition: color 0.3s;
}

.overview-standalone-desc {
    color: #000;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ── Overview Panel ────────────────────────────────────────── */
.overview-panel {
    background: #fff;
    border: 1px solid rgba(19, 41, 61, 0.08);
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 24px rgba(19, 41, 61, 0.06);
}

.overview-intro {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(19, 41, 61, 0.08);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.overview-intro-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5a6a7a;
    font-family: 'DM Sans', sans-serif;
    min-width: 200px;
}

.btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F2930E;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
    font-family: 'DM Sans', sans-serif;
    flex-shrink: 0;
}

.btn-get-started:hover {
    background: #d97e0a;
    color: #fff;
    transform: translateY(-2px);
}

/* ── Questions Label ───────────────────────────────────────── */
.questions-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(19, 41, 61, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.questions-header .q-count {
    font-size: 28px;
    font-weight: 900;
    font-family: "Open Sans", sans-serif;
    ;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'DM Sans', sans-serif;
}

.questions-header .q-sub {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(19, 41, 61, 0.4);
    font-family: 'DM Sans', sans-serif;
}

.questions-info-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(19, 41, 61, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #5a6a7a;
    cursor: pointer;
}

/* ── Questions Grid ────────────────────────────────────────── */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.question-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border: 1px solid rgba(19, 41, 61, 0.1);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: #19293D;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    transition: all 0.25s ease;
    line-height: 1.3;
}

.question-pill:hover {
    border-color: #F2930E;
    background: #fff8f0;
    color: #F2930E;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(242, 147, 14, 0.12);
}

.question-pill .pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(242, 147, 14, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #F2930E;
    flex-shrink: 0;
    transition: background 0.25s;
}

.question-pill:hover .pill-icon {
    background: #F2930E;
    color: #fff;
}

/* ── Resource Cards ────────────────────────────────────────── */
.resource-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.resource-card {
    background: #19293D;
    border-top: 8px solid #F2930E;
    border-radius: 14px;
    padding: 24px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(19, 41, 61, 0.25);
}

.resource-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(242, 147, 14, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #F2930E;
}

.resource-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    font-family: 'DM Sans', sans-serif;
}

.resource-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    flex: 1;
}

.btn-resource-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    font-family: 'DM Sans', sans-serif;
    align-self: flex-start;
    margin-top: 4px;
}

.btn-resource-primary:hover {
    background: #F2930E;
    color: #fff;
}

.btn-resource-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #19293D;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
    align-self: flex-start;
    margin-top: 4px;
}

.btn-resource-outline:hover {
    border-color: #F2930E;
    color: #F2930E;
}

/* ── Right Sticky Sidebar (content area) ───────────────────── */
.course-sticky-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(19, 41, 61, 0.07);
    border: 1px solid rgba(19, 41, 61, 0.07);
}

.sidebar-card-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(19, 41, 61, 0.5);
    margin-bottom: 16px;
    font-family: 'DM Sans', sans-serif;
}

.course-stat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.course-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(242, 147, 14, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #F2930E;
    flex-shrink: 0;
}

.stat-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #19293D;
    font-family: 'DM Sans', sans-serif;
}

.stat-info span {
    font-size: 0.78rem;
    color: #6c7a8a;
    font-family: 'DM Sans', sans-serif;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {

    .course-hero-inner,
    .course-content-grid {
        grid-template-columns: 1fr;
    }

    .course-hero-left {
        padding: 0 0 36px 0;
    }

    .course-hero-sidebar {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 24px 0 28px;
    }

    .course-sticky-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .course-hero {
        padding: 40px 0 0;
    }

    .course-hero-title {
        font-size: 2rem;
    }

    .questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-cards {
        grid-template-columns: 1fr;
    }

    .overview-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-get-started {
        width: 100%;
        justify-content: center;
    }

    /* Responsive font sizes */
    .overview-standalone-title {
        font-size: 20px;
    }

    .overview-standalone-desc {
        font-size: 15px;
    }

    .questions-header .q-count {
        font-size: 20px;
    }

    .questions-header .q-sub {
        font-size: 12px;
    }

    .overview-standalone-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-hero-title {
        font-size: 1.7rem;
    }
}

/* ── User Reviews Section ────────────────────────────────── */
.user-reviews-section {
    margin-top: 16px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 28px;
}

.reviews-title {
    font-size: 2rem;
    font-weight: 900;
    color: #19293D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.reviews-title::before,
.reviews-title::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: rgba(19, 41, 61, 0.15);
    display: block;
}

.reviews-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(19, 41, 61, 0.45);
    margin-bottom: 20px;
    font-family: 'DM Sans', sans-serif;
}

.btn-add-review {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F2930E;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-add-review:hover {
    /* transform: translateY(-3px); */
    box-shadow: 0 12px 30px rgba(242, 147, 14, 0.4);
    color: #fff;
}

.btn-add-review:active {
    transform: scale(0.97);
}




.btn-view-all-news {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F2930E;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.btn-view-all-news:hover {
    background: #d97e0a;
    color: #fff;
    box-shadow: 0 12px 30px rgba(242, 147, 14, 0.4);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.btn-view-all-news:active {
    transform: scale(0.97);
}




.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reviews-view-more {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-view-more-reviews {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #F2930E;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    transition: gap 0.2s, opacity 0.2s;
}

.btn-view-more-reviews:hover {
    opacity: 0.8;
    gap: 10px;
    color: #F2930E;
}

.review-card {
    background: #fff;
    border: 1px solid rgba(19, 41, 61, 0.09);
    border-radius: 14px;
    padding: 22px 28px;
    box-shadow: 0 4px 18px rgba(19, 41, 61, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow 0.3s, transform 0.25s;
}

.review-card:hover {
    box-shadow: 0 8px 28px rgba(19, 41, 61, 0.12);
    transform: translateY(-2px);
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(242, 147, 14, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #F2930E;
    flex-shrink: 0;
    margin-top: 2px;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reviewer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reviewer-info p {
    font-size: 0.9rem;
    color: #5a6a7a;
    line-height: 1.6;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

.reviewer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.reviewer-footer h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #19293D;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

.review-time {
    font-size: 0.78rem;
    /* color: rgba(19, 41, 61, 0.4); */
    color: #454545;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
}

.review-stars {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.review-stars i {
    font-size: 15px;
    color: #F2930E;
}

.review-box {
    background-color: #f7fafc;
    padding: 7px;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .review-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-stars {
        align-self: flex-start;
    }

    .reviews-title {
        font-size: 1.5rem;
    }
}

/* ================================================================
   Review Modal
   ================================================================ */

/* Overlay */
.review-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 28, 0.72);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.review-modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Box */
.review-modal-box {
    background: #19293D;
    border-radius: 18px;
    padding: 36px 32px 32px;
    width: 100%;

    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.28s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.review-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.review-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Title */
.review-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 0 0 28px;
    font-family: 'DM Sans', sans-serif;
}

/* Two-column row */
.review-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Field */
.review-modal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.review-modal-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.03em;
}

.review-modal-field input,
.review-modal-field textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    resize: vertical;
    width: 100%;
}

.review-modal-field input::placeholder,
.review-modal-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.review-modal-field input:focus,
.review-modal-field textarea:focus {
    border-color: #F2930E;
    background: rgba(255, 255, 255, 0.11);
}

/* Star Rating in Modal */
.star-rating {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.star-rating i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.2);
    transition: transform 0.2s, color 0.2s;
}

.star-rating i.active-star {
    color: #FFD700 !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.star-rating i:hover {
    transform: scale(1.25);
    color: #ffc107;
}

/* Submit Button */
.review-modal-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: #F2930E;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 10px;
}

.review-modal-submit:hover {
    background: #d97e0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 147, 14, 0.3);
}

/* Initials Avatar for dynamically added cards */
.reviewer-avatar-initials {
    font-size: 1rem;
    font-weight: 800;
    font-family: 'DM Sans', sans-serif;
    color: #F2930E;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(242, 147, 14, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* New card slide-in animation */
.review-card-new {
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.review-card-new.review-card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Responsive */
@media (max-width: 560px) {
    .review-modal-row {
        grid-template-columns: 1fr;
    }

    .review-modal-box {
        padding: 28px 20px 24px;
    }
}




/* student reviews css */

.review-content {
    max-width: 1000px;
}

/* ── Reviews Hero ─────────────────────────── */
.reviews-hero {
    background: #19293D;
    padding: 48px 0;
}

.reviews-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.reviews-hero-left {
    max-width: 75%;
}

.reviews-hero-left h1 {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 10px;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.2;
}

.reviews-hero-left p {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

/* Rating Box */
.reviews-hero-rating {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
}

.rating-score {
    text-align: center;
    line-height: 1;
}

.rating-score .score-num {
    font-size: 2.4rem;
    font-weight: 900;
    color: #F2930E;
    font-family: 'DM Sans', sans-serif;
    display: block;
}

.rating-score .score-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
}

.rating-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.rating-details .rating-stars-hero {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.rating-details .rating-stars-hero i {
    font-size: 1.15rem;
    color: #F2930E;
}

.rating-details .rating-stars-hero i.star-empty {
    color: rgba(255, 255, 255, 0.2);
}

.rating-details .rating-count {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'DM Sans', sans-serif;
    margin: 0;
}

@media (max-width: 600px) {
    .reviews-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-hero-left h1 {
        font-size: 1.8rem;
    }
}

/* ── Filter Bar ─────────────────────────────── */
.reviews-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 20px;
    flex-wrap: wrap;
}

/* Sort dropdown */
.reviews-sort-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.reviews-sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid rgba(19, 41, 61, 0.18);
    border-radius: 8px;
    padding: 10px 40px 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #19293D;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    outline: none;
    min-width: 160px;
    transition: border-color 0.2s;
}

.reviews-sort-select:focus {
    border-color: #F2930E;
}

.reviews-sort-icon {
    position: absolute;
    right: 13px;
    font-size: 0.8rem;
    color: #19293D;
    pointer-events: none;
}

/* Search input */
.reviews-search-wrap {
    flex: 1;
    max-width: 300px;
    margin-left: auto;
    position: relative;
}

.reviews-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: rgba(19, 41, 61, 0.4);
    pointer-events: none;
}

.reviews-search-input {
    width: 100%;
    border: 1px solid rgba(19, 41, 61, 0.18);
    border-radius: 8px;
    padding: 10px 16px 10px 36px;
    font-size: 0.88rem;
    color: #19293D;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}

.reviews-search-input::placeholder {
    color: rgba(19, 41, 61, 0.35);
}

.reviews-search-input:focus {
    border-color: #F2930E;
}

@media (max-width: 560px) {
    .reviews-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .reviews-search-wrap {
        max-width: 100%;
        margin-left: 0;
    }
}

/* ── Pagination ─────────────────────────────── */
.reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.rpag-btn,
.rpag-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(19, 41, 61, 0.15);
    background: #fff;
    color: #19293D;
    font-size: 0.88rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.rpag-btn:hover,
.rpag-page:hover {
    border-color: #F2930E;
    color: #F2930E;
}

.rpag-page.active {
    background: #F2930E;
    border-color: #F2930E;
    color: #fff;
}

.rpag-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.rpag-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: rgba(19, 41, 61, 0.4);
    font-size: 0.88rem;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 2px;
}

.rpag-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}