/* ==========================================================================
   1. CSS VARIABLES & FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand & Theme Colors */
    --brand-primary: #4F46E5;
    --brand-secondary: #6366F1;
    --brand-tertiary: #7C3AED;
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-hero: linear-gradient(135deg, #6366F1 0%, #7C3AED 50%, #4F46E5 100%);

    /* Text & Borders */
    --color-heading: #111827;
    --color-body: #6B7280;
    --color-border: #E5E7EB;

    /* Backgrounds */
    --bg-section: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-dark-footer: #111827;

    /* Spacing & Radius */
    --container-width: 1200px;
    --section-padding: 100px 0;
    --card-radius: 18px;
    --btn-radius: 12px;
    --grid-gap: 30px;
    --sidebar-width: 350px;

    /* Shadows & Transitions */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(79, 70, 229, 0.15);
    --transition-ease: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --hover-lift: translateY(-6px);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --hero-size: 54px;
    --section-title: 40px;
    --card-title: 24px;
    --body-size: 16px;
    --line-height: 1.8;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--body-size);
    line-height: var(--line-height);
    color: var(--color-body);
    background-color: var(--bg-card);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-ease);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    background-color: var(--bg-section);
    position: relative;
}

.section--alt {
    background-color: #FFFFFF;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand-primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.section-title {
    font-size: var(--section-title);
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-body);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--btn-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-ease);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-outline {
    background: transparent;
    color: var(--color-heading);
    border-color: var(--color-border);
}
.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes pulseGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

/* ==========================================================================
   4. HEADER & NAVIGATION (Sticky Glassmorphism)
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.4);
}

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

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a {
    color: var(--color-body);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-ease);
}
.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a:hover {
    color: var(--brand-primary);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    color: var(--color-heading);
    cursor: pointer;
}

/* ==========================================================================
   5. HERO BANNER
   ========================================================================== */
.hero {
    padding: 50px 0;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: var(--hero-size);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    -webkit-text-fill-color: initial;
    color: var(--brand-primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-body);
    max-width: 500px;
    margin-bottom: 35px;
}

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

.hero-search {
    position: relative;
    max-width: 420px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-body);
    opacity: 0.7;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--color-border);
    background: #fff;
    font-family: var(--font-primary);
    font-size: 16px;
    outline: none;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-ease);
}
.search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.search-input:disabled {
    background: #F9FAFB;
    cursor: not-allowed;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img {
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-hover);
    animation: float 6s ease-in-out infinite;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   6. LAYOUT: CONTENT + SIDEBAR
   ========================================================================== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 50px;

    margin: 0 auto;
    padding: 40px 20px;
    align-items: start;
}

/* ==========================================================================
   7. FEATURED ARTICLES
   ========================================================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-ease);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    background-image: linear-gradient(#fff, #fff), var(--gradient-primary);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

.card-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 220px;
}

.card-media .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-media .card-img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(79, 70, 229, 0.9);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card-badge--green {
    background: rgba(22, 163, 74, 0.9);
}
.card-badge--orange {
    background: rgba(234, 88, 12, 0.9);
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-date {
    display: block;
    font-size: 13px;
    color: var(--color-body);
    margin-bottom: 8px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-title a {
    color: var(--color-heading);
}
.card-title a:hover {
    color: var(--brand-primary);
}

.card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-body);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-body);
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

.card-category-tag {
    background: var(--bg-section);
    padding: 2px 12px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 12px;
    color: var(--color-heading);
}

.card-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   8. CATEGORIES GRID
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition-ease);
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-ease);
}

.category-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-heading);
}

.category-count {
    font-size: 14px;
    color: var(--color-body);
}

/* ==========================================================================
   9. LATEST ARTICLES
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
}

.articles-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   10. POPULAR ARTICLES (Timeline Feel)
   ========================================================================== */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: #fff;
    padding: 20px 25px;
    border-radius: var(--card-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition-ease);
}

.popular-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(79, 70, 229, 0.2);
}

.popular-rank {
    font-size: 40px;
    font-weight: 800;
    color: var(--brand-primary);
    opacity: 0.2;
    min-width: 60px;
    line-height: 1;
    font-feature-settings: "tnum";
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}
.popular-title a:hover {
    color: var(--brand-primary);
}

.popular-excerpt {
    font-size: 14px;
    color: var(--color-body);
    margin-bottom: 12px;
}

/* ==========================================================================
   11. TRENDING CARDS
   ========================================================================== */
.card--trending {
    border-top: 4px solid #FEF3C7;
}

.card--trending .trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.card--trending:hover {
    border-top-color: var(--brand-primary);
}

/* ==========================================================================
   12. NEWSLETTER CTA (Premium Gradient)
   ========================================================================== */
.newsletter-card {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 70px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.25);
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    border-radius: 50%;
    animation: float 8s infinite alternate;
}

.newsletter-card > * {
    position: relative;
    z-index: 2;
}

.newsletter-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
    color: #fff;
}

.newsletter-title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 18px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 20px;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    border-radius: var(--btn-radius);
    border: none;
    font-family: var(--font-primary);
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    transition: var(--transition-ease);
}
.newsletter-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-btn {
    background: #fff;
    color: var(--brand-primary);
    font-weight: 700;
    padding: 16px 32px;
}
.newsletter-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.newsletter-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ==========================================================================
   13. SIDEBAR (Sticky & Modern)
   ========================================================================== */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.sidebar-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}
