/* ========================================================= COURSE DETAILS PAGE ========================================================= */
/* ================= POST HEADER ================= */
.post-head {
    margin-bottom: 24px;
}

.post-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13.5px;
    color: #999;
}

.meta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 4px;
}

.meta-author {
    color: #d0342c;
    font-weight: 700;
    text-decoration: none;
}

.meta-author:hover {
    color: #0b82d0;
}

.meta-dash {
    color: #ccc;
    margin: 0 6px;
}

.meta-cats a {
    color: #999;
    text-decoration: none;
}

.meta-cats a:hover {
    color: #0b82d0;
    text-decoration: underline;
}

/* ================= FEATURED IMAGE ================= */
.post-thumb {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
}

.post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================= CTA BUTTON ROW ================= */
.course-cta-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 22px 0 26px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 40px;
    padding: 10px 10px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 3px;
    transition: all .3s ease;
}

.cta-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
    filter: brightness(1.08);
}

.cta-navy {
    background: #17356b;
}

.cta-green {
    background: #1a9c3e;
}

.cta-teal {
    background: #14566b;
}

.cta-red {
    background: #e2231a;
}

/* ================= BODY CONTENT ================= */
.ck_content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.ck_content h2 {
    font-size: 27px;
    font-weight: 700;
    color: #17356b;
    margin: 30px 0 14px;
    text-align: left;
}

.ck_content h3 {
    font-size: 21px;
    font-weight: 700;
    color: #0b4b82;
    margin: 24px 0 12px;
    text-align: left;
}

.ck_content p {
    margin-bottom: 16px;
}

.ck_content ul,
.ck_content ol {
    margin-bottom: 18px;
    padding-left: 22px;
}

.ck_content li {
    margin-bottom: 8px;
}

.ck_content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ck_content a {
    color: #0b82d0;
}

.ck_content strong {
    color: #111;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 22px;
}

.ck_content table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.ck_content table th,
.ck_content table td {
    border: 1px solid #d8e0e8;
    padding: 10px 14px;
    font-size: 15px;
    text-align: left;
}

.ck_content table th {
    background: #d7e1eb;
    font-weight: 700;
}

.ck_content table tr:nth-child(even) td {
    background: #fafbfc;
}

/* ================= SYLLABUS ================= */
.block-title {
    font-size: 27px;
    font-weight: 700;
    color: #17356b;
    margin: 32px 0 18px;
}

.semester-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.semester-btn {
    border: 1px solid #d8e0e8;
    background: #fff;
    color: #17356b;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .25s ease;
}

.semester-btn:hover {
    border-color: #0b82d0;
    color: #0b82d0;
}

.semester-btn.active {
    background: #17356b;
    border-color: #17356b;
    color: #fff;
}

.syllabus-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}

.syllabus-table th,
.syllabus-table td {
    border: 1px solid #d8e0e8;
    padding: 11px 15px;
    font-size: 15px;
    text-align: left;
}

.syllabus-table th {
    background: #d7e1eb;
    font-weight: 700;
}

/* ================= SIDEBAR ================= */
.sidebar-sticky {
    position: sticky;
    top: 90px;
}

.side-block {
    margin-bottom: 30px;
}

.side-title,
.counselor-heading {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    padding-bottom: 9px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e2e2;
    position: relative;
}

.side-title::after,
.counselor-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 34px;
    height: 3px;
    background: #17225e;
}

/* ================= COUNSELLOR CAROUSEL ================= */
.counselor-section {
    background: #fff;
    padding-top: 9px;
}

.counselor-card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 0px 20px 6px;
    text-align: center;
    position: relative;
}

/* navy strip above the card */
.counselor-card::before {
    content: "";
    position: absolute;
    top: -9px;
    left: -1px;
    right: -1px;
    height: 5px;
    background: #17225e;
}

/* --- verified pill --- */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #198754;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(240, 31, 44, .3);
    margin-bottom: 16px;
}

.verified-badge i {
    font-size: 10px;
}

/* --- avatar --- */
.counselor-avatar {
    width: 104px;
    height: 104px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 4px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .13);
}

.counselor-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* --- name / role --- */
.counselor-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    letter-spacing: .6px;
    margin-bottom: 4px;
}

