:root {
    --primary: #5b50e5;
    /* New Purple Primary */
    --primary-hover: #4a41c2;
    --secondary: #ff3c78;
    /* Vibrant Pink/Red */
    --dark: #12141d;
    --text: #5b5f77;
    --text-light: #8d95ae;
    --bg-page: #f9f9fb;
    --white: #ffffff;
    --border: #ececf2;
    --success: #00d09c;
    --warning: #ffbf00;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.04);
}

body {
    background-color: var(--bg-page);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
.course-title,
.module-title {
    color: var(--dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 35px;
    flex-wrap: nowrap;
}

/* ================= LAYOUT ================= */
/* ================= LAYOUT ================= */
/* ================= LAYOUT (Mobile First Refactor) ================= */
.course-page-wrapper {
    padding: 0;
    background: var(--bg-page);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    /* Required for sticky sidebar */
    margin: 0;
}

.about-layout,
.course-layout {
    display: flex;
    flex-direction: column;
    /* Default stack for Mobile/Tablet */
    align-items: stretch;
    gap: 40px;
    position: relative;
    z-index: 5;
}

.course-main,
.main-column {
    flex: 1;
    min-width: 0;
}

/* Desktop Upgrade (Large Screens) */
@media (min-width: 992px) {
    .course-page-wrapper {
        margin: 0 50px;
        /* Balanced margin */
    }

    .about-layout,
    .course-layout {
        flex-direction: row;
        /* Switch to row */
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 40px;
    }
}

/* ================= HERO SECTION (New) ================= */
/* Hero Gradient Animation */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 0% 50%;
    }

    75% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.course-page-hero {
    background: linear-gradient(-45deg, #262F5D, #344285, #1b2245, #262F5D);
    background-size: 400% 400%;
    animation: gradientBG 5s ease infinite;
    padding: 100px 0 100px;
    /* Extra bottom spacing for overlap */
    color: #fff;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Background Pattern Overlay */
.course-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: #ffffff;
    font-size: 36px;
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    /* margin: 15px 0 25px; */
    line-height: 1.2;
}





/* Glass Badge */
.badge-pill.bg-white-glass {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    animation: floatBadge 3s ease-in-out infinite;
}

.badge-pill.bg-white-glass:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}





/* ================= HEADER & MAIN CONTENT ================= */

/* ================= HEADER & MAIN CONTENT ================= */
.course-header {
    margin-bottom: 30px;
}

.course-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge-pill {
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.badge-pill.bg-purple {
    background: rgba(91, 80, 229, 0.1);
    color: var(--primary);
}

.badge-pill.bg-pink {
    background: rgba(255, 60, 120, 0.1);
    color: var(--secondary);
}

.course-title {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--text-light);
    font-size: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--primary);
}

.meta-item i.text-warning {
    color: var(--warning);
}

/* ================= TABS ================= */
.course-tabs-wrap {
    gap: 0;
    flex-wrap: nowrap;
    padding: 0;
}

.course-tabs {
    display: flex;
    gap: 15px;
    width: 100%;
    min-width: 0;
    border-bottom: 1px solid var(--border);
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 0;
    position: sticky;
    top: 80px;
    background: var(--bg-page);
    z-index: 99;
    /* padding-top: 20px; */
}

.course-tabs a {
    padding: 12px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-bottom: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-tabs a.active {
    background: #262F5D;
    color: #fff;
    border-color: #262F5D;
}

.course-tabs a:hover:not(.active) {
    background: #f1f1f5;
}

/* ================= CONTENT SECTIONS ================= */
/* Follow Us Widget */
.follow-us-widget h4 {
    /* Style closer to image if needed, or keeping standard */
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.social-links-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 28px;
    margin-bottom: 25px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: #f4f5f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    color: #fff;
    transform: translateY(-3px);
}

.social-btn.facebook:hover {
    background: #3b5998;
}

.social-btn.youtube:hover {
    background: #ff0000;
}

.social-btn.instagram:hover {
    background: #e1306c;
}

.social-btn.twitter:hover {
    background: #000;
}

.social-btn.linkedin:hover {
    background: #0A66C2;
}

/* Isolated Section Styling */
/* Overview only */
#overview-section .learning-outcomes {
    background: #f8f9fa;
}

/* Why TechCADD only */
#why-techcadd-section .why-item {
    align-items: flex-start;
}

