/* ============================================
   MODERN NEWS SITE CSS - DataPaylaşım Haber
   Clean, Modern, Google Discover Compatible
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-darker: #991b1b;
    --secondary: #1e3a5f;
    --secondary-dark: #0f2137;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px 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);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--gray-800);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* === TOPBAR === */
.topbar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--gray-300);
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar a {
    color: var(--gray-300);
    font-size: 12px;
}

.topbar a:hover {
    color: var(--white);
}

.topbar .exchange-rates {
    display: flex;
    gap: 16px;
}

.topbar .exchange-rates .rate {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar .exchange-rates .rate-label {
    color: var(--gray-400);
    font-size: 11px;
}

.topbar .exchange-rates .rate-value {
    color: var(--white);
    font-weight: 600;
}

.topbar .social-links {
    display: flex;
    gap: 8px;
}

.topbar .social-links a {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
    font-size: 11px;
    transition: all var(--transition);
}

.topbar .social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

.topbar .date-display {
    color: var(--gray-400);
}

.topbar .theme-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--gray-300);
    padding: 2px;
    display: flex;
    align-items: center;
}

.topbar .theme-toggle:hover {
    color: var(--white);
}

/* === MAIN HEADER === */
.main-header {
    background: var(--white);
    padding: 16px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 52px;
    width: auto;
    transition: transform var(--transition);
}

.header-logo:hover img {
    transform: scale(1.02);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search-btn,
.header-menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    transition: all var(--transition);
    font-size: 16px;
}

.header-search-btn:hover,
.header-menu-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* === NAVIGATION === */
.main-nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.main-nav .container {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-list li {
    flex-shrink: 0;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all var(--transition);
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 3px 3px 0 0;
    transform: translateX(-50%);
}

.nav-list li a:hover {
    color: var(--white);
    background: rgba(0, 0, 0, 0.15);
}

.nav-list li a:hover::after {
    width: 60%;
}

.nav-list li.active a {
    color: var(--white);
}

.nav-list li.active a::after {
    width: 60%;
}

.nav-list li.breaking a {
    background: rgba(0, 0, 0, 0.2);
    animation: breakingPulse 2s infinite;
    font-weight: 700;
}

.nav-list li.breaking a i {
    animation: flashIcon 1s infinite;
}

@keyframes breakingPulse {

    0%,
    100% {
        background: rgba(0, 0, 0, 0.2);
    }

    50% {
        background: rgba(255, 255, 255, 0.15);
    }
}

@keyframes flashIcon {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* === FLASH NEWS TICKER === */
.flash-ticker {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    padding: 8px 0;
    overflow: hidden;
}

.flash-ticker .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flash-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.flash-label .dot {
    display: flex;
    gap: 2px;
}

.flash-label .dot i {
    width: 4px;
    height: 4px;
    background: var(--white);
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

.flash-label .dot i:nth-child(2) {
    animation-delay: 0.3s;
}

.flash-label .dot i:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.flash-ticker .swiper {
    flex: 1;
    overflow: hidden;
}

.flash-ticker .swiper-slide {
    width: auto;
}

.flash-ticker .flash-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    white-space: nowrap;
    padding-right: 40px;
}

.flash-ticker .flash-time {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}

.flash-ticker .flash-item a {
    color: rgba(255, 255, 255, 0.9);
}

.flash-ticker .flash-item a:hover {
    color: var(--white);
}

/* === NEWS CARDS === */
.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card .card-img {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 */
    overflow: hidden;
}

.news-card .card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-card:hover .card-img img {
    transform: scale(1.05);
}

.news-card .card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.news-card .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--gray-900);
    flex: 1;
}

.news-card .card-title:hover {
    color: var(--primary);
}

.news-card .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.news-card .card-meta i {
    margin-right: 3px;
}

/* === HERO SLIDER === */
.hero-slider {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-slider .swiper-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.hero-slider .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    padding: 60px 24px 24px;
}

