: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 */
}

/* Global Image Constraint for Course Details & Sidebar */
.course-details-container img,
.sidebar-course img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure Main Container doesn't stretch too wide on 4K screens */
.tf-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.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: nowrap;
    /* Prevent wrapping */
    overflow-x: auto;
    /* Allow scroll if screen is too narrow */
    border-bottom: none;
    margin-bottom: 30px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
    gap: 10px;
    /* Reduced gap */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on touch devices */
    padding-bottom: 5px;
    /* Space for scrollbar if visible */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.course-tabs::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

/* Allow wrapping on larger screens for clearer view */
@media (min-width: 992px) {
    .course-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: flex-start;
    }
}

.course-tab-item {
    margin-bottom: 0;
}

.course-tab-link {
    display: block;
    padding: 10px 20px;
    /* Compact padding */
    white-space: nowrap;
    /* Prevent text wrapping inside buttons */
    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 */
    }
}

/* =========================================
   Premium Hero Redesign Styles
   ========================================= */

/* Texture Background */
.hero-texture-pattern {
    background-color: rgb(255, 253, 245);
    /* Specific light beige */
    border-bottom: 1px solid var(--Border);
}

/* Compact Overrides */
.section-page-title.style-5::before {
    display: none !important;
}

.section-page-title.style-5.hero-texture-pattern .content {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.section-page-title.style-5.hero-texture-pattern .breadcrumbs {
    margin-bottom: 10px !important;
}

.section-page-title.style-5.hero-texture-pattern h2 {
    margin-bottom: 5px !important;
    font-size: 2.5rem;
    /* Slightly smaller title for compactness */
}

/* Specialization Section */
.specialization-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    /* Reduced from 40px */
    position: relative;
    max-width: 900px;
}

.specialization-text {
    font-size: 14px;
    /* Updated size */
    color: #000;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    line-height: 1.5;
}

.specialization-text.expanded {
    white-space: normal;
    overflow: visible;
}

.btn-view-more {
    display: none;
    /* Hidden by default, shown via JS if needed */
    background: transparent;
    border: 1px solid var(--Secondary);
    color: var(--Secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-view-more:hover {
    background: var(--Secondary);
    color: var(--White);
}

/* Hero Meta Cards */
.hero-meta-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    /* Reduced from 40px */
    flex-wrap: wrap;
}

.meta-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-4);
    /* Light beige/gold tint */
    padding: 12px 20px;
    border-radius: 12px;
    min-width: 200px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.meta-card:hover {
    border-color: var(--Secondary);
    transform: translateY(-2px);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.meta-card i {
    font-size: 22px;
    color: var(--Secondary);
}

.meta-info {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--Soft-Text);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--Primary);
    line-height: 1.2;
}

/* University Card */
.university-card {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border: 1px dashed var(--Secondary);
    border-radius: 12px;
    background-color: var(--bg-4);
    min-width: 300px;
}

.university-card .uni-logo {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.university-card .uni-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.university-card .uni-info {
    display: flex;
    flex-direction: column;
}

.university-card .text-1 {
    font-size: 12px;
    color: var(--Soft-Text);
    margin-bottom: 2px;
}

.university-card .uni-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--Primary);
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .specialization-wrapper {
        flex-direction: row;
        /* Keep text and button in one line */
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .specialization-text {
        flex: 1;
        /* Allow text to take available space */
        min-width: 0;
        /* Enable truncation in flex container */
    }

    .hero-meta-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 columns for better space usage */
        gap: 10px;
    }

    .meta-card {
        width: 100%;
        min-width: unset;
        /* Remove min-width to fit grid */
        flex-direction: column;
        /* Stack icon and text on very small screens if needed, or keep row */
        align-items: flex-start;
        padding: 10px;
    }

    .meta-card i {
        font-size: 20px;
        margin-bottom: 5px;
        /* If shrinking to column inside card */
    }

    .university-card {
        width: 100%;
        padding: 12px;
        min-width: unset;
    }

    .university-card .uni-logo {
        width: 40px;
        height: 40px;
    }
}

