/* ========================================
   CSS VARIABLES
======================================== */
:root {
    --primary-color: #061497;
    --primary-light: #2c6ecb;
    --secondary-color: #e8b537;
    --secondary-wbts: #7a812e;
    --accent-color: #2c6ecb;
    --light-color: #f8f9fa;
    --dark-color: #1c222b;
    --success-color: #28a745;
    --text-color: #4a5568;
    --text-light: #718096;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.hero-content h1 .highlight-word {
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(232, 181, 55, 0.8);
    filter: drop-shadow(0 0 8px rgba(232, 181, 55, 0.3));
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

/* ========================================
   PROGRAM TABS SECTION
======================================== */
.program-tabs-section {
    padding: 80px 0;
}

.program-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 20, 151, 0.3);
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   PROGRAM CARDS GRID
======================================== */
.programs-grid {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-top: 30px;
}

/* Desktop: 4 columns */
@media (min-width: 1400px) {
    .programs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Laptop: 4 columns */
@media (min-width: 1200px) and (max-width: 1399px) {
    .programs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ========================================
   PROGRAM CARDS
======================================== */
.program-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f3f4f6;
    overflow: hidden;
}

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

.program-card:hover .program-card-img img {
    transform: scale(1.05);
}

.program-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-level {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 12px;
    align-self: flex-start;
}

.program-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.program-content p {
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.5;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.program-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 11px;
    color: #6b7280;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    justify-content: center;
}

.detail-item:not(:last-child) {
    border-right: 1px solid #e5e7eb;
    padding-right: 8px;
    margin-right: 8px;
}

.detail-item i {
    color: #3b82f6;
    font-size: 12px;
}

/* ========================================
   FEATURES SECTION
======================================== */
.features-section {
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-top: 50px;
}

/* Desktop: 5 columns */
@media (min-width: 1400px) {
    .features-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Laptop: 4 columns */
@media (min-width: 1200px) and (max-width: 1399px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.feature-icon {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon i {
    font-size: 3rem;
    color: white;
}

.feature-content {
    padding: 16px;
}

.feature-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card p {
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   FEATURED COURSES SECTION
======================================== */
.featured-courses-section {
    background-color: var(--light-color);
}

.featured-courses-grid {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-top: 30px;
}

/* Desktop: 5 columns */
@media (min-width: 1400px) {
    .featured-courses-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Laptop: 4 columns */
@media (min-width: 1200px) and (max-width: 1399px) {
    .featured-courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .featured-courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
    .featured-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.featured-course-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-course-card:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.featured-course-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f3f4f6;
}

.featured-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-course-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.featured-course-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f59e0b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-course-content {
    padding: 16px;
}

.featured-course-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-course-description {
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 10px;
    color: #6b7280;
}

.featured-course-level {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
}

.featured-course-credits {
    color: #6b7280;
    font-weight: 500;
}

.featured-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.featured-course-stats {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: #6b7280;
}

.featured-course-price {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.featured-course-price.free {
    color: #059669;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: var(--primary-color);
    color: white;
    text-align: center;
    margin-top: 0;
    padding: 60px 0;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    width: 100%;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: #d4a853;
    border-color: #d4a853;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 181, 55, 0.3);
}

.btn-outline {
    background: transparent !important;
    color: white !important;
    border: 2px solid var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 1px var(--secondary-color) !important;
}

.btn-outline:hover {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    border-color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* ========================================
   UTILITY CLASSES
======================================== */
.no-programs-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.no-programs-message i {
    font-size: 64px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.no-programs-message h3 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.no-programs-message p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Large screens - ensure heading stays on one line */
@media (min-width: 1200px) {
    .cta-content h2 {
        font-size: 2.4rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .program-tabs {
        flex-direction: column;
    align-items: center;
        gap: 15px;
    }

    .tab-btn {
        min-width: 280px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .tab-btn i {
    font-size: 1rem;
    }

    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .program-card-img {
        height: 150px;
    }

    .program-content {
        padding: 16px;
    }

    .program-content h3 {
        font-size: 14px;
        min-height: 40px;
    }

    .program-content p {
        font-size: 12px;
    }

    .program-details {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .detail-item {
        justify-content: flex-start;
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .feature-icon {
        height: 120px;
    }

    .feature-icon i {
        font-size: 2rem;
    }

    .feature-content {
        padding: 12px;
    }

    .featured-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .featured-course-image {
        height: 120px;
    }

    .cta-section {
        padding: 30px 0 !important;
    }

    .cta-content {
        padding: 0 15px !important;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .program-tabs {
        gap: 10px;
    }

    .tab-btn {
        min-width: 100%;
        padding: 10px 15px;
    font-size: 0.85rem;
}

    .tab-btn span {
        display: none;
    }

    .tab-btn i {
        font-size: 1.2rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .program-card-img {
        height: 140px;
    }

    .program-content {
        padding: 16px;
    }

    .program-content h3 {
        font-size: 15px;
        min-height: 42px;
    }

    .program-content p {
        font-size: 12px;
    }

    .program-details {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .detail-item {
        justify-content: center;
        font-size: 10px;
    }

    .detail-item:not(:last-child) {
        border-right: 1px solid #e5e7eb;
        padding-right: 8px;
        margin-right: 8px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .feature-icon {
        height: 100px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .feature-content {
        padding: 10px;
    }

    .featured-courses-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .featured-course-image {
        height: 100px;
    }

    .featured-course-content {
        padding: 10px;
    }

    .cta-content h2 {
        font-size: 2rem;
        white-space: normal;
    }

    .cta-section {
        padding: 30px 0 !important;
    }

    .cta-content {
        padding: 0 15px !important;
    }

    .cta-content p {
        font-size: 1rem;
    }
}