.hero-slider .slide-cat {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-slider .slide-title {
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slider .swiper-pagination {
    bottom: 16px !important;
}

.hero-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all var(--transition);
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

/* === SECTION STYLES === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 i {
    color: var(--primary);
    font-size: 16px;
}

.section-header .see-all {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-header .see-all:hover {
    gap: 8px;
}

/* === TEXT NEWS LIST === */
.text-news-list {
    display: flex;
    flex-direction: column;
}

.text-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.text-news-item:last-child {
    border-bottom: none;
}

.text-news-item:hover {
    padding-left: 8px;
}

.text-news-item .number {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    min-width: 30px;
    text-align: center;
    line-height: 1;
}

.text-news-item .tni-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-news-item:hover .tni-title {
    color: var(--primary);
}

.text-news-item .tni-img {
    width: 80px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.text-news-item .tni-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.text-news-item:hover .tni-img img {
    transform: scale(1.08);
}

/* === SIDEBAR WIDGETS === */
.widget {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.widget-header {
    padding: 16px 20px;
    border-bottom: 3px solid var(--primary);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header i {
    color: var(--primary);
}

.widget-body {
    padding: 16px 20px;
}

.widget-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-social a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    transition: all var(--transition);
}

.widget-social a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.widget-social .fb {
    background: #1877f2;
}

.widget-social .tw {
    background: #1da1f2;
}

.widget-social .ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.widget-social .yt {
    background: #ff0000;
}

/* === CATEGORY SECTION === */
.cat-section {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.cat-section-header {
    padding: 14px 20px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-section-header h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-section-header h3 i {
    color: var(--primary);
}

.cat-section-body {
    padding: 16px 20px;
}

/* === MINI NEWS CARD (horizontal) === */
.mini-news {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.mini-news:last-child {
    border-bottom: none;
}

.mini-news:hover {
    background: var(--gray-50);
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
}

.mini-news .mini-img {
    width: 100px;
    height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.mini-news .mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.mini-news:hover .mini-img img {
    transform: scale(1.05);
}

.mini-news .mini-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-news .mini-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-news:hover .mini-title {
    color: var(--primary);
}

.mini-news .mini-date {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* === FEATURED LARGE CARD === */
.featured-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition);
}

.featured-card:hover img {
    transform: scale(1.03);
}

.featured-card .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.featured-card .featured-label {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.featured-card .featured-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === BREADCRUMB === */
.breadcrumb-nav {
    padding: 12px 0;
    margin-bottom: 4px;
}

.breadcrumb-nav ol {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-nav li a {
    color: var(--gray-500);
}

.breadcrumb-nav li a:hover {
    color: var(--primary);
}

.breadcrumb-nav li.active {
    color: var(--gray-400);
}

.breadcrumb-nav li+li::before {
    content: '›';
    color: var(--gray-400);
    font-weight: 700;
    margin-right: 4px;
}

/* === NEWS DETAIL === */
.article-wrapper {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.article-header {
    padding: 28px 28px 0;
}

.article-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.article-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.article-excerpt {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.6;
    padding: 14px 18px;
    border-left: 4px solid var(--primary);
    background: var(--gray-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-500);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: var(--gray-400);
}

.article-featured-img {
    margin: 0;
}

.article-featured-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-content {
    padding: 28px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--gray-700);
}

.article-content p {
    margin-bottom: 16px;
}

.article-content h2,
.article-content h3 {
    margin: 24px 0 12px;
    color: var(--gray-900);
}

.article-content img {
    border-radius: var(--radius);
    margin: 16px 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0;
    font-style: italic;
    color: var(--gray-600);
}

/* === SHARE BUTTONS === */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 28px;
    margin-bottom: 24px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.share-btn.fb {
    background: #1877f2;
}

.share-btn.tw {
    background: #000;
}

.share-btn.wp {
    background: #25d366;
}

.share-btn.tg {
    background: #0088cc;
}

.share-btn.mail {
    background: var(--gray-600);
}

/* === TAGS === */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 28px 24px;
}

.tag-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 500;
    transition: all var(--transition);
}

.tag-badge:hover {
    background: var(--primary);
    color: var(--white);
}

/* === RELATED NEWS === */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* === ROW/GRID === */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.flex-row {
    display: flex;
    gap: 24px;
}

.flex-row .main-col {
    flex: 1;
    min-width: 0;
}

.flex-row .side-col {
    width: 340px;
    flex-shrink: 0;
}

/* === FOOTER === */
.site-footer {
    background: var(--dark);
    color: var(--gray-300);
    margin-top: 48px;
}

.footer-main {
    padding: 48px 0 32px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-brand img {
    height: 46px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.6;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-300);
    font-size: 14px;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li a {
    color: var(--gray-400);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.footer-links li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-links li a i {
    font-size: 10px;
    color: var(--primary);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--gray-500);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* === MOBILE BOTTOM NAV === */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}

.mobile-bottom-nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 500;
}

.mobile-bottom-nav li a i {
    font-size: 18px;
}

.mobile-bottom-nav li a:hover,
.mobile-bottom-nav li a.active {
    color: var(--primary);
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    border: none;
    font-size: 16px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* === SEARCH OVERLAY === */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.search-overlay.active {
    display: flex;
}

.search-overlay form {
    width: 100%;
    max-width: 640px;
    position: relative;
}

.search-overlay input {
    width: 100%;
    padding: 18px 60px 18px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 18px;
    background: var(--white);
    color: var(--gray-800);
    box-shadow: var(--shadow-xl);
    outline: none;
}

.search-overlay input::placeholder {
    color: var(--gray-400);
}

.search-overlay .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition);
}

.search-overlay .search-submit:hover {
    background: var(--primary-dark);
}

.search-overlay .search-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    transition: all var(--transition);
}

.search-overlay .search-close:hover {
    transform: rotate(90deg);
}

/* === MOBILE OFFCANVAS MENU === */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.offcanvas-overlay.active {
    display: block;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -300px;
    bottom: 0;
    width: 300px;
    background: var(--white);
    z-index: 9999;
    transition: right var(--transition);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.offcanvas-menu.active {
    right: 0;
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.offcanvas-header .close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-600);
}

.offcanvas-nav {
    padding: 12px 0;
}

.offcanvas-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.offcanvas-nav a:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 24px;
}

.offcanvas-nav a i {
    width: 20px;
    text-align: center;
    color: var(--gray-400);
}

/* === PAGINATION === */
.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 32px 0;
}

.pagination-wrap a,
.pagination-wrap span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.pagination-wrap a:hover {
    background: var(--primary);
    color: var(--white);
}

.pagination-wrap .active {
    background: var(--primary);
    color: var(--white);
    pointer-events: none;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .flex-row {
        flex-direction: column;
    }

    .flex-row .side-col {
        width: 100%;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-slider .slide-title {
        font-size: 18px;
    }

    .article-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .main-header {
        padding: 10px 0;
    }

    .header-logo img {
        height: 40px;
    }

    .nav-list li a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-slider .slide-title {
        font-size: 16px;
    }

    .hero-slider .slide-overlay {
        padding: 40px 16px 16px;
    }

    .article-header {
        padding: 20px 20px 0;
    }

    .article-content {
        padding: 20px;
        font-size: 15px;
    }

    .share-buttons {
        padding: 0 20px;
    }

    .tags-list {
        padding: 0 20px 20px;
    }

    .article-title {
        font-size: 20px;
    }

    .mobile-bottom-nav {
        display: block;
    }

    .site-footer {
        padding-bottom: 70px;
    }

    .scroll-top {
        bottom: 80px;
    }

    .section-header h2 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .news-card .card-title {
        font-size: 14px;
    }

    .hero-slider .slide-title {
        font-size: 15px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-excerpt {
        font-size: 14px;
    }
}

/* === LOADING SKELETON === */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* === DARK MODE (optional class) === */
html.dark-mode {
    --gray-50: #1f2937;
    --gray-100: #111827;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-400: #6b7280;
    --gray-500: #9ca3af;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #f9fafb;
    --white: #1a1a2e;
}

html.dark-mode body {
    background: #0f172a;
}

html.dark-mode .main-header {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.dark-mode .news-card {
    background: #1e293b;
}

html.dark-mode .widget {
    background: #1e293b;
}

html.dark-mode .article-wrapper {
    background: #1e293b;
}

html.dark-mode .cat-section {
    background: #1e293b;
}

html.dark-mode .offcanvas-menu {
    background: #1e293b;
}

/* === UTILITY === */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.p-0 {
    padding: 0;
}

.text-center {
    text-align: center;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}