/* =========================================
   Custom Modal Styles
   ========================================= */
.custom-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal-overlay.active {
    display: flex;
    animation: fadeInModal 0.3s ease-out;
}

.custom-modal-content {
    background-color: var(--White);
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--Border);
    background: var(--bg-4);
    /* Light premium bg */
    border-radius: 12px 12px 0 0;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--Primary);
    font-weight: 700;
}

.close-modal-btn {
    color: var(--Soft-Text);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: var(--Secondary);
}

.custom-modal-body {
    padding: 25px;
    overflow-y: auto;
    color: var(--Primary);
    font-size: 15px;
    line-height: 1.7;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .custom-modal-content {
        max-height: 70vh;
    }

    .custom-modal-header {
        padding: 15px 20px;
    }

    .custom-modal-body {
        padding: 20px;
    }
}

/* Modal Chips */
.spec-chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-chip {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--bg-4);
    color: var(--Primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}

.spec-chip:hover {
    background-color: var(--Secondary);
    color: var(--White);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.2);
}

/* Sidebar Redesign */
.sidebar-course-content {
    padding: 24px;
    background-color: var(--White);
    border: 1px solid var(--Border);
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04);
}

.sidebar-course-content .course-price {
    margin-bottom: 20px;
}

.sidebar-course-content .course-price .price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.sidebar-course-content .course-price .price h3 {
    font-size: 28px;
    color: var(--Primary);
}

.sidebar-course-content .course-price .price h5 {
    color: var(--Text-Color);
    font-weight: 500;
}

.sidebar-course-content .sale-off {
    font-size: 14px;
    color: var(--Secondary);
    font-weight: 600;
    margin-bottom: 0;
}

/* Buttons */
.sidebar-course-content .tf-btn {
    width: 100%;
    margin-bottom: 12px;
    justify-content: center;
    border-radius: 8px;
    text-transform: capitalize;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 20px;
}

.sidebar-course-content .add-to-cart {
    background-color: var(--Primary);
    color: var(--White);
    border: none;
}

.sidebar-course-content .add-to-cart:hover {
    background-color: var(--Secondary);
    color: var(--White);
}

.sidebar-course-content .btn-ai-career {
    background-color: transparent;
    border: 2px solid var(--Secondary);
    color: var(--Secondary);
}

.sidebar-course-content .btn-ai-career:hover {
    background-color: var(--Secondary);
    color: var(--White);
}

/* Eligibility & Share */
.sidebar-course-content .course-text {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--Border);
}

.course-social {
    margin-top: 20px;
    padding-top: 0;
}

.course-social .fw-5 {
    font-size: 15px;
    margin-bottom: 10px;
}

.course-social ul {
    display: flex;
    gap: 10px;
}

.course-social ul li a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--Primary);
    transition: all 0.3s ease;
}

.course-social ul li a:hover {
    background-color: var(--Secondary);
    color: var(--White);
}

.course-social ul li a i {
    font-size: 16px;
}

