﻿/* ==============================
   GLOBAL RESET & VARIABLES
   ============================== */
:root {
    --primary: #0ba205;
    --primary-dark: #089100;
    --primary-light: #d4edda;
    --navy: #0f1b2d;
    --navy-light: #1a3a5c;
    --text: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-midnight: #3a7fe1;
    --border: #e2e8f0;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-light);
    color: var(--text);
    padding-top: 80px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================
   HEADER / NAVBAR
   ============================== */
.site-header {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition);
}

.navbar {
    padding: 0;
    background: transparent;
    width: 100%;
    position: relative;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

    .navbar-brand img {
        height: 50px;
        transition: transform 0.3s;
    }

    .navbar-brand:hover img {
        transform: scale(1.05);
    }

/* ==============================
   MOBILE TOGGLE BUTTONS
   ============================== */
.navbar-toggler {
    border: none;
    padding: 8px 10px;
    font-size: 1.4rem;
    color: var(--text);
    background: transparent;
    line-height: 1;
    transition: all 0.3s ease;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler i {
        font-size: 1.5rem;
    }

    .navbar-toggler:hover {
        color: var(--primary);
    }

.user-toggle i {
    font-size: 1.8rem;
}

/* ==============================
   DESKTOP NAV
   ============================== */
.nav-link {
    position: relative;
    display: block;
    padding: 8px 16px !important;
    font-weight: 500;
    color: var(--text);
    border-radius: 6px;
    transition: all var(--transition);
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        width: 0;
        height: 2.5px;
        background: var(--primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
        border-radius: 2px;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 60%;
    }

    .nav-link:hover {
        background: var(--bg-light);
        color: var(--primary);
    }

.contact-btn {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(11, 162, 5, 0.25);
    transition: all var(--transition);
}

    .contact-btn::after {
        display: none !important;
    }

    .contact-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(11, 162, 5, 0.35);
    }

/* Desktop User Button */
.user-btn {
    padding: 8px 12px !important;
    font-size: 1.3rem;
    color: var(--text);
    transition: color 0.2s;
}

    .user-btn:hover {
        color: var(--primary);
    }

    .user-btn::after {
        display: none !important;
    }

/* ==============================
   DROPDOWN - AUTO HOVER
   ============================== */
.dropdown-hover {
    position: relative;
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.65rem;
    margin-left: 5px;
}

.dropdown-hover:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-hover .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    padding: 10px 0;
    border: 1px solid rgba(0,0,0,0.04);
    z-index: 1000;
    margin-top: 0;
}

.dropdown-hover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 16px;
    background: transparent;
    pointer-events: none;
    z-index: 999;
}

.dropdown-hover:hover .dropdown-menu,
.dropdown-hover .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

