/* 
 * SMIT-Inspired Stylesheet 
 * Colors: #0066b2 (Blue), #8dc63f (Green)
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #0066b2;
    --primary-green: #8dc63f;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --gradient-bg: linear-gradient(90deg, #0066b2 0%, #8dc63f 100%);
    --font-main: 'Poppins', sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   Header & Nav
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-blue);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    text-align: center;
    background: var(--primary-blue);
    /* Fallback */
    background: linear-gradient(90deg, #0066b2, #004d86);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 50px;
    /* Fixed height for consistency */
}

.logo img {
    height: 100%;
    /* Fill the container height */
    max-height: 35px;
    /* Cap it */
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: #444;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-enroll {
    background: var(--primary-blue);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 102, 178, 0.3);
}

.btn-enroll:hover {
    background: #004d86;
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: 0.3s;
}

/* =========================================
   Hero / Vision Section
   ========================================= */
.vision-section {
    text-align: center;
    padding: 80px 0;
    background: #fff;
}

.vision-tag {
    background: var(--primary-blue);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.vision-section h2 {
    font-size: 42px;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
}

.vision-section h2 span {
    color: var(--primary-blue);
}

.vision-section p.subtitle {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 60px;
}

.highlight-text {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Stats Cards */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    width: 45%;
    min-width: 300px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    /* Or distinct colors */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 24px;
}

.stat-card.green .stat-icon {
    background: var(--primary-blue);
    /* Keep blue or vary */
}

.stat-card h3 {
    font-size: 36px;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-card h4 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.stat-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================
   Courses Section
   ========================================= */
.courses-section {
    padding: 80px 0;
    background: #fdfdfd;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #333;
}

/* Course Carousel Grid */
.courses-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    /* Hide scrollbar visual if needed or give space */
    scrollbar-width: none;
    /* Firefox */
}

.courses-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.course-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    width: 300px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.course-box:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-icon {
    width: 50px;
    height: 50px;
    background: #eef7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 22px;
    flex-shrink: 0;
}

.course-info h4 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.course-info span {
    font-size: 12px;
    color: #888;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background: var(--gradient-bg);
    padding: 80px 0;
    color: #fff;
    text-align: center;
    border-radius: 0;
    /* Full width */
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;q
    flex-wrap: wrap;
}

.btn-white {
    background: #fff;
    color: var(--primary-blue);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
}

.btn-white:hover {
    background: #f0f0f0;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Gallery / Success Stories
   ========================================= */
.success-section {
    padding: 80px 0;
    text-align: center;
}

.success-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Larger cards */
    gap: 20px;
    margin-top: 40px;
}

.success-item {
    height: 250px;
    /* Larger height */
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    /* Clickable indication */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.success-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.success-item:hover img {
    transform: scale(1.1);
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    border-left: 3px solid var(--primary-green);
    padding-left: 10px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.copy {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #777;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        width: 100%;
        padding: 40px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: 0.4s;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
    }

    .hamburger {
        display: block;
    }

    .stats-container {
        flex-direction: column;
    }

    .stat-card {
        width: 100%;
    }
}

/* =========================================
   New Hero Section (SMIT Style)
   ========================================= */
.hero-new {
    padding: 100px 0 60px;
    /* Top padding for header space */
    text-align: center;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Background elements (Abstract representation of the dotted lines/planes) */
.hero-bg-element {
    position: absolute;
    width: 200px;
    height: 100px;
    z-index: 0;
    opacity: 0.1;
    border: 2px dashed var(--primary-green);
    border-radius: 50%;
}

.hero-bg-left {
    top: 20%;
    left: -50px;
    transform: rotate(45deg);
}

.hero-bg-right {
    top: 30%;
    right: -50px;
    transform: rotate(-45deg);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-new h1 {
    font-size: 56px;
    font-weight: 800;
    /* Bold/Black */
    color: #333;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-new h1 span {
    color: var(--primary-blue);
    /* display: block; */
    /* Keep inline or block based on preference, inline allows wrapping usually */
}

.hero-new p.hero-sub {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-logo-center {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Placeholder for the logo in center if text only */
.hero-logo-center h2 {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: bold;
}

.hero-logo-center h2 span {
    color: var(--primary-green);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-blue {
    background: var(--primary-blue);
    color: #fff;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0, 102, 178, 0.3);
}

.btn-blue:hover {
    background: #004d86;
    border-color: #004d86;
    color: #fff;
    transform: translateY(-2px);
}

.btn-white-outline {
    background: #fff;
    color: #555;
    border: 2px solid #ddd;
}

.btn-white-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Bottom Images / Cards Overlay */
.hero-bottom-images {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align to bottom for consistency */
    gap: 30px;
    margin-top: 50px;
}

.hero-col-side {
    flex: 1;
    max-width: 280px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    background: #fdfdfd;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-col-side img {
    height: 380px !important;
    object-fit: contain;
    display: block;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    position: relative;
}

.hero-col-side:hover img {
    transform: scale(1.08);
}

/* Professional bottom-to-top hover overlay */
.hero-col-side::after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 102, 178, 0.6) 0%, transparent 70%);
    transition: bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
    pointer-events: none;
}

.hero-col-side:hover::after {
    bottom: 0;
}

.hero-col-side:hover {
    box-shadow: 0 15px 45px rgba(0, 102, 178, 0.15);
    transform: translateY(-5px);
}

.hero-col-center {
    flex: 1.4;
    max-width: 500px;
    /* Larger center card */
    transition: 0.3s;
    position: relative;
    cursor: pointer;
}

.hero-col-center:hover {
    transform: translateY(-10px);
}

.video-card-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: 0.3s;
}

.video-overlay i {
    font-size: 50px;
    color: #fff;
    opacity: 0.8;
    transition: 0.3s;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-col-center:hover .video-overlay {
    background: rgba(0, 0, 0, 0);
}

.hero-col-center:hover .video-overlay i {
    transform: scale(1.2);
    opacity: 1;
}

/* Video Lightbox Specifics */
#videoLightboxModal .modal-content {
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

#videoLightboxModal video {
    width: 100%;
    display: block;
}

.hero-img-card {
    width: 300px;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
    cursor: pointer;
    transition: 0.4s;
}

.hero-img-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.hero-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-img-card:hover .hero-card-img {
    transform: scale(1.1);
}

/* Subtle static shadow to ensure text is readable on any image */
.hero-img-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-img-card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: 0.3s ease;
}

.hero-img-card:hover .hero-img-card-content {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-new h1 {
        font-size: 36px;
    }

    .hero-btns {
        flex-direction: column;
        padding: 0 40px;
    }

    .hero-bg-element {
        display: none;
    }

    .hero-bottom-images {
        overflow-x: auto;
        padding-left: 20px;
        justify-content: flex-start;
        padding-bottom: 20px;
    }

    .hero-img-card {
        flex-shrink: 0;
        width: 250px;
        height: 150px;
    }
}

/* =========================================
   Modern Blog Section
   ========================================= */
.blog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/courses-header-bg.png') center/cover;
    padding: 120px 0 80px;
    color: #fff;
    text-align: center;
}

.blog-hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.blog-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.blog-section {
    padding: 100px 0;
    background: #fdfdfd;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card-modern {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.blog-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.blog-card-modern .blog-thumb {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-card-modern .blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-card-modern:hover .blog-thumb img {
    transform: scale(1.1);
}

.blog-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 102, 178, 0.3);
}