/* Mobile Optimization for Hero Section */
@media (max-width: 768px) {

    /* Breadcrumbs: Horizontal Scroll */
    .section-page-title.style-5 .breadcrumbs,
    .breadcrumbs {
        display: flex;
        flex-wrap: nowrap !important;
        /* Force single line */
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        margin-bottom: 12px !important;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        /* Consistent gap */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    /* Hide Scrollbar */
    .section-page-title.style-5 .breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    /* Reduce Hero Title Size */
    .section-page-title.style-5.hero-texture-pattern h2 {
        font-size: 26px !important;
        /* Significantly smaller than desktop */
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    /* Compact Meta Cards */
    .hero-meta-cards {
        gap: 8px;
        /* Tighter gap */
        margin-bottom: 15px;
    }

    .meta-card {
        padding: 10px 12px;
        /* Smaller padding */
        gap: 8px;
    }

    .meta-card i {
        font-size: 18px;
    }

    .meta-label {
        font-size: 9px;
    }

    .meta-value {
        font-size: 13px;
    }

    /* Specialization Adjustments */
    .specialization-text {
        font-size: 13px;
    }


    .btn-view-more {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* Sticky Bottom CTA (Mobile Only) */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--White);
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default (Desktop) */
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-top: 1px solid var(--Border);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.mobile-sticky-cta .price-info {
    display: flex;
    flex-direction: column;
}

.mobile-sticky-cta .price-info .label {
    font-size: 11px;
    color: var(--Soft-Text);
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-sticky-cta .price-info .value {
    font-size: 20px;
    color: var(--Primary);
    font-weight: 700;
}

.mobile-sticky-cta .btn-sticky-apply {
    background-color: var(--Secondary);
    color: var(--White);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.3);
}

@media (max-width: 991px) {
    .mobile-sticky-cta {
        display: flex;
        /* Show on Mobile & Tablet (when sidebar stacks) */
    }

    /* Add padding to body so content isn't hidden */
    body {
        padding-bottom: 80px;
    }

    /* Hide Footer on Mobile/Tablet where Sticky CTA is active */
    #footer {
        display: none !important;
    }
}



/* =========================================
   Tablet/iPad Compact Sidebar (768px - 991px)
   ========================================= */
@media (min-width: 768px) and (max-width: 991px) {
    .sidebar-course {
        display: flex;
        align-items: center;
        padding: 15px;
        gap: 20px;
        margin-bottom: 20px;
    }

    .widget-video {
        width: 35%;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .sidebar-course-content {
        flex-grow: 1;
        padding: 0 !important;
        border: none;
        background: transparent;
        box-shadow: none !important;
    }

    /* Compact Typography & Spacing */
    .sidebar-course-content .course-price {
        margin-bottom: 15px;
        padding-bottom: 5px;
    }

    .sidebar-course-content .course-price .price {
        margin-bottom: 8px;
        /* Space between Price and Tenure */
    }

    .sidebar-course-content .course-price .price h3 {
        font-size: 24px;
    }

    .sidebar-course-content .tf-btn {
        margin-bottom: 8px;
        padding: 10px 15px;
    }

    .course-text,
    .course-social {
        margin-top: 10px;
        padding-top: 10px;
    }
}

/* =========================================
   Small Mobile Devices (iPhone SE, Folded Fold)
   Max-width: 370px
   ========================================= */
@media (max-width: 370px) {

    /* Tighter Horizontal Padding */
    .tf-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Reduce Title Size further */
    .section-page-title.style-5.hero-texture-pattern h2 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    /* Sidebar Course Content - Compact */
    .sidebar-course-content {
        padding: 15px !important;
    }

    .sidebar-course-content .course-price .price h3 {
        font-size: 24px !important;
    }

    .sidebar-course-content .tf-btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }

    /* Sticky CTA - Compact Layout */
    .mobile-sticky-cta {
        padding: 10px !important;
        bottom: 110px !important;
        /* Adjust if needed */
    }

    .mobile-sticky-cta .price-info .value {
        font-size: 16px !important;
    }

    .mobile-sticky-cta .label {
        font-size: 10px !important;
    }

    .btn-sticky-ai,
    .btn-sticky-apply {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .sticky-cta-buttons {
        gap: 5px !important;
    }

    /* Social Icons - Smaller */
    .course-social ul li a {
        width: 32px;
        height: 32px;
    }
}

/* =========================================
   Premium Testimonial Redesign
   ========================================= */
.review-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

.review-item {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--Border);
    display: flex;
    flex-direction: row;
    /* Avatar Side-by-Side */
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    align-items: flex-start;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--Secondary);
}

/* Decorative Quote Icon */
.review-item::before {
    content: '\201C';
    /* Large Quote */
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    color: var(--Secondary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.review-item .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(135deg, var(--Secondary), #FFD700);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.review-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
}

.review-item .comment-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-item .author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--Primary);
    margin-bottom: 2px;
}

.review-item .author-name a {
    color: inherit;
    text-decoration: none;
}

.review-item .evaluate {
    font-size: 13px;
    color: var(--Soft-Text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    font-weight: 600;
}

.review-item .comment {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--Secondary);
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .review-wrap {
        grid-template-columns: 1fr;
    }

    .review-item {
        padding: 20px;
    }

    .review-item::before {
        font-size: 80px;
        right: 10px;
    }
}

/* =========================================
   Compact Testimonial Adjustments
   ========================================= */
.review-wrap {
    gap: 15px !important;
    padding: 5px 0 !important;
}

.review-item {
    border-radius: 12px;
    padding: 18px !important;
    gap: 15px !important;
}

.review-item::before {
    top: -5px !important;
    right: 15px !important;
    font-size: 60px !important;
}

.review-item .avatar {
    width: 50px !important;
    height: 50px !important;
}

.review-item .author-name {
    font-size: 16px !important;
    margin-bottom: 0 !important;
    line-height: 1.25 !important;
}

.review-item .evaluate {
    font-size: 11px !important;
    margin-bottom: 8px !important;
}

.review-item .comment {
    font-size: 13px !important;
    padding: 12px !important;
}

/* =========================================
   Premium Gallery Redesign
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

/* =========================================
   Premium Institute Hero (Unified Beige Card)
   ========================================= */

/* Banner Wrapper -> THE MAIN CARD */
.banner_bx_outer {
    position: relative;
    margin-bottom: 30px;
    background-color: #fffdf5;
    /* The Requested Beige */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Unified Shadow */
    overflow: hidden;
    /* Clip image corners */
    border: 1px solid rgba(184, 134, 11, 0.1);
}

/* 1. Banner Image Area -> Sits on Top */
.banner_bx_top {
    border-radius: 0;
    /* Let parent clip it */
    overflow: hidden;
    box-shadow: none;
    position: relative;
    margin-bottom: 0;
    /* No Gap */
    height: auto;
    min-height: 200px;
}

/* Ensure banner fills height if set */
.banner_bx_top::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

/* 2. Bottom Content Area -> Seamless Content */
/* 2. Bottom Content Area -> Seamless Content */
.banner_bx_bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 5px;
    /* User update */
    margin-top: 0;
    position: relative;
    z-index: 5;
    background: #fffdf5;
    /* Beige Background */
    box-shadow: none;
    border: none;
    /* Removed Border */
    border-radius: 12px;
    /* Rounded Box */
}