.dropdown-hover .dropdown-item {
    padding: 10px 24px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .dropdown-hover .dropdown-item:hover {
        background: var(--bg-light);
        color: var(--primary);
        padding-left: 30px;
        border-left-color: var(--primary);
    }

/* ==============================
   MOBILE OFFCANVAS (DUAL)
   ============================== */
.offcanvas-start {
    max-width: 320px;
}

.offcanvas-end {
    max-width: 360px;
}

.offcanvas {
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}

    .offcanvas-header img {
        height: 40px;
    }

.offcanvas-body {
    padding: 0;
}

.offcanvas .btn-close {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

    .offcanvas .btn-close:hover {
        opacity: 1;
    }

/* Mobile Nav Items */
.mobile-nav-item {
    border-bottom: 1px solid var(--border);
}

    .mobile-nav-item:last-child {
        border-bottom: none;
    }

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .mobile-nav-link:hover {
        background: var(--bg-light);
        color: var(--primary);
    }

    .mobile-nav-link i {
        transition: transform 0.3s ease;
    }

    .mobile-nav-link[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    .mobile-nav-link .fa-home,
    .mobile-nav-link .fa-briefcase,
    .mobile-nav-link .fa-folder-open,
    .mobile-nav-link .fa-info-circle,
    .mobile-nav-link .fa-envelope {
        color: var(--primary);
        width: 20px;
    }

/* Mobile Submenu */
.mobile-submenu {
    background: var(--bg-light);
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

    .mobile-submenu.show {
        max-height: 400px;
    }

    .mobile-submenu .dropdown-item {
        padding: 12px 20px 12px 52px;
        display: block;
        color: var(--text-muted);
        transition: all 0.2s ease;
        text-decoration: none;
    }

        .mobile-submenu .dropdown-item:hover {
            background: var(--border);
            color: var(--primary);
        }

        .mobile-submenu .dropdown-item i {
            color: var(--text-muted);
            width: 18px;
        }

/* ==============================
   USER OFFCANVAS (RIGHT)
   ============================== */
.user-card {
    text-align: center;
    padding: 20px 16px;
}

.user-avatar {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.user-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.user-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .user-actions .btn-primary {
        background: var(--primary);
        border: none;
        padding: 12px;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .user-actions .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(11, 162, 5, 0.3);
        }

    .user-actions .btn-outline-primary {
        border: 2px solid var(--primary);
        color: var(--primary);
        padding: 12px;
        font-weight: 600;
        border-radius: 8px;
        background: transparent;
        transition: all 0.3s ease;
    }

        .user-actions .btn-outline-primary:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

.user-features h6 {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    text-align: left;
}

.user-links {
    list-style: none;
    padding: 0;
    text-align: left;
}

    .user-links li {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

        .user-links li:last-child {
            border-bottom: none;
        }

    .user-links a {
        color: var(--text);
        transition: all 0.2s ease;
        display: block;
        padding: 4px 0;
    }

        .user-links a:hover {
            color: var(--primary);
            padding-left: 8px;
        }

        .user-links a i {
            color: var(--text-muted);
            width: 22px;
        }

        .user-links a:hover i {
            color: var(--primary);
        }

/* ==============================
   MAIN CONTENT
   ============================== */
.main-content {
    min-height: 70vh;
    padding: 20px 0 40px;
}

/* ==============================
   AD CONTAINERS
   ============================== */
.ad-container {
    margin: 20px auto;
    text-align: center;
    overflow: hidden;
    max-width: 100%;
}

    .ad-container ins {
        display: block;
        margin: 0 auto;
    }

.ad-leaderboard {
    max-width: 970px;
    min-height: 90px;
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius);
    padding: 8px 0;
}

.ad-footer {
    max-width: 970px;
    min-height: 90px;
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius);
    padding: 8px 0;
    margin-top: 40px;
}

.ad-in-article {
    max-width: 100%;
    min-height: 280px;
    background: #fafafa;
    border-radius: var(--radius);
    padding: 16px 0;
    margin: 30px 0;
    border: 1px solid var(--border);
}

.ad-sidebar {
    min-height: 250px;
    background: #fafafa;
    border-radius: var(--radius);
    padding: 16px 0;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

/* ==============================
   HERO SECTION
   ============================== */
.hero-section {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

    .hero-title .highlight {
        color: var(--primary-light);
        background: rgba(11,162,5,0.2);
        padding: 0 8px;
        border-radius: 4px;
    }

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    transition: all 0.3s ease;
}

    .btn-outline:hover {
        background: white;
        color: var(--navy);
        transform: translateY(-2px);
    }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 0.8;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ==============================
   SECTIONS
   ============================== */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

    .section-header h2 {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--text);
    }

    .section-header p {
        font-size: 1.1rem;
        color: var(--text-muted);
    }

/* ==============================
   ARTICLE CARDS
   ============================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

    .article-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

    .article-card.featured {
        border-left: 4px solid var(--primary);
        position: relative;
    }

.article-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f59e0b;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

    .article-meta .category {
        background: var(--bg-light);
        padding: 0 10px;
        border-radius: 12px;
        font-weight: 500;
        color: var(--text);
    }

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

    .article-card h3 a {
        color: var(--text);
        transition: color 0.2s;
    }

        .article-card h3 a:hover {
            color: var(--primary);
        }

.article-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-footer {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

    .article-footer span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card.list-card {
    padding: 20px;
}

/* ==============================
   ARTICLE LAYOUT (SIDEBAR)
   ============================== */
.article-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.article-main {
    min-width: 0;
}

.article-sidebar {
    min-width: 0;
}

/* ==============================
   SIDEBAR WIDGETS
   ============================== */
.sidebar-widget {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

    .sidebar-widget h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--border);
    }

.category-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

    .category-list li:last-child {
        border-bottom: none;
    }

.category-list a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--text);
    transition: color 0.2s;
}

    .category-list a:hover {
        color: var(--primary);
    }

.category-list .badge {
    background: var(--bg-midnight);
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

    .newsletter-form input {
        flex: 1;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        font-size: 0.95rem;
        transition: border-color 0.2s;
    }

        .newsletter-form input:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(11, 162, 5, 0.1);
        }

    .newsletter-form .btn-sm {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

/* ==============================
   STATS SECTION
   ============================== */
.stats-section {
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ==============================
   CTA SECTION
   ============================== */
.cta-section {
    background: var(--bg-light);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(11, 162, 5, 0.25);
}

    .cta-box h2 {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .cta-box p {
        font-size: 1.2rem;
        opacity: 0.9;
        margin-bottom: 24px;
    }

    .cta-box .btn-light {
        background: white;
        color: var(--primary);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
    }

        .cta-box .btn-light:hover {
            background: var(--bg-light);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }

/* ==============================
   FOOTER
   ============================== */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h5 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

    .footer-col h5::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
    }

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

    .social-icons a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.1rem;
        transition: all var(--transition);
    }

        .social-icons a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: all 0.2s ease;
    display: inline-block;
}

    .footer-links a:hover {
        color: white;
        padding-left: 6px;
    }

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

    .contact-info i {
        color: var(--primary);
        margin-top: 4px;
        width: 18px;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* ==============================
   WHATSAPP FLOAT
   ============================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        background: #128c7e;
    }

/* ==============================
   BACK TO TOP
   ============================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(11, 162, 5, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
    }

/* ==============================
   RESPONSIVE BREAKPOINTS
   ============================== */
@media (max-width: 992px) {
    /* Center brand on mobile */
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

        .navbar-brand img {
            height: 40px;
        }

    /* Hide desktop nav on mobile */
    .navbar .collapse {
        display: none !important;
    }

    /* Offcanvas widths */
    .offcanvas-start {
        max-width: 300px;
    }

    .offcanvas-end {
        max-width: 340px;
    }

    .user-avatar {
        font-size: 4rem;
    }

    /* Disable hover dropdown on mobile */
    .dropdown-hover .dropdown-menu {
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
        background: transparent !important;
        pointer-events: auto !important;
        transition: none !important;
    }

        .dropdown-hover:hover .dropdown-menu,
        .dropdown-hover .dropdown-menu:hover {
            display: none !important;
        }

        .dropdown-hover .dropdown-menu.show {
            display: block !important;
        }

    .nav-link::after {
        display: none;
    }

    .dropdown-toggle i {
        font-size: 0.8rem;
    }

    /* Layout adjustments */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-placeholder {
        max-width: 300px;
        margin: 0 auto;
    }

    .article-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .site-header {
        height: 70px;
    }

    .navbar-brand img {
        height: 36px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 30px 20px;
    }

        .cta-box h2 {
            font-size: 1.8rem;
        }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col h5::after {
        left: 0;
        transform: none;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .offcanvas-start {
        max-width: 280px;
    }

    .offcanvas-end {
        max-width: 300px;
    }

    /* Ad responsiveness */
    .ad-leaderboard {
        min-height: 60px;
    }

    .ad-in-article {
        min-height: 200px;
    }

    .ad-sidebar {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    .navbar-brand img {
        height: 32px;
    }

    .offcanvas-start {
        max-width: 260px;
    }

    .offcanvas-end {
        max-width: 280px;
    }

    .navbar-toggler i {
        font-size: 1.2rem;
    }

    .user-toggle i {
        font-size: 1.5rem;
    }
}

/* ==============================
   UTILITY CLASSES
   ============================== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}


/* ==============================
   SEARCH BOX - DESKTOP
   ============================== */
.search-item {
    position: relative;
}

.search-toggle {
    padding: 8px 12px !important;
    font-size: 1.1rem;
    color: var(--text);
    transition: all 0.3s ease;
}

    .search-toggle:hover {
        color: var(--primary);
    }

    .search-toggle.active {
        color: var(--primary);
    }

.search-input-desktop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    padding: 10px 16px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font);
}

    .search-input-desktop:focus {
        box-shadow: 0 8px 32px rgba(11, 162, 5, 0.15);
    }

    .search-input-desktop::placeholder {
        color: var(--text-muted);
    }

/* ==============================
   SEARCH BOX - MOBILE
   ============================== */
.search-mobile-item {
    padding: 12px 16px !important;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.mobile-search-form {
    width: 100%;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
}

    .search-input-wrap:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(11, 162, 5, 0.1);
    }

.search-icon {
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mobile-search-input {
    flex: 1;
    padding: 10px 0;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: var(--font);
    background: transparent;
    color: var(--text);
}

    .mobile-search-input::placeholder {
        color: var(--text-muted);
    }

.mobile-search-btn {
    padding: 10px 14px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .mobile-search-btn:hover {
        background: var(--primary-dark);
    }

/* ==============================
   RESPONSIVE - SEARCH
   ============================== */
@media (max-width: 992px) {
    .search-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .search-input-desktop {
        width: 200px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .search-input-desktop {
        width: 180px;
        right: -30px;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .mobile-search-input {
        font-size: 0.85rem;
        padding: 8px 0;
    }

    .mobile-search-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Fix user dropdown overflow */
.user-dropdown .dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

/* ==============================
   DESKTOP SEARCH - DROPDOWN STYLE
   ============================== */

.search-item {
    position: relative;
}

.search-toggle {
    padding: 8px 12px !important;
    font-size: 1.1rem;
    color: var(--text);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .search-toggle:hover {
        color: var(--primary);
    }

    .search-toggle.active {
        color: var(--primary);
    }

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    padding: 16px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

    .search-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .search-dropdown .search-input-wrap {
        display: flex;
        align-items: center;
        background: var(--bg-light);
        border-radius: 8px;
        border: 2px solid var(--border);
        transition: all 0.3s ease;
        overflow: hidden;
    }

        .search-dropdown .search-input-wrap:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(11, 162, 5, 0.1);
        }

    .search-dropdown .search-icon-small {
        padding: 0 12px;
        color: var(--text-muted);
    }

    .search-dropdown .search-input {
        flex: 1;
        padding: 10px 0;
        border: none;
        outline: none;
        font-size: 0.95rem;
        font-family: var(--font);
        background: transparent;
        color: var(--text);
    }

        .search-dropdown .search-input::placeholder {
            color: var(--text-muted);
        }

    .search-dropdown .search-submit-btn {
        padding: 10px 16px;
        background: var(--primary);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .search-dropdown .search-submit-btn:hover {
            background: var(--primary-dark);
        }

@media (max-width: 1200px) {
    .search-dropdown {
        width: 280px;
        right: -10px;
    }
}

@media (max-width: 992px) {
    .search-item {
        display: none !important;
    }
}


/* ==============================
   ARTICLE DETAIL PAGE
   ============================== */

.article-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.article-detail-main {
    min-width: 0;
}

/* Article Header */
.article-header {
    margin-bottom: 30px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-bottom: 16px;
}

    .article-breadcrumb a {
        color: var(--primary);
        transition: color 0.2s;
    }

        .article-breadcrumb a:hover {
            color: var(--primary-dark);
        }

    .article-breadcrumb .separator {
        color: var(--text-muted);
        font-size: 0.6rem;
    }

    .article-breadcrumb .current {
        color: var(--text);
        font-weight: 500;
    }

.article-category-tag {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.category-label {
    background: var(--primary);
    color: white;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.featured-label {
    background: #f59e0b;
    color: white;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.article-meta-top {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .meta-item i {
        color: var(--primary);
    }

/* Featured Image */
.article-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}

    .article-featured-image img {
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: cover;
    }

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
}

    .article-body h2 {
        font-size: 1.8rem;
        margin: 30px 0 16px;
    }

    .article-body h3 {
        font-size: 1.4rem;
        margin: 24px 0 12px;
    }

    .article-body h4 {
        font-size: 1.2rem;
        margin: 20px 0 10px;
    }

    .article-body p {
        margin-bottom: 16px;
    }

    .article-body img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 16px 0;
    }

    .article-body ul, .article-body ol {
        padding-left: 24px;
        margin: 12px 0;
    }

    .article-body li {
        margin: 4px 0;
    }

    .article-body blockquote {
        border-left: 4px solid var(--primary);
        padding: 16px 24px;
        margin: 20px 0;
        background: var(--bg-light);
        border-radius: 0 8px 8px 0;
        color: var(--text-muted);
        font-style: italic;
    }

    .article-body table {
        border-collapse: collapse;
        width: 100%;
        margin: 20px 0;
        border: 2px solid var(--border);
    }

        .article-body table th,
        .article-body table td {
            border: 2px solid var(--border);
            padding: 10px 14px;
            text-align: left;
        }

        .article-body table th {
            background: var(--bg-light);
            font-weight: 600;
        }

        .article-body table tr:nth-child(even) td {
            background: var(--bg-light);
        }

    .article-body code {
        background: var(--bg-light);
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.9em;
        color: #dc2626;
    }

/* Article Footer */
.article-footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--text);
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .share-btn:hover {
        transform: translateY(-3px);
        color: white;
    }

    .share-btn.facebook {
        background: #3b5998;
    }

    .share-btn.twitter {
        background: #1da1f2;
    }

    .share-btn.linkedin {
        background: #0077b5;
    }

    .share-btn.whatsapp {
        background: #25d366;
    }

    .share-btn.email {
        background: #6c757d;
    }

.article-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: var(--text);
}

.tag {
    background: var(--bg-light);
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==============================
   RELATED ARTICLES
   ============================== */
.related-articles {
    margin-top: 40px;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

    .related-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

.related-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-content {
    padding: 16px;
}

.related-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-content h4 {
    font-size: 1rem;
    margin: 6px 0 8px;
}

    .related-content h4 a {
        color: var(--text);
        transition: color 0.2s;
    }

        .related-content h4 a:hover {
            color: var(--primary);
        }

.related-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==============================
   COMMENTS SECTION
   ============================== */
.comments-section {
    margin-top: 40px;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comment-avatar .avatar-letter {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.comment-avatar.small .avatar-letter {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    color: var(--text);
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.reply-badge {
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0 10px;
    border-radius: 12px;
}

.comment-text {
    color: var(--text);
    line-height: 1.6;
}

.comment-replies {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--border);
}

.reply-item {
    background: var(--bg-light);
    border: none;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ==============================
   COMMENT FORM
   ============================== */
.comment-form-container {
    margin-top: 30px;
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

    .comment-form-container h4 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

.comment-form-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.comment-form .form-group {
    margin-bottom: 16px;
}

    .comment-form .form-group label {
        display: block;
        font-weight: 500;
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

.comment-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font);
    transition: all 0.2s;
}

    .comment-form .form-control:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(11, 162, 5, 0.1);
    }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* ==============================
   RESPONSIVE - ARTICLE PAGE
   ============================== */
@media (max-width: 992px) {
    .article-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-title {
        font-size: 2rem;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-detail-container {
        padding: 12px;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-meta-top {
        gap: 12px;
        font-size: 0.8rem;
    }

    .article-body {
        font-size: 1rem;
    }

        .article-body h2 {
            font-size: 1.4rem;
        }

        .article-body h3 {
            font-size: 1.2rem;
        }

        .article-body h4 {
            font-size: 1rem;
        }

    .article-featured-image img {
        max-height: 300px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .comment-item {
        flex-direction: column;
        gap: 12px;
    }

    .comment-replies {
        padding-left: 8px;
    }

    .comment-form-container {
        padding: 16px;
    }

    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.3rem;
    }

    .article-meta-top {
        font-size: 0.75rem;
        gap: 8px;
    }

    .article-body {
        font-size: 0.95rem;
    }

        .article-body table {
            font-size: 0.85rem;
            display: block;
            overflow-x: auto;
            white-space: nowrap;
        }

            .article-body table th,
            .article-body table td {
                padding: 6px 10px;
            }

    .article-featured-image img {
        max-height: 200px;
    }

    .comment-item {
        padding: 12px;
    }
}

/* ==============================
   AUTHENTICATION STYLES
   ============================== */

.auth-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(11, 162, 5, 0.25);
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Auth Form */
.auth-form .form-group {
    margin-bottom: 18px;
}

    .auth-form .form-group label {
        display: block;
        font-weight: 500;
        font-size: 0.85rem;
        color: var(--text);
        margin-bottom: 4px;
    }

.auth-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font);
    transition: all 0.2s;
    background: var(--bg-light);
}

    .auth-form .form-control:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(11, 162, 5, 0.1);
        background: white;
    }

    .auth-form .form-control.is-invalid {
        border-color: #dc2626;
    }

.field-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Password Toggle */
.password-input-wrap {
    position: relative;
}

    .password-input-wrap .form-control {
        padding-right: 48px;
    }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    transition: color 0.2s;
}

    .toggle-password:hover {
        color: var(--primary);
    }

.password-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

    .remember-me input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary);
        cursor: pointer;
    }

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* Terms Group */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

    .terms-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary);
        cursor: pointer;
        margin-top: 3px;
        flex-shrink: 0;
    }

    .terms-group label {
        font-size: 0.9rem;
        color: var(--text);
        cursor: pointer;
        font-weight: 400 !important;
    }

.terms-link {
    color: var(--primary);
    text-decoration: none;
}

    .terms-link:hover {
        text-decoration: underline;
    }

/* Buttons */
.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(11, 162, 5, 0.3);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

    .auth-divider::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: var(--border);
    }

    .auth-divider span {
        background: white;
        padding: 0 16px;
        color: var(--text-muted);
        font-size: 0.85rem;
        position: relative;
        z-index: 1;
    }

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
}

    .auth-footer p {
        color: var(--text-muted);
        font-size: 0.95rem;
    }

    .auth-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

/* Social Login */
.auth-social {
    text-align: center;
    margin-top: 20px;
}

    .auth-social p {
        color: var(--text-muted);
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

    .social-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .social-btn.google:hover {
        background: #ea4335;
        color: white;
        border-color: #ea4335;
    }

    .social-btn.facebook:hover {
        background: #1877f2;
        color: white;
        border-color: #1877f2;
    }

    .social-btn.github:hover {
        background: #181717;
        color: white;
        border-color: #181717;
    }

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* ==============================
   RESPONSIVE AUTH
   ============================== */
@media (max-width: 768px) {
    .auth-section {
        padding: 40px 0;
    }

    .auth-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 16px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-buttons {
        gap: 8px;
    }

    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* ==============================
   USER DROPDOWN EXTENSIONS
   ============================== */

.user-greeting {
    padding: 8px 20px !important;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-light);
    cursor: default;
}

    .user-greeting i {
        color: var(--primary);
    }

.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 8px 20px;
    color: #dc2626;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
}

    .logout-btn:hover {
        background: #fef2f2;
        color: #dc2626;
    }

    .logout-btn i {
        color: #dc2626;
    }

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Offcanvas user actions */
.user-actions .btn-danger {
    background: #dc2626;
    border: none;
    color: white;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .user-actions .btn-danger:hover {
        background: #b91c1c;
        transform: translateY(-2px);
    }



/* ==============================
   NEWS HUB POPUP
   ============================== */

/* Bell Button */
.bell-btn {
    position: relative;
    padding: 8px 12px !important;
    font-size: 1.3rem;
    color: var(--text);
    transition: color 0.2s;
}

    .bell-btn:hover {
        color: var(--primary);
    }

.bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc2626;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1.4;
    min-width: 18px;
    text-align: center;
}

/* Overlay */
.news-hub-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .news-hub-overlay.active {
        display: block;
        opacity: 1;
    }

/* Panel */
.news-hub-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

    .news-hub-panel.open {
        right: 0;
    }

/* Header */
.news-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: white;
    flex-shrink: 0;
}

.news-hub-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

    .news-hub-title i {
        color: var(--primary);
        font-size: 1.3rem;
    }

    .news-hub-title span {
        font-weight: 700;
        font-size: 1.2rem;
        color: var(--text);
    }

    .news-hub-title small {
        font-size: 0.7rem;
        color: var(--text-muted);
        font-weight: 400;
        margin-left: 4px;
    }

.news-hub-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s, transform 0.2s;
}

    .news-hub-close:hover {
        color: var(--text);
        transform: rotate(90deg);
    }

