/**
 * ZEP-RE Academy Landing Page Styles
 *
 * Styles for the main landing page including hero section, stats, course cards,
 * carousel, and footer components.
 */

/* Hide breadcrumb and reset page wrapper spacing for seamless banner. */
.rui-breadcrumbs,
#page-header {
    display: none !important;
}

#page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#region-main {
    padding-top: 0 !important;
}

/* Center the navigation menu in the header. */
nav.navbar {
    justify-content: space-between !important;
}

.primary-navigation {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.primary-navigation .navigation {
    justify-content: center !important;
}

#usernavigation {
    margin-left: 0 !important;
}

/* Top navigation menu link styles. */
.primary-navigation .navigation .nav-link {
    padding: 9px 15px;
    margin: 0 .15rem;
    min-height: 40px;
    font-weight: 500;
    color: #212121 !important;
    border: none;
    border-radius: 5px;
}

.primary-navigation .navigation .nav-link:hover,
.primary-navigation .navigation .nav-link:focus {
    color: #0ea5e9 !important;
    background-color: rgba(14, 165, 233, 0.1);
}

/* Language selector and topbar buttons. */
.rui-topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    width: max-content;
    min-height: 40px;
    border: none;
    border-radius: 5px;
    font-size: .75rem;
    font-weight: 500;
    background-color: #EEE !important;
    color: #212121 !important;
}

.rui-topbar-btn:hover,
.rui-topbar-btn:focus {
    background-color: #DDD !important;
    color: #212121 !important;
}

/* Login button styling - gold color for brand consistency. */
.rui-login-btn {
    background-color: #ba9607 !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

/* Modern Hero Section */
.modern-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 24px 20px;
    margin-top: -50px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-content h1 .highlight {
    color: #0ea5e9;
}

.hero-content .subtitle {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: white;
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(3px);
}

.browse-courses-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.browse-courses-link:hover {
    color: #0ea5e9;
}

.browse-courses-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.browse-courses-link:hover svg {
    transform: translateX(3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Stats Row Section */
.stats-row-section {
    padding: 24px 20px;
    background: white;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 8px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: #0ea5e9;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Courses Section */
.courses-section {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #0ea5e9;
}

.view-all-link svg {
    width: 16px;
    height: 16px;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: white;
    border-color: #e2e8f0;
    color: #64748b;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #0ea5e9;
    width: 24px;
    border-radius: 4px;
}

/* Course Cards - Horizontal Carousel */
.course-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.modern-course-card {
    flex: 0 0 260px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    scroll-snap-align: start;
}

.modern-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.course-card-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.course-card-body {
    padding: 12px;
}

.course-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 40px;
}

.course-card-title a {
    color: inherit;
    text-decoration: none;
}

.course-card-title a:hover {
    color: #0ea5e9;
}

.course-card-summary {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: none;
}

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

.course-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.course-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0ea5e9;
    background: #e0f2fe;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.course-card-btn:hover {
    background: #0ea5e9;
    color: white;
}

.course-card-btn svg {
    width: 18px;
    height: 18px;
}

/* Modern Footer */
.modern-footer {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 30px 20px 20px;
    margin-top: 24px;
    margin-bottom: -100px;
    padding-bottom: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-block h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0ea5e9;
    margin-bottom: 12px;
}

.footer-block p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 8px;
}

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

.footer-block ul li {
    margin-bottom: 8px;
}

.footer-block ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-block ul li a:hover {
    color: #0ea5e9;
}

.footer-block i {
    color: #0ea5e9;
    margin-right: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid #334155;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content .subtitle {
        margin: 0 auto 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .modern-hero {
        padding: 20px 15px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

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

    .stat-icon {
        width: 44px;
        height: 44px;
    }

    .stat-icon svg {
        width: 22px;
        height: 22px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }

    .carousel-dot.active {
        width: 18px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .modern-course-card {
        flex: 0 0 220px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-item {
        padding: 8px;
    }

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

    .stat-label {
        font-size: 0.8rem;
    }

    .modern-course-card {
        flex: 0 0 200px;
    }
}
