:root {
    --Black: #000000;
    --White: #ffffff;
    --Secondary: #B8860B;
    --Primary: #1d2330;
    --Border: #E4E4E7;
    --Soft-Text: #585D69;
    --bg-1: #F3F3Fe;
    --bg-2: #E9DECE;
    --bg-3: #D7C7Ea;
    --bg-4: #FFF5E1;
    --bg-5: #F5F5F2;
}

/* Base Styles within the course container */
.course-details-container {
    font-family: inherit;
    /* Inherit from theme */
    color: var(--Primary);
    line-height: 1.6;
    font-size: 16px;
    /* Increased base font size */
}

.course-details-container h2,
.course-details-container h3,
.course-details-container h4 {
    color: var(--Primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.course-details-container h2 {
    font-size: 2rem;
    /* Larger headings */
    border-bottom: 2px solid var(--bg-2);
    padding-bottom: 10px;
}

.course-details-container h3 {
    font-size: 1.5rem;
    color: var(--Secondary);
}

.course-details-container h4 {
    font-size: 1.25rem;
}

/* Tabs Navigation */
.course-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: none;
    margin-bottom: 30px;
    margin-top: 40px;
    /* Added top spacing */
    list-style: none;
    padding: 0;
    gap: 15px;
    /* Increased gap */
}

.course-tab-item {
    margin-bottom: 0;
}

.course-tab-link {
    display: block;
    padding: 12px 28px;
    /* Slightly larger padding */
    color: var(--Soft-Text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
    /* Lighter clean background */
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
}

.course-tab-link:hover {
    color: var(--Secondary);
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.course-tab-link.active {
    color: var(--White);
    background-color: var(--Secondary);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.35);
    /* Glowing shadow */
    transform: translateY(-1px);
}

/* General Text Alignment */
.text-justify {
    text-align: justify;
}

.course-details-container p {
    text-align: justify;
}

/* Tab Content */
.course-tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.course-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordion for Mobile */
/* Accordion for Mobile */
.course-accordion-header {
    display: none;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--White);
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    color: var(--Secondary);
    font-weight: 700;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    /* Add margin between items */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    /* Soft distinctive shadow */
    position: relative;
}

.course-accordion-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Seamless Card Active State */
.course-accordion-header.active {
    color: var(--Secondary);
    border: 1px solid var(--Secondary);
    /* Primary border */
    border-bottom: 1px solid transparent;
    /* Remove bottom border for seamless join */
    background-color: var(--White);
    /* White background */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    transform: none;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.02);
    /* Subtle lift */
    position: relative;
    z-index: 2;
    /* Ensure it sits on top of content border */
}

/* Top Margin for the first accordion item (Mobile) */
.course-accordion-header:first-of-type {
    margin-top: 30px;
}

/* Chevron Icon */
.course-accordion-header::after {
    content: '\f078';
    /* Chevron Down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: transform 0.3s ease;
    color: var(--Secondary);
    font-size: 14px;
}

.course-accordion-header.active::after {
    transform: rotate(180deg);
}

/* Theme Color Utility */
.text-theme {
    color: var(--Secondary) !important;
}

/* Tables */
.course-table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 1.5rem;
    border: none;
    /* Removed border */
    border-radius: 8px;
    box-shadow: none;
    /* Removed shadow for cleaner look */
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    margin-bottom: 0;
    /* Remove empty space */
}

.course-table th {
    background-color: transparent;
    /* Light header */
    color: var(--Heading);
    /* Dark text */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--Secondary);
    /* Thinner accent */
    border-top: none;
    padding: 8px 12px;
    /* Reduced padding */
}

/* Consolidated table styles for compact height */
.course-table td {
    padding: 9px 12px;
    /* Middle ground padding */
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    vertical-align: middle;
    color: var(--Heading);
    line-height: 1.4;
    /* Ensure text doesn't force height */
}

.course-table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
    /* Zebra striping */
}

.course-table tbody tr:hover {
    background-color: rgba(184, 134, 11, 0.08);
    /* Gold/Primary hover tint */
    transition: background-color 0.2s ease;
}

.course-table th {
    background-color: var(--Primary);
    color: var(--White);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Lists */
.course-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.course-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--Soft-Text);
}

.course-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--Secondary);
    border-radius: 50%;
}

/* Blockquotes */
.course-blockquote {
    border-left: 4px solid var(--Secondary);
    background-color: var(--bg-4);
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--Primary);
    border-radius: 0 4px 4px 0;
}

/* FAQ Accordion within Tab */
.faq-item {
    border: 1px solid var(--Border);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-header {
    padding: 15px 20px;
    background-color: var(--White);
    cursor: pointer;
    font-weight: 600;
    color: var(--Primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-header:hover {
    background-color: var(--bg-5);
}

.faq-header.active {
    color: var(--Secondary);
    background-color: var(--bg-4);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-header.active .faq-icon {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--White);
    padding: 0 20px;
}

.faq-body p {
    padding: 15px 0;
    margin: 0;
    color: var(--Soft-Text);
}

/* Mobile Responsive Adjustments */
/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .course-tabs {
        display: none;
        /* Hide tabs on mobile */
    }

    .course-tab-content {
        display: none !important;
        /* Ensure hidden by default, override global .active */
    }

    /* Override desktop active state on mobile */
    .course-tab-content.active {
        display: none !important;
    }

    .course-accordion-header {
        display: flex;
        /* Show accordion headers */
    }

    /* When active, show content below */
    /* When active, show content below */
    .course-tab-content.mobile-active {
        display: block !important;
        padding: 20px;
        background: var(--White);
        border: 1px solid var(--Secondary);
        /* Match header border */
        border-top: none;
        /* Seamless join */
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(184, 134, 11, 0.08);
        position: relative;
        z-index: 1;
    }

    /* Reduce Heading Size inside mobile cards */
    .course-tab-content h2 {
        font-size: 1.65rem !important;
        /* Slightly more increased */
        margin-top: 0.5rem;
        padding-bottom: 8px;
        line-height: 1.4;
        border-bottom: 1px solid var(--Border);
    }

    .course-tab-content h3 {
        font-size: 1.4rem !important;
        margin-top: 1rem;
    }

    .course-tab-content h4 {
        font-size: 1.25rem !important;
    }

    /* Reduce Icon Size relative to text */
    .course-tab-content h2 i,
    .course-tab-content h3 i {
        font-size: 0.9em;
        /* Slightly smaller than the text */
    }
}