/* ==========================================
   1. GLOBAL VARIABLES & RESETS
   ========================================== */
:root {
    /* TEMA MERAH – PUTIH – BIRU (AADK + Jalur Gemilang) */
    --aadk-blue: #0056A4;
    --aadk-blue-dark: #003B73;
    --aadk-blue-hover: #004a8c;
    --aadk-blue-light: #E8F1FB;

    --aadk-red: #C8102E;
    --aadk-red-dark: #9B0C24;
    --aadk-red-hover: #A80E27;
    --aadk-maroon: #9D1C20;

    --aadk-white: #FFFFFF;

    --primary-navy: #003B73;
    --primary-navy-dark: #002952;
    --primary-blue: #0056A4;
    --primary-blue-hover: #004a8c;
    --blue-accent: #2C75C8;
    --blue-hover: #1A5FA8;
    --green-success: #10b981;
    --green-bg: #d1fae5;
    --danger-color: #C8102E;

    --sidebar-bg: #003B73;
    --sidebar-hover: #002952;
    --sidebar-active: #001F3D;

    --bg-light: #F7F9FC;
    --bg-color: #F0F4F8;
    --primary-bg: #F7F9FC;
    --card-bg: #FFFFFF;
    --white: #FFFFFF;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-color: #D1D9E6;
    --border-focus: #0056A4;
    --shadow-sm: 0 1px 3px rgba(0, 59, 115, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 59, 115, 0.08);
    --shadow-card: 0 10px 25px -5px rgba(0, 59, 115, 0.08), 0 8px 10px -6px rgba(0, 59, 115, 0.04);

    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ==========================================
   2. NAVBAR & HEADER
   ========================================== */
.navbar {
    background-color: var(--aadk-blue-dark);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    box-shadow: 0 2px 12px rgba(0, 59, 115, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--aadk-red);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

/* AADK Logo - kemas & seimbang seperti SVG */
.logo-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.logo-icon .logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    object-position: center;
    display: block;
    vertical-align: middle;
}

.logo-icon .logo-fallback,
.logo-icon svg {
    width: 80px;
    height: 80px;
    display: block;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

.logo-title {
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.15;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: #b0c4f4;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-login {
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: #ffffff;
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-login:hover {
    background-color: #ffffff;
    color: var(--primary-navy);
}

.btn-nav-register {
    background-color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
    color: #ffffff;
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-register:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================
   3. LOGIN / REGISTER CONTAINERS
   ========================================== */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.login-header {
    text-align: left;
    margin-bottom: 28px;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.login-header p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ==========================================
   4. FORM FIELDS & INPUT GROUPS
   ========================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s ease;
}

.form-input.has-toggle {
    padding-right: 44px;
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.password-toggle:hover {
    color: var(--text-main);
}

.forgot-password-container {
    display: flex;
    justify-content: flex-start;
    margin-top: -8px;
    margin-bottom: 24px;
}

.forgot-password-link {
    font-size: 0.88rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    height: 48px;
    background-color: var(--primary-navy);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--primary-navy-dark);
}

.login-footer {
    text-align: left;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.register-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}

/* ==========================================
   5. FOOTER COMPONENT
   ========================================== */
.aadk-footer {
    background-color: var(--primary-navy);
    color: #ffffff;
    padding: 48px 24px 24px 24px;
    width: 100%;
    position: relative;
    margin-top: auto;
}

.aadk-footer-container {
    max-width: 1140px;
    margin: 0 auto;
}

.aadk-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.aadk-brand-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.aadk-shield-icon {
    width: 38px;
    height: 38px;
    color: #ffffff;
    flex-shrink: 0;
    margin-top: 2px;
}

.aadk-brand-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.aadk-brand-subtitle {
    font-size: 13.5px;
    color: #b0c4f4;
    font-weight: 400;
    margin-top: 4px;
}

.aadk-description {
    color: #d1e0ff;
    font-size: 14px;
    line-height: 1.55;
    max-width: 330px;
}

.aadk-section-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.aadk-contact-list,
.aadk-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aadk-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #d1e0ff;
    font-size: 14px;
}

.aadk-contact-item svg {
    width: 18px;
    height: 18px;
    color: #e2ebff;
    flex-shrink: 0;
}

.aadk-contact-item a,
.aadk-links-list a {
    color: #d1e0ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aadk-contact-item a:hover,
.aadk-links-list a:hover {
    color: #ffffff;
}

.aadk-links-list li {
    margin-bottom: 12px;
}

.aadk-footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
    border: none;
}

.aadk-copyright {
    text-align: center;
    color: #b0c4f4;
    font-size: 13.5px;
}

.aadk-help-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: #111827;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.aadk-help-btn:hover {
    background-color: #000000;
    transform: scale(1.08);
}

/* ==========================================
   6. DASHBOARD & SIDEBAR
   ========================================== */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-sidebar-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.nav-link:hover {
    background-color: var(--sidebar-hover);
    color: white;
}

.nav-link.active {
    background-color: var(--sidebar-active);
    color: white;
    font-weight: 600;
}

.nav-icon {
    width: 20px;
    margin-right: 15px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.logout-btn:hover {
    background-color: var(--danger-color);
    color: white;
}

.logout-btn i {
    margin-right: 10px;
}

.main-content {
    margin-left: 250px;
    flex-grow: 1;
    padding: 24px;
    width: calc(100% - 250px);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-titles h1, .page-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-titles p, .page-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

.feature-image {
    width: 100%;
    height: 180px;          /* boleh ubah ikut suka */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* gambar penuh, tak kecik */
    display: block;
}

/* Buang style lama icon kalau ada */
.feature-icon {
    display: none;          /* optional, kalau nak pastikan hilang */
}

/* ==========================================
   7. DASHBOARD CARDS & CHARTS
   ========================================== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.summary-card, .section-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    margin-bottom: 2rem;
}

.card-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.card-year {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-label {
    font-size: 12px;
    color: var(--text-muted);
}

.chart-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.chart-header {
    margin-bottom: 30px;
}

.chart-header h2, .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.chart-header p, .section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.chart-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    height: 350px;
}

/* ==========================================
   8. MEDIA QUERIES (RESPONSIVE)
   ========================================== */
@media (max-width: 1024px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle,
    .close-sidebar-btn {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .aadk-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .aadk-description {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   HERO CAROUSEL (MODERN & GLASSMORPHISM DESIGN)
   ========================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background-color: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 7s ease-out;
    transform: scale(1.08); /* Effek Ken Burns Zoom Out */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Gradient Layer Gelap Untuk Senang Baca Teks */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(15, 23, 42, 0.45) 0%, 
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: center;
    color: #ffffff;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Lencana Tag Atas Tajuk */
.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
}

.hero-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 28px auto;
    font-weight: 400;
    line-height: 1.6;
}

.hero-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Butang Navigasi Panah (Glassmorphism) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: 24px; }
.carousel-btn.next { right: 24px; }

/* Titik Indikator (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.dot.active {
    width: 28px;
    border-radius: 6px;
    background: #3b82f6;
}

/* Responsif Skrin Kecil */
@media (max-width: 768px) {
    .hero-carousel {
        height: 440px;
    }
    .carousel-btn {
        width: 38px;
        height: 38px;
    }
    .carousel-btn.prev { left: 12px; }
    .carousel-btn.next { right: 12px; }
}

/* ==========================================
   AADK FOOTER & FLOATING HELP BUTTON
   ========================================== */
.aadk-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 3rem 0 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

.aadk-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.aadk-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}

/* Brand & Description */
.aadk-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.aadk-shield-icon {
    width: 36px;
    height: 36px;
    stroke: #3b82f6;
}

.aadk-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.aadk-brand-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.aadk-description {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 380px;
}

/* Section Titles & Lists */
.aadk-section-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.aadk-contact-list,
.aadk-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aadk-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.aadk-contact-item svg {
    width: 18px;
    height: 18px;
    stroke: #3b82f6;
    flex-shrink: 0;
}

.aadk-contact-item a,
.aadk-links-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.aadk-contact-item a:hover,
.aadk-links-list a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Divider & Copyright */
.aadk-footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0 1.5rem 0;
}

.aadk-copyright {
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
}

/* Floating Help Button (?) */
.aadk-help-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
    z-index: 999;
    transition: all 0.25s ease;
}

.aadk-help-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px -5px rgba(37, 99, 235, 0.7);
}

