/*
Theme Name: Antigravity News
Description: Modern, fast, and modular WordPress news theme.
Version: 1.1.0
Author: Antigravity
Text Domain: antigravity-news
*/

/* 1. Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #333);
    background-color: var(--bg-light, #f7f7f7);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    color: #c62828;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 3. Header Styles */
.site-header {
    background: var(--white, #fff);
    border: none;
}

.header-top-bar {
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    height: 40px;
    display: flex;
    align-items: center;
}

.header-main-area {
    background: #c62828;
    padding: 20px 0;
}

.header-nav {
    background: var(--white, #fff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 4. Footer Styles */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    border-bottom: 2px solid #c62828;
    display: inline-block;
    text-transform: uppercase;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #ccc;
    font-size: 14px;
}

.footer-menu a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* 5. Article & Content Styles */
.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #111;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #777;
    font-size: 13px;
    margin-bottom: 20px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #222;
}

.article-content p {
    margin-bottom: 25px;
}

/* 6. Sidebar & Widgets */
.widget {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    border: none !important; /* Fixed: Red line removed from base theme */
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Optimized Sticky Sidebar Elevator Logic */
.sticky-sidebar {
    height: 100%;
}
.sticky-sidebar-inner {
    position: -webkit-sticky;
    position: sticky;
    top: 20px; /* Adjust based on header height */
    align-self: start;
}
@media (max-width: 991px) {
    .sticky-sidebar-inner {
        position: static !important;
    }
}

/* 7. Home Modules */
.home-module {
    margin-bottom: 40px;
}

.module-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-title {
    background: #c62828;
    color: #fff;
    padding: 8px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

/* 8. Responsive Fixes */
@media (max-width: 991px) {
    .container {
        width: 100%;
        padding: 0 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-title {
        font-size: 28px;
    }

    /* Geniş Manşet (Wide Slider) - mobilde tam genişlik */
    .home-wide-slider-area {
        margin-left: -8px !important;
        margin-right: -8px !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    /* Ana Manşet (Main Slider) - mobilde tam genişlik */
    .main-modern-slider {
        margin-left: -8px !important;
        margin-right: -8px !important;
        margin-bottom: 20px !important;
    }

    /* Video Galeri - mobilde tam genişlik */
    .video-gallery-section {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }

    /* Home section gaps minimize */
    .home-top-section,
    .home-middle-section,
    .home-bottom-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 9. Gallery Styles (Açıklamalı Galeri) */
.gallery-page-wrapper {
    transition: background 0.3s ease;
}

.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.item-image-area img {
    transition: transform 0.5s ease;
}

.gallery-item:hover .item-image-area img {
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .gallery-page-wrapper .container>div {
        display: block !important;
    }

    .gallery-sidebar {
        margin-top: 40px;
    }

    .gallery-main-title {
        font-size: 28px !important;
    }
}

/* Dark Mode Support for Gallery */
body.dark-mode .gallery-page-wrapper {
    background-color: var(--bg-body) !important;
}

body.dark-mode .gallery-header,
body.dark-mode .gallery-item,
body.dark-mode .gallery-footer {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .item-header {
    background-color: var(--bg-accent) !important;
    border-bottom-color: var(--border-color) !important;
}

body.dark-mode .item-title,
body.dark-mode .gallery-main-title {
    color: var(--text-title) !important;
}

body.dark-mode .item-description {
    color: var(--text-main) !important;
}

body.dark-mode .gallery-count,
body.dark-mode .gallery-date,
body.dark-mode .gallery-breadcrumbs {
    color: var(--text-dim) !important;
}

body.dark-mode .gallery-excerpt {
    color: var(--text-main) !important;
}

body.dark-mode .gallery-ad-slot {
    background-color: var(--bg-accent) !important;
    border-top-color: var(--border-color) !important;
    color: var(--text-light) !important;
}

/* 10. Social Sharing Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.share-btn.fb {
    background: #3b5998;
}

.share-btn.x {
    background: #000000;
}

.share-btn.wa {
    background: #25d366;
}

.share-btn.gn {
    background: #f8fafc;
    color: #4b5563 !important;
    border: 1px solid #e2e8f0;
}

.share-btn.tg {
    background: #3b82f6;
}

.share-btn.wa-channel {
    background: #22c55e;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 11. Sidebar Popular Content (Matching Screenshot) */
.gallery-sidebar .widget {
    padding: 0;
    background: transparent;
    border: none;
}

.gallery-sidebar .widget-title {
    background: #e11d48;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
    margin-bottom: 15px;
}

.gallery-sidebar .widget-title::before {
    content: '\2605';
    /* Star icon */
    font-size: 18px;
}

/* 12. Homepage Custom Widget Overrides */
.widget_hostlys_konular1,
.widget_hostlys_konular2,
.widget_hostlys_konular3,
.widget_hostlys_konular4,
.widget_hostlys_konular5,
.widget_hostlys_konular6,
.widget_hostlys_video_gallery,
.widget_hostlys_category_block {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin-bottom: 40px !important;
}

.popular-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popular-news-item {
    background: #fff;
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.popular-news-thumb {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.popular-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-news-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-news-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    margin-bottom: 5px;
}

.popular-news-meta {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    gap: 10px;
}

/* Dark Mode Adjustments */
body.dark-mode .popular-news-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
}

body.dark-mode .popular-news-title {
    color: var(--text-title) !important;
}

body.dark-mode .share-btn.gn {
    background: #1e293b;
    border-color: #334155;
    color: #fff !important;
}

/* 12. Meta Bar Buttons (Like, A+, A-) */
.meta-btn {
    background: #fff;
    border: 1px solid #eee;
    padding: 4px 10px;
    border-radius: 4px;
    color: #666;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

body.dark-mode .meta-btn {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
}

body.dark-mode .meta-btn:hover {
    background: var(--bg-accent);
    color: var(--text-title);
}

/* 13. Firma Rehberi (Directory) Styles */
.firma-archive-wrapper {
    background-color: #fff;
    padding-bottom: 60px;
}

/* New Top Header Styles (Matching Screenshot) */
.firma-top-header {
    background: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.firma-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.firma-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.firma-breadcrumb {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 8px;
}

.firma-breadcrumb a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.firma-breadcrumb i {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #bbb;
}

/* Gray Search Area */
.firma-search-area {
    background: #f1f1f1;
    padding: 40px 0;
}

.firma-info-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.firma-info-box p {
    margin: 5px 0;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.firma-info-box p a {
    color: #c62828;
    text-decoration: none;
}

/* Horizontal Search Bar Wrap */
.firma-search-bar-wrap {
    background: #fff;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-col {
    display: flex;
}

.search-col input,
.search-col select {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    border-radius: 2px;
}

.search-col input:focus,
.search-col select:focus {
    border-color: #bbb;
}

.btn-search-firma {
    width: 100%;
    height: 50px;
    background: #0081cc;
    /* Blue from screenshot */
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 2px;
}

.btn-search-firma:hover {
    background: #0071b3;
}

/* Dark Mode Adjustments for New Design */
body.dark-mode .firma-top-header {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .firma-page-title {
    color: #fff;
}

body.dark-mode .firma-breadcrumb,
body.dark-mode .firma-breadcrumb a {
    color: #94a3b8;
}

body.dark-mode .firma-search-area {
    background: #0f172a;
}

body.dark-mode .firma-info-box {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e0;
}

body.dark-mode .firma-info-box p {
    color: #cbd5e0;
}

body.dark-mode .firma-search-bar-wrap {
    background: #1e293b;
}

body.dark-mode .search-col input,
body.dark-mode .search-col select {
    background: #334155;
    border-color: #475569;
    color: #fff;
}

/* Popular Firms Section Styles */
.populer-firmalar-wrap {
    padding: 40px 0;
    background: #f1f1f1;
}

.populer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd;
    margin-bottom: 25px;
    position: relative;
}

.populer-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: -2px;
}

.populer-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.pop-nav-btn {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #444;
    transition: 0.2s;
}

.pop-nav-btn:hover {
    background: #0081cc;
    color: #fff;
    border-color: #0081cc;
}

.populer-icon {
    background: #0081cc;
    color: #fff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 4px 0 0;
}

.populer-icon i {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.populer-title h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0081cc;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}

.populer-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0081cc;
}

.populer-slider-container {
    overflow: hidden;
    margin: 0 -10px;
}

.populer-grid-slider {
    display: flex;
    gap: 20px;
    padding: 10px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
}

.populer-grid-slider::-webkit-scrollbar {
    display: none;
}

.pop-firma-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
    background: #fff;
    text-decoration: none;
    transition: 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1200px) {
    .pop-firma-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 991px) {
    .pop-firma-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .pop-firma-card {
        flex: 0 0 85%;
    }
}

.pop-firma-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pop-thumb {
    position: relative;
    height: 180px;
}

.pop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pop-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pop-rating i {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #f59e0b;
}

.pop-name {
    padding: 15px;
    text-align: center;
}

.pop-name h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* Dark Mode for Popular */
body.dark-mode .populer-firmalar-wrap {
    background: #0f172a;
}

body.dark-mode .populer-header {
    border-color: #334155;
}

body.dark-mode .pop-firma-card {
    background: #1e293b;
}

body.dark-mode .pop-name h3 {
    color: #fff;
}

/* Headline & Sidebar Section */
.firma-headline-section {
    padding: 30px 0;
    background: #fff;
}

.headline-flex {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 991px) {
    .headline-flex {
        grid-template-columns: 1fr;
    }
}

/* Main Slider */
.firma-main-slider {
    position: relative;
    height: 500px;
    background: #eee;
    overflow: hidden;
    border-radius: 4px;
}

.slider-items-wrap {
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 0.5s ease;
    z-index: 1;
}

.slider-item.active {
    opacity: 1;
    z-index: 2;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 120px 40px 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.slider-cat {
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slider-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
    max-width: 85%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Numbered Nav */
.slider-nav-numbers {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 10;
    background: #fff;
}

.nav-num {
    flex: 1;
    height: 45px;
    border: none;
    background: #e5e7eb;
    color: #4b5563;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    border-right: 1px solid #d1d5db;
}

.nav-num:last-child {
    border-right: none;
}

.nav-num.active,
.nav-num:hover {
    background: var(--primary);
    color: #fff;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--primary);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

/* Cities Widget Style (Matching Screenshot) */
.cities-widget,
.cats-widget {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    margin-bottom: 30px !important;
    display: flex;
    flex-direction: column;
}

.cities-widget {
    height: 500px;
}

.firma-widget-header {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 20px 20px !important;
    position: relative !important;
    border: none !important;
}

.firma-widget-icon {
    background: #0081cc !important;
    color: #fff !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

.widget-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0081cc !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
}

.cities-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Custom Scrollbar for cities */
.cities-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.cities-list-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cities-list-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.city-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.city-item-link:hover {
    background: #f8fafc;
    color: #0081cc;
}

.city-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-info i {
    color: #94a3b8;
    font-size: 16px;
}

.city-info span {
    font-weight: 600;
    font-size: 14px;
}

.city-info small {
    opacity: 0.6;
    font-weight: 400;
    margin-left: 5px;
}

.city-item-link>i {
    font-size: 14px;
    color: #cbd5e0;
}

/* Dark Mode for Headline */
body.dark-mode .firma-headline-section {
    background: #0f172a;
}

body.dark-mode .cities-widget,
body.dark-mode .cats-widget {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

body.dark-mode .firma-widget-header {
    border: none !important;
}

body.dark-mode .city-item-link {
    color: #e2e8f0;
    border-color: #334155;
}

body.dark-mode .city-item-link:hover {
    background: #334155;
}

body.dark-mode .city-item-link > i {
    color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .slider-nav-numbers {
    background: #1e293b;
}

body.dark-mode .nav-num {
    background: #334155;
    color: #94a3b8;
    border-color: #1e293b;
}

/* Category Featured Box */
.firma-cat-box-section {
    padding: 30px 0;
    background: #f1f1f1;
}

.cat-box-header {
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.cat-box-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: -2px;
}

.cat-box-icon {
    background: #c62828;
    color: #fff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 4px 0 0;
}

.cat-box-title {
    font-size: 18px;
    font-weight: 800;
    color: #c62828;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}

.cat-box-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #c62828;
}

.cat-box-flex {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
}

@media (max-width: 991px) {
    .cat-box-flex {
        grid-template-columns: 1fr;
    }
}

.cat-box-left {
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.cat-large-item {
    height: 100%;
}

.cat-large-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-large-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(198, 40, 40, 0.8), transparent);
    color: #fff;
}

.cat-large-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
}

.cat-large-meta,
.cat-small-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.9;
}

.cat-large-meta i,
.cat-small-meta i {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.cat-large-dots {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.cat-large-dots .dot {
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}

.cat-large-dots .dot.active {
    background: #fff;
}

/* Right Small Items */
.cat-box-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cat-small-item {
    background: #fff;
    display: flex;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    transition: 0.2s;
    border-radius: 4px;
}

.cat-small-item:hover {
    background: #f8fafc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cat-small-thumb {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
}

.cat-small-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.cat-small-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-small-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    line-height: 1.4;
}

.cat-small-meta {
    color: #777;
}

/* Dark Mode */
body.dark-mode .firma-cat-box-section {
    background: #0f172a;
}

body.dark-mode .cat-box-header {
    border-color: #334155;
}

body.dark-mode .cat-small-item {
    background: #1e293b;
    color: #fff;
}

body.dark-mode .cat-small-item:hover {
    background: #334155;
}

body.dark-mode .cat-small-title {
    color: #fff;
}

body.dark-mode .cat-small-meta {
    color: #94a3b8;
}

/* High-Fidelity & Symmetrical Sidebar Headers */
.firma-widget-header {
    background: transparent !important;
    display: flex !important;
    align-items: center !important; 
    gap: 15px !important; 
    padding: 15px 20px !important;
    margin-bottom: 0 !important;
    position: relative !important;
    border: none !important; 
}

.firma-widget-icon {
    background: #0081cc !important;
    color: #fff !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

.widget-title {
    color: #0081cc !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    position: relative !important;
    line-height: 1.1 !important;
    border: none !important; 
}

.widget-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -12px !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background: #0081cc !important;
    border-radius: 10px !important;
    display: block !important;
}

/* NUCLEAR CLEANUP: Kill ALL red lines and other layers */
.widget-title::before, 
.firma-widget-header::before, 
.firma-widget-header::after,
.cat-box-header::before,
.cat-box-header::after,
.firma-widget::before,
.firma-widget::after {
    display: none !important;
    background: transparent !important;
    height: 0 !important;
    border: none !important;
}

.cities-list-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Dark Scrollbar */
body.dark-mode .cities-list-scroll::-webkit-scrollbar { width: 6px; }
body.dark-mode .cities-list-scroll::-webkit-scrollbar-track { background: #1e293b; }
body.dark-mode .cities-list-scroll::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }


/* Categories Widget (Adaptive Premium) */
/* Cats Widget Styles consolidated above */
.cats-widget {
    padding: 0;
}

body.dark-mode .cats-widget {
    background: #0f172a;
    border-color: #1e293b;
}

.cat-item {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
}

body.dark-mode .cat-item {
    background: #1e293b;
    border-color: #0f172a;
}

.cat-link-wrap {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.cat-main-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cat-main-link i { color: #64748b; font-size: 18px; }
.cat-main-link span { color: #1e293b; font-weight: 700; }

body.dark-mode .cat-main-link span { color: #fff; }
body.dark-mode .cat-main-link i { color: #94a3b8; } /* NEW: Make icons visible in dark mode */

.sub-toggle {
    background: #f1f5f9;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

/* Modular Segmentation Layout */
.firma-segment-row {
    padding: 20px 0;
}

.segment-flex {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.segment-main {
    min-width: 0;
    /* Fix for slider overflow */
}

@media (max-width: 1024px) {
    .segment-flex {
        grid-template-columns: 1fr;
    }
}

/* Row Specific Adjustments */
.firma-segment-row:nth-child(even) {
    background: transparent;
}

/* Custom Adaptive Featured Box (Pendik Style) */
.firma-cat-box-section.animated-cat-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
body.dark-mode .firma-cat-box-section.animated-cat-box {
    background: #111b27;
    border-color: #1e293b;
}

.animated-cat-box .cat-box-header {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 25px;
    padding-bottom: 20px;
}
body.dark-mode .animated-cat-box .cat-box-header {
    border-color: #2d3748;
}

.animated-cat-box .cat-box-title-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.animated-cat-box .cat-box-title {
    color: #e11d48;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    position: relative;
    line-height: 1.2;
}
body.dark-mode .animated-cat-box .cat-box-title {
    color: #ef4444;
}

.animated-cat-box .cat-box-title::after,
.animated-cat-box .cat-box-title::before {
    display: none !important;
}

.animated-cat-box .cat-box-flex {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: stretch;
}

.animated-cat-box .cat-box-left {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 6px;
}

.animated-cat-box .cat-large-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    background: #f1f5f9;
    visibility: hidden;
}
body.dark-mode .animated-cat-box .cat-large-item {
    background: #1e293b;
}

.animated-cat-box .cat-large-item.active {
    opacity: 1;
    z-index: 2;
    visibility: visible;
}

.animated-cat-box .cat-large-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animated-cat-box .cat-large-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 25px 35px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: #fff;
    z-index: 10;
}
body.dark-mode .animated-cat-box .cat-large-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.animated-cat-box .cat-large-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 15px;
}

.animated-cat-box .cat-large-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #cbd5e1;
}

.animated-cat-box .cat-large-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.animated-cat-box .cat-large-meta i {
    color: var(--primary);
    font-size: 16px;
    opacity: 0.9;
}

.animated-cat-box .cat-large-meta span:first-child::after {
    content: "";
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 15px;
}

.animated-cat-box .cat-large-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.animated-cat-box .dot {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
    display: block;
}

.animated-cat-box .dot.active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Right Small Items */
.animated-cat-box .cat-box-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.animated-cat-box .cat-small-item {
    background: transparent !important;
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    align-items: center;
    border-radius: 0;
}
body.dark-mode .animated-cat-box .cat-small-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.animated-cat-box .cat-small-item:last-child {
    border-bottom: none;
}

.animated-cat-box .cat-small-item:hover {
    padding-left: 10px;
}

.animated-cat-box .cat-small-thumb {
    width: 150px;
    height: 110px;
    flex-shrink: 0;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}
body.dark-mode .animated-cat-box .cat-small-thumb {
    background: #0f172a;
}

.animated-cat-box .cat-small-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.animated-cat-box .cat-small-title {
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}
body.dark-mode .animated-cat-box .cat-small-title {
    color: #fff;
}

.animated-cat-box .cat-small-meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 12px;
}
body.dark-mode .animated-cat-box .cat-small-meta {
    color: #94a3b8;
}

.animated-cat-box .cat-small-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.animated-cat-box .cat-small-meta i {
    font-size: 14px;
    color: #94a3b8;
}
body.dark-mode .animated-cat-box .cat-small-meta i {
    color: #64748b;
}

.animated-cat-box .cat-small-meta span:first-child::after {
    content: "";
    width: 1px;
    height: 10px;
    background: #e2e8f0;
    margin-left: 12px;
}
body.dark-mode .animated-cat-box .cat-small-meta span:first-child::after {
    background: rgba(255, 255, 255, 0.1);
}

/* SON EKLENENLER Section */
.firma-last-added-section {
    margin-top: 40px;
}

.cat-box-header.red-header {
    border-bottom: 2px solid #eee;
    position: relative;
    margin-bottom: 25px;
}

.red-header .cat-box-icon {
    background: #e11d48;
}

.red-header .cat-box-title {
    color: #e11d48;
}

.red-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #e11d48;
}

.last-added-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.last-added-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.last-added-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.card-image-wrap {
    display: block;
    height: 180px;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.last-added-card:hover .card-image-wrap img {
    transform: scale(1.1);
}

.card-content {
    padding: 15px;
}

.card-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    height: 65px;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dark Mode Overrides for SON EKLENENLER */
body.dark-mode .last-added-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .last-added-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .card-title a {
    color: #fff;
}

body.dark-mode .card-excerpt {
    color: #94a3b8;
}

body.dark-mode .card-meta {
    border-top-color: rgba(255, 255, 255, 0.05);
    color: #64748b;
}

body.dark-mode .cat-box-header.red-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* ÇOK BEĞENİLENLER Section */
.firma-liked-section {
    margin-top: 40px;
}

.cat-box-header.blue-header {
    border-bottom: 2px solid #eee;
    position: relative;
    margin-bottom: 25px;
}

.blue-header .cat-box-icon {
    background: #0081cc;
}

.blue-header .cat-box-title {
    color: #0081cc;
}

.blue-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #0081cc;
}

.liked-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.liked-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    transition: 0.3s;
}

.liked-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

.liked-thumb {
    width: 130px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.liked-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.liked-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.liked-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.liked-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.liked-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.liked-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dark Mode Overrides for ÇOK BEĞENİLENLER */
body.dark-mode .liked-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .liked-title a {
    color: #fff;
}

body.dark-mode .liked-meta {
    color: #64748b;
}

body.dark-mode .cat-box-header.blue-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .liked-grid {
        grid-template-columns: 1fr;
    }
}

/* Reference Style Cards (Search Results) */
.last-added-card.reference-style {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.last-added-card.reference-style .card-image-wrap {
    height: 200px;
    position: relative;
}

.card-rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.card-rating-badge i {
    color: #f59e0b;
    font-size: 14px;
}

.last-added-card.reference-style .card-content {
    padding: 20px 15px;
    text-align: center;
}

.last-added-card.reference-style .card-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.last-added-card.reference-style .card-meta {
    justify-content: center;
    border: none;
    padding-top: 0;
    color: #64748b;
}

body.dark-mode .last-added-card.reference-style {
    background: #1e293b;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

body.dark-mode .last-added-card.reference-style .card-meta {
    color: #94a3b8;
}

/* Search Results Page Header & Search Bar */
.firma-results-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.results-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.firma-results-title {
    margin: 0;
    font-size: 26px;
    color: #1e293b;
}

.firma-results-breadcrumb {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
}

.firma-results-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.firma-results-breadcrumb a:hover {
    color: #e11d48;
}

.firma-results-breadcrumb i {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    vertical-align: middle;
    margin: 0 4px;
}

.firma-results-search-bar {
    background: #f8fafc;
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0;
}

.results-search-container {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.results-form-wrap {
    margin: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.results-form-wrap input,
.results-form-wrap select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.results-form-wrap .btn-search-firma {
    border-radius: 4px;
}

/* Dark Mode Overrides for Results Header & Search Bar */
body.dark-mode .firma-results-header {
    background: #1e293b;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .firma-results-title {
    color: #f8fafc;
}

body.dark-mode .firma-results-breadcrumb {
    color: #94a3b8;
}

body.dark-mode .firma-results-search-bar {
    background: #0f172a;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .results-search-container {
    background: #1e293b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

body.dark-mode .results-form-wrap input,
body.dark-mode .results-form-wrap select {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

/* No Results Box Styling */
.no-results-box {
    padding: 60px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    color: #475569;
}

.no-results-box h3 {
    margin-bottom: 10px;
    color: #1e293b;
}

.no-results-box i {
    font-size: 48px;
    color: #cbd5e1;
    margin-top: -10px;
    margin-bottom: 25px;
    display: inline-block;
}

/* Dark Mode Overrides for No Results Box */
body.dark-mode .no-results-box {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

body.dark-mode .no-results-box h3 {
    color: #f8fafc;
}

body.dark-mode .no-results-box i {
    color: #475569;
}

@media (max-width: 992px) {
    .last-added-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .last-added-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Cats Widget (Blue - Visual Parity) */
.cats-widget {
    background: #eee;
    padding: 0;
}

.cat-blue.firma-widget-header {
    border: none;
    padding: 15px 20px;
}

.cat-blue .widget-title::after {
    display: none;
}

.cats-list-wrapper {
    background: #fff;
}

.cat-item {
    border-bottom: 1px solid #f1f5f9;
}

.cat-link-wrap {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-main-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.cat-main-link i {
    font-size: 20px;
    color: #333;
    width: 25px;
    text-align: center;
}

.cat-main-link span {
    color: #0081cc;
    font-weight: 700;
    font-size: 15px;
}

.sub-toggle {
    background: #f1f5f9;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.sub-menu {
    background: #fff;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px 10px 60px;
    color: #0081cc;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

/* Sidebar & Filters */
.firma-bottom-sidebar .firma-widget {
    margin-bottom: 30px;
}

.firma-sidebar {
    order: 2;
}

.firma-content {
    order: 1;
}
}

@media (max-width: 640px) {
    .firma-card-horizontal {
        flex-direction: column;
        gap: 15px;
    }

    .firma-logo-area {
        width: 100%;
        height: 150px;
    }

    .firma-title {
        font-size: 18px;
    }
}

/* Mobil Filtre Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    background: #c62828;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
}

@media (max-width: 991px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .firma-sidebar-container {
        display: none;
        /* Mobile toggle logic */
        margin-bottom: 30px;
    }
}

/* 14. Firma Rehberi Dark Mode Adjustments */
body.dark-mode .firma-archive-wrapper {
    background-color: var(--bg-body);
}

body.dark-mode .firma-sidebar-widget,
body.dark-mode .firma-sort-bar,
body.dark-mode .firma-card-horizontal {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

body.dark-mode .firma-sidebar-title {
    color: var(--text-title);
    border-bottom-color: var(--bg-accent);
}

body.dark-mode .firma-cat-list a {
    background: var(--bg-accent);
    color: var(--text-main);
}

body.dark-mode .firma-cat-list a:hover,
body.dark-mode .firma-cat-list li.active a {
    background: var(--primary);
    color: #fff;
}

body.dark-mode .firma-cat-count {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .sort-link {
    color: var(--text-dim);
}

body.dark-mode .sort-link.active,
body.dark-mode .sort-link:hover {
    color: var(--primary);
}

body.dark-mode .firma-title,
body.dark-mode .firma-title a {
    color: var(--text-title) !important;
}

body.dark-mode .firma-excerpt {
    color: var(--text-main);
}

body.dark-mode .firma-meta-item {
    color: var(--text-dim);
}

body.dark-mode .firma-meta-item i,
body.dark-mode .firma-meta-item .dashicons {
    color: var(--text-light);
}

body.dark-mode .firma-logo-area {
    background: var(--bg-accent);
}

body.dark-mode .btn-detay {
    background: var(--bg-accent);
    color: var(--text-title);
}

body.dark-mode .btn-detay:hover {
    background: var(--primary);
    color: #fff;
}

body.dark-mode .firma-pagination .page-numbers li span,
body.dark-mode .firma-pagination .page-numbers li a {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
}

body.dark-mode .firma-pagination .page-numbers li span.current {
    background: var(--primary);
    color: #fff;
}

body.dark-mode .firma-pagination .page-numbers li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

body.dark-mode .firma-excerpt {
    color: var(--text-main);
}

body.dark-mode .firma-meta-item {
    color: var(--text-dim);
}

body.dark-mode .firma-meta-item i,
body.dark-mode .firma-meta-item .dashicons {
    color: var(--text-light);
}

body.dark-mode .firma-logo-area {
    background: var(--bg-accent);
}

body.dark-mode .btn-detay {
    background: var(--bg-accent);
    color: var(--text-title);
}

body.dark-mode .btn-detay:hover {
    background: var(--primary);
    color: #fff;
}

body.dark-mode .firma-pagination .page-numbers li span,
body.dark-mode .firma-pagination .page-numbers li a {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
}

body.dark-mode .firma-pagination .page-numbers li span.current {
    background: var(--primary);
    color: #fff;
}

body.dark-mode .firma-pagination .page-numbers li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================
   CATEGORY PAGE STYLES
   ============================ */

/* Category Page Wrapper */
.category-page-wrapper {
    background: var(--bg-body) !important;
    font-family: 'Inter', sans-serif;
}

.category-page-wrapper .container {
    max-width: 1200px;
}

/* Category Header */
.category-page-wrapper header {
    border-bottom-color: var(--primary) !important;
}

.category-page-wrapper header h1 {
    color: var(--text-title) !important;
}

.category-page-wrapper .breadcrumbs {
    color: var(--text-light) !important;
}

.category-page-wrapper .breadcrumbs a {
    color: var(--text-light) !important;
    transition: color 0.2s;
}

.category-page-wrapper .breadcrumbs a:hover {
    color: var(--primary) !important;
}

/* Top 4 Horizontal Cards Grid */
.category-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.top-horizontal-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    transition: box-shadow 0.3s, transform 0.2s;
}

.top-horizontal-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.top-horizontal-card h3 {
    color: var(--text-title) !important;
}

.top-horizontal-card .hostlys-image-container {
    padding-top: 0 !important;
    height: 100% !important;
}

.top-horizontal-card .hostlys-image-container img {
    position: relative !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* Featured Slider */
.cat-featured-slider {
    min-height: 350px;
}

.cat-featured-slider .hostlys-image-container,
.cat-featured-slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.cat-featured-slider .cat-slide {
    min-height: 350px;
}

.cat-featured-slider .cat-slide img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.cat-dot.active {
    background: #fff !important;
}

/* Mini Cards (Side list) */
.cat-mini-card {
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.cat-mini-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-mini-card h3 {
    color: var(--text-title) !important;
}

.cat-mini-card:hover h3 {
    color: var(--primary) !important;
}

.cat-mini-card .cmc-img {
    border-radius: 2px;
    overflow: hidden;
}

.cat-mini-card .cmc-img .hostlys-image-container {
    padding-top: 0 !important;
    height: 100% !important;
}

.cat-mini-card .cmc-img .hostlys-image-container img {
    position: relative !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* Filters Bar */
.archive-filters-bar {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.archive-filters-bar .ag-filter-select {
    background: var(--bg-accent) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

/* Post Cards (Standard List) */
.cat-standard-card,
.cat-grid-card,
.cat-box-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.cat-standard-card:hover,
.cat-grid-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.cat-standard-card .card-title,
.cat-grid-card .card-title {
    color: var(--text-title) !important;
}

.cat-standard-card:hover .card-title,
.cat-grid-card:hover .card-title {
    color: var(--primary) !important;
}

/* Category Description */
.category-description {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

/* Sidebar Widgets */
.cat-sidebar-right .sidebar-mini-slider {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.cat-sidebar-right .sms-pagination {
    background: var(--bg-accent) !important;
}

.cat-sidebar-right .sms-num {
    background: var(--bg-accent) !important;
    color: var(--text-title) !important;
}

.cat-sidebar-right .sms-num.active {
    background: var(--primary) !important;
    color: #fff !important;
}

/* Load More Button */
.load-more-container button {
    transition: opacity 0.2s, transform 0.2s;
}

.load-more-container button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Empty State */
.empty-category-state {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.empty-category-state h2 {
    color: var(--text-title) !important;
}

.empty-category-state p {
    color: var(--text-dim) !important;
}

/* Dark Mode Overrides */
body.dark-mode .category-page-wrapper {
    background: var(--bg-body) !important;
}

body.dark-mode .top-horizontal-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .top-horizontal-card h3 {
    color: var(--text-title) !important;
}

body.dark-mode .cat-mini-card h3 {
    color: var(--text-title) !important;
}

body.dark-mode .cat-mini-card {
    border-bottom-color: var(--border-color);
}

body.dark-mode .archive-filters-bar {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

body.dark-mode .archive-filters-bar span {
    color: var(--text-light) !important;
}

body.dark-mode .archive-filters-bar i {
    color: var(--text-dim) !important;
}

body.dark-mode .cat-standard-card,
body.dark-mode .cat-grid-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .cat-standard-card .card-title,
body.dark-mode .cat-grid-card .card-title {
    color: var(--text-title) !important;
}

body.dark-mode .cat-standard-card p,
body.dark-mode .cat-grid-card p {
    color: var(--text-dim) !important;
}

body.dark-mode .category-description {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

body.dark-mode .cat-sidebar-right {
    color: var(--text-main);
}

body.dark-mode .cat-sidebar-right h4 {
    color: var(--text-title) !important;
}

body.dark-mode .cat-sidebar-right a {
    color: var(--text-main) !important;
}

body.dark-mode .cat-sidebar-right a:hover {
    color: var(--primary) !important;
}

body.dark-mode .empty-category-state {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

/* RESPONSIVE: Category Page */
@media (max-width: 1024px) {
    .category-top-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .category-page-wrapper .cat-content-left > div:first-child {
        grid-template-columns: 1fr !important;
    }
    
    .cat-featured-slider {
        min-height: 280px;
    }
    
    .cat-featured-slider .cat-slide {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .category-top-grid {
        grid-template-columns: 1fr !important;
    }
    
    .top-horizontal-card {
        height: auto !important;
    }
    
    .category-page-wrapper header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .cat-featured-slider {
        min-height: 220px;
    }
    
    .cat-featured-slider .cat-slide {
        min-height: 220px;
    }
    
    .cat-featured-slider h2 {
        font-size: 18px !important;
    }
    
    .cat-mini-card .cmc-img {
        flex: 0 0 100px !important;
    }
    
    .cat-standard-card {
        flex-direction: column !important;
    }
    
    .cat-standard-card .card-img-wrap {
        flex: none !important;
        width: 100% !important;
        height: 180px !important;
    }
    
    .archive-filters-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .category-page-wrapper header h1 {
        font-size: 22px !important;
    }
    
    .top-horizontal-card h3 {
        font-size: 13px !important;
    }
    
    .cat-featured-slider {
        min-height: 180px;
    }
    
    .cat-featured-slider .cat-slide {
        min-height: 180px;
    }
}