/* 3. Logo (Rectangle, No Overlap) */
.banner_bx_bottom_left {
    flex-shrink: 0;
    width: 180px;
    /* Increased Desktop Width */
    height: 180px;
    /* Increased Desktop Height */
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.banner_bx_bottom_left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* 4. Text Content */
.banner_bx_bottom_right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 5px;
}

/* Institute Title */
.banner_bx_bottom_right h3 {
    font-size: 28px;
    font-weight: 800;
    color: #5a4b1e;
    /* Chip Text Color */
    background: #FFF8E1;
    /* Chip Background */
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.1;
    padding: 10px 20px;
    /* Chip Padding */
    border-radius: 12px;
    /* Chip Radius */
    display: inline-block;
    /* Chip Behavior */
}

/* Hero Flex Layout (Meta + Buttons) */
.hero-flex-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 5px;
    gap: 20px;
    flex-wrap: wrap;
    /* Safety wrap */
}

/* Meta Data - Compact Beige Card Style */
/* Meta Data - Compact Beige Card Style */
.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    /* Tighter gap */
    padding: 0;
    margin: 0;
    list-style: none;
    flex-grow: 1;
}

.entry-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a4b1e;
    font-weight: 700;
    background: #FFF8E1 !important;
    /* Beige Background like Category Chip */
    padding: 6px 14px;
    border-radius: 8px !important;
    border: none !important;
    /* No Border */
    box-shadow: none !important;
    transition: all 0.2s ease;
    height: 36px;
}

.entry-meta li:hover {
    background: #FFECB3 !important;
    /* Darker Beige on Hover */
    transform: translateY(-1px);
}

.entry-meta li i {
    color: #B8860B;
    font-size: 15px;
}

.entry-meta li p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* 5. Buttons (Enquire, Offered Courses) */
.donload_bx {
    display: flex;
    gap: 10px;
    margin-top: 0;
    width: auto;
}