.blog-card-modern .blog-content {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-modern .blog-date {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.blog-card-modern .blog-date i {
    color: var(--primary-green);
}

.blog-card-modern .blog-title {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    transition: 0.3s;
}

.blog-card-modern:hover .blog-title {
    color: var(--primary-blue);
}

.blog-card-modern .blog-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.blog-card-modern .read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.blog-card-modern:hover .read-more {
    gap: 15px;
    color: var(--primary-green);
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 36px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Blog Detail */
.blog-detail-hero {
    background: #f8f9fa;
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.blog-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.breadcrumb-tag {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.blog-main-title {
    color: #2c3e50;
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-meta {
    font-size: 14px;
    color: #7f8c8d;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.blog-featured-img {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 450px;
    position: relative;
    background: #f0f0f0;
}

.blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-family: 'Merriweather', Georgia, serif;
    max-width: 100%;
}

@media (max-width: 768px) {
    .blog-main-title {
        font-size: 32px;
    }
}

/* =========================================
   WhatsApp Floating Button
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-icon {
    margin-top: 2px;
    /* Fine tuning alignment */
}

/* =========================================
   Course Details Redesign
   ========================================= */
.course-details-header {
    position: relative;
    padding: 120px 0 80px;
    background-color: #000;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.course-details-header .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.course-details-header .container {
    position: relative;
    z-index: 2;
}

.course-details-header h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.course-details-header p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.courses-list-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.course-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.modern-course-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-course-card:hover .course-card-image img {
    transform: scale(1.1);
}

.course-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card-body h3 {
    font-size: 22px;
    color: #0066b2;
    /* var(--primary-blue) fallback */
    margin-bottom: 15px;
    font-weight: 700;
}

.course-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #777;
}

.course-card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-card-meta i {
    color: #28a745;
    /* var(--primary-green) fallback */
}

.course-card-body p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-modern-enroll {
    padding: 12px 30px;
    background: #0066b2;
    /* var(--primary-blue) fallback */
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    width: fit-content;
    box-shadow: 0 5px 15px rgba(0, 102, 178, 0.2);
}

.btn-modern-enroll:hover {
    background: #28a745;
    /* var(--primary-green) fallback */
    transform: scale(1.05);
    color: #fff;
}

@media (max-width: 768px) {
    .course-details-header h1 {
        font-size: 36px;
    }

    .course-grid-new {
        grid-template-columns: 1fr;
    }
}