/* ==========================================================================
   Course Single Post Custom Stylesheet
   Theme: OceanWP Child Theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');

/* --- Reset & Base --- */
body.single-course #content-wrap,
body.single-course #primary,
body.single-course #content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 !important;
    background: #F9F9F9 !important;
    overflow: visible !important;
}

#content-wrap,
#primary,
.course-page-wrapper,
.course-hero-section,
.course-hero-section .course-container {
    overflow: visible !important;
}

.course-page-wrapper {
    font-family: 'Open Sans', sans-serif;
    color: #1e293b;
    line-height: 1.6;
    box-sizing: border-box;
    max-width:1440px;
    width:100%;
    margin:0 auto;
     background: #F9F9F9;
}

.course-page-wrapper * {
    box-sizing: border-box;
}

/* Headings, Buttons and Badges use Montserrat */
h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.course-nav a,
.course-contact-btn,
.breadcrumb,
.tag-badge,
.tab-btn,
.accordion-title,
.faq-question,
.download-syllabus-btn,
.form-card button,
.form-card input[type="submit"],
.promo-btn {
    font-family: 'Montserrat', sans-serif;
}

/* --- Container & Layout --- */
.course-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

.course-header-bar {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.course-header-bar .course-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Header Branding & Nav --- */
.site-logo-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.site-logo-custom svg {
    flex-shrink: 0;
}

.site-logo-custom .logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-logo-custom .logo-text .applet-text {
    color: #1e3a8a;
}

.site-logo-custom .logo-text .logic-text {
    color: #ef4444;
}

.course-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.course-nav a {
    text-decoration: none;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.course-nav a:hover {
    color: #1e40af;
}

.course-nav a.active {
    color: #ef4444;
}

.course-contact-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1e40af;
    color: #ffffff !important;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.course-contact-btn:hover {
    background: #1d4ed8;
}

/* --- Hero Section & Outline Title --- */
.course-hero-section {
    padding: 60px 0 40px;
    position: relative;
    overflow: visible;
}

.course-hero-section .course-container {
    display: flex;
    gap: 60px;
    position: relative;
}

.course-hero-left {
    flex: 1.2;
    z-index: 10;
    margin-top: 250px;
}

.course-hero-right {
    flex: 0.8;
    position: sticky;
    top: 300px;
    align-self: flex-start;
    z-index: 10;
    margin-top: 250px;
}

.course-outline-title {
    font-family: 'Bebas Neue';
    font-size: clamp(60px, 15vw, 220px);
    font-weight: 400;
    text-transform: uppercase;
    color: #005BD385;
    /* -webkit-text-stroke: 2.5px rgba(26, 86, 219, 0.22); */
    /* transparent blue */
    letter-spacing: 1px;
    line-height: 1;
    position: absolute;
    top: -40px;
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
    text-align: center;
}

/* --- Content Blocks --- */
.breadcrumb {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #1a56db;
    text-decoration: none;
}

.breadcrumb .separator {
    color: #ef4444;
    margin: 0 1px;
}

.breadcrumb .current {
    color: #ef4444;
}

.course-title-main {
    display: none;
    /* Hidden to match exact screenshot design */
}

.section-heading-main {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 32px 0 16px 0;
}

.overview-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 580px;
}

/* --- Metadata Items --- */
.meta-row {
    display: flex;
    gap: 24px;
    margin: 24px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.meta-item svg {
    color: #1a56db;
    width: 18px;
    height: 18px;
}

/* --- Career Roles tags --- */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.tag-badge {
    padding: 8px 16px;
    border: 1px solid #1a56db;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1a56db;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s;
    display: inline-block;
}

.tag-badge:hover {
    background-color: #1a56db;
    color: #ffffff;
    border-color: #1a56db;
    transform: translateY(-1px);
}

/* --- Form Inquiry Card --- */
.form-card {
    border: 1.5px solid #a5c2f9;
    border-radius: 36px;
    padding: 40px 30px;
    background: #FFFFFF80 !important;
    box-shadow: 0 10px 30px rgba(165, 194, 249, 0.08);
    margin-top:-250px;
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1.5px solid #a5c2f9;
    border-radius: 16px;
    font-size: 14px;
    margin-bottom: 16px;
    font-family: inherit;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.25s;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
    color: #94a3b8;
}

.form-card input:focus,
.form-card textarea:focus {
    border-color: #1a56db;
    outline: none;
}

.form-card button,
.form-card input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #004ecc;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s;
    margin-top: 8px;
}

.form-card button:hover,
.form-card input[type="submit"]:hover {
    background: #003fa3;
}

.form-card .wpcf7-form p {
    margin: 0;
}

.form-card .wpcf7-spinner {
    display: block;
    margin: 10px auto 0 auto;
}

/* --- Tabs --- */
.tabs-container {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 36px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.25s;
    user-select: none;
}

.tab-btn svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.tab-btn.active {
    color: #005BD3;
    border-bottom-color: #005BD3;
}

.tab-btn.active svg {
    color: #005BD3;
}

/* --- Curriculum --- */
.curriculum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.curriculum-title-wrap h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.curriculum-title-wrap p {
    font-size: 14px;
    color: #64748b;
    margin: 4px 0 0 0;
}

.download-syllabus-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1.5px solid #1e40af;
    border-radius: 8px;
    background: #ffffff;
    color: #1e40af;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
}

