/* CSVI Clone Theme Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f1f1;
    color: #333333;
    margin: 0;
    padding: 0;
}

/* Custom Header matching CSVI layout */
.header-csvi {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* very subtle flat shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.header-csvi .container-fluid {
    max-width: 1400px;
    height: 100%;
    padding: 0 30px;
}

.header-csvi .row {
    height: 100%;
    margin: 0;
}

.header-csvi .logo-col {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.header-csvi .logo-col img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header-csvi .menu-col {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.csvi-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.csvi-menu>li {
    margin: 0 15px;
    position: relative;
}

.csvi-menu>li>a {
    color: #333333;
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    height: 80px;
}

.csvi-menu>li>a:hover {
    color: #EF1625;
    /* CSVI Primary Red */
}

.header-nav-main>li>a {
    color: #444 !important;
    /* Slightly darker than 666 for better legibility */
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: none !important;
    padding: 10px 18px !important;
    transition: color 0.2s ease !important;
}

.header-nav-main>li>a:hover {
    color: #EF1625 !important;
}

.header-nav-main .has-dropdown>a>i {
    margin-left: 6px !important;
    font-size: 13px !important;
    color: #888 !important;
}

/* Sub-menu styling matching CSVI */
.nav-dropdown {
    border-top: 3px solid #EF1625 !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 10px 0 !important;
}

.nav-dropdown>li>a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    padding: 10px !important;
    color: #444 !important;
    text-transform: none !important;
    border-bottom: 1px solid #f5f5f5 !important;
}

.nav-dropdown>li:last-child>a {
    border-bottom: none !important;
}

.nav-dropdown>li>a:hover {
    background-color: #f9f9f9 !important;
    color: #EF1625 !important;
}

/* Header Dropdown Hover Effect */
.header-nav-main .has-dropdown {
    position: relative;
}

.header-nav-main .has-dropdown>.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 260px;
    z-index: 999;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.header-nav-main .has-dropdown:hover>.nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-user-account__label {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: #444 !important;
}

.header-csvi .action-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.header-csvi .account-btn {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.header-csvi .account-btn i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #555;
    font-size: 16px;
    transition: background 0.3s;
}

.header-csvi .account-btn:hover i {
    background: #e0e0e0;
}

/* Home Section Styles */
.csvi-hero {
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
}

.csvi-hero img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.csvi-section {
    padding: 50px 0;
    background: #fff;
    margin-bottom: 20px;
}

.csvi-section-title {
    text-align: center;
    margin-bottom: 30px;
}

.csvi-section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1C57A0;
    /* CSVI blue */
    text-transform: uppercase;
    margin: 0;
}

/* Base override for inline styles in section titles if they exist */
.csvi-section-title h2[style] {
    color: #1C57A0 !important;
}

/* Product Card Styling (CSVI Clone) */
.product-carousel .popular-product,
.item-news,
.one-product-container {
    background: #fff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* very soft shadow */
}

.product-carousel .popular-product:hover,
.item-news:hover,
.one-product-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    /* hover shadow */
    transform: translateY(-3px);
}

.one-product-container .product-images {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    /* 1:1 Aspect Ratio for product images */
}

.one-product-container .product-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.one-product-container:hover .product-images img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

.one-product-container .product-info {
    padding: 15px;
    text-align: center;
}

.one-product-container .product-name {
    margin: 0 0 10px;
}

.one-product-container .product-name a {
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s;
}

.one-product-container .product-name a:hover {
    color: #EF1625;
}

.one-product-container .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #EF1625;
}