/* Curriculum only */
#curriculum-section .accordion-item {
    border-radius: 12px;
}

/* Careers only */
#careers-section .career-item {
    background: #f9fafc;
}

/* Reviews only */
#reviews-section .review-item {
    padding-left: 10px;
}

.content-section {
    /* Removed card styling */
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 40px;
    border-radius: 0;
    border: none;
}

.content-section h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 25px;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-align: justify;
}

/* Learning Outcomes Check-List */
.learning-outcomes {
    background: #f8f9fa;
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid #eef0f3;
}

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--dark);
    padding-left: 0;
    /* Reset padding from common.css */
}

.check-list li::before {
    content: none !important;
    /* Remove the duplicate checkmark */
    display: none;
}

.check-list i {
    color: rgb(0, 162, 255);
    margin-top: 2px;
    background: transparent;
    width: auto;
    height: auto;
    display: inline-block;
    font-size: 16px;
    margin-right: 8px;
    font-weight: 900;
    flex-shrink: 0;
}



/* Accordion */
/* Currigitculum Cards */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
}

.curriculum-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.curriculum-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(91, 80, 229, 0.3);
}

.curriculum-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.curriculum-card:hover::before {
    opacity: 1;
}

.curriculum-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.module-icon {
    width: 36px;
    height: 36px;
    background: rgba(91, 80, 229, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.curriculum-card h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
}

.curriculum-card p {
    font-size: 14px;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    padding-left: 51px;
    /* Align with text start (36px icon + 15px gap) */
}

/* FAQ Accordion (Redesigned) */
.accordion {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    gap: 15px;
    /* Spacing between cards */
}

.accordion-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    /* Subtle border */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Very light shadow */
}

.accordion-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Lift effect */
}

.accordion-item.open {
    border-color: #cbd5e1;
    /* Neutral border even when open */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    width: 100%;
    background: #fff;
    border: none;
    padding: 20px 24px;
    /* Increased padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    /* Dark slate color */
    text-align: left;
    gap: 20px;
}

.accordion-header i {
    color: #64748b;
    /* Muted icon color */
    background: #f1f5f9;
    /* Light grey circle bg */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .accordion-header i {
    transform: rotate(180deg);
    background: #e2e8f0;
    color: #0f172a;
}

.accordion-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: all 0.4s ease-in-out;
    color: #475569;
    background: #fff;
    line-height: 1.6;
    font-size: 15px;
    border-top: none;
}

.accordion-item.open .accordion-body {
    max-height: 1000px;
    /* Large enough to fit content */
    opacity: 1;
    padding-bottom: 24px;
    margin-top: -10px;
    /* Slight pull up if needed, or just remove */
}

/* Instructor Content */


/* Review List */
.review-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--text);
    flex-shrink: 0;
}

.review-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-head h4 {
    margin: 0;
    font-size: 16px;
}

.review-head .stars {
    color: var(--warning);
    font-size: 12px;
}



.btn-primary {
    background: linear-gradient(135deg, rgb(0, 86, 179), rgb(0, 162, 255));
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 80, 229, 0.3);
}

/* ================= SIDEBAR ================= */
.course-sidebar {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    margin-left: 0;
    position: relative;
    top: auto;
    z-index: 10;
    margin-top: 30px;
}

/* Desktop Sidebar */
@media (min-width: 992px) {
    .course-sidebar {
        width: 350px;
        min-width: 350px;
        max-width: 350px;
        margin-top: 0;
        position: sticky;
        top: 120px;
    }
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Stronger shadow for floating effect */
    margin-bottom: 20px;
    overflow: hidden;
    border: none;
    /* Removed border for cleaner float look */
}

.sidebar-widget h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    padding: 0 25px;
}

.sidebar-widget h4:first-child {
    padding-top: 25px;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3), 0 0 0 10px rgba(255, 255, 255, 0.3), 0 0 0 20px rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.3), 0 0 0 20px rgba(255, 255, 255, 0.3), 0 0 0 40px rgba(255, 255, 255, 0);
    }
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    border: none;
    color: var(--secondary);
    font-size: 20px;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    transition: all 0.3s;
    animation: ripple 2s infinite linear;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--primary);
}

/* Price Area */
.price-area {
    padding: 30px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.old-price {
    font-size: 16px;
    text-decoration: line-through;
    color: var(--text-light);
}

.discount-badge {
    background: rgba(255, 60, 120, 0.1);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: #fff;
}

.guarantee-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.course-features-list {
    margin-bottom: 25px;
}

.course-features-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f5;
    font-size: 14px;
}

