/* ============================================================
   InfoCerdas.id — Complete Stylesheet
   Covers: index, articles (1-15), about, privacy-policy,
           disclaimer, terms, contact, category pages
   Version: 2.0 | Updated: Juli 2025
   ============================================================ */

/* ============================================================
   TABLE OF CONTENTS
   01. CSS Variables & Root
   02. Reset & Base Styles
   03. Typography
   04. Layout & Container
   05. Top Bar
   06. Header & Logo
   07. Advertisement Placeholders
   08. Navigation & Navbar
   09. Dropdown Menu
   10. Mobile Navigation
   11. Search Overlay
   12. Breaking News Ticker
   13. Breadcrumb
   14. Featured Section (Homepage)
   15. Category Badges
   16. Content Grid Layout
   17. Article Cards (Homepage)
   18. Load More Button
   19. Sidebar & Widgets
   20. Article Full Page
   21. Table of Contents (TOC)
   22. Article Body Content
   23. Article Tags & Share
   24. Author Box
   25. Related Articles
   26. Static Pages (About, Legal)
   27. Values & Team Grid (About)
   28. Legal Pages (Privacy, Disclaimer, Terms)
   29. Contact Page
   30. Category Page
   31. Footer
   32. Back to Top Button
   33. Cookie Consent
   34. Utility Classes
   35. Animations & Keyframes
   36. Responsive — Tablet (max 1024px)
   37. Responsive — Mobile (max 768px)
   38. Responsive — Small Mobile (max 480px)
   ============================================================ */


/* ============================================================
   01. CSS VARIABLES & ROOT
   ============================================================ */
:root {
    /* Primary Colors */
    --primary:          #667eea;
    --primary-dark:     #5a67d8;
    --primary-light:    #a3bffa;
    --primary-xlight:   #ebf4ff;
    --secondary:        #764ba2;
    --accent:           #f093fb;

    /* Semantic Colors */
    --color-tech:       #3182ce;
    --color-health:     #38a169;
    --color-business:   #dd6b20;
    --color-lifestyle:  #319795;
    --color-education:  #764ba2;
    --color-travel:     #d69e2e;
    --color-career:     #e53e3e;

    /* Neutral Colors */
    --dark:             #1a202c;
    --dark-light:       #2d3748;
    --gray-900:         #1a202c;
    --gray-800:         #2d3748;
    --gray-700:         #4a5568;
    --gray-600:         #718096;
    --gray-500:         #a0aec0;
    --gray-400:         #cbd5e0;
    --gray-300:         #e2e8f0;
    --gray-200:         #edf2f7;
    --gray-100:         #f7fafc;
    --white:            #ffffff;

    /* Status Colors */
    --red:              #e53e3e;
    --red-light:        #fff5f5;
    --green:            #38a169;
    --green-light:      #f0fff4;
    --blue:             #3182ce;
    --blue-light:       #ebf8ff;
    --yellow:           #d69e2e;
    --yellow-light:     #fffbeb;
    --orange:           #dd6b20;
    --teal:             #319795;

    /* Gradients */
    --gradient:         linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm:    linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cool:    linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark:    linear-gradient(135deg, #1a202c 0%, #2d3748 100%);

    /* Shadows */
    --shadow-xs:        0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:        0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow:           0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md:        0 6px 15px rgba(0,0,0,0.10), 0 3px 6px rgba(0,0,0,0.08);
    --shadow-lg:        0 10px 25px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.08);
    --shadow-xl:        0 20px 40px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.10);
    --shadow-inner:     inset 0 2px 4px rgba(0,0,0,0.06);
    --shadow-primary:   0 4px 15px rgba(102,126,234,0.35);

    /* Border Radius */
    --radius-xs:        4px;
    --radius-sm:        6px;
    --radius:           10px;
    --radius-md:        12px;
    --radius-lg:        16px;
    --radius-xl:        24px;
    --radius-full:      9999px;

    /* Transitions */
    --transition-fast:  all 0.15s ease;
    --transition:       all 0.30s ease;
    --transition-slow:  all 0.50s ease;

    /* Typography */
    --font-primary:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif:       'Merriweather', Georgia, 'Times New Roman', serif;
    --font-mono:        'Fira Code', 'Courier New', monospace;

    /* Font Sizes */
    --text-xs:          0.75rem;
    --text-sm:          0.875rem;
    --text-base:        1rem;
    --text-lg:          1.125rem;
    --text-xl:          1.25rem;
    --text-2xl:         1.5rem;
    --text-3xl:         1.875rem;
    --text-4xl:         2.25rem;

    /* Spacing */
    --space-1:          0.25rem;
    --space-2:          0.5rem;
    --space-3:          0.75rem;
    --space-4:          1rem;
    --space-5:          1.25rem;
    --space-6:          1.5rem;
    --space-8:          2rem;
    --space-10:         2.5rem;
    --space-12:         3rem;
    --space-16:         4rem;

    /* Layout */
    --container-max:    1280px;
    --sidebar-width:    350px;
    --navbar-height:    55px;
}


/* ============================================================
   02. RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--gray-800);
    background-color: var(--gray-100);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove default styles */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: var(--font-primary);
}

table {
    border-collapse: collapse;
    width: 100%;
}

