/* ===== PREMIUM NEWS PLATFORM CSS ===== */
/* Modern, clean, professional news website design - Light Mode */
/* Enhanced for responsiveness and better article presentation */

:root {
    /* Modern News Color Palette - LIGHT MODE */
    --primary: #1a56db;
    --primary-dark: #1e429f;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;

    --accent: #dc2626;
    --accent-light: #ef4444;
    --accent-dark: #b91c1c;
    --accent-50: #fef2f2;

    --secondary: #059669;
    --secondary-light: #10b981;
    --secondary-dark: #047857;

    /* Neutral Colors */
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: #d1d5db;

    --background: #ffffff;
    --background-alt: #f9fafb;
    --background-dark: #1f2937;

    --white: #ffffff;
    --black: #000000;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-accent: 'Inter', sans-serif;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* Layout Widths */
    --article-width: 800px;
    --content-sidebar: 280px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 3.5vw, 1.875rem);
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.3;
}

h5 {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    line-height: 1.4;
}

h6 {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
    font-size: clamp(1rem, 1.05vw, 1.125rem);
}

.lead {
    font-size: clamp(1.125rem, 1.25vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.text-primary {
    color: var(--primary);
}

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

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-5);
}

/* ===== ARTICLE LAYOUT ===== */
.article-container {
    max-width: min(var(--article-width), 90vw);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr var(--content-sidebar);
    gap: var(--space-8);
    align-items: start;
}

.article-content {
    min-width: 0;
}

.article-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .article-sidebar {
        position: static;
        order: -1;
    }
}

/* ===== ARTICLE SPECIFIC STYLES ===== */
.article-header {
    margin-bottom: var(--space-8);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-4);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.article-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin: var(--space-6) 0;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: var(--space-5);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: var(--space-6);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