.course-features-list li:last-child {
    border-bottom: none;
}

.course-features-list i {
    color: var(--primary);
    margin-right: 8px;
    width: 20px;
}

.course-features-list span {
    color: var(--text);
}

.course-features-list strong {
    color: var(--dark);
}

.sidebar-contact {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px dashed #eef0f3;
    color: var(--dark);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.sidebar-contact:hover {
    color: var(--primary);
}



/* Contact Widget */
.contact-widget form {
    padding: 0 25px 25px;
}

.contact-widget input {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}



/* ================= GENERIC CONTENT RESPONSIVENESS ================= */
.content-section img,
.accordion-body img,
.tab-content-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 10px 0;
}

.content-section iframe,
.accordion-body iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 10px 0;
}

.content-section table {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

/* ================= RESPONSIVE ================= */
/* ================= ADDITIONAL SECTIONS ================= */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.why-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.why-item i {
    color: rgb(91, 80, 229);
    /* Green checkmark */
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.why-item h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--dark);
}

.why-item p {
    font-size: 14px;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    text-align: justify;
}

/* Mid Content CTA */
/* Mid Content CTA */
.cta-card {
    background: #262F5D;
    padding: 50px;
    border-radius: var(--radius-md);
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(38, 47, 93, 0.3);
    max-width: 100%;
    box-sizing: border-box;
}

.cta-card h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 16px;
}

.enroll-btn {
    display: inline-block;
    background: #fff;
    color: #262F5D;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.enroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #fff;
    color: var(--secondary);
}

/* Career List (Redesigned to match Why TechCADD) */
.career-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.career-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: none;
}

.career-item:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
    border-color: transparent;
}

.career-icon {
    /* Mimic simple icon style of Why TechCADD */
    width: auto;
    height: auto;
    background: transparent;
    color: var(--primary);
    border-radius: 0;
    font-size: 20px;
    margin-top: 6px;
    padding: 0;
    display: block;
}

.career-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--dark);
    font-weight: 700;
}

.career-text p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: var(--text);
    text-align: justify;
}

/* Helper */
/* Secondary Background Icon */
.section-icon-bg {
    position: absolute;
    top: 100px;
    left: -5%;
    font-size: 400px;
    color: #000 !important;
    opacity: 0.05 !important;
    z-index: 0;
    pointer-events: none;
    transform: rotate(15deg);
    animation: floatIcon 8s ease-in-out infinite reverse;
}

/* Author More Courses Section */
.author-courses-section {
    margin-top: 50px;
    margin-bottom: 30px;
}

.author-courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.author-courses-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.author-courses-header .more-link {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.author-courses-header .more-link:hover {
    color: var(--primary);
}

.author-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .author-courses-grid {
        grid-template-columns: 1fr;
    }
}

.course-card-vertical {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.course-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-badge.pink {
    background: #ff3c78;
}

.card-badge.blue {
    background: #4466f2;
}



.card-details {
    padding: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-meta i {
    color: var(--primary);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
    /* Fixed height for max 2 lines */
}

/* Sidebar Features List - Updated Design */
.course-meta-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 10px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-label {
    color: var(--text-light);
    /* Greyish label */
    font-weight: 500;
}

.meta-value {
    background: #f0f0f5;
    /* Light grey pill bg */
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text);
    /* Darker text */
    font-size: 13px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Sidebar Contact Box */
.sidebar-contact-box {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-top: 10px;
}

.inquiry-text {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
}

.contact-btn-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 1.5px solid #6c5ce7;
    /* Purple border */
    border-radius: 8px;
    color: #6c5ce7;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn-lg i {
    transform: rotate(90deg);
    /* Phone icon rotation if needed to match style */
}

.contact-btn-lg:hover {
    background: #6c5ce7;
    color: #fff;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

/* ================= STYLED FORM (SIDEBAR) ================= */
.contact-widget h4 {
    display: none !important;
    /* Force hide old title */
}

/* Increase specificity to override sticky/widget defaults if any */
.sidebar-widget.contact-widget {
    background: #fff;
    padding: 0;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Ensure it floats nicely */
}

.contact-widget .styled-form {
    padding: 30px;
    /* Generous padding like the screenshot */
    background: #fff;
    border-radius: 12px;
}

.form-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    /* Center it for better balance */
}

.styled-form .form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.styled-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    /* Neutral 700 */
    font-family: 'Inter', sans-serif;
}