.download-syllabus-btn:hover {
    background: #1e40af;
    color: #ffffff;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.25s;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.accordion-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1e40af;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.accordion-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.accordion-arrow {
    transition: transform 0.25s ease;
    color: #94a3b8;
    flex-shrink: 0;
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.accordion-content {
    padding: 16px 20px 20px 64px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.accordion-content ul.curriculum-list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style-type: disc;
}

.accordion-content ul.curriculum-list li {
    margin-bottom: 8px;
    padding: 0;
    color: #475569;
}

.accordion-content ul.curriculum-list li:last-child {
    margin-bottom: 0;
}

/* --- FAQ Accordion --- */
.faq-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.faq-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 24px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.25s;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
}

.faq-question {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.faq-arrow {
    transition: transform 0.25s ease;
    color: #94a3b8;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.faq-content {
    padding: 16px 20px 20px 20px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* --- Promo Banner --- */
.promo-banner {
    background: linear-gradient(135deg, #5E2798 0%, #005BD3 100%);
    border-radius: 57px;
    padding: 60px 0px 60px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    margin-bottom: 60px;
    position: relative;
    overflow: visible;
    /* Allows the cutout image to overlap the top! */
    gap: 32px;
}

.promo-content {
    max-width: 65%;
    width: 100%;
    z-index: 2;
}

.promo-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 24px 0;
    color: #ffffff;
}

.promo-btn-outline {
    display: inline-block;
    padding: 9px 37px;
    border: 1px solid #ffffff;
    border-radius: 11px;
    background: transparent;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.25s;
}

.promo-btn-outline:hover {
    background: #ffffff;
    color: #005BD3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.promo-image-container {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 135%;
    /* Taller than the container, overflows the top border! */
    /* width: 45%; */
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    z-index: 5;
}

.promo-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
}

/* --- Site Footer --- */
.site-footer {
    background: #eff6ff;
    padding: 60px 0 30px 0;
    border-top: 1px solid #dbeafe;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1.5fr;
    gap: 48px;
    border-bottom: 1px solid #dbeafe;
    padding-bottom: 40px;
    margin-bottom: 24px;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #1e40af;
}

.footer-contact-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 20px 0 8px 0;
}

.footer-contact-email {
    color: #1e40af;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-email:hover {
    color: #1d4ed8;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
    transition: all 0.25s;
    text-decoration: none;
}

.social-icon:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .course-container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .course-hero-section .course-container {
        flex-direction: column;
        gap: 40px;
    }

    .course-hero-left {
        margin-top: 120px !important;
    }

    .course-hero-right {
        position: relative !important;
        top: 0 !important;
        margin-top: 0 !important;
    }

    .course-outline-title {
        font-size: 100px;
        top: -10px;
        width: 100%;
        text-align: left;
        left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

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

    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
        gap: 32px;
        overflow: hidden;
        /* Prevent cutout overflow on small viewports */
    }

    .promo-content {
        max-width: 100%;
    }

    .promo-image-container {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 20px !important;
        z-index: 5;
    }

    .promo-image {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
    }
}

@media (max-width: 600px) {
    .course-nav {
        display: none;
        /* Hide simple header menu on mobile for simplicity */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .meta-row {
        flex-direction: column;
        gap: 12px;
    }

    .curriculum-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .accordion-content {
        padding: 16px 20px 20px 20px;
    }

    .tabs-container {
        gap: 16px;
        margin-bottom: 24px;
    }

    .tab-btn {
        font-size: 13px;
        padding: 8px 0;
        gap: 4px;
    }

    .tab-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* --- Instructor Card --- */
.instructor-card-wrap {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

.instructor-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1e40af;
    flex-shrink: 0;
}

.instructor-details {
    flex: 1;
}

.instructor-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.instructor-meta {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 12px 0;
}

.instructor-quote {
    margin: 0;
    padding-left: 16px;
    border-left: 3px solid #ef4444;
    font-style: italic;
    font-size: 14px;
    color: #475569;
}

@media (max-width: 768px) {
    .instructor-card-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }
}

/* --- Tabs Content Card Wrapper --- */
.course-tabs-card {
    background: #ffffff;
    border-radius: 36px;
    padding: 40px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-bottom: 48px;
}

/* --- Tab Panel Headers --- */
.tab-panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.tab-panel-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px 0;
}

.tab-panel-content {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    max-width: 680px;
}

.tab-panel-content p {
    margin-bottom: 20px;
}

.tab-panel-content p:last-child {
    margin-bottom: 0;
}

/* --- Instructor Tab Panel Layout --- */
.instructor-tab-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 24px;
}

.instructor-tab-photo {
    width: 240px;
    height: 240px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.instructor-tab-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.instructor-tab-name {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #005BD3;
    margin: 0 0 4px 0;
    line-height: 1.1;
}

.instructor-tab-designation {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.instructor-tab-experience {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.instructor-tab-quote {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    margin: 0;
}

@media (max-width: 768px) {
    .course-tabs-card {
        padding: 24px;
        border-radius: 24px;
    }
    
    .instructor-tab-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .instructor-tab-photo {
        width: 100%;
        max-width: 280px;
        height: 280px;
    }
    
    .instructor-tab-info {
        text-align: center;
        align-items: center;
    }
}