.article-body .caption {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-2);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.article-tags .badge {
    background: var(--background-alt);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.article-tags .badge:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 0.625rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.top-bar-date {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.top-bar-links {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.top-bar-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ===== MAIN NAVIGATION ===== */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

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

.nav-brand i {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.nav-menu {
    display: flex;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
}

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

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-50);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background-color: var(--border-light);
    color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: clamp(0.625rem, 1.5vw, 0.75rem) clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--border-light);
    border-color: var(--border-dark);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-block {
    width: 100%;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-header {
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
}

.card-body {
    padding: var(--space-5);
}

.card-footer {
    padding: var(--space-5);
    border-top: 1px solid var(--border-color);
    background: var(--background-alt);
}

/* ===== ARTICLE CARDS ===== */
.article-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: all var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.article-card .position-relative {
    overflow: hidden;
    height: 200px;
    min-height: 200px;
}

.article-card img {
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.article-card .card-body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .card-title {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.4;
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.article-card .badge {
    background: var(--white);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
}

/* ===== HOVER EFFECTS ===== */
.hover-up {
    transition: transform var(--transition);
}

.hover-up:hover {
    transform: translateY(-4px);
}

.hover-lift {
    transition: transform var(--transition), box-shadow var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

/* ===== SECTIONS ===== */
section {
    padding: var(--space-8) 0;
}

section.bg-white {
    background-color: var(--white);
}

section.bg-light {
    background-color: var(--background-alt);
}

section.bg-dark {
    background-color: var(--background-dark);
    color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero-card {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
}

.hero-card .badge {
    background: var(--primary-100);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}

.hero-card h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero-card .lead {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.hero-card img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* ===== FOTY CAROUSEL ===== */
#fotyCarousel {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.carousel-inner {
    border-radius: var(--radius-2xl);
}

.carousel-item {
    height: clamp(300px, 50vw, 550px);
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
    padding: clamp(var(--space-4), 3vw, var(--space-6));
    border-radius: var(--radius-2xl);
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
}

.carousel-control-prev,
.carousel-control-next {
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-full);
    top: 50%;
    transform: translateY(-50%);
    margin: 0 clamp(var(--space-3), 2vw, var(--space-5));
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}

/* ===== CATEGORY CARDS ===== */
.category-card .card {
    height: 100%;
    text-align: center;
    padding: var(--space-6);
    transition: all var(--transition);
}

.category-card .card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-8px);
}

.category-card .card:hover h6,
.category-card .card:hover small,
.category-card .card:hover i {
    color: var(--white) !important;
}

.category-card .icon-wrapper {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: clamp(1.5rem, 3vw, 2rem);
    transition: all var(--transition);
}

.category-card .card:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-2xl);
    margin: var(--space-8) auto;
    max-width: min(1200px, 95vw);
    padding: clamp(var(--space-6), 5vw, var(--space-8)) clamp(var(--space-4), 3vw, var(--space-6));
}

.newsletter-section h2 {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.newsletter-form .input-group {
    background: var(--white);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
}

.newsletter-form input {
    border: none;
    background: transparent;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    box-shadow: none !important;
    outline: none !important;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: none;
}

.newsletter-form button {
    border-radius: 50px !important;
    padding: 0.875rem 2rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    border: none;
    margin: 0;
    transition: all var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer h5 {
    color: var(--white)
}

.main-footer {
    background: var(--text-primary);
    color: var(--white);
    padding: var(--space-8) 0 var(--space-6);
    margin-top: var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(var(--space-6), 5vw, var(--space-8));
    margin-bottom: var(--space-8);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--space-5);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-links i {
    font-size: 0.75rem;
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    width: clamp(35px, 5vw, 40px);
    height: clamp(35px, 5vw, 40px);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ===== UTILITY CLASSES ===== */
.m-0 {
    margin: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pl-0 {
    padding-left: 0 !important;
}

.pr-0 {
    padding-right: 0 !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.gap-1 {
    gap: var(--space-1) !important;
}

.gap-2 {
    gap: var(--space-2) !important;
}

.gap-3 {
    gap: var(--space-3) !important;
}

.gap-4 {
    gap: var(--space-4) !important;
}

.gap-5 {
    gap: var(--space-5) !important;
}

.rounded {
    border-radius: var(--radius) !important;
}

.rounded-pill {
    border-radius: var(--radius-full) !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

.bg-light {
    background-color: var(--background-alt) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-primary-subtle {
    background-color: var(--primary-50) !important;
}

.bg-accent-subtle {
    background-color: var(--accent-50) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-dark {
    color: var(--text-primary) !important;
}

.text-body-emphasis {
    color: var(--text-primary) !important;
}

.opacity-25 {
    opacity: 0.25 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.border {
    border: 1px solid var(--border-color) !important;
}

.border-0 {
    border: none !important;
}

.border-top {
    border-top: 1px solid var(--border-color) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 var(--space-4);
    }

    .nav-menu {
        gap: var(--space-1);
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
    }

    .article-grid {
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .nav-brand {
        font-size: 1.5rem;
    }

    .nav-brand i {
        font-size: 1.25rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        margin-top: var(--space-3);
        justify-content: center;
    }

    .hero-card {
        text-align: center;
    }

    .carousel-caption {
        padding: var(--space-4);
    }

    .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .newsletter-form .input-group {
        flex-direction: row;
        background: var(--white);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-radius: 50px;
        padding: 4px;
    }

    .newsletter-form input {
        width: auto;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .newsletter-form button {
        width: auto;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    #admin_controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-3);
    }

    .top-bar-content {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }

    .top-bar-date {
        flex-direction: column;
        gap: var(--space-1);
    }

    .nav-container {
        flex-direction: column;
        gap: var(--space-3);
    }

    .nav-menu {
        order: 0;
        margin-top: 0;
        justify-content: space-around;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .hero-card h1 {
        font-size: 2rem;
    }

    .carousel-item {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .article-container {
        padding: 0 var(--space-3);
    }

    .article-content {
        width: 100%;
        overflow-x: hidden;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body blockquote {
        padding-left: var(--space-4);
        font-size: 1.125rem;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 14px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }

    .article-card .position-relative {
        height: 180px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .top-bar,
    .main-nav,
    .newsletter-section,
    .social-links,
    .carousel-control-prev,
    .carousel-control-next,
    .article-sidebar,
    .article-tags,
    .footer-bottom,
    .footer-links {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    .article-body {
        font-size: 12pt;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #000 !important;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== ACCESSIBILITY ===== */
.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;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== IMAGE RESPONSIVENESS ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== GRID SYSTEM ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--space-4));
}

.col {
    flex: 1 0 0%;
    padding: 0 var(--space-4);
}

@media (max-width: 768px) {
    .row {
        margin: 0 calc(-1 * var(--space-3));
    }

    .col {
        padding: 0 var(--space-3);
    }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner a {
    color: #86b7fe;
}

.cookie-banner a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-btn:hover {
    background: #0b5ed7;
    transform: scale(1.1);
}


/* ========================================= */
/* ===== SUMMERNOTE EDITOR OVERRIDES ======= */
/* ========================================= */

/*
.note-btn-group .dropdown-menu {
    max-height: 250px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}


.note-editable {
    background-color: white;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}


.note-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 5px !important;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}


.note-modal-backdrop {
    z-index: 1050 !important;
    opacity: 0.5 !important;
}
.note-modal {
    z-index: 1060 !important;
    overflow: visible !important;
}
.note-modal.fade .note-modal-dialog {
    transition: none !important;
    transform: none !important;
    margin: 30px auto !important;
}
.note-btn { cursor: pointer; }


.link-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    text-decoration: none !important;
    color: #333;
    margin: 20px 0;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    max-width: 600px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #333;
}
.link-card-img {
    width: 160px;
    height: auto;
    min-height: 100px;
    object-fit: cover;
    background-color: #f8f9fa;
}
.link-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.link-card-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #000;
    line-height: 1.3;
}
.link-card-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}
.link-card-url {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


@media (max-width: 576px) {
    .link-card { flex-direction: column; }
    .link-card-img { width: 100%; height: 180px; }
    
    
    .note-modal-content {
        width: 95% !important;
        margin: 10px auto !important;
    }
}


.editor-container {
    min-height: 400px;
    background: white;
}

#editorContent {
    outline: none;
    min-height: 300px;
    overflow-y: auto;
}

#editorContent:empty:before {
    content: attr(data-placeholder);
    color: #6c757d;
    pointer-events: none;
}

#editorContent img {
    max-width: 100%;
    height: auto;
}

#editorContent video {
    max-width: 100%;
    border-radius: 8px;
}


@media (max-width: 768px) {
    .editor-container {
        min-height: 300px;
    }
    
    #editorContent {
        min-height: 250px;
    }
    
    #editorToolbar {
        overflow-x: auto;
        padding: 4px;
    }
    
    #editorToolbar .btn-group {
        flex-shrink: 0;
    }
}


.link-card {
    display: flex;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.link-card:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.link-card > div:first-child {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
}

.link-card-content {
    flex: 1;
    min-width: 0;
}

.link-card-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529;
}

.link-card-desc {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.link-card-url {
    font-size: 0.8em;
    color: #0d6efd;
}
    */
.link-card {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    margin: 10px 0;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.link-card:hover {
    background: #e9ecef;
    text-decoration: none;
    color: inherit;
}

.link-card-content {
    flex: 1;
    padding-left: 15px;
}

.link-card-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: #212529;
}

.link-card-desc {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.4;
}

.link-card-url {
    font-size: 12px;
    color: #0d6efd;
}