.styled-form input[type="text"],
.styled-form input[type="tel"],
.styled-form input[type="email"],
.styled-form select,
.styled-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    /* Neutral 200 */
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    color: #1f2937;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.styled-form input::placeholder,
.styled-form textarea::placeholder {
    color: #9ca3af;
    /* Neutral 400 */
    font-weight: 400;
}

.styled-form input:focus,
.styled-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.styled-form textarea {
    resize: vertical;
    min-height: 120px;
}

.styled-form button.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgb(0, 86, 179), rgb(0, 162, 255));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}

.styled-form button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.35);
}

/* ================= STANDARD COURSE CARD STYLES (from courses.php) ================= */
.course-card.vertical {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.course-card.vertical:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 180, 255, 0.45);
    box-shadow: 0 16px 50px rgba(0, 180, 255, 0.14);
}

.course-card.vertical .card-icon {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #00d09c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.course-card.vertical h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
}

.course-card.vertical p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.course-card.vertical .btn-small {
    background: linear-gradient(135deg, rgb(0, 86, 179), rgb(0, 162, 255));
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    align-self: flex-start;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
    display: inline-block;
}

/* ===============================================
   MOBILE RESPONSIVE STYLES (Based on Screenshot)
   =============================================== */

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {

    /* Layout & Container */
    .course-page-wrapper {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: visible;
        width: 100%;
    }

    .container {
        padding: 0 16px;
        gap: 0;
        flex-wrap: nowrap;
    }

    .container.course-tabs-wrap {
        padding: 0;
    }

    .container.course-layout {
        padding: 0 16px;
        gap: 20px;
    }

    /* Hero Section */
    .course-page-hero {
        padding: 50px 0 60px;
        overflow: hidden;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-svg-icon {
        font-size: 150px;
        right: -20px;
        opacity: 0.08;
    }

    .course-badges {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }

    .badge-pill {
        padding: 5px 12px;
        font-size: 11px;
    }

    /* Course Layout - Stack on Mobile */
    /* Course Layout - Stack on Mobile */
    /* Handled by base styles now */
    /* .about-layout,
    .course-layout {
        flex-direction: column;
        gap: 20px;
    } */

    .course-main,
    .main-column {
        width: 100%;
        overflow: visible;
    }

    /* Sidebar becomes full width */
    /* Sidebar becomes full width */
    /* Handled by base styles now */
    /* .course-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        position: static;
        margin-top: 20px;
        margin-bottom: 20px;
    } */

    /* Video Thumbnail */
    .video-thumbnail {
        height: 200px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }

    /* Price Area */
    .price-area {
        padding: 20px;
    }

    .price-row {
        margin-bottom: 20px;
    }

    .current-price {
        font-size: 26px;
    }

    .old-price {
        font-size: 14px;
    }

    /* Course Tabs - Horizontal Scroll */
    .course-tabs-wrap {
        padding: 0;
        margin: 0;
    }

    .course-tabs {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: sticky;
        top: 65px;
        z-index: 98;
        border-top: 1px solid var(--border);
        box-shadow: 0 6px 16px rgba(18, 20, 29, 0.08);
        scroll-snap-type: x proximity;
    }

    .course-tabs::-webkit-scrollbar {
        display: none;
    }

    .course-tabs a {
        white-space: nowrap;
        padding: 9px 14px;
        font-size: 12px;
        flex-shrink: 0;
        border-radius: 999px;
        border-bottom: 1px solid var(--border);
        line-height: 1;
        scroll-snap-align: start;
    }

    .course-tabs a i {
        font-size: 12px;
    }

    /* Content Section Headers */
    .content-section {
        display: block;
        visibility: visible;
        opacity: 1;
        max-width: 100%;
        overflow-x: hidden;
    }

    .content-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .content-section p {
        font-size: 14px;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* CTA Card Mobile */
    .cta-card {
        padding: 30px 20px;
        margin: 20px 0;
        border-radius: 12px;
    }

    .cta-card h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .cta-card p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .enroll-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    /* Course Title */
    .course-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    /* Course Meta - Stack Vertically */
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 14px;
    }

    /* Learning Outcomes */
    .learning-outcomes {
        padding: 20px;
    }

    .check-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .check-list li {
        font-size: 14px;
    }

    /* Why Choose Items */
    .why-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .why-item {
        padding: 0;
    }

    .why-item i {
        font-size: 22px;
    }

    .why-item h4 {
        font-size: 16px;
    }

    .why-item p {
        font-size: 13px;
    }

    /* Curriculum Cards - Single Column */
    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .curriculum-card {
        padding: 20px;
    }

    .curriculum-card h4 {
        font-size: 16px;
    }

    .curriculum-card ul li {
        font-size: 13px;
        padding: 8px 0;
    }

    /* Accordion Items */
    .accordion-item {
        padding: 18px;
        margin-bottom: 12px;
    }

    .accordion-header {
        font-size: 15px;
    }

    .accordion-body ul li {
        font-size: 13px;
        padding: 8px 0;
    }

    /* Career Items */
    .career-grid,
    .career-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .career-item {
        padding: 0;
    }

    .career-item h4 {
        font-size: 16px;
    }

    .career-item p {
        font-size: 13px;
    }

    /* Instructor Section */
    .instructor-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .instructor-img {
        margin-bottom: 20px;
    }

    /* Reviews */
    .review-item {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .review-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .review-head {
        flex-direction: column;
        gap: 8px;
    }

    .review-head h4 {
        font-size: 15px;
    }

    /* Sidebar Meta List */
    .course-meta-list {
        gap: 12px;
    }

    .meta-item {
        font-size: 14px;
        padding-bottom: 10px;
    }

    .meta-value {
        padding: 5px 12px;
        font-size: 12px;
    }

    /* Styled Form - Full Width on Mobile */
    .contact-widget .styled-form {
        padding: 20px;
    }

    .form-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .styled-form .form-group {
        margin-bottom: 18px;
    }

    .styled-form label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .styled-form input[type="text"],
    .styled-form input[type="tel"],
    .styled-form input[type="email"],
    .styled-form select,
    .styled-form textarea {
        padding: 12px 15px;
        font-size: 14px;
    }

    .styled-form textarea {
        min-height: 100px;
    }

    .styled-form button.btn-primary {
        padding: 14px;
        font-size: 15px;
    }

    /* Contact Button */
    .contact-btn-lg {
        padding: 12px;
        font-size: 16px;
    }

    /* Social Links */
    .social-links-grid {
        justify-content: flex-start;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    /* Follow Us Widget */
    .follow-us-widget h4 {
        padding: 0 16px !important;
    }

    /* Author Courses */
    .author-courses-section {
        margin-top: 30px;
    }

    .author-courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-card.vertical {
        padding: 20px;
    }

    .course-card.vertical h3 {
        font-size: 18px;
    }

    .course-card.vertical p {
        font-size: 14px;
    }

    .card-image {
        height: 160px;
    }

    .card-details {
        padding: 15px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-meta {
        font-size: 12px;
    }

    /* Buttons */
    .btn-primary {
        padding: 12px 24px;
        font-size: 15px;
    }

    .action-buttons .btn-primary,
    .action-buttons .btn-outline {
        padding: 12px;
        font-size: 14px;
    }

    /* Module Icons */
    .module-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    /* Sidebar Widget */
    .course-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        position: static;
        margin-top: 20px;
    }

    .sidebar-widget {
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .sidebar-widget h4 {
        font-size: 16px;
        padding: 0 16px;
        margin-bottom: 15px;
    }

    .sidebar-widget h4:first-child {
        padding-top: 20px;
    }

    /* Price Area Mobile */
    .price-area {
        padding: 16px;
    }

    /* Floating Action Buttons - Adjust for Mobile */
    .floating-actions {
        bottom: 15px;
        left: 10px;
        gap: 8px;
    }

    .float-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .course-page-wrapper {
        margin: 0;
        padding: 0 20px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .hero-title {
        font-size: 30px;
    }

    /* Handled by base styles now */
    /* .course-layout {
        flex-direction: column;
        gap: 24px;
    } */

    .main-column {
        width: 100%;
        overflow: visible;
    }

    /* .course-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        position: static;
        top: auto;
        margin: 0;
    } */

    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .course-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .course-tabs a {
        white-space: nowrap;
        font-size: 14px;
    }
}

/* Large Tablet / Small Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1280px) {
    .course-page-wrapper {
        margin: 0 30px;
    }

    .hero-title {
        font-size: 34px;
    }

    .course-sidebar {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
    }
}