/* =========================================================
   COURSE DETAILS PAGE - STYLES
   Path: public/css/course-details.css
   ========================================================= */

/* ---------- STATIC HEADER BANNER ---------- */
.single-job-thumb.st2 {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
}

.single-job-thumb.st2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-job-thumb.st2 .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px 40px;
}

.single-job-thumb.st2 .banner-overlay h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .single-job-thumb.st2 { height: 220px; }
    .single-job-thumb.st2 .banner-overlay { padding: 18px 20px; }
    .single-job-thumb.st2 .banner-overlay h1 { font-size: 22px; }
}

/* ---------- COURSE CONTENT WRAPPER ---------- */
.course-content-wrap {
    padding: 24px 0;
}

.course-title-block h3 {
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #111;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* ---------- DYNAMIC COURSE IMAGE ---------- */
.course-image-block {
    position: relative;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(20, 20, 40, 0.14);
    border: 1px solid #eef0f5;
}

.course-image-block .img-frame {
    overflow: hidden;
    border-radius: 16px;
}

.course-image-block img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.course-image-block:hover img {
    transform: scale(1.05);
}

.course-image-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    border-radius: 16px;
}

.course-image-block .img-caption {
    position: absolute;
    left: 22px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.course-image-block .img-caption i {
    color: #3E6FB0;
}

@media (max-width: 768px) {
    .course-image-block img { height: 240px; }
}

/* ---------- INFO BLOCKS (Description, Eligibility, etc.) ---------- */
.course-info-block {
    margin-bottom: 22px;
    padding: 20px 22px;
    background: #fafafa;
    border: 1px solid #eee;
    border-left: 4px solid #1B4B91;
    border-radius: 8px;
}

.course-info-block:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.course-info-block h5,
.course-info-block h6 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-info-block h5 i,
.course-info-block h6 i {
    color: #1B4B91;
    font-size: 16px;
}

.course-info-block .rich-text {
    color: #555;
    font-size: 15px;
    line-height: 1.75;
}

.course-info-block .rich-text p {
    margin-bottom: 10px;
}

.course-info-block .rich-text ul,
.course-info-block .rich-text ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.course-info-block .rich-text ul li,
.course-info-block .rich-text ol li {
    margin-bottom: 6px;
}

/* ---------- SIDEBAR WRAPPER ---------- */
.sidebar-sticky-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.po-sticky {
    position: sticky;
    top: 20px;
}

/* =========================================================
   CARD 1 — COURSE OVERVIEW  (light card, blue accent, list style)
   ========================================================= */
.overview-card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 6px 20px rgba(20, 20, 40, 0.06);
}

.overview-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f2f7;
}

.overview-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #1B4B91, #3E6FB0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.sidebar-heading {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.list-infor {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-infor li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.list-infor li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-infor .category {
    font-size: 13.5px;
    font-weight: 600;
    color: #8a8f9c;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.list-infor .category i {
    color: #1B4B91;
    font-size: 13px;
    width: 14px;
    text-align: center;
}

.list-infor .detail {
    font-size: 14.5px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
}

.list-infor .detail.highlight {
    color: #1B4B91;
    font-size: 15.5px;
}

/* =========================================================
   CARD 2 — CONTACT US  (dark accent header, distinct from overview)
   ========================================================= */
.contact-card {
    background: #10182b;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 10px 26px rgba(16, 24, 43, 0.25);
    color: #fff;
}

.contact-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #3E6FB0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.contact-card-header h6 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.contact-card-header p {
    font-size: 13px;
    color: #a7afc4;
    margin: 0;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    font-size: 14px;
    color: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #7d859c;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3E6FB0;
    background: rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
    min-height: 110px;
    resize: vertical;
}

.contact-form button {
    margin-top: 4px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #1B4B91, #3E6FB0);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.contact-form button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .po-sticky {
        position: static;
        margin-top: 30px;
    }
}