.sidebar-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Sidebar Categories */
.sidebar-categories li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-section);
}
.sidebar-categories li:last-child {
    border-bottom: none;
}
.sidebar-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 15px;
    color: var(--color-body);
}
.sidebar-categories a:hover {
    color: var(--brand-primary);
    transform: translateX(5px);
}
.cat-icon { margin-right: 10px; }
.cat-count {
    background: var(--bg-section);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

/* Sidebar Popular Articles */
.popular-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.popular-sidebar-item {
    display: flex;
    gap: 15px;
    align-items: center;
}
.popular-sidebar-item:hover .pop-title {
    color: var(--brand-primary);
}
.pop-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.pop-info {
    flex: 1;
}
.pop-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 4px;
    transition: var(--transition-ease);
}
.pop-meta {
    font-size: 12px;
    color: var(--color-body);
}

/* Sidebar Latest & Archives */
.latest-sidebar-list li, .archive-sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-section);
}
.latest-sidebar-list li:last-child, .archive-sidebar-list li:last-child {
    border-bottom: none;
}
.latest-sidebar-list a, .archive-sidebar-list a {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--color-body);
}
.latest-sidebar-list a:hover, .archive-sidebar-list a:hover {
    color: var(--brand-primary);
}
.lat-date, .arc-count {
    font-size: 13px;
    color: var(--color-body);
}

/* Sidebar Tags Cloud */
.tags-sidebar-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-sidebar-pill {
    background: var(--bg-section);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    transition: var(--transition-ease);
    color: var(--color-body);
}
.tag-sidebar-pill:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

/* Enhanced Footer 2025 */
footer {
    background: var(--bg-dark-footer);
    color: rgb(0, 0, 0);
    padding: 4rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    color: #ffffff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.footer-column a:hover {
    color: rgb(255, 255, 255);
    padding-left: 8px;
}

.footer-column a i {
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Enhanced Social Icons */
.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    font-size: 1.5rem;
    color: #adb5bd;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.social-icon.facebook:hover { 
    color: #3b5998; 
    box-shadow: 0 10px 20px rgba(59, 89, 152, 0.3);
}
.social-icon.instagram:hover { 
    color: #e4405f; 
    box-shadow: 0 10px 20px rgba(228, 64, 95, 0.3);
}
.social-icon.linkedin:hover { 
    color: #0e76a8; 
    box-shadow: 0 10px 20px rgba(14, 118, 168, 0.3);
}
.social-icon.twitter:hover { 
    color: #1da1f2; 
    box-shadow: 0 10px 20px rgba(29, 161, 242, 0.3);
}
.social-icon.youtube:hover { 
    color: #ff0000; 
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}


/* ==========================================================================
   15. RESPONSIVE DESIGN
   ========================================================================== */

/* Laptops & Large Tablets (1024px - 1280px) */
@media (max-width: 1280px) {
    .container { max-width: 100%; padding: 0 30px; }
    .content-with-sidebar { padding: 40px 30px; }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --hero-size: 42px;
        --section-title: 32px;
        --sidebar-width: 280px;
    }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-search { max-width: 100%; }
    .hero-illustration { margin-top: 20px; }
    .content-with-sidebar { grid-template-columns: 1fr; gap: 60px; }
    .blog-sidebar { position: static; }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .articles-grid--three { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-links-group { grid-template-columns: 1fr 1fr; }
    .nav-menu { display: none; } /* Simplistic mobile menu hide */
    .mobile-menu { display: block; }
    .auth-buttons .btn-outline { display: none; }
}

/* Mobile (Less than 768px) */
@media (max-width: 768px) {
    :root {
        --hero-size: 32px;
        --section-title: 26px;
        --card-title: 18px;
        --section-padding: 60px 0;
        --grid-gap: 20px;
    }
    .container { padding: 0 15px; }
    .hero { padding: 60px 0; }
    .hero-title { font-size: var(--hero-size); }
    
    .featured-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .articles-grid { grid-template-columns: 1fr; }
    .articles-grid--three { grid-template-columns: 1fr; }
    
    .popular-item { flex-direction: column; align-items: flex-start; padding: 20px; }
    .popular-rank { min-width: auto; margin-bottom: 10px; }
    
    .newsletter-card { padding: 40px 20px; border-radius: 18px; }
    .newsletter-title { font-size: 28px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-input, .newsletter-btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-links-group { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    
    .content-with-sidebar { padding: 20px 15px; gap: 40px; }
    .blog-sidebar { margin-top: 20px; }
    
    .sidebar-card { padding: 20px; }
    
    .nav-menu { display: none; }
    .mobile-menu { display: block; }
    .auth-buttons .btn-outline { display: none; }
}

/* ==========================================================================
   16. SCROLLBAR, SELECTION & FOCUS STATES
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-section);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid var(--bg-section);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-tertiary);
}

::selection {
    background: var(--brand-primary);
    color: #fff;
}
::-moz-selection {
    background: var(--brand-primary);
    color: #fff;
}

*:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 4px;
}