/* ==========================================================================
   IBM Carbon Design System styled course stylesheet
   ========================================================================== */

/* Font Family Integration */
.course-hero,
.quick-info-card,
.course-nav,
.content-section,
.outcome-card,
.spec-card,
.career-stat-box,
.recruiter-pill,
.facility-chip,
.apply-strip,
.cds-rich-content {
    font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* ── Course Hero ── */
.course-hero {
    background: #12161a;
    padding: 70px 0 50px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #393939;
}
.course-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../assets/img/education/education-4.webp') center/cover no-repeat;
    opacity: 0.08;
    mix-blend-mode: overlay;
}
.course-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    background: #393939;
    border: 1px solid #525252;
    color: #f4f4f4 !important;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 12px;
    border-radius: 0 !important;
    margin-bottom: 16px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.course-hero h1 {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.course-hero p.lead {
    font-size: 1rem;
    opacity: .85;
    max-width: 600px;
    line-height: 1.5;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}
.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: .9;
}
.hero-meta-item i { font-size: 16px; color: #78a9ff !important; }
.hero-cta-group { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta-group .btn-apply {
    background: #0f62fe;
    color: #ffffff !important;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 0 !important;
    text-decoration: none;
    transition: background-color 0.15s;
    font-size: 14px;
    border: none;
}
.hero-cta-group .btn-apply:hover { background: #0b51d5; }
.hero-cta-group .btn-brochure {
    border: 1px solid #ffffff;
    color: #ffffff !important;
    font-weight: 500;
    padding: 9px 24px;
    border-radius: 0 !important;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    font-size: 14px;
}
.hero-cta-group .btn-brochure:hover { background: #ffffff; color: #12161a !important; }

/* ── Sticky Quick Info Card (Flat Carbon Design) ── */
.quick-info-card {
    background: #ffffff;
    border-radius: 0 !important;
    border: 1px solid #e0e0e0;
    padding: 24px;
    position: sticky;
    top: 90px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.quick-info-card h5 {
    color: #161616 !important;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}
.quick-info-card .info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f4f4f4;
}
.quick-info-card .info-row:last-of-type { border-bottom: none; }
.quick-info-card .info-row i {
    font-size: 16px;
    color: #0f62fe !important;
    margin-top: 3px;
    flex-shrink: 0;
}
.quick-info-card .info-row .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #525252 !important;
    margin-bottom: 2px;
}
.quick-info-card .info-row .value {
    font-weight: 500;
    font-size: 13.5px;
    color: #161616 !important;
}
.quick-info-card .btn-apply-full {
    display: block;
    text-align: center;
    background: #0f62fe;
    color: #ffffff !important;
    padding: 12px;
    border-radius: 0 !important;
    font-weight: 500;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.15s;
    font-size: 14px;
    border: none;
}
.quick-info-card .btn-apply-full:hover { background: #0b51d5; }

/* ── Section nav tabs (Carbon Tab Style) ── */
.course-nav {
    background: #f4f4f4;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 80px; /* Aligns with dynamic header */
    z-index: 99;
}
.course-nav .container {
    padding: 0;
}
.course-nav .nav-tabs {
    border: none;
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
}
.course-nav .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #525252 !important;
    white-space: nowrap;
    border-radius: 0 !important;
    transition: all 0.15s ease-in-out;
}
.course-nav .nav-tabs .nav-link:hover {
    background-color: #e5e5e5;
    color: #161616 !important;
}
.course-nav .nav-tabs .nav-link.active {
    color: #0f62fe !important;
    border-bottom-color: #0f62fe;
    background: #ffffff;
    font-weight: 600;
}

/* ── General content blocks ── */
.content-section { padding: 45px 0; }
.content-section + .content-section { border-top: 1px solid #e0e0e0; }
.section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0f62fe !important;
    margin-bottom: 6px;
}
.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #161616 !important;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}
.section-heading span { color: #0f62fe !important; }

/* ── IBM Carbon Auto Layout for headers edited by Admin ── */
.cds-rich-content h3, 
.cds-rich-content h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #161616 !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    border-left: 4px solid #0f62fe !important;
    padding-left: 14px !important;
}
.cds-rich-content h3 {
    font-size: 1.25rem !important;
}
.cds-rich-content h4 {
    font-size: 1.125rem !important;
    border-left-color: #525252 !important; /* Secondary Carbon line */
}

/* ── IBM Carbon Auto Layout for lists edited by Admin ── */
.cds-rich-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
}
.cds-rich-content ul li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 12px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #393939 !important;
}
.cds-rich-content ul li::before {
    content: '' !important;
    position: absolute !important;
    left: 2px !important;
    top: 4px !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%230f62fe' d='M13 24l-9-9 2.12-2.12L13 19.76l13.88-13.88L29 8z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

/* ── Outcome cards (Carbon Tile Style) ── */
.outcome-card {
    background: #f4f4f4 !important;
    border: 1px solid #e0e0e0 !important;
    border-top: 4px solid #0f62fe !important;
    border-radius: 0 !important;
    padding: 24px !important;
    height: 100% !important;
    transition: all 0.15s ease-in-out !important;
}
.outcome-card:hover { 
    background-color: #e5e5e5 !important;
    border-color: #0f62fe !important;
    transform: translateY(-2px);
}
.outcome-card::before {
    content: '' !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 14px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%230f62fe' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2zm0 26a12 12 0 1 1 12-12 12 12 0 0 1-12 12z'/%3E%3Cpath fill='%230f62fe' d='M16 8a8 8 0 1 0 8 8 8 8 0 0 0-8-8zm0 14a6 6 0 1 1 6-6 6 6 0 0 1-6 6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}
.outcome-card i { display: none !important; } /* Hide old custom inline icons */
.outcome-card h5 { font-size: 14px !important; font-weight: 600 !important; margin-bottom: 6px !important; color: #161616 !important; }
.outcome-card p { font-size: 13px !important; color: #525252 !important; margin: 0 !important; line-height: 1.45 !important; }

/* ── Curriculum year layout ── */
.curriculum-year-label {
    background: #e0e0e0;
    color: #161616;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: 0 !important;
    display: inline-block;
    margin-bottom: 10px;
}
.accordion-button {
    border-radius: 0 !important;
}
.accordion-button:not(.collapsed) {
    background: #e5e5e5;
    color: #161616;
    box-shadow: none;
}
.subject-list { list-style: none; padding: 0; margin: 0; }
.subject-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 13px;
    color: #525252;
}
.subject-list li:last-child { border-bottom: none; }
.subject-list .credits-badge {
    background: #e0e0e0;
    color: #161616;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 0 !important;
    white-space: nowrap;
}
.subject-list .lab-badge {
    background: #fff3cd;
    color: #856404;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 0 !important;
    white-space: nowrap;
}

/* ── Specialisation tabs & sub-lists ── */
.spec-card {
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 24px !important;
    height: 100% !important;
    transition: all 0.15s ease-in-out !important;
    background: #ffffff !important;
}
.spec-card:hover { border-color: #0f62fe !important; background: #f4f4f4 !important; }
.spec-card::before {
    content: '' !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 14px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%230f62fe' d='M26 6H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 18H6V8h20z'/%3E%3Cpath fill='%230f62fe' d='M9 10h4v2H9zm0 4h14v2H9zm0 4h14v2H9z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}
.spec-card .spec-icon { display: none !important; }
.spec-card h5 { font-size: 14px !important; font-weight: 600 !important; color: #161616 !important; margin-bottom: 12px !important; }
.spec-card ul { padding-left: 0 !important; margin-top: 8px !important; margin-bottom: 0 !important; }
.spec-card ul li {
    padding-left: 20px !important;
    font-size: 13px !important;
    color: #525252 !important;
    margin-bottom: 6px !important;
}
.spec-card ul li::before {
    width: 10px !important;
    height: 10px !important;
    top: 6px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect fill='%230f62fe' x='6' y='14' width='20' height='4'/%3E%3C/svg%3E") !important;
}

/* ── Faculty cards ── */
.faculty-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0 !important;
    padding: 20px;
    text-align: center;
    transition: all 0.15s ease-in-out;
}
.faculty-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.05); border-color: #0f62fe; }
.faculty-avatar {
    width: 64px; height: 64px;
    background: #0f62fe;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff !important;
}
.faculty-card h5 { font-size: 14px; font-weight: 600; color: #161616 !important; margin-bottom: 2px; }
.faculty-card .designation { font-size: 12px; color: #0f62fe !important; margin-bottom: 2px; }
.faculty-card .qualification { font-size: 11.5px; color: #525252 !important; margin-bottom: 8px; }
.faculty-card .specialization-tag {
    display: inline-block;
    background: #e5e5e5;
    color: #161616 !important;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 0 !important;
}

/* ── Career / Placement ── */
.career-stat-box {
    background: #0f62fe;
    color: #ffffff !important;
    border-radius: 0 !important;
    padding: 24px 16px;
    text-align: center;
}
.career-stat-box h2 { font-size: 2rem; font-weight: 600; margin-bottom: 2px; color: #ffffff !important; }
.career-stat-box p { font-size: 12px; opacity: .9; margin: 0; color: #ffffff !important; }

.recruiter-pill {
    display: inline-flex !important;
    align-items: center !important;
    background: #f4f4f4 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 6px 14px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #161616 !important;
    margin: 4px !important;
}
.recruiter-pill::before {
    content: '' !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    margin-right: 8px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%230f62fe' d='M12 4V2h8v2h5v6H7V4h5zm11 2v2H9V6h14zm2 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V12h20zm-2 2H9v12h14V14z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    vertical-align: middle !important;
}

/* ── Facilities chips ── */
.facility-chip {
    display: inline-flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    color: #161616 !important;
    margin: 4px !important;
    font-weight: 500 !important;
}
.facility-chip::before {
    content: '' !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    margin-right: 8px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%230f62fe' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2zm0 24a10 10 0 1 1 10-10 10 10 0 0 1-10 10z'/%3E%3Cpath fill='%230f62fe' d='M15 15v6h2v-6zm0-4h2v2h-2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    vertical-align: middle !important;
}

/* ── Apply CTA strip ── */
.apply-strip {
    background: #12161a;
    color: #ffffff !important;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #393939;
}
.apply-strip h2 { font-size: 1.75rem; font-weight: 600; margin-bottom: 8px; color: #ffffff !important; }
.apply-strip p { opacity: .85; margin-bottom: 24px; font-size: 0.95rem; color: #ffffff !important; }
.apply-strip .btn-white {
    background: #0f62fe;
    color: #ffffff !important;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 0 !important;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.15s;
    display: inline-block;
    border: none;
}
.apply-strip .btn-white:hover { background: #0b51d5; }

@media (max-width: 991px) {
    .course-hero h1 { font-size: 1.75rem; }
    .quick-info-card { position: static; margin-top: 24px; }
}