details > summary {
    cursor: pointer;
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* ============================================================
   03. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-700);
    line-height: 1.8;
}

p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: 700;
    color: var(--dark);
}

em, i {
    font-style: italic;
}

small {
    font-size: var(--text-xs);
}

code {
    font-family: var(--font-mono);
    background: var(--gray-200);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-size: 0.875em;
    color: var(--primary-dark);
}

pre {
    background: var(--dark);
    color: var(--gray-200);
    padding: var(--space-4);
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: var(--space-6) 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

hr {
    border: none;
    border-top: 1px solid var(--gray-300);
    margin: var(--space-8) 0;
}


/* ============================================================
   04. LAYOUT & CONTAINER
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.main-content {
    padding: var(--space-6) 0 var(--space-16);
    min-height: 60vh;
}

/* Two-column grid for articles + sidebar */
.content-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 35px;
    margin-top: var(--space-8);
}

/* Single column for pages without sidebar */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-8) 0;
}

/* Section headers with underline accent */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 3px solid var(--primary);
}

.section-header h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-header h2 i {
    color: var(--primary);
}

.view-all {
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.view-all:hover {
    text-decoration: underline;
}


/* ============================================================
   05. TOP BAR
   ============================================================ */
.top-bar {
    background: var(--dark);
    color: var(--gray-400);
    font-size: var(--text-xs);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.top-bar-left i {
    color: var(--primary-light);
    font-size: 0.7rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.top-bar-right a {
    color: var(--gray-400);
    font-size: var(--text-xs);
    transition: var(--transition-fast);
}

.top-bar-right a:hover {
    color: var(--white);
}

/* Social Links in Top Bar */
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: var(--space-5);
    border-left: 1px solid rgba(255,255,255,0.1);
}

.social-links a {
    color: var(--gray-500);
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}


/* ============================================================
   06. HEADER & LOGO
   ============================================================ */
.header {
    background: var(--white);
    padding: 18px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.logo a:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.logo-text h1 span {
    color: var(--primary);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .tagline {
    font-size: var(--text-xs);
    color: var(--gray-500);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.3px;
}


/* ============================================================
   07. ADVERTISEMENT PLACEHOLDERS
   ============================================================ */
.ad-placeholder {
    background: var(--gray-200);
    border: 2px dashed var(--gray-400);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gray-500);
    padding: var(--space-4);
    position: relative;
    overflow: hidden;
}

.ad-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.02) 10px,
        rgba(0,0,0,0.02) 20px
    );
}

.ad-placeholder span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--gray-400);
    margin-bottom: var(--space-1);
    position: relative;
}

.ad-placeholder p {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin: 0;
    position: relative;
}

/* Ad Sizes */
.ad-header {
    min-height: 90px;
    max-width: 728px;
    width: 100%;
}

.ad-infeed {
    min-height: 120px;
    margin: var(--space-6) 0;
}

.ad-sidebar {
    min-height: 250px;
    margin-bottom: var(--space-6);
}

.ad-article {
    min-height: 120px;
    margin: var(--space-8) 0;
    border-radius: var(--radius);
}

.ad-footer {
    min-height: 90px;
    margin: var(--space-8) 0;
}

/* Sticky sidebar ad */
.sticky-ad {
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
    min-height: 600px;
}


/* ============================================================
   08. NAVIGATION & NAVBAR
   ============================================================ */
.navbar {
    background: var(--gradient);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height);
}

.nav-menu {
    display: flex;
    height: 100%;
}

.nav-menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 var(--space-4);
    height: 100%;
    color: rgba(255,255,255,0.88);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.nav-menu > li > a i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

/* Active underline indicator */
.nav-menu > li > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px 3px 0 0;
}

/* Nav Search Button */
.nav-search .search-toggle {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-search .search-toggle:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.35);
}


/* ============================================================
   09. DROPDOWN MENU
   ============================================================ */
.dropdown {
    position: relative;
}

.dropdown > a .fa-chevron-down {
    font-size: 0.65rem;
    margin-left: 2px;
    transition: transform 0.25s ease;
}

.dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 230px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1010;
    border-top: 3px solid var(--primary);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px var(--space-4);
    color: var(--gray-700);
    font-size: var(--text-sm);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 20px;
}

.dropdown-menu li a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 0.85rem;
}


/* ============================================================
   10. MOBILE NAVIGATION
   ============================================================ */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================================
   11. SEARCH OVERLAY
   ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 32, 44, 0.96);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    text-align: center;
    width: 90%;
    max-width: 620px;
    padding: var(--space-8);
    animation: slideDown 0.3s ease forwards;
}

.search-overlay h2 {
    color: var(--white);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    font-weight: 700;
}

.search-close {
    position: fixed;
    top: 25px;
    right: 30px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--transition-fast);
}

.search-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.search-form {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.search-form input {
    flex: 1;
    padding: 16px 22px;
    font-size: var(--text-lg);
    border: none;
    border-radius: 0;
    outline: none;
    color: var(--dark);
}

.search-form button {
    padding: 16px 28px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: var(--text-lg);
    transition: var(--transition-fast);
}

.search-form button:hover {
    background: var(--primary-dark);
}

.search-suggestions {
    margin-top: var(--space-4);
    text-align: left;
}

.search-suggestions p {
    color: var(--gray-400);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-3);
}

