/* ===== CSS Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;

    --dark: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    --white: #ffffff;
    --body-bg: #f8fafc;



    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== Navigation ===== */
.navbar {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.brand-accent {
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

.credit-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    color: var(--gray-800);
}

.credit-badge i {
    color: var(--accent);
}

.credit-amount {
    color: var(--gray-900);
}

.credit-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-add-credits {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-add-credits:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-logout {
    padding: 0.5rem;
    border-radius: var(--radius);
}

/* ===== Breadcrumb Section ===== */
.breadcrumb-section {
    background-color: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--gray-800);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--gray-400);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, #bbdaec 100%);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.875rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--gray-900);
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ===== Courses Section ===== */
.courses-section {
    padding: 3rem 0 5rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-xl);
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* Course Cards */
.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.badge-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
}

.badge-category.badge-isu {
    background: var(--danger);
}

.badge-category.badge-fire {
    background: var(--warning);
}

.badge-category.badge-academy {
    background: var(--success);
}

.badge-category.badge-prison {
    background: var(--gray-700);
}

.card-flag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.meta-item i {
    color: var(--gray-400);
}

.card-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credits, .items {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.credits {
    color: var(--accent);
}

.credits i {
    color: var(--accent);
}

.items {
    color: var(--gray-500);
}

.items i {
    color: var(--gray-400);
}

.btn-start {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transform: translateY(10px);
    transition: var(--transition);
}

.course-card:hover .btn-start {
    transform: translateY(0);
}

.btn-load-more {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border-width: 2px;
}

/* ===== Features Section ===== */
.features-section {
    background: var(--white);
    padding: 4rem 0;
    border-top: 1px solid var(--gray-200);
}

.feature-box {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.75rem;
}

.feature-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.footer-brand .logo-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.footer-brand h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.company-info {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.company-info p {
    margin-bottom: 0.25rem;
}

.footer-links h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem;
}

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

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-newsletter h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-newsletter p {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    color: var(--white);
    padding: 0.75rem 1rem;
}

.newsletter-form .form-control::placeholder {
    color: var(--gray-500);
}

.newsletter-form .form-control:focus {
    background: var(--gray-800);
    border-color: var(--primary);
    box-shadow: none;
    color: var(--white);
}

.newsletter-form .btn {
    padding: 0.75rem 1rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-800);
}

.copyright {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.developer {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.developer a {
    color: var(--primary);
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

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

    .credit-badge {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0 5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .footer-bottom {
        text-align: center;
    }

    .developer {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card {
    animation: fadeInUp 0.5s ease-out forwards;
}

.course-card:nth-child(1) { animation-delay: 0.05s; }
.course-card:nth-child(2) { animation-delay: 0.1s; }
.course-card:nth-child(3) { animation-delay: 0.15s; }
.course-card:nth-child(4) { animation-delay: 0.2s; }
.course-card:nth-child(5) { animation-delay: 0.25s; }
.course-card:nth-child(6) { animation-delay: 0.3s; }
.course-card:nth-child(7) { animation-delay: 0.35s; }
.course-card:nth-child(8) { animation-delay: 0.4s; }

.ronco-color {
    color: var(--ronco);
}

.vet-color {
    color: var(--vet);
}
.hero-title {
    letter-spacing: -0.3rem;
}

.header h1 {
    letter-spacing: -0.15rem;
}