.counselor-role {
    font-size: 14px;
    font-weight: 600;
    color: #e2231a;
    margin-bottom: 12px;
}

/* --- experience pill --- */
.exp-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eaf4fb;
    color: #0b4b82;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.exp-pill i {
    color: #17225e;
    font-size: 11px;
}

/* --- education --- */
.counselor-edu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
}

.counselor-edu i {
    color: #17225e;
    font-size: 12px;
}

/* --- dashed note --- */
.counselor-note {
    background: #fff;
    border: 1px dashed #b6d4ea;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.65;
    color: #4a5f75;
    text-align: center;
    margin-bottom: 0;
}

/* --- call back link --- */
.callback-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    background: none;
    color: #17225e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 15px 12px 16px;
    margin-top: 16px;
    border-top: 1px solid #eef1f4;
    transition: color .25s ease;
}

.callback-btn:hover {
    color: #0b82d0;
}

.callback-btn i {
    font-size: 14px;
}

/* --- slide height lock (stops sidebar jumping) --- */
.counselor-carousel .carousel-item {
    min-height: 440px;
}

/* --- indicators --- */
.counselor-dots {
    position: static;
    margin: 14px 0 0;
}

.counselor-dots button {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: #c9d2db !important;
    border: none !important;
    opacity: 1 !important;
    margin: 0 4px !important;
    transition: all .3s ease;
}

.counselor-dots button.active {
    background: #17225e !important;
    width: 24px !important;
    border-radius: 50px !important;
}

/* ================= ENQUIRY FORM ================= */
.side-form .form-control {
    border: 1px solid #dde3e9;
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 14px;
    margin-bottom: 12px;
}

.side-form .form-control:focus {
    border-color: #0b82d0;
    box-shadow: 0 0 0 3px rgba(11, 130, 208, .12);
}

.side-submit {
    width: 100%;
    background: #17356b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.side-submit:hover {
    background: #0b4b82;
    transform: translateY(-2px);
}

/* ========================================================= RESPONSIVE ========================================================= */
/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .post-title {
        font-size: 33px;
    }

    .sidebar-sticky {
        position: static;
        max-width: 500px;
        margin: 10px auto 0;
    }

    .ck_content h2 {
        font-size: 24px;
    }

    .ck_content h3 {
        font-size: 19px;
    }

    .block-title {
        font-size: 24px;
    }
}

/* ---------- Small tablet / large phone ---------- */
@media (max-width: 767px) {
    .course-cta-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cta-btn {
        min-height: 56px;
        font-size: 13.5px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 576px) {
    .post-title {
        font-size: 24px;
        line-height: 1.25;
        letter-spacing: -.2px;
    }

    .post-meta {
        font-size: 12.5px;
        gap: 5px;
    }

    .meta-avatar {
        width: 32px;
        height: 32px;
    }

    .meta-dash {
        display: none;
    }

    .course-cta-row {
        margin: 18px 0 22px;
    }

    .ck_content {
        font-size: 15px;
        line-height: 1.75;
    }

    .ck_content h2 {
        font-size: 20px;
    }

    .ck_content h3 {
        font-size: 17px;
    }

    .block-title {
        font-size: 20px;
    }

    .semester-tabs {
        gap: 6px;
    }

    .semester-btn {
        font-size: 13px;
        padding: 8px 12px;
        flex: 1 1 calc(33.333% - 6px);
    }

    .counselor-card {
        padding: 20px 16px 4px;
    }

    .counselor-avatar {
        width: 96px;
        height: 96px;
    }

    .counselor-name {
        font-size: 15px;
    }

    .counselor-role {
        font-size: 13.5px;
    }

    .verified-badge {
        font-size: 11.5px;
        padding: 6px 16px;
    }

    .counselor-note {
        font-size: 12.5px;
        padding: 12px 13px;
    }

    .callback-btn {
        font-size: 14.5px;
        padding: 14px 10px 15px;
    }

    .counselor-carousel .carousel-item {
        min-height: 420px;
    }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
    .course-cta-row {
        grid-template-columns: 1fr;
    }

    .cta-btn {
        min-height: 48px;
    }
}