.donload_bx a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    flex: 0 0 auto;
    min-width: auto;
}

/* Arrow Handling */
.donload_bx .dnld2::after {
    content: '\2197';
    font-family: sans-serif;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.donload_bx .dnld2:hover::after {
    transform: translate(2px, -2px);
}

/* Primary Button */
.donload_bx .dnld {
    background: #1a2b4b;
    /* Match Title Dark Blue */
    color: #fff;
    border: 1px solid #1a2b4b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.donload_bx .dnld i {
    color: #FFD700;
    font-size: 14px;
    margin-left: 2px;
}

.donload_bx .dnld:hover {
    background: #2a3b55;
    border-color: #2a3b55;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Secondary Button (Gold Outline) */
.donload_bx .dnld2 {
    background: #fff;
    color: #B8860B;
    border: 1px solid #B8860B;
    /* Consistent Gold */
}

.donload_bx .dnld2:hover {
    background: #fff;
    color: var(--Secondary);
    border-color: var(--Secondary);
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.15);
    transform: translateY(-1px);
}

/* Mobile Responsiveness for Hero */
/* Mobile Responsiveness for Hero (Tablet & Mobile) */
/* Mobile Responsiveness for Hero (Tablet & Mobile) */
@media (max-width: 991px) {
    .banner_bx_bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        /* Increase top padding to accommodate the overlapped logo pushing content up/visual space */
        padding: 45px 15px 20px 15px;
    }

    .banner_bx_bottom_left {
        width: 120px;
        /* User Requested 120px */
        height: 120px;
        margin-top: 0;
        /* User Requested 0px */
        margin-bottom: 0;
        border-radius: 12px;
        position: relative;
        padding: 5px;
        /* Inner padding */
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        /* Ensure visibility over banner */
    }

    .banner_bx_bottom_right {
        align-items: center;
        width: 100%;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .banner_bx_bottom_right h3 {
        font-size: 24px;
        font-weight: 800;
        color: #5a4b1e;
        /* Match Chip Color */
        background: #FFF8E1;
        /* Match Chip Bg */
        padding: 8px 16px;
        /* Slightly smaller padding for mobile */
        border-radius: 10px;
        display: inline-block;
        margin: 0;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    .hero-flex-layout {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 5px;
    }

    .entry-meta {
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 5px;
    }

    .entry-meta li {
        width: auto;
        flex: 0 0 auto;
        font-size: 12px;
        padding: 6px 12px;
        height: 34px;
    }

    .donload_bx {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .donload_bx a {
        flex: 1;
        width: auto;
        height: 40px;
        min-width: 140px;
        max-width: 200px;
    }
}

/* Small Mobile Optimization (iPhone SE, Fold, Galaxy S8) - Max 576px */
@media (max-width: 576px) {
    .banner_bx_outer {
        margin-bottom: 20px;
    }

    .banner_bx_top {
        min-height: 160px;
    }

    /* Smaller Rectangle Logo - Enforce 120px on small screens too */
    .banner_bx_bottom_left {
        width: 120px;
        height: 120px;
        margin-top: 0;
        padding: 5px;
        /* Reduce padding for small logo */
    }

    .banner_bx_bottom_right h3 {
        font-size: 20px;
    }

    /* Tabs tweaks */
    .course-tab-link {
        padding: 8px 16px;
        font-size: 13px;
    }

    .course-tabs {
        gap: 5px;
    }

    /* Accreditation Grid (2 Cols on Mobile) */
    .right_sidebox_photobx {
        height: 80px;
        padding: 8px;
    }

    /* Optimize Buttons for small screens */
    .donload_bx a {
        min-width: 120px;
        font-size: 12px;
        padding: 0 10px;
        white-space: nowrap;
    }
}

/* Extra Small (Folded/SE) - Max 360px */
@media (max-width: 360px) {
    .banner_bx_bottom {
        padding: 15px 10px;
        /* Maximize space */
    }

    .entry-meta li {
        padding: 5px 8px;
        font-size: 11px;
    }

    .donload_bx a {
        font-size: 12px;
        padding: 0 10px;
        min-width: 120px;
    }
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card:hover .gallery-icon-btn {
    transform: scale(1);
}

/* Play Icon specific */
.gallery-card.video-card .gallery-icon-btn {
    background: rgba(220, 53, 69, 0.8);
    /* Red tint for video */
    border-color: rgba(220, 53, 69, 0.5);
}

.gallery-card.video-card .gallery-icon-btn i {
    padding-left: 3px;
    /* visual center */
}

/* Modal Enhancements */
.modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.modal-body {
    padding: 0;
    background: transparent;
    position: relative;
}

.modal-body img {
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
}

.modal .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: white;
    opacity: 1;
    border-radius: 50%;
    padding: 10px;
    z-index: 1200;
}

/* =========================================
   Premium Tabs Redesign (Horizontal Scroll Pill)
   ========================================= */
/* =========================================
   Premium Tabs Redesign (Horizontal Scroll Pill)
   ========================================= */
.course-tabs {
    display: flex;
    flex-wrap: nowrap !important;
    /* Force Single Line */
    overflow-x: auto;
    /* Allow Scroll */
    gap: 4px;
    padding: 10px 0 20px 0;
    /* Space for scrollbar/shadow */
    margin-bottom: 20px;
    border-bottom: none;
    /* Remove legacy border */
    scrollbar-width: none;
    /* Hide Scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide IE */
    list-style: none;
    /* Ensure no bullets */
}

/* Hide Scrollbar Chrome */
.course-tabs::-webkit-scrollbar {
    display: none;
}

.course-tab-item {
    flex: 0 0 auto;
    /* Don't shrink */
}

.course-tab-link {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    /* Pill Shape */
    background: #f8f9fa;
    /* Light Grey Default */
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.course-tab-link:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
}

.course-tab-link.active {
    background: var(--Primary);
    /* Gold/Primary */
    color: #fff;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
    border-color: var(--Primary);
}

/* =========================================
   Premium Accreditation Sidebar (Trust Badges)
   ========================================= */
.right_sidebox h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--Primary);
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.right_sidebox h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 20px;
    width: 4px;
    background: var(--Secondary);
    border-radius: 2px;
}

/* Accreditation Repeater Container */
.right_sidebox_photobx {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 120px;
    /* Fixed height for uniformity */
    position: relative;
    overflow: hidden;
}

.right_sidebox_photobx:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--Secondary);
}