.one-product-container .price-del {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

/* Category grid styling */
.hover-img-category {
    text-align: center;
    margin-bottom: 20px;
}

.hover-img-category .category-img {
    border-radius: 50%;
    overflow: hidden;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border: 1px solid #eee;
    background: #fff;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-img-category:hover .category-img {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #de0985;
}

.hover-img-category .category-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qd-box-danhmuc-title a {
    color: #444;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.qd-box-danhmuc-title a:hover {
    color: #EF1625;
}

/* Owl Carousel Custom Navigation for CSVI style */
.csvi-section .owl-nav button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333333 !important;
    font-size: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.csvi-section:hover .owl-nav button {
    opacity: 1;
}

.csvi-section .owl-nav button:hover {
    background: #EF1625 !important;
    color: #fff !important;
}

.csvi-section .owl-prev {
    left: -20px;
}

.csvi-section .owl-next {
    right: -20px;
}

/* Red Cards like CSVI Course Cards */
.csvi-red-card .one-product-container {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.csvi-red-card .one-product-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.csvi-red-card .product-info {
    background-color: #E41E26;
    /* Exact CSVI Red */
    padding: 15px 10px;
}

.csvi-red-card .product-name {
    margin: 5px 0 0 0;
}

.csvi-red-card .product-name a {
    color: #ffffff;
}

.csvi-red-card .product-name a:hover {
    color: #f1f1f1;
}

.csvi-red-card .product-price .price {
    color: #ffffff;
}

.csvi-red-card .product-price .price-del {
    color: rgba(255, 255, 255, 0.7);
}

/* White cards tuning */
.one-product-container {
    border-radius: 0;
    border: 1px solid #efefef;
    box-shadow: none;
}

.one-product-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.one-product-container .product-info {
    padding: 15px;
    background-color: #ffffff;
}

@media (max-width: 849px) {
    .header-main {
        height: 70px !important;
    }

    .header-inner {
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10;
        margin: 0 !important;
        padding: 0 !important;
    }

    #logo img {
        max-height: 50px !important;
        width: auto !important;
        padding: 0 !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .flex-left,
    .flex-right {
        display: flex !important;
        align-items: center !important;
    }
}


@media (max-width: 549px) {
    .csvi-hero img {
        max-height: 300px;
    }

    .col.medium-3,
    .col.medium-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Fix for squished content column on mobile */
.container,
.row {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Hamburger menu icon fixes */
.mobile-nav .icon-menu {
    color: rgb(15, 87, 175) !important;
    font-size: 28px !important;
    line-height: 1;
    display: inline-block;
}


/* Fix for line-clamp lint warning */
.one-product-container .product-name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================
   CRITICAL: Flatsome Responsive Visibility Classes
   These MUST be defined for the mobile layout to work.
   Flatsome uses 849px as the "medium" breakpoint.
   =================================================== */


/* On mobile (max-width: 849px): override Flatsome's visibility system where needed */
@media (max-width: 849px) {
    .show-for-medium {
        display: flex !important;
    }

    .hide-for-medium {
        display: none !important;
    }

    /* -- Header layout -- */
    .header-main {
        height: 70px !important;
        position: relative !important;
    }

    .header-inner {
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
    }

    /* -- Logo: absolutely centered -- */
    #logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #logo img {
        max-height: 55px !important;
        width: auto !important;
        padding: 0 !important;
        display: block !important;
        margin: 0 !important;
    }

    /* -- Mobile nav elements -- */
    .flex-left,
    .flex-right {
        display: flex !important;
        align-items: center !important;
        z-index: 20 !important;
    }

    /* -- Mobile hamburger icon -- */
    .mobile-nav .icon-menu {
        color: rgb(15, 87, 175) !important;
        font-size: 28px !important;
        line-height: 1 !important;
        display: inline-block !important;
    }

    /* -- Mobile search/account icons -- */
    .mobile-nav .icon-search {
        font-size: 22px !important;
        color: #333 !important;
    }

    .header-user-account__icon {
        width: 28px !important;
        height: 28px !important;
    }

    .header-user-account .header-user-account__label {
        display: none !important;
    }
}

/* On desktop: ensure desktop nav is visible */
@media (min-width: 850px) {
    .show-for-medium {
        display: none !important;
    }

    .hide-for-medium {
        display: flex !important;
    }
}

.page-title-inner h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}
/* Premium Section & Component Styles */
.hero-section-premium {
    background: #0f57af;
    padding: 60px 0;
    color: #fff;
    text-align: left;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section-premium .container {
    position: relative;
    z-index: 2;
}

.breadcrumb-premium {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-premium a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-premium .divider {
    margin: 0 5px;
}

.content-box-premium {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.btn-csvi-pink {
    background: #de0985;
    color: white !important;
    border-radius: 6px;
    padding: 12px 24px;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-csvi-pink:hover {
    background: #c00873;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(222, 9, 133, 0.3);
}

.img-zoom-1by1 {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.img-zoom-1by1 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-zoom-1by1:hover img {
    transform: scale(1.1);
}

.hero-bg-circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg-circle-tr {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
}

.hero-bg-circle-bl {
    bottom: -80px;
    left: -20px;
    width: 300px;
    height: 300px;
}

/* Page titles in hero sections */
.hero-section-premium h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #fff;
}

/* Landing Page Specific Refinements */
.landing-page-content a {
    transition: all 0.3s ease;
    color: #0f57af;
    text-decoration: none;
}

.landing-page-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .hero-section-premium {
        padding: 40px 0;
    }
    .hero-section-premium h1 {
        font-size: 24px !important;
        padding: 0 15px;
    }
    .content-box-premium {
        padding: 20px !important;
    }
}

/* News Page Styles */
.news-page {
    background-color: #f8fafc;
    padding: 60px 0;
}

.news-header {
    margin-bottom: 40px;
    text-align: center;
}

.news-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.card-image {
    position: relative;
    padding-top: 60%; /* 16:9 approx */
    overflow: hidden;
    background: #e2e8f0;
}

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

.news-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    text-decoration: none;
}

.news-card:hover .card-title {
    color: #0f57af;
}

.card-excerpt {
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #0f57af;
    transition: gap 0.3s ease;
    text-decoration: none;
}

.read-more:hover {
    gap: 12px;
    color: #de0985;
}

.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-link.active {
    background: #0f57af;
    color: #fff;
    border-color: #0f57af;
}

/* Jobs Page Styles */
.jobs-archive {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.page-header-jobs {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #eef2f7;
}

.job-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #0056b3;
}

.job-card .job-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a202c;
    line-height: 1.4;
}

.job-card .job-title a {
    color: inherit !important;
    text-decoration: none;
}

.job-card .job-title a:hover {
    color: #0056b3 !important;
}

.job-card .company-name {
    color: #718096;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.job-card .company-name i {
    margin-right: 8px;
    color: #a0aec0;
}

.job-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
}

.meta-item-job {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.meta-item-job i {
    width: 20px;
    color: #0056b3;
    margin-right: 6px;
}

.job-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
}

.badge-fulltime { background: #ebf8ff; color: #3182ce; }
.badge-parttime { background: #faf5ff; color: #805ad5; }
.badge-contract { background: #fff5f5; color: #e53e3e; }
.badge-intern { background: #f0fff4; color: #38a169; }

.btn-view-job {
    margin-top: 15px;
    width: 100%;
    background: #0056b3;
    color: #fff !important;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s;
    text-decoration: none;
    display: block;
}

.btn-view-job:hover {
    background: #004494;
}

.search-form-jobs .form-control {
    border-radius: 8px 0 0 8px;
    height: 50px;
    border-color: #e2e8f0;
}

.search-form-jobs .btn {
    border-radius: 0 8px 8px 0;
    height: 50px;
    padding: 0 25px;
    background: #de0985;
    border: none;
    font-weight: 600;
    color: #fff;
}

/* Directory Detail Styles */
.directory-detail {
    background-color: #f4f4f4;
    padding: 30px 0;
}

.detail-main-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    overflow: hidden;
}

.detail-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.detail-content {
    padding: 25px;
}

.detail-sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.detail-sidebar-widget h4 {
    border-bottom: 2px solid #de0985;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
}

.info-table {
    width: 100%;
    font-size: 14px;
}

.info-table td {
    padding: 8px 0;
    vertical-align: top;
}

.info-table td:first-child {
    width: 40%;
    color: #666;
    font-weight: 500;
}

.contact-card {
    background: #0f57af;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-card h5 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.contact-card p {
    margin-bottom: 10px;
}

.contact-card a {
    color: #fff !important;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.gallery-item {
    width: 33.33%;
    padding: 5px;
    margin-bottom: 10px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #eee;
}

.section-title-alt {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 20px 0 15px;
    padding-left: 10px;
    border-left: 4px solid #de0985;
}

.badge-detail {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

/* Directory Detail Refinements */
.directory-logo-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    padding: 5px;
    background: #fff;
}

.directory-no-logo {
    height: 80px;
    width: 80px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    margin: 0 auto;
}

.directory-no-logo span {
    font-size: 10px;
    color: #999;
}

.directory-title-main {
    font-size: 26px;
    color: #0f57af;
    margin-bottom: 10px;
}

.badge-sponsored {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.badge-verified {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.gallery-caption {
    font-size: 11px;
    margin-top: 5px;
    text-align: center;
    color: #666;
}

.contact-icon {
    width: 25px;
    text-align: center;
    color: #0f57af;
}

.contact-card p i.contact-icon {
    color: #fff; /* White icons on blue background */
}

/* Directory Archive Styles */
.directory-archive {
    background-color: #f4f4f4;
    padding: 30px 0;
}

.directory-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.directory-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.directory-item h3 {
    color: #0f57af;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 20px;
}

.directory-item h3 a {
    color: #0f57af !important;
    text-decoration: none;
}

.directory-info {
    font-size: 14px;
    line-height: 1.6;
}

.directory-info p {
    margin-bottom: 5px;
}

.directory-info i {
    width: 20px;
    color: #de0985;
}

.directory-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
    text-transform: uppercase;
}

.directory-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #555;
    font-style: italic;
    font-size: 13.5px;
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

/* Sidebar lists inside directory archive */
.sidebar-list-directory {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-list-directory li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.sidebar-list-directory li:last-child {
    border-bottom: none;
}

.sidebar-list-directory li a {
    color: #333 !important;
    text-decoration: none;
}

.sidebar-list-directory li a:hover {
    color: #de0985 !important;
}

.directory-logo-archive {
    max-width: 120px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 5px;
}

.qr-code-placeholder {
    width: 90px;
    height: 90px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #666;
    border: 1px solid #ddd;
    margin: 0 auto;
}

.qr-code-placeholder i {
    font-size: 40px;
    margin-bottom: 5px;
}

.archive-header-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.archive-header-card h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.archive-header-card .count-text {
    font-size: 16px;
    font-weight: 400;
    color: #6c757d;
}

.archive-header-card .count-number {
    color: #de0985;
}

/* Global Mobile Overrides (from master.php) */
@media (max-width: 849px) {
    /* Force hide desktop nav on mobile */
    .hide-for-medium, div.hide-for-medium { display: none !important; }
    /* Force show mobile nav elements */
    .show-for-medium, div.show-for-medium { display: flex !important; }
    /* Logo centered */
    #logo { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; }
    #logo img { max-height: 55px !important; width: auto !important; }
    /* Mobile nav icon colors */
    .mobile-nav .icon-menu { color: rgb(15, 87, 175) !important; font-size: 26px !important; }
    /* Account label hide */
    .header-user-account__label { display: none !important; }
    /* Header height */
    .header-main, #masthead { height: 70px !important; min-height: 70px !important; }
    .header-inner { height: 70px !important; }
}

/* Global Utility Classes */
.text-blue-premium { color: #0f57af !important; }
.text-pink-premium { color: #de0985 !important; }
.bg-blue-premium { background-color: #0f57af !important; }
.bg-pink-premium { background-color: #de0985 !important; }

.banner-ratio-30 { padding-top: 30% !important; }
.banner-ratio-40 { padding-top: 40% !important; }
.banner-ratio-50 { padding-top: 50% !important; }

.rounded-6 { border-radius: 6px !important; }
.rounded-12 { border-radius: 12px !important; }

.shadow-premium { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important; }

/* Construction Page / Empty State */
.construction-wrapper {
    padding: 80px 0;
    text-align: center;
}

.construction-wrapper h1 {
    color: #0f57af;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 800;
}

.construction-wrapper p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Homepage Specific Styles (from index.php) */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}

@media (max-width: 991px) {
    .home-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .home-news-grid { grid-template-columns: 1fr; }
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #e2e8f0;
}

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

.news-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

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

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card:hover .card-title {
    color: #0f57af;
}

.card-excerpt {
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #0f57af;
    transition: gap 0.3s ease;
    text-decoration: none;
}

.read-more:hover {
    gap: 12px;
    color: #de0985;
}

.ss-title h2 {
    text-align: center;
    color: #0f57af;
    font-weight: 800;
    margin-bottom: 10px;
}

.ss-title h3 {
    text-align: center;
    color: #de0985;
    font-weight: 600;
}

.section-spacing-premium {
    padding-top: 30px;
    padding-bottom: 30px;
}

.bg-gray-premium { background-color: rgb(234, 234, 234) !important; }

/* ss-title helper for center alignment */
.ss-title-center h2 { text-align: center; }

/* --- PREMIUM FOOTER REFINEMENTS --- */
.footer-premium {
    background: radial-gradient(circle at 50% -20%, #1a6bd3 0%, #0f57af 60%, #0a3d7a 100%);
    color: #ffffff;
    padding: 80px 0 0 0;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', 'Roboto', sans-serif;
    border-top: 4px solid #de0985;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjA1Ij48cGF0aCBkPSJNMTAgMTBoMjB2MjBIMTB6Ii8+PC9nPjwvZz48L3N2Zz4=');
    opacity: 0.1;
    pointer-events: none;
}

.footer-premium .footer-title-premium {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-premium .footer-title-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 4px;
    background: #de0985;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(222, 9, 133, 0.6);
}

.footer-logo-premium {
    max-width: 180px;
    height: auto;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.footer-logo-premium:hover {
    transform: scale(1.05);
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-contact-item i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #de0985;
    flex-shrink: 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-contact-item:hover i {
    background: #de0985;
    color: #ffffff;
    transform: rotate(10deg);
}

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

.footer-link-item {
    margin-bottom: 14px;
}

.footer-link-item a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link-item a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #de0985;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-link-item a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-link-item a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-social-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
    background: #de0985;
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(222, 9, 133, 0.4);
    border-color: #de0985;
}

.footer-fanpage-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #ffffff;
}

.footer-bottom-premium {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 35px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-text {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.copyright-text strong {
    color: #ffffff;
    font-weight: 700;
}

.back-to-top-premium {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #de0985;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    text-decoration: none;
}

.back-to-top-premium.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-premium:hover {
    background: #ffffff;
    color: #de0985 !important;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(222, 9, 133, 0.5);
}

@media screen and (max-width: 849px) {
    .footer-premium {
        padding: 60px 0 0 0;
    }
    .footer-column {
        margin-bottom: 50px;
    }
    .back-to-top-premium {
        bottom: 25px;
        right: 25px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   LANDING PAGE BLOCKS (BUILDER)
   ========================================================================== */

.landing-page-blocks section {
    padding: 60px 0;
}

/* Landing Hero */
.landing-hero {
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.landing-hero h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Landing Split */
.landing-split .split-content {
    padding: 20px;
}

/* Landing Timeline */
.landing-timeline .timeline-wrapper {
    position: relative;
    padding-left: 30px;
}

.landing-timeline .timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px; top: 5px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #de0985;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #de0985;
}

.timeline-date {
    font-weight: 700;
    color: #de0985;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: #0f57af;
    margin-bottom: 10px;
}

/* Landing Columns */
.column-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.column-image {
    height: 80px;
    margin-bottom: 20px;
}

.column-image img {
    height: 100%;
    object-fit: contain;
}

/* Landing Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 12px;
}


/* ===================================================
   CSVI Course List Elegant transition (Compact & Non-glaring)
   Inspired by CSVI News Architecture
   =================================================== */

.shadow-csvi-elegant {
    border-radius: 12px !important;
    background: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 5px 15px -7px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

/* High-Fidelity Red Variant for Home Slider */
.course-card-red-elegant.shadow-csvi-elegant {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px -5px rgba(239, 22, 37, 0.15), 0 5px 15px -7px rgba(0, 0, 0, 0.05) !important;
}

.course-card-red-elegant .csvi-course-elegant {
    background: linear-gradient(135deg, #EF1625 0%, #D1121D 100%) !important;
    padding: 22px 20px 25px !important;
    color: #ffffff !important;
    min-height: 115px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.course-card-red-elegant .course-title-elegant {
    margin: 5px 0 0 0 !important;
}

.course-card-red-elegant .course-title-elegant a {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 800 !important; /* Premium weight */
    text-transform: none !important;
    letter-spacing: -0.2px;
    line-height: 1.35 !important;
}

.course-card-red-elegant .course-subtitle-red {
    color: #ffffff !important;
    font-size: 13px !important;
    opacity: 0.85;
    margin-bottom: 2px;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Premium Hover effect */
.khoa-hoc-item:hover .course-card-red-elegant.shadow-csvi-elegant {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(239, 22, 37, 0.3) !important;
}

.khoa-hoc-item:hover .shadow-csvi-elegant {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

/* White Elegant Variant Refinements */
.csvi-course-elegant {
    background-color: #ffffff !important;
    padding: 20px 20px 22px !important;
}

.course-title-elegant {
    margin: 0 0 10px !important;
}

.course-title-elegant a {
    color: #2d3436 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    text-transform: uppercase !important;
    letter-spacing: 0.2px;
}

.khoa-hoc-item:hover .course-title-elegant a {
    color: #ef1625 !important;
}

.course-caption-elegant {
    color: #636e72 !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Compact Meta Row */
.course-meta-elegant {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #f2f2f2;
}

.course-date-elegant {
    color: #888888;
    font-size: 13px;
    white-space: nowrap;
}

.btn-elegant-link {
    color: #ef1625 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-elegant-link:hover {
    color: #d1121d !important;
    transform: translateX(3px);
}

/* Image zoom specific */
.image-zoom-1by1-elegant {
    position: relative;
    overflow: hidden;
    padding-top: 80%; /* Adjusted from 100% to make thumbnails more compact */
}

.image-zoom-1by1-elegant img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.khoa-hoc-item:hover .image-zoom-1by1-elegant img {
    transform: scale(1.1);
}

/* Section Header styling */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@700&display=swap');

.section-title-premium h2 {
    font-family: "Be Vietnam Pro", sans-serif !important;
    color: #0F57AF !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding-bottom: 15px !important;
    position: relative;
    display: inline-block;
}

.section-title-premium h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #f78da7;
    height: 3px;
    width: 60px;
}



/* Hero Section Premium & Breadcrumb Pill (Global) */
.hero-section-premium {
    background: linear-gradient(135deg, #0f57af 0%, #004a99 100%);
    padding: 60px 0 100px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-section-premium::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.breadcrumb-pill-premium {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.1);
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}
.breadcrumb-pill-premium a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.breadcrumb-pill-premium a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.breadcrumb-pill-premium i {
    font-size: 0.65rem;
    margin: 0 10px;
    opacity: 0.5;
    color: #fff;
}
.breadcrumb-pill-premium span {
    color: #fff;
    opacity: 0.8;
}
.page-title-premium {
    font-weight: 800;
    color: #fff !important;
    margin: 0;
    letter-spacing: -1px;
    font-size: 2.8rem;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

/* Flatsome Red Course Card Styling (Global) */
.course-card-red-flat {
    background-color: #EF1625 !important;
    border-radius: 5px !important;
    border: none !important;
    box-shadow: 0 0 4px rgba(0,0,0,0.4) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100%;
}
.course-card-red-flat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}
.course-card-red-flat .box-text {
    background-color: #EF1625 !important;
    color: #ffffff !important;
    padding: 10px 10px 15px !important;
}
.course-card-red-flat .course-title-main a {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none;
    line-height: 1.3;
}
.course-card-red-flat .course-subtitle-red {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 5px;
}
.course-card-red-flat .course-caption-main {
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    opacity: 0.95;
    margin-top: 10px;
}
.course-card-red-flat .box-image img {
    border-radius: 5px 5px 0 0;
}

/* Elegant White Card Styling (Global) */
.course-card-white-elegant {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}
.course-card-white-elegant:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}
.course-card-white-elegant .box-text {
    padding: 20px !important;
}
.course-card-white-elegant .course-title-main a {
    color: #2d3436 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}
.course-card-white-elegant .course-caption-main {
    color: #636e72 !important;
    font-size: 14px !important;
}
