*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;

}

.story-card:hover h2,
.story-card:hover h3 {
    color: #D32F2F;
    transition: color 0.2s ease;
}

.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-card:hover img {
    transform: scale(1.05);
}

.border-t-news {
    border-top: 1px solid #e5e7eb;
}

.border-b-news {
    border-bottom: 1px solid #e5e7eb;
}

.border-r-news {
    border-right: 1px solid #e5e7eb;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d30d0d;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9b0707;
}

.ad-slot {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-slot iframe {
    max-width: 100%;
}

.professional-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #c40000;
}

.top-bar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    color: #666;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #c40000;
    color: #fff;
    transform: translateY(-2px);
}

.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.logo {
    flex-shrink: 0;
    text-align: center;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: #c40000;
    margin: 0;
}

.right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.search-container {
    position: relative;
}

.search-icon {
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-icon:hover {
    background: #f5f5f5;
}

.search-icon svg {
    width: 22px;
    height: 22px;
    stroke: #666;
    fill: none;
    stroke-width: 2;
}

.search-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 400px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #c40000;
    z-index: 1001;
    overflow: hidden;
}

.search-dropdown.active {
    display: block;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-box {
    display: flex;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eef2f6;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e4e8;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #c40000;
}

.search-box button {
    background: #c40000;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #a00000;
}

#searchResults {
    max-height: 400px;
    overflow-y: auto;
}

.search-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background 0.2s;
}

.search-item:hover {
    background: #f8f9fa;
}

.search-item-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.search-item-excerpt {
    font-size: 13px;
    color: #666;
}

.loading,
.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.mobile-menu-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    display: none;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: 0.2s;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    overflow-y: auto;
}

.nav-bar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eef2f6;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #c40000;
}

.close-btn {
    font-size: 28px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #f5f5f5;
}

.sidebar-socials {
    padding: 20px;
    border-bottom: 1px solid #eef2f6;
}

.sidebar-social-icons {
    display: flex;
    gap: 12px;
}

.sidebar-social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    color: #555;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-social-icons a:hover {
    background: #c40000;
    color: #fff;
    transform: translateY(-2px);
}

.search-mobile {
    padding: 20px;
    border-bottom: 1px solid #eef2f6;
}

.search-mobile .search-box {
    padding: 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e4e8;
}

.search-mobile input {
    border: none;
    padding: 12px 15px;
    background: transparent;
}

.search-mobile button {
    background: #c40000;
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-item {
    border-bottom: 1px solid #f0f2f5;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
}

.nav-link span:first-child {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.nav-link:hover {
    background: #f8f9fa;
    padding-left: 25px;
}

.nav-link.active {
    background: #fff5f5;
    color: #c40000;
    border-left: 3px solid #c40000;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1990;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 12px 16px;
    }

    .social-icons {
        display: none;
    }

    .search-container {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        max-height: 50px;
    }

    .nav-bar {
        width: 100%;
        max-width: 320px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    .search-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 50px;
    }

    .nav-bar {
        width: 100%;
        max-width: 100%;
    }
}

/* ================= SECTION GRID ================= */
.two-col-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.category-block {
    width: 100%;
}

/* ================= TITLE ================= */
.cat-title {
    font-size: 13px;
    font-weight: bold;
    border-top: 2px solid #000;
    padding-top: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* ================= TOP PART ================= */
.top-part {
    display: flex;
    gap: 15px;
}

/* ================= BIG POST ================= */
.big-post {
    position: relative;
    flex: 1;
    max-height: 240px;
    overflow: hidden;
}

.big-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* fallback */
    line-height: 1.4em;
    max-height: 2.8em;
}

/* ================= OVERLAY ================= */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.overlay a {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: block;
}

.overlay span {
    font-size: 11px;
    opacity: 0.85;
}

/* ================= SIDE LIST ================= */
.side-list {
    flex: 1;
}

.side-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.side-item a {
    font-size: 13px;
    color: #000;
    text-decoration: none;
    display: block;
}

.side-item a:hover {
    color: #e11d2a;
}

.side-item span {
    font-size: 11px;
    color: #777;
}

/* ================= BOTTOM CARDS ================= */
.bottom-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* TABLET */
@media (max-width: 768px) {
    .card img {
        height: 100px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .card img {
        height: 90px;
    }
}

.card p {
    font-size: 12px;
    margin-top: 6px;
}

.card p a {
    text-decoration: none;
    color: #000;
}

.card p a:hover {
    color: #e11d2a;
}

.card span {
    font-size: 11px;
    color: #777;
}

/* ================= HOVER EFFECT ================= */
.big-post img,
.card img {
    transition: transform 0.4s ease;
}

.big-post:hover img,
.card:hover img {
    transform: scale(1.05);
}

/* TABLET */
@media (max-width: 1024px) {
    .two-col-section {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .top-part {
        flex-direction: column;
    }

    .bottom-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .overlay a {
        font-size: 13px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .bottom-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-title {
        font-size: 12px;
    }

    .side-item a {
        font-size: 14px;
    }
}

#footer h3 {
    letter-spacing: 1px;
}

#footer ul li a {
    transition: all 0.25s ease;
}

#footer ul li a:hover {
    transform: translateX(3px);
}

#footer ul li a {
    position: relative;
}

#footer ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width .25s ease;
}

#footer ul li a:hover::after {
    width: 100%;
}

/* Custom hover states */
#footer .social-icon:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

#footer input[type="email"]:focus {
    border-color: #3f3f46;
    box-shadow: none;
}

/* Premium subtle divider glow */
#footer .border-custom-divider {
    border-color: rgba(255, 255, 255, .08);
}

/* Modern CSS Variables */
:root {
    --primary-color: #c40000;
    --primary-dark: #a00000;
    --secondary-color: #ef4444;
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --gray-100: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-image {
    position: relative;
    overflow: hidden;
    background: var(--gray-200);
    height: 240px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-meta-item svg {
    width: 1rem;
    height: 1rem;
}

.blog-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.blog-read-more:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Controls Section */
.controls-section {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-info {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.results-info strong {
    color: var(--gray-900);
    font-weight: 600;
}

.limit-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.limit-selector label {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.custom-select {
    position: relative;
    display: inline-block;
}

.custom-select select {
    appearance: none;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select select:hover {
    border-color: var(--primary-color);
}

.custom-select select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-select::after {
    content: '▼';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--gray-400);
    pointer-events: none;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: white;
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
}

.pagination-item:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.empty-state svg {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.blog-card:nth-child(1) {
    animation-delay: 0.05s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.15s;
}

.blog-card:nth-child(4) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(5) {
    animation-delay: 0.25s;
}

.blog-card:nth-child(6) {
    animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }

    .limit-selector {
        justify-content: space-between;
    }

    .blog-title {
        font-size: 1.125rem;
    }

    .pagination-item {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }
}

/* Loading Skeleton */
.skeleton-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skeleton-image {
    height: 240px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-title {
    height: 1.5rem;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.skeleton-text {
    height: 0.875rem;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.5rem;
    background: var(--gray-800);
    color: white;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 0.5rem;
}

[data-tooltip]:hover:before {
    opacity: 1;
}