.right_sidebox_photobx img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* The Image Handler Technique requires contain */
    filter: grayscale(100%);
    /* Premium mute effect */
    transition: filter 0.3s ease;
}

.right_sidebox_photobx:hover img {
    filter: grayscale(0%);
    /* Color on hover */
}


/* Accreditation Grid Wrapper */
.accreditation-grid {
    display: block;
    /* Default stacked for desktop sidebar */
    width: 100%;
}

@media (max-width: 991px) {
    .accreditation-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3 Columns on Tablet */
        gap: 8px;
        width: 100%;
    }

    .right_sidebox_photobx {
        margin-bottom: 0;
        height: 100px;
        padding: 5px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .accreditation-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile */
        gap: 8px;
    }

    .right_sidebox_photobx {
        height: 90px;
        /* Standard height for 2-col layout */
        padding: 5px;
    }
}

@media (min-width: 992px) and (max-width: 1366px) {
    .course-tab-link {
        padding: 8px 16px;
        /* Compact pills for smaller desktops */
        font-size: 13px;
    }

    .course-tabs {
        gap: 6px;
        /* Reduce gap slightly */
    }

    .right_sidebox_photobx {
        height: 100px;
        /* Scale down accreditation slightly */
    }
}

/* Gallery Grid Adjustments */
@media (min-width: 768px) and (max-width: 1199px) {

    /* Assuming gallery uses col-md-4, force 2 cols if needed or verify responsiveness in bootstrap */
    /* No explicit CSS needed if bootstrap grid is used correctly, but we ensure images contain properly */
    .right_sidebox_photobx {
        margin-bottom: 20px;
    }
}