.search-suggestions a {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: var(--gray-300);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    margin: 4px;
    transition: var(--transition-fast);
}

.search-suggestions a:hover {
    background: var(--primary);
    color: var(--white);
}


/* ============================================================
   12. BREAKING NEWS TICKER
   ============================================================ */
.ticker {
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
    padding: 10px 0;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.ticker-label {
    background: var(--red);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    animation: pulseBg 2s infinite;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-items {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: tickerScroll 35s linear infinite;
}

.ticker-items:hover {
    animation-play-state: paused;
}

.ticker-items a {
    font-size: var(--text-sm);
    color: var(--gray-700);
    font-weight: 500;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.ticker-items a::before {
    content: '•';
    margin-right: var(--space-3);
    color: var(--primary);
}

.ticker-items a:hover {
    color: var(--primary);
}


/* ============================================================
   13. BREADCRUMB
   ============================================================ */
.breadcrumb-section {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb a i {
    font-size: 0.75rem;
}

.breadcrumb .separator {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.breadcrumb .current {
    color: var(--gray-600);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================================================
   14. FEATURED SECTION (HOMEPAGE)
   ============================================================ */
.featured-section {
    margin: var(--space-8) 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 20px;
    height: 480px;
}

/* Main featured article */
.featured-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    cursor: pointer;
}

.featured-main .featured-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.featured-main .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-main:hover .featured-image img {
    transform: scale(1.06);
}

/* Gradient overlay on featured image */
.featured-main .featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.40) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.featured-main .featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-8);
    color: var(--white);
    z-index: 2;
}

.featured-main h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    line-height: 1.35;
    color: var(--white);
}

.featured-main p {
    font-size: var(--text-sm);
    opacity: 0.88;
    margin-bottom: var(--space-3);
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Side featured articles */
.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.featured-small {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
}

.featured-small .featured-image {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.featured-small .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-small:hover .featured-image img {
    transform: scale(1.08);
}

.featured-small .featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.80) 0%,
        rgba(0,0,0,0.20) 60%,
        transparent 100%
    );
    pointer-events: none;
}

.featured-small .featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4) var(--space-5);
    color: var(--white);
    z-index: 2;
}

.featured-small h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================================================
   15. CATEGORY BADGES
   ============================================================ */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Badge colors */
.category-badge.tech,
.category-badge[class*="teknologi"] {
    background: var(--color-tech);
    color: var(--white);
}

.category-badge.health,
.category-badge[class*="kesehatan"] {
    background: var(--color-health);
    color: var(--white);
}

.category-badge.business,
.category-badge[class*="bisnis"] {
    background: var(--color-business);
    color: var(--white);
}

.category-badge.lifestyle,
.category-badge[class*="gaya-hidup"] {
    background: var(--color-lifestyle);
    color: var(--white);
}

.category-badge.education,
.category-badge[class*="pendidikan"] {
    background: var(--color-education);
    color: var(--white);
}

.category-badge.travel,
.category-badge[class*="wisata"] {
    background: var(--color-travel);
    color: var(--dark);
}

.category-badge.career,
.category-badge[class*="karier"] {
    background: var(--color-career);
    color: var(--white);
}

/* Badge positioned absolutely on images */
.featured-image .category-badge,
.article-card-image .category-badge,
.related-card .category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    box-shadow: var(--shadow-sm);
}

/* Reading time badge */
.reading-time {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ============================================================
   16. CONTENT GRID LAYOUT
   ============================================================ */
/* Article meta shared styles */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.article-meta i {
    margin-right: 3px;
    color: var(--primary);
    font-size: 0.75rem;
}

.article-meta span {
    display: flex;
    align-items: center;
}

/* Author info shared */
.author-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--white);
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
}


/* ============================================================
   17. ARTICLE CARDS (HOMEPAGE LIST)
   ============================================================ */
.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: var(--space-6);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.article-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.article-card > a {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 210px;
}

.article-card-image {
    position: relative;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-content {
    padding: var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-3);
}

.article-card-content h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.article-card:hover h3 {
    color: var(--primary);
}

.article-card-content p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Read more link inside card */
.read-more-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: auto;
}

.read-more-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.article-card:hover .read-more-link i {
    transform: translateX(4px);
}


/* ============================================================
   18. LOAD MORE BUTTON
   ============================================================ */
.load-more {
    text-align: center;
    padding: var(--space-4) 0 var(--space-8);
}

.btn-load-more {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 13px 40px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.btn-load-more:active {
    transform: translateY(-1px);
}

.btn-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* ============================================================
   19. SIDEBAR & WIDGETS
   ============================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Base Widget */
.widget {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-6);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.widget-header {
    background: var(--gradient);
    padding: 14px 20px;
}

.widget-header h3 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.widget-header h3 i {
    font-size: 0.9rem;
    opacity: 0.9;
}

.widget-body {
    padding: 18px 20px;
}

/* Search Widget */
.widget-search {
    background: none;
    box-shadow: none;
    border: none;
}

.sidebar-search {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-300);
    transition: var(--transition-fast);
}

.sidebar-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.sidebar-search input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 0;
    outline: none;
    font-size: var(--text-sm);
    color: var(--dark);
    background: var(--white);
}

.sidebar-search input::placeholder {
    color: var(--gray-400);
}