/* Body (scrollable) */
.news-hub-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    background: var(--bg-light);
}

.news-item {
    background: white;
    margin: 6px 16px;
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

    .news-item:hover {
        transform: translateX(4px);
    }

.news-source {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.news-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* CTA item */
.news-item.news-cta {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    text-align: center;
}

.news-cta .news-title {
    font-weight: 400;
    color: var(--text-muted);
}

.news-cta-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

    .news-cta-link:hover {
        text-decoration: underline;
    }

/* Mobile specific */
@media (max-width: 768px) {
    .news-hub-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .news-hub-header {
        padding: 16px 20px;
    }

    .news-item {
        margin: 4px 12px;
        padding: 12px 16px;
    }
}
/* ==============================
   FILTER BAR
   ============================== */
.filter-bar {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.filter-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

    .filter-group label {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        margin-bottom: 4px;
    }

.filter-select {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font);
    background: white;
    transition: border-color 0.2s;
}

    .filter-select:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(11, 162, 5, 0.1);
    }

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

    .filter-actions .btn-primary {
        background: var(--primary);
        color: white;
        padding: 8px 24px;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
    }

        .filter-actions .btn-primary:hover {
            background: var(--primary-dark);
        }

    .filter-actions .btn-secondary {
        background: var(--bg-light);
        color: var(--text);
        padding: 8px 24px;
        border: 1px solid var(--border);
        border-radius: 6px;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
    }

        .filter-actions .btn-secondary:hover {
            background: var(--border);
        }

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .filter-row {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

        .filter-actions .btn-primary,
        .filter-actions .btn-secondary {
            width: 100%;
            text-align: center;
        }
}