/* Responsif Skrin Kecil (Telefon) */
@media (max-width: 768px) {
    .aadk-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================
   HERO CAROUSEL STYLES
   ========================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #0f172a;
}

.slide-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Kandungan Teks Hero */
.hero-content {
    max-width: 800px;
    color: #ffffff;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.8s ease;
}

.slide.active .hero-content {
    transform: translateY(0);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Butang Navigation (Kiri & Kanan) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #2563eb;
    border-color: #3b82f6;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 24px; }
.carousel-btn.next { right: 24px; }

/* Dots Navigasi (Bawah) */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 32px;
    border-radius: 6px;
    background: #2563eb;
}

/* Responsif Skrin Kecil */
@media (max-width: 768px) {
    .hero-carousel { height: 380px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .carousel-btn { width: 38px; height: 38px; }
    .carousel-btn.prev { left: 12px; }
    .carousel-btn.next { right: 12px; }
}

/* ===================================================
   GAYA UTAMA HALAMAN & HEADER
   =================================================== */
.main-content {
    padding: 2.5rem;
    flex: 1;
}

.page-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.25rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.page-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* ===================================================
   GAYA DASHBOARD (STATISTIK)
   =================================================== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.card-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
}

.card-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
}

.card-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.chart-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chart-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.chart-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* ===================================================
   GAYA MODUL PEMBELAJARAN
   =================================================== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.category-badge {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.module-title {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.module-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-video {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background: #1e3a8a;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.btn-video:hover {
    background: #1d4ed8;
}

/* ===================================================
   GAYA AUTH (LOG MASUK & DAFTAR)
   =================================================== */
.auth-body {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.main-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.login-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.login-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

/* Position Relative supaya butang mata duduk di dalam input */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 11px 42px 11px 14px; /* Kanan diberi ruang 42px untuk ikon mata */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Styling Butang Mata */
.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-toggle-pwd:hover {
    color: #1e293b;
}

.btn-submit {
    width: 100%;
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #1d4ed8;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.register-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

/* ===================================================
   PENAMBAHBAIKAN INPUT & BUTANG MATA (OVERRIDE HEADER CSS)
   =================================================== */
.input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.form-input {
    width: 100% !important;
    padding: 11px 45px 11px 14px !important; /* Ruang 45px di kanan untuk butang mata */
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
    height: 42px !important;
}

.btn-toggle-pwd {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    height: auto !important;
    width: auto !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.btn-toggle-pwd:hover {
    color: #0f172a !important;
}

/* ===================================================
   GAYA MODAL POP-UP BERJAYA
   =================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-icon-success {
    width: 60px;
    height: 60px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
}

.modal-box h2 {
    font-size: 1.35rem;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.modal-box p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.btn-modal-login {
    display: inline-block;
    width: 100%;
    background: #1e3a8a;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    box-sizing: border-box;
}

.btn-modal-login:hover {
    background: #1d4ed8;
}

/* Animasi Pop-Up */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===================================================
   GAYA AUTH & POP-UP MODAL (LOGIN / REGISTER)
   =================================================== */
.main-container {
    width: 100%;
    max-width: 440px;
    margin: 2rem auto;
    padding: 1rem;
    box-sizing: border-box;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.login-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.login-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    height: 42px;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-submit {
    width: 100%;
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #1d4ed8;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.register-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

/* MODAL OVERLAY & POP-UP */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 380px;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-icon-success {
    width: 60px;
    height: 60px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
}

.modal-box h2 {
    font-size: 1.35rem;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.modal-box p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.btn-modal-login {
    display: inline-block;
    width: 100%;
    background: #1e3a8a;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: background 0.2s;
}

.btn-modal-login:hover {
    background: #1d4ed8;
}

/* ===================================================
   NAVBAR USER ACTIONS & LOGOUT
   =================================================== */
.navbar .nav-actions .user-welcome {
    color: #ffffff !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    font-size: 0.95rem;
}

.navbar .nav-actions .btn-nav-logout {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: transparent !important;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

/* HOVER KELUAR WARNA MERAH */
.navbar .nav-actions .btn-nav-logout:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ===================================================
   LANDING PAGE (INDEX) STYLES
   =================================================== */

/* Container Util */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.section-subtitle {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Features Section */
.features-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.aadk-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon.icon-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.feature-icon.icon-health {
    background-color: #d1fae5;
    color: #059669;
}

.feature-icon.icon-prevention {
    background-color: #e0e7ff;
    color: #2563eb;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.feature-desc {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Statistics Section */
.stats-section {
    padding-bottom: 4rem;
}

.stats-card-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
}

.stats-header {
    margin-bottom: 28px;
}

.stats-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.stats-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.aadk-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 28px;
}

.stat-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-count {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1e3d8f;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-year {
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
}

.stats-action {
    text-align: right;
}

.btn-primary-dashboard {
    display: inline-block;
    background: #1e3d8f;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary-dashboard:hover {
    background: #173070;
    transform: translateY(-1px);
}

/* Responsif (Tablet & Mobile) */
@media (max-width: 992px) {
    .aadk-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .aadk-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .aadk-features-grid,
    .aadk-stats-grid {
        grid-template-columns: 1fr;
    }
    .stats-action {
        text-align: center;
    }
    .btn-primary-dashboard {
        width: 100%;
    }
}

/* ===================================================
   LEARNING MODULES - FULL WIDTH & 2 COLUMN
   =================================================== */

/* Buka semula ruang untuk halaman Learning sahaja */
body:has(.modules-grid) .main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    box-sizing: border-box;
}

/* Header Learning */
body:has(.modules-grid) .page-header {
    width: 100%;
    margin-bottom: 2rem;
}

/* Susun modul kiri dan kanan */
body:has(.modules-grid) .modules-grid {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* Besarkan box modul */
body:has(.modules-grid) .module-card {
    width: 100%;
    min-height: 430px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;

    padding: 1.5rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

/* Hover */
body:has(.modules-grid) .module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.10);
}

/* Gambar modul */
body:has(.modules-grid) .module-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;

    border-radius: 12px;
    margin-bottom: 1.25rem;
}

/* Tajuk modul */
body:has(.modules-grid) .module-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

/* Description */
body:has(.modules-grid) .module-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Badge */
body:has(.modules-grid) .category-badge {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Button */
body:has(.modules-grid) .btn-video {
    width: 100%;
    padding: 13px 16px;

    background: #1e3a8a;
    color: #ffffff;

    border-radius: 9px;

    font-size: 0.95rem;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

body:has(.modules-grid) .btn-video:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


/* ===================================================
   TABLET
   =================================================== */

@media (max-width: 900px) {

    body:has(.modules-grid) .main-container {
        padding: 2rem 1.5rem;
    }

    body:has(.modules-grid) .modules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

}


/* ===================================================
   MOBILE
   =================================================== */

@media (max-width: 650px) {

    body:has(.modules-grid) .main-container {
        padding: 1.5rem 1rem;
    }

    body:has(.modules-grid) .modules-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    body:has(.modules-grid) .module-card {
        min-height: 400px;
    }

    body:has(.modules-grid) .module-card img {
        height: 190px;
    }

}