.sidebar-search button {
    padding: 12px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-search button:hover {
    background: var(--primary-dark);
}

/* About Widget */
.widget-about {
    text-align: center;
}

.about-logo {
    width: 65px;
    height: 65px;
    background: var(--gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow-primary);
}

.widget-about p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

/* Small button */
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--gradient);
    color: var(--white);
    padding: 7px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Popular Posts Widget */
.popular-post {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post:first-child {
    padding-top: 0;
}

.popular-post:hover {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding-left: 8px;
    padding-right: 8px;
    margin: 0 -8px;
}

.popular-number {
    width: 28px;
    height: 28px;
    background: var(--gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.popular-number:nth-child(1) { background: var(--gradient); }

.popular-image {
    width: 64px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popular-post:hover .popular-image img {
    transform: scale(1.1);
}

.popular-content {
    flex: 1;
    min-width: 0;
}

.popular-content a {
    display: block;
}

.popular-content h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    transition: var(--transition-fast);
}

.popular-content h4:hover {
    color: var(--primary);
}

.popular-meta {
    font-size: 0.72rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Categories Widget */
.category-list li {
    border-bottom: 1px solid var(--gray-200);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--gray-700);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition-fast);
}

.category-list li a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.category-list li a span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list li a i {
    color: var(--primary);
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.category-list .count {
    background: var(--gray-200);
    color: var(--gray-600);
    padding: 2px 9px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 26px;
    text-align: center;
}

/* Tag Cloud Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-cloud a {
    display: inline-block;
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 5px 13px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.tag-cloud a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Newsletter Widget */
.widget-newsletter .widget-body p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 11px 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    outline: none;
    transition: var(--transition-fast);
    color: var(--dark);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}

.newsletter-form button[type="submit"] {
    width: 100%;
    padding: 11px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.newsletter-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.widget-newsletter small {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
    color: var(--gray-400);
    font-size: 0.72rem;
}


/* ============================================================
   20. ARTICLE FULL PAGE
   ============================================================ */
.article-full {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

/* Article Header */
.article-header {
    margin-bottom: var(--space-6);
}

.article-header > .category-badge {
    position: static;
    display: inline-flex;
    margin-bottom: var(--space-4);
}

.article-title {
    font-family: var(--font-serif);
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.32;
    margin-bottom: var(--space-5);
    letter-spacing: -0.3px;
}

/* Article meta full */
.article-meta-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-4);
}

.author-info-full {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-lg {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    border: 3px solid var(--primary-light);
    flex-shrink: 0;
}

.author-info-full > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-info-full strong {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--dark);
}

.author-info-full span {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.article-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-stats i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Share buttons (top) */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--space-4) 0;
    flex-wrap: wrap;
}

.share-buttons > span {
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: 600;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.82rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-btn.facebook  { background: #1877f2; }
.share-btn.twitter   { background: #1da1f2; }
.share-btn.whatsapp  { background: #25d366; }
.share-btn.linkedin  { background: #0077b5; }
.share-btn.telegram  { background: #0088cc; }
.share-btn.copy      { background: var(--gray-600); }
.share-btn.copy:hover { background: var(--dark); }

/* Featured image in article */
.article-featured-image {
    margin: var(--space-6) calc(var(--space-8) * -1);
    margin-top: 0;
}

.article-featured-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.article-featured-image figcaption {
    padding: 10px var(--space-8);
    background: var(--gray-200);
    font-size: var(--text-xs);
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.5;
}


/* ============================================================
   21. TABLE OF CONTENTS (TOC)
   ============================================================ */
.toc-box {
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    margin: var(--space-6) 0;
    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--gray-200);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.toc-header:hover {
    background: var(--gray-300);
}

.toc-header h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.toc-header h3 i {
    color: var(--primary);
}

.toc-header .fa-chevron-down {
    color: var(--gray-500);
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.toc-header.collapsed .fa-chevron-down {
    transform: rotate(-90deg);
}

.toc-body {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--gray-300);
    transition: var(--transition);
}

.toc-body.collapsed {
    display: none;
}

.toc-body ol {
    counter-reset: toc-counter;
    list-style: none;
    padding-left: 0;
}

.toc-body ol li {
    counter-increment: toc-counter;
    padding: 5px 0;
    position: relative;
    padding-left: var(--space-6);
}

.toc-body ol li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: var(--text-sm);
}

.toc-body ol li a {
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition-fast);
    display: inline;
}

.toc-body ol li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


/* ============================================================
   22. ARTICLE BODY CONTENT
   ============================================================ */
.article-body {
    font-family: var(--font-serif);
    font-size: 1.06rem;
    line-height: 1.9;
    color: var(--gray-800);
    margin-top: var(--space-6);
}

.article-body p {
    margin-bottom: var(--space-5);
    color: var(--gray-700);
}

/* Lead / intro paragraph */
.article-body .lead {
    font-size: 1.18rem;
    color: var(--gray-700);
    font-weight: 400;
    line-height: 1.8;
    border-left: 4px solid var(--primary);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-6);
    background: var(--primary-xlight);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Headings in article */
.article-body h2 {
    font-family: var(--font-primary);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--dark);
    margin: var(--space-10) 0 var(--space-4);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.article-body h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.article-body h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: var(--space-6) 0 var(--space-3);
}

.article-body h4 {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: var(--space-5) 0 var(--space-2);
}

/* Lists in article body */
.article-body ul,
.article-body ol {
    margin: var(--space-4) 0 var(--space-5);
    padding-left: var(--space-6);
}

.article-body ul {
    list-style: none;
    padding-left: 0;
}

.article-body ul li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    color: var(--gray-700);
}

.article-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.9rem;
    font-style: normal;
}

.article-body ol {
    list-style: decimal;
}

.article-body ol li {
    margin-bottom: var(--space-2);
    color: var(--gray-700);
    padding-left: var(--space-2);
}

.article-body ol li::marker {
    color: var(--primary);
    font-weight: 700;
}

/* Nested lists */
.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
    margin: var(--space-2) 0;
}

/* Blockquote */
.article-body blockquote {
    background: var(--gray-100);
    border-left: 5px solid var(--primary);
    padding: var(--space-5) var(--space-6);
    margin: var(--space-6) 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.5;
}

.article-body blockquote p {
    font-style: italic;
    font-size: 1.08rem;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    line-height: 1.75;
}

.article-body blockquote cite {
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-style: normal;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.article-body blockquote cite::before {
    content: '—';
    color: var(--primary);
}

/* Info/Note boxes */
.info-box {
    background: var(--blue-light);
    border: 1px solid #bee3f8;
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: var(--space-5);
    margin: var(--space-6) 0;
}

.info-box h4 {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--blue);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.info-box p {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Warning box */
.warning-box {
    background: var(--yellow-light);
    border: 1px solid #fbd38d;
    border-left: 4px solid var(--yellow);
    border-radius: var(--radius);
    padding: var(--space-5);
    margin: var(--space-6) 0;
}

.warning-box h4 {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: var(--space-2);
}

/* Success box */
.success-box {
    background: var(--green-light);
    border: 1px solid #9ae6b4;
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: var(--space-5);
    margin: var(--space-6) 0;
}

/* Inline image in article */
.article-inline-image {
    margin: var(--space-6) 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-inline-image img {
    width: 100%;
    height: auto;
}

.article-inline-image figcaption {
    padding: 10px 16px;
    background: var(--gray-200);
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.5;
}

/* Table in article */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-body table thead {
    background: var(--gradient);
    color: var(--white);
}

.article-body table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-body table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}

.article-body table tbody tr:last-child {
    border-bottom: none;
}

.article-body table tbody tr:hover {
    background: var(--gray-100);
}

.article-body table td {
    padding: 12px 16px;
    color: var(--gray-700);
    vertical-align: top;
}

.article-body table tbody tr:nth-child(even) {
    background: var(--gray-100);
}

.article-body table tbody tr:nth-child(even):hover {
    background: var(--gray-200);
}


/* ============================================================
   23. ARTICLE TAGS & SHARE
   ============================================================ */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-5) 0;
    border-top: 1px solid var(--gray-200);
    margin-top: var(--space-6);
}

.tag-label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--gray-600);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.tag {
    display: inline-block;
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Share bottom section */
.share-bottom {
    text-align: center;
    padding: var(--space-6) var(--space-8);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
    border: 1px solid var(--gray-200);
}

.share-bottom h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--dark);
}

