:root {
    --primary: #0f2b5c;
    /* UK Enroll Deep Royal Blue */
    --primary-light: #2c4f8f;
    --red: #c8102e;
    /* UK Enroll Red */
    --accent: #d4af37;
    /* Premium Gold */
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --font: 'Outfit', sans-serif;
    --green: #16a34a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.8;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Top */
.header-top {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
    font-size: 13px;
    color: #666;
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left a {
    margin-right: 20px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header-top-left .icon-mail:before {
    content: "✉";
}

.header-top-left .icon-phone:before {
    content: "📞";
}

.header-top-right .social-icons {
    display: flex;
    gap: 15px;
}

.header-top-right .social-icons a {
    color: #666;
    font-size: 14px;
    font-weight: bold;
}

/* Main Header */
.header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo img {
    height: 45px;
}

.courses-trigger {
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.nav a:hover {
    color: var(--red);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.student-login {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.student-login:before {
    content: "👤";
}

.btn-enrol {
    background: var(--red);
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.btn-enrol:hover {
    background: #a0182e;
}

/* Loading Skeletons */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.course-card-skeleton {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.course-card-skeleton .skeleton-img {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.course-card-skeleton .skeleton-body {
    padding: 20px;
}

.course-card-skeleton .skeleton-title {
    height: 20px;
    width: 80%;
    margin-bottom: 15px;
}

.course-card-skeleton .skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.course-card-skeleton .skeleton-text:last-of-type {
    width: 60%;
    margin-bottom: 20px;
}

.course-card-skeleton .skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.course-card-skeleton .skeleton-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.course-card-skeleton .skeleton-button {
    width: 100px;
    height: 16px;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 80px;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text-side {
    max-width: 600px;
}

.hero-subtitle {
    color: var(--red);
    font-weight: 700;
    font-size: 1.5rem;
    /* Matches "Your Future" */
    margin-bottom: 5px;
    display: block;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0d1b2a;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-description p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn-hero-primary, .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-hero-primary:hover {
    background: #a0182e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.btn-hero-primary i {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover i {
    transform: translateX(5px);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.btn-hero-secondary:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.2);
}

.hero-actions {
    margin-top: 30px;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #a0182e;
}

.hero-achievers {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #555;
}

.avatars {
    display: flex;
}

.avatar {
    width: 30px;
    height: 30px;
    background: #ddd;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -10px;
    display: inline-block;
}

.rating {
    color: var(--red);
    font-weight: 700;
}

.hero-image-side img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 500px;
    /* Force height to look like screenshot */
}

/* Stats Counter Section */
.stats-counter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--red) 0%, #a0182e 100%);
    position: relative;
    overflow: hidden;
}

.stats-counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-counter-item {
    text-align: center;
    color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.stat-counter-item:nth-child(1) { animation-delay: 0.1s; }
.stat-counter-item:nth-child(2) { animation-delay: 0.2s; }
.stat-counter-item:nth-child(3) { animation-delay: 0.3s; }
.stat-counter-item:nth-child(4) { animation-delay: 0.4s; }

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

.stat-counter-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-icon i {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stat-number .counter {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}

.stat-number .plus,
.stat-number .percent {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.8;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

@media (max-width: 576px) {
    .stats-counter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }
}

/* Partners Section */
.partners-section {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.partners-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.partners-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.partners-logos-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.partners-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.partners-track {
    display: flex;
    gap: 60px;
    align-items: center;
    width: fit-content;
    will-change: transform;
}

.partner-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.partner-logo-item img {
    max-height: 60px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.partners-logos {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-around;
}

.partners-logos img {
    max-height: 50px;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: 0.3s;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Red Pillars Section */
.red-pillars-section {
    background: linear-gradient(to right, #a0182e, #C51E3A);
    padding: 60px 0;
    color: #fff;
    margin-top: 40px;
}

.red-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pillar-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    /* Ensure monochrome white color */
}

.pillar-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pillar-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Categories Section */
.categories-section {
    padding: 40px 0;
    background: #f9f9f9;
}

.categories-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.categories-grid {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    flex-grow: 1;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    scroll-behavior: smooth;
    padding-bottom: 5px;
}

.categories-grid::-webkit-scrollbar {
    display: none;
}

.category-item {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--red);
}

.category-item .count {
    background: #eee;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    color: #777;
}

.categories-nav {
    display: none;
    /* Removed in HTML but keeping safe deletion */
}

.nav-btn {
    border: 1px solid #ddd;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-weight: bold;
    color: #555;
    z-index: 2;
}

.nav-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: #fff;
}

/* Quality Section */
.quality-section {
    padding: 80px 0;
}

.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title .highlight {
    color: var(--red);
}

.section-desc {
    color: #666;
    margin-bottom: 40px;
}

.quality-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.quality-item {
    display: flex;
    gap: 15px;
}

.q-icon {
    font-size: 1.5rem;
    color: var(--red);
    background: #fef2f2;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.q-text h5 {
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.q-text p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.quality-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Platform Banner */
.platform-banner {
    background: #f1f5f9;
    padding: 80px 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.platform-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.platform-content h2 .highlight {
    color: var(--red);
}

.platform-content p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Course Card Global */
.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid #eee;
}

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

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-meta {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.card-body h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 10px 0;
    color: #222;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
}

.price {
    font-weight: 700;
    color: #222;
}

.price.free {
    color: var(--green);
}

.btn-text {
    color: var(--red);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-rating {
    font-size: 0.85rem;
    color: #fbbf24;
    margin-bottom: 10px;
}

.author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Search Section */
.search-section {
    padding: 60px 0 20px;
}

.search-wrap-bar {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-input {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 5px 20px;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-input input {
    border: none;
    flex-grow: 1;
    padding: 10px;
    outline: none;
    font-size: 1rem;
}

.search-input button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}

/* Enhanced Search Results */
#live-search-results {
    max-height: 500px;
    overflow-y: auto;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: #666;
}

.search-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-results-enhanced {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
    padding-left: 20px;
}

.result-thumbnail {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

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

.result-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(200, 16, 46, 0.9);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #777;
}

.result-meta i {
    margin-right: 4px;
    color: var(--red);
    font-size: 0.75rem;
}

.result-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: all 0.2s ease;
}

.search-result-item:hover .result-arrow {
    color: var(--red);
    transform: translateX(5px);
}

.view-all-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(to right, #f8f9fa, #fff);
    border-top: 2px solid #e9ecef;
    text-decoration: none;
    color: var(--red);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.view-all-results:hover {
    background: linear-gradient(to right, var(--red), #e63946);
    color: #fff;
}

.view-all-results i {
    transition: transform 0.2s ease;
}

.view-all-results:hover i {
    transform: translateX(5px);
}

.no-results-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.no-results-state p {
    margin: 10px 0 20px;
    font-size: 0.95rem;
}

.browse-all-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.browse-all-link:hover {
    background: #a0182e;
    transform: translateY(-2px);
}

.search-error {
    text-align: center;
    padding: 30px;
    color: #dc3545;
}

.search-error i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-tabs a {
    padding: 8px 20px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #ddd;
    font-weight: 500;
    color: #555;
}

.filter-tabs a.active,
.filter-tabs a:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* Courses List */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.view-all-wrapper {
    text-align: center;
    margin-bottom: 80px;
}

.view-all-btn {
    display: inline-block;
    border: 2px solid #ddd;
    padding: 12px 30px;
    border-radius: 8px;
    color: #555;
    font-weight: 600;
}

.view-all-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

/* News Section */
.news-section {
    padding: 0 0 80px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.news-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #222;
}

.news-header h3 .highlight {
    color: var(--red);
}

.btn-secondary {
    background: #333;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.news-card {
    display: flex;
    gap: 20px;
    background: #fff;
}

.news-img {
    width: 150px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content .date {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
    margin-bottom: 5px;
}

.news-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.news-content a {
    color: var(--red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer Premium - Matches Main URL Structure but with Red Theme */
.footer-premium {
    background: #0f172a;
    /* Dark Navy for premium look, similar to main url but customized */
    color: #94a3b8;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-col-about p {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #cbd5e1;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--red);
    transform: translateY(-3px);
}

.footer-col-links h4,
.footer-col-services h4,
.footer-col-newsletter h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-col-links ul,
.footer-col-services ul {
    list-style: none;
    padding: 0;
}

.footer-col-links li,
.footer-col-services li {
    margin-bottom: 12px;
}

.footer-col-links a,
.footer-col-services a {
    color: #94a3b8;
    transition: 0.3s;
}

.footer-col-links a:hover,
.footer-col-services a:hover {
    color: var(--red);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.newsletter-form input {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    outline: none;
}

.newsletter-form button {
    padding: 12px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #a0182e;
}

.footer-contact-info div {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal a {
    color: #94a3b8;
    margin-left: 20px;
}

.footer-legal a:hover {
    color: #fff;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #fff;
}

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

.testimonial-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-card .stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-info .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.student-info h5 {
    margin: 0;
    font-weight: 700;
    color: #333;
}

.student-info span {
    font-size: 0.85rem;
    color: #777;
}

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

.bg-red {
    background-color: var(--red);
}

.bg-accent {
    background-color: var(--accent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    /* Hidden on Desktop */
    background: none;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    margin-left: 10px;
    transition: 0.3s;
}

.mobile-menu-btn:hover {
    background: #f9f9f9;
    color: var(--red);
}

@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-text-side {
        max-width: 100%;
        order: 2;
    }

    .hero-image-side {
        order: 1;
    }

    .hero-image-side img {
        height: auto;
        max-height: 400px;
    }

    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .header-left {
        margin-right: auto;
        /* Push others to right */
    }

    .header-right-actions {
        /* Keep visible on mobile, reduce gap */
        gap: 10px;
        order: 2;
    }

    .btn-enrol {
        padding: 8px 15px;
        /* Smaller button on mobile */
        font-size: 13px;
    }

    .mobile-menu-btn {
        display: block;
        order: 3;
    }

    .nav {
        display: none;
        width: 100%;
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #eee;
        flex-direction: column;
        gap: 0;
        order: 10;
        /* Force end */
    }

    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav a {
        padding: 12px 15px;
        /* Add padding for touch */
        border-bottom: 1px solid #f5f5f5;
        width: 100%;
        display: block;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hide nav on mobile for now */
    .partners-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .partners-logos {
        flex-wrap: wrap;
        justify-content: center;
    }

    .red-pillars-grid {
        grid-template-columns: 1fr;
    }

    .quality-grid {
        grid-template-columns: 1fr;
    }

    .quality-image {
        order: -1;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 10px;
    }
}