.share-buttons-full {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-full {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.share-full:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-full.facebook  { background: #1877f2; }
.share-full.twitter   { background: #1da1f2; }
.share-full.whatsapp  { background: #25d366; }
.share-full.telegram  { background: #0088cc; }
.share-full.linkedin  { background: #0077b5; }


/* ============================================================
   24. AUTHOR BOX
   ============================================================ */
.author-box {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
    transition: var(--transition);
}

.author-box:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.author-box-avatar {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    border: 3px solid var(--primary-light);
    flex-shrink: 0;
}

.author-box-content {
    flex: 1;
}

.author-box-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--dark);
}

.author-box-content p {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 34px;
    height: 34px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.author-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}


/* ============================================================
   25. RELATED ARTICLES
   ============================================================ */
.related-articles {
    margin: var(--space-6) 0;
}

.related-articles h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-5);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.related-articles h3 i {
    color: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.related-card a {
    display: block;
}

.related-card > a > img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover > a > img {
    transform: scale(1.08);
}

.related-card-content {
    padding: var(--space-4);
}

.related-card-content .category-badge {
    position: static;
    display: inline-flex;
    margin-bottom: var(--space-2);
    font-size: 0.65rem;
}

.related-card-content h4 {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.related-card:hover h4 {
    color: var(--primary);
}

.related-card-content > span {
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ============================================================
   26. STATIC PAGES (About, Legal, Contact)
   ============================================================ */

/* Page header */
.page-header {
    text-align: center;
    margin-bottom: var(--space-8);
    padding: var(--space-8) 0;
}

.page-header h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.page-header h1 i {
    color: var(--primary);
    font-size: 2rem;
}

.page-subtitle {
    color: var(--gray-500);
    font-size: var(--text-lg);
    font-weight: 400;
}

/* Page body content */
.page-body {
    background: var(--white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.page-body h2 {
    font-size: var(--text-2xl);
    color: var(--dark);
    margin: var(--space-8) 0 var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.page-body h2:first-of-type {
    margin-top: var(--space-4);
}

.page-body h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.page-body h3 {
    font-size: var(--text-lg);
    color: var(--dark);
    margin: var(--space-6) 0 var(--space-2);
}

.page-body p {
    color: var(--gray-700);
    line-height: 1.85;
    margin-bottom: var(--space-4);
    font-size: 0.97rem;
}

.page-body ul,
.page-body ol {
    margin: var(--space-3) 0 var(--space-4);
    padding-left: var(--space-6);
}

.page-body ul {
    list-style: disc;
}

.page-body ol {
    list-style: decimal;
}

.page-body li {
    margin-bottom: var(--space-2);
    color: var(--gray-700);
    line-height: 1.75;
    font-size: 0.97rem;
}

.page-body a {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.page-body a:hover {
    color: var(--primary-dark);
}

/* Hero image for about page */
.page-hero-image {
    margin-bottom: var(--space-6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 380px;
}

.page-hero-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}


/* ============================================================
   27. VALUES & TEAM GRID (About Page)
   ============================================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: var(--space-5) 0;
}

.value-card {
    background: var(--gray-100);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.value-card:hover {
    background: var(--primary-xlight);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.value-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-3);
    display: block;
}

.value-card h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
    border: none;
    padding: 0;
}

.value-card h3::after {
    display: none;
}

.value-card p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: var(--space-5) 0;
}

.team-card {
    text-align: center;
    padding: var(--space-5);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.team-card:hover {
    background: var(--primary-xlight);
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-card img {
    width: 85px;
    height: 85px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-3);
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

.team-card h3 {
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: 4px;
    border: none;
    padding: 0;
}

.team-card h3::after {
    display: none;
}

.team-card p {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin: 0;
}


/* ============================================================
   28. LEGAL PAGES (Privacy, Disclaimer, Terms)
   ============================================================ */
.legal-page {
    counter-reset: legal-section;
}

.legal-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--blue-light);
    border: 1px solid #bee3f8;
    border-radius: var(--radius);
    margin-bottom: var(--space-6);
}

.legal-notice.warning {
    background: var(--yellow-light);
    border-color: #fbd38d;
}

.legal-notice.danger {
    background: var(--red-light);
    border-color: #feb2b2;
}

.legal-notice > i {
    font-size: 1.3rem;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-notice.warning > i {
    color: var(--yellow);
}

.legal-notice.danger > i {
    color: var(--red);
}

.legal-notice p {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.65;
    margin: 0;
}

/* Last updated badge */
.last-updated {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--gray-200);
    color: var(--gray-600);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: var(--space-5);
}


/* ============================================================
   29. CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    padding: var(--space-8) 0;
}

.contact-form-section,
.contact-info-section {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: var(--text-2xl);
    color: var(--dark);
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.contact-form-section h2 i,
.contact-info-section h2 i {
    color: var(--primary);
}

.contact-form-section > p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin-bottom: var(--space-5);
    line-height: 1.7;
}

/* Form Groups */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-group label i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--dark);
    background: var(--white);
    outline: none;
    transition: var(--transition-fast);
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
    background: var(--primary-xlight);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23718096'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Checkbox group */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: var(--space-5);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1.6;
    margin-bottom: 0;
}

.form-checkbox label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Submit button */
.btn-submit {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    letter-spacing: 0.3px;
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Contact info cards */
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-card:last-of-type {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
}

.contact-card > div {
    flex: 1;
}

.contact-card h3 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Contact social icons */
.contact-social {
    display: flex;
    gap: 10px;
    margin-top: var(--space-2);
}

.contact-social a {
    width: 36px;
    height: 36px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.contact-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* FAQ Accordion */
.contact-faq {
    margin-top: var(--space-6);
    border-top: 2px solid var(--gray-200);
    padding-top: var(--space-5);
}

.contact-faq h3 {
    font-size: var(--text-base);
    color: var(--dark);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.contact-faq h3 i {
    color: var(--primary);
}

details {
    margin-bottom: 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

details[open] {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

summary {
    padding: 13px 18px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--dark);
    background: var(--gray-100);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    user-select: none;
}

summary:hover {
    background: var(--gray-200);
}

summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.2s ease;
}

details[open] summary::after {
    content: '−';
}

details p {
    padding: 13px 18px;
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.7;
    border-top: 1px solid var(--gray-200);
    margin: 0;
    background: var(--white);
}


/* ============================================================
   30. CATEGORY PAGE
   ============================================================ */
.category-hero {
    background: var(--gradient);
    padding: var(--space-12) 0;
    color: var(--white);
    text-align: center;
    margin-bottom: var(--space-8);
}

.category-hero h1 {
    font-size: var(--text-4xl);
    color: var(--white);
    margin-bottom: var(--space-3);
}

.category-hero p {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    border-bottom: 2px solid var(--gray-200);
}

.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

/* Category article grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: var(--space-8);
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.category-card a {
    display: block;
}

.category-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.08);
}

.category-card-content {
    padding: var(--space-5);
}

.category-card-content h3 {
    font-size: var(--text-lg);
    color: var(--dark);
    margin-bottom: var(--space-2);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.category-card:hover h3 {
    color: var(--primary);
}

.category-card-content p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.65;
}


/* ============================================================
   31. FOOTER
   ============================================================ */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding-top: 55px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Footer logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-4);
}

.footer-logo i {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.footer-logo h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.footer-logo h3 span {
    color: var(--primary-light);
}

.footer-col > p {
    font-size: var(--text-sm);
    line-height: 1.75;
    color: var(--gray-500);
    margin-bottom: var(--space-5);
}

/* Footer social icons */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer column headings */
.footer-col h3 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: var(--space-5);
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* Footer links */
.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray-500);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition-fast);
}

.footer-col ul li a::before {
    content: '›';
    color: var(--primary);
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-col ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact info in footer */
.footer-col .contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: 0;
}

.footer-col .contact-info i {
    color: var(--primary-light);
    width: 16px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Footer bottom bar */
.footer-bottom {
    text-align: center;
    padding: var(--space-5) 0;
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.footer-bottom i.fa-heart {
    color: var(--red);
    animation: heartbeat 1.5s ease infinite;
}

/* Footer newsletter mini form */
.footer-newsletter {
    margin-top: var(--space-4);
}

.footer-newsletter p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-3);
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-right: none;
    color: var(--white);
    font-size: var(--text-sm);
    outline: none;
}

.footer-newsletter-form input::placeholder {
    color: var(--gray-600);
}

.footer-newsletter-form button {
    padding: 10px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.footer-newsletter-form button:hover {
    background: var(--primary-dark);
}


/* ============================================================
   32. BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.05rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: translateY(-2px);
}


/* ============================================================
   33. COOKIE CONSENT
   ============================================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 32, 44, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 0;
    z-index: 1500;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.cookie-content i.fa-cookie-bite {
    color: #f6ad55;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cookie-content p {
    color: var(--gray-400);
    font-size: var(--text-sm);
    margin: 0;
    flex: 1;
    line-height: 1.6;
}

.cookie-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 9px 24px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
    white-space: nowrap;
}

.btn-cookie-accept {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
}

.btn-cookie-decline {
    background: transparent;
    color: var(--gray-400);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-cookie-decline:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

/* Legacy single button support */
#acceptCookie,
.btn-cookie:not(.btn-cookie-accept):not(.btn-cookie-decline) {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 9px 24px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    white-space: nowrap;
}


/* ============================================================
   34. UTILITY CLASSES
   ============================================================ */

/* Display */
.d-none     { display: none !important; }
.d-flex     { display: flex !important; }
.d-block    { display: block !important; }
.d-grid     { display: grid !important; }
.d-inline   { display: inline !important; }

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Text colors */
.text-primary  { color: var(--primary) !important; }
.text-dark     { color: var(--dark) !important; }
.text-gray     { color: var(--gray-600) !important; }
.text-white    { color: var(--white) !important; }
.text-muted    { color: var(--gray-500) !important; }

/* Font weight */
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-bold   { font-weight: 700; }
.fw-black  { font-weight: 800; }

/* Margins */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Width */
.w-full { width: 100%; }

/* Truncation */
.truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Visually hidden (accessible) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Reading progress bar */
#readingProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}


/* ============================================================
   35. ANIMATIONS & KEYFRAMES
   ============================================================ */

/* Slide down */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Ticker scroll */
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pulse background (ticker label) */
@keyframes pulseBg {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

/* Heartbeat (footer) */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15%       { transform: scale(1.25); }
    30%       { transform: scale(1); }
    45%       { transform: scale(1.15); }
    60%       { transform: scale(1); }
}

/* Spin */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-8px);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Loading skeleton shimmer */
@keyframes shimmer {
    0%   { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton {
    background: linear-gradient(
        to right,
        var(--gray-200) 8%,
        var(--gray-300) 18%,
        var(--gray-200) 33%
    );
    background-size: 800px 104px;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-sm);
}

/* Utility animation classes */
.animate-fadeIn   { animation: fadeIn 0.4s ease forwards; }
.animate-slideUp  { animation: slideUp 0.4s ease forwards; }
.animate-slideDown{ animation: slideDown 0.4s ease forwards; }
.animate-spin     { animation: spin 1s linear infinite; }
.animate-bounce   { animation: bounce 1s infinite; }


/* ============================================================
   36. RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {

    /* Layout */
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .widget-search,
    .sticky-ad,
    .ad-placeholder.ad-sidebar {
        grid-column: 1 / -1;
    }

    .widget-newsletter {
        grid-column: 1 / -1;
    }

    /* Featured section */
    .featured-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .featured-main .featured-image {
        height: 400px;
    }

    .featured-side {
        flex-direction: row;
        height: 220px;
    }

    /* Article */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-featured-image {
        margin-left: calc(var(--space-6) * -1);
        margin-right: calc(var(--space-6) * -1);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Category */
    .category-grid {
        grid-template-columns: 1fr;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   37. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Root adjustments */
    :root {
        --navbar-height: 50px;
    }

    /* Top bar */
    .top-bar-left span:last-child {
        display: none;
    }

    .top-bar-right {
        gap: var(--space-3);
    }

    .social-links {
        display: none;
    }

    /* Header */
    .header {
        padding: 14px 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .logo-text h1 {
        font-size: 1.6rem;
    }

    .header-ad {
        display: none;
    }

    /* Mobile nav toggle */
    .mobile-toggle {
        display: flex;
    }

    /* Nav menu — mobile drawer */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-light);
        box-shadow: var(--shadow-xl);
        height: auto;
        overflow-y: auto;
        max-height: calc(100vh - var(--navbar-height));
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .nav-menu > li {
        height: auto;
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        width: 100%;
        height: auto;
    }

    .nav-menu > li > a.active::after {
        display: none;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
        border-radius: 0;
        border-top: none;
        min-width: 100%;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: rgba(255,255,255,0.75);
        border-bottom-color: rgba(255,255,255,0.05);
        padding-left: 40px;
    }

    .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.08);
        color: var(--white);
        padding-left: 48px;
    }

    .nav-content {
        padding: 0 var(--space-4);
        position: relative;
    }

    /* Ticker */
    .ticker-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.78rem;
    }

    .breadcrumb .current {
        -webkit-line-clamp: 1;
        max-width: 200px;
    }

    /* Featured */
    .featured-main .featured-image {
        height: 280px;
    }

    .featured-main .featured-content {
        padding: var(--space-4) var(--space-5);
    }

    .featured-main h2 {
        font-size: 1.2rem;
    }

    .featured-side {
        flex-direction: column;
        height: auto;
    }

    .featured-small .featured-image {
        height: 180px;
    }

    /* Article cards */
    .article-card > a {
        grid-template-columns: 1fr;
    }

    .article-card-image {
        height: 200px;
    }

    .article-card-content {
        padding: var(--space-4);
    }

    .article-card-content h3 {
        font-size: var(--text-base);
    }

    /* Full article */
    .article-full {
        padding: var(--space-5);
        border-radius: var(--radius);
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-meta-full {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .article-stats {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .article-featured-image {
        margin-left: calc(var(--space-5) * -1);
        margin-right: calc(var(--space-5) * -1);
    }

    .article-body {
        font-size: var(--text-base);
    }

    .article-body h2 {
        font-size: 1.3rem;
    }

    /* Related articles */
    .related-grid {
        grid-template-columns: 1fr;
    }

    /* Author box */
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-social {
        justify-content: center;
    }

    /* Share buttons */
    .share-buttons-full {
        flex-direction: column;
        align-items: center;
    }

    .share-full {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Sidebar */
    .sidebar {
        grid-template-columns: 1fr;
    }

    /* Page */
    .page-header h1 {
        font-size: var(--text-2xl);
        flex-direction: column;
        gap: var(--space-2);
    }

    .page-body {
        padding: var(--space-5) var(--space-4);
    }

    .page-hero-image {
        max-height: 220px;
    }

    .page-hero-image img {
        height: 220px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Cookie */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .cookie-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .btn-cookie {
        flex: 1;
    }

    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    /* Search overlay */
    .search-overlay-content {
        padding: var(--space-5);
    }

    .search-overlay h2 {
        font-size: var(--text-xl);
    }

    .search-form input {
        font-size: var(--text-base);
        padding: 14px 18px;
    }

    /* Category */
    .category-filter {
        gap: 8px;
    }

    .filter-btn {
        font-size: 0.78rem;
        padding: 7px 14px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Contact */
    .contact-form-section,
    .contact-info-section {
        padding: var(--space-5);
    }

    /* TOC */
    .toc-body ol li {
        font-size: var(--text-sm);
    }
}


/* ============================================================
   38. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {

    /* Root */
    html {
        font-size: 15px;
    }

    /* Logo */
    .logo-text h1 {
        font-size: 1.4rem;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* Featured */
    .featured-main .featured-image {
        height: 240px;
    }

    .featured-main h2 {
        font-size: 1.05rem;
    }

    /* Article title */
    .article-title {
        font-size: 1.35rem;
    }

    .article-body .lead {
        font-size: 1.05rem;
    }

    .article-body h2 {
        font-size: 1.2rem;
    }

    /* Load more */
    .btn-load-more {
        padding: 12px 28px;
        font-size: var(--text-sm);
    }

    /* Page header */
    .page-header h1 {
        font-size: var(--text-xl);
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .team-card {
        padding: var(--space-3);
    }

    .team-card img {
        width: 65px;
        height: 65px;
    }

    /* Share */
    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    /* TOC */
    .toc-header {
        padding: 12px 16px;
    }

    .toc-body {
        padding: var(--space-3) var(--space-4);
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Section header */
    .section-header h2 {
        font-size: var(--text-base);
    }

    /* Footer */
    .footer-logo h3 {
        font-size: 1.3rem;
    }

    .footer-col h3 {
        font-size: var(--text-sm);
    }

    /* Contact */
    .btn-submit {
        padding: 12px 28px;
        font-size: var(--text-sm);
    }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {

    .top-bar,
    .header .header-ad,
    .navbar,
    .ticker,
    .ad-placeholder,
    .sidebar,
    .share-buttons,
    .share-bottom,
    .related-articles,
    .footer,
    .back-to-top,
    .cookie-consent,
    #readingProgress {
        display: none !important;
    }

    body {
        background: var(--white);
        color: var(--dark);
        font-size: 12pt;
        line-height: 1.6;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .article-full {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .article-title {
        font-size: 22pt;
    }

    .article-body {
        font-size: 11pt;
    }

    a {
        color: var(--dark);
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--gray-600);
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    p, blockquote {
        page-break-inside: avoid;
    }
}
