/* DOMESTIKA MINIMALIST RESET ARCHITECTURE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #2b2b2b;
    -webkit-font-smoothing: antialiased;
}

/* GENİŞ KAP (DOMESTIKA STANDARDI) */
.header-container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* HEADER TASARIMI */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #efefef;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo a {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo a span {
    color: #ff4d4d; /* Domestika kırmızısına yakın dinamik ton */
}

/* ARAMA ÇUBUĞU (SEARCH BAR) */
.search-bar {
    background: #f0f2f5;
    border-radius: 24px;
    padding: 8px 16px;
    width: 40%;
    display: flex;
    align-items: center;
}

.search-bar i {
    color: #8a8a8a;
    margin-right: 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #333;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.badge-plus {
    background-color: #ffc107;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

/* İKİNCİL GEZİNTİ BARIDIR (SUB-NAV) */
.sub-nav {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #efefef;
    padding: 12px 0;
    position: relative;
    z-index: 1001; /* Above hero banner but below sticky header */
}

.flex-sub {
    justify-content: flex-start;
    gap: 25px;
    overflow: visible; /* Dropdown görünürlüğü için visible olmalıdır */
}

.sub-link {
    text-decoration: none;
    color: #1a365d; /* Lacivert */
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.25s ease, color 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sub-link:hover,
.nav-item:hover .sub-link,
.sub-link.active {
    color: #ff4d4d;
    transform: translateY(-3px);
}

.sub-link i.nav-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-item:hover .sub-link i.nav-arrow {
    transform: rotate(180deg);
}

/* AÇILIR MENÜ (DROPDOWN) TASARIMI */
.nav-item {
    position: relative;
    display: inline-block;
}

/* Fare geçiş köprüsü (Gap bridge) */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px); /* sub-nav padding ve sınırına tam oturması için */
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: #ffffff;
    min-width: 230px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eef0f2;
    border-radius: 10px;
    z-index: 1000;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

/* Küçük Ok Göstergesi */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px;
    border-style: solid;
    border-color: #ffffff transparent;
    display: block;
    width: 0;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px;
    border-style: solid;
    border-color: #eef0f2 transparent;
    display: block;
    width: 0;
    z-index: -1;
}

.nav-item:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Disable hover dropdown specifically for the first child (Tüm Kategoriler) */
.sub-nav .nav-item:first-child:hover .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Disable the arrow hover rotation animation for the first child */
.sub-nav .nav-item:first-child:hover .sub-link i.nav-arrow {
    transform: none !important;
}

.dropdown-item {
    color: #4a4a4a;
    padding: 8px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #8a8a8a;
    transition: color 0.2s;
}

.dropdown-item:hover {
    background-color: #fff5f5;
    color: #ff4d4d;
    padding-left: 24px;
}

.dropdown-item:hover i {
    color: #ff4d4d;
}

/* Menü İçi Başlıklar ve Çizgiler */
.dropdown-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9b9b9b;
    padding: 6px 20px 4px 20px;
    letter-spacing: 0.8px;
}

.dropdown-divider {
    height: 1px;
    background-color: #f1f3f5;
    margin: 6px 0;
}

/* Mobil Uyum */
@media (max-width: 1200px) {
    .flex-sub {
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE/Edge */
    }
    .flex-sub::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .dropdown-menu {
        position: fixed;
        left: 5%;
        right: 5%;
        width: 90%;
        top: auto;
        transform: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .nav-item:hover .dropdown-menu {
        transform: none;
    }
}

/* BANNER ALANI */
.main-layout {
    width: 92%;
    max-width: 1300px;
    margin: 30px auto;
}

.domestika-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('gelecek_fon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 60px 50px;
    color: #1a1a1a;
    margin-bottom: 40px;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.hero-content {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 10px;
    max-width: 650px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    color: #0f172a; /* Okunabilir koyu ton */
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-content p {
    color: #334155; /* Okunabilir koyu gri */
    font-size: 16px;
    line-height: 1.5;
    max-width: 600px;
}

/* SATIR VE GRID SİSTEMLERİ */
.category-row {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-header h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.category-header h2 i {
    margin-right: 8px;
}

.icon-edu { color: #2ecc71; }
.icon-science { color: #9b59b6; }
.icon-law { color: #2c3e50; }

.see-all {
    color: #ff4d4d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* ÜÇLÜ KART YERLEŞİMİ (DOMESTIKA STANDARDI) */
.domestika-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

/* KART MİMARİSİ */
.dm-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.dm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: #d1d1d1;
}

.card-thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 Sinematik Oran */
    background: #eaeaea;
}

.card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-edu { background-color: #2ecc71; }
.badge-art { background-color: #e67e22; }
.badge-science { background-color: #9b59b6; }
.badge-health { background-color: #e74c3c; }
.badge-bilim { background-color: #9b59b6; }
.badge-teknoloji { background-color: #34495e; }
.badge-saglik { background-color: #e74c3c; }
.badge-kisisel-gelisim { background-color: #f39c12; }
.badge-kultur-sanat-gezi { background-color: #d35400; }
.badge-spor-hobi { background-color: #16a085; }
.badge-haberler { background-color: #2980b9; }
.badge-blog { background-color: #7f8c8d; }
.badge-hukuk { background-color: #2c3e50; }

.card-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-author {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #ffc107;
    margin-bottom: 12px;
}

.card-rating span {
    color: #8a8a8a;
    margin-left: 4px;
}

.card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f2f5;
    color: #4f5660;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

/* FOOTER AREA */
footer {
    background: #ffffff;
    border-top: 1px solid #efefef;
    padding: 24px 0;
    margin-top: 60px;
    font-size: 14px;
    color: #666;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer a {
    color: #ff4d4d;
    text-decoration: none;
    font-weight: 600;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .search-bar { display: none; }
    .domestika-grid { grid-template-columns: 1fr; }
    .footer-flex { flex-direction: column; gap: 10px; text-align: center; }
}/* DETAY SAYFASI EK STİLLERİ */
.detail-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.article-container {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 30px;
}

.article-breadcrumbs {
    font-size: 13px;
    color: #8a8a8a;
    margin-bottom: 15px;
}

.article-breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.article-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.article-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #efefef;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 14px;
    font-weight: 700;
}

.author-info p {
    font-size: 12px;
    color: #777;
}

.btn-share {
    background: #f0f2f5;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #555;
    margin-left: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-share:hover {
    background: #e4e6eb;
    color: #ff4d4d;
}

.article-main-img {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.article-main-img img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px 0;
}

.article-body p {
    font-size: 16px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-body blockquote {
    border-left: 4px solid #ff4d4d;
    background: #fff5f5;
    padding: 15px 20px;
    font-style: italic;
    font-size: 16px;
    color: #555;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

/* YAN PANEL KUTULARI */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px;
}

.sidebar-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #efefef;
    padding-bottom: 8px;
}

.author-box {
    text-align: center;
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.author-box h4 {
    font-size: 16px;
    font-weight: 700;
}

.author-box .role {
    font-size: 12px;
    color: #ff4d4d;
    font-weight: 600;
    margin-bottom: 10px;
}

.author-box .bio {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 15px;
}

.related-list li a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.related-list li a img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-list li a:hover span {
    color: #ff4d4d;
}

@media (max-width: 992px) {
    .detail-layout { grid-template-columns: 1fr; }
}

/* ==========================================
   SIDE DRAWER MENU (TÜM KATEGORİLER YAN PANEL)
   ========================================== */

/* Arka plan karartması */
.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Ana Yan Panel */
.side-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-panel.open {
    transform: translateX(320px);
}

/* Yan Panel Üst Başlık */
.side-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid #efefef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-panel-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.side-panel-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.side-panel-close:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

/* Panel İçerik Alanı */
.side-panel-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.side-menu-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9b9b9b;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.side-menu-list {
    list-style: none;
}

.side-menu-item {
    position: relative;
    margin-bottom: 6px;
}

.side-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.side-menu-link:hover,
.side-menu-item.active .side-menu-link {
    background: #e3f2fd;
    color: #1976d2;
    border-left-color: #1976d2;
    padding-left: 20px;
}

.category-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon-title i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: #777;
    transition: color 0.2s;
}

.side-menu-link:hover i,
.side-menu-item.active .side-menu-link i {
    color: #1976d2;
}

.arrow-icon {
    font-size: 11px;
    color: #aaa;
    transition: transform 0.2s;
}

.side-menu-item.active .arrow-icon {
    transform: translateX(3px);
}

/* Masaüstünde mobil akordeon menüyü gizle */
.side-submenu-mobile {
    display: none;
}

/* ==========================================
   SUB-MENU FLYOUT (MASAÜSTÜ SAĞ PANEL)
   ========================================== */
.side-submenus-container {
    position: absolute;
    top: 0;
    left: 320px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #efefef;
    box-shadow: 5px 0 20px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    z-index: 2490;
    animation: submenuFadeIn 0.25s ease;
}

@keyframes submenuFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.side-submenu {
    display: none;
}

.side-submenu.open {
    display: block;
}

.submenu-header {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fff5f5;
}

.submenu-list {
    list-style: none;
}

.submenu-list li {
    margin-bottom: 4px;
}

.submenu-link {
    display: block;
    padding: 10px 12px;
    color: #555;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.submenu-link:hover {
    background: #e3f2fd;
    color: #1976d2;
    padding-left: 16px;
}

/* ==========================================
   RESPONSIVE / MOBİL AKORDEON UYUMU
   ========================================== */
@media (max-width: 768px) {
    /* Mobilde flyout yerine akordeon olarak yan panelin içine gömüyoruz */
    .side-submenus-container {
        display: none !important; /* Flyout'ı mobilde tamamen kapat */
    }
    
    .side-submenu-mobile {
        display: block; /* Mobilde görünür yap */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
        background: #fbfbfb;
        border-radius: 8px;
        margin: 4px 16px 8px 16px;
        list-style: none;
    }
    
    .side-submenu-mobile.open {
        max-height: 500px; /* tahmini bir limit */
        padding: 8px 0;
        border: 1px solid #f0f0f0;
    }

    .side-submenu-mobile li a {
        display: block;
        padding: 8px 20px;
        color: #666;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
    }

    .side-submenu-mobile li a:hover {
        color: #1976d2;
        background: #e3f2fd;
    }

    .side-menu-item.active-mobile .arrow-icon {
        transform: rotate(90deg);
    }
}

/* ==========================================
   YENİLENMİŞ GELİŞMİŞ FOOTER & SOCIALS
   ========================================== */
.main-footer {
    background: #1e222b;
    color: #cbd5e1;
    padding: 50px 0 0 0;
    margin-top: 65px;
    border-top: 4px solid #1976d2;
}

.footer-flex-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-box h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    padding-bottom: 0;
}

.footer-box p {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.footer-mail {
    color: #60a5fa;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-mail:hover {
    color: #93c5fd;
}

/* Dil Açılır Menüsü */
.language-dropdown-wrapper {
    position: relative;
    width: 200px;
}

.language-select {
    width: 100%;
    padding: 10px 14px;
    background: #2d3343;
    border: 1px solid #475569;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.language-select:hover {
    background: #373f54;
    border-color: #60a5fa;
}

/* Sosyal Medya İkonları */
.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2d3343;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: #1976d2;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #151821;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #2d3343;
    font-size: 13px;
    color: #94a3b8;
}

.footer-bottom strong {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-flex-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .language-dropdown-wrapper {
        margin: 0 auto;
    }
    .social-icons {
        justify-content: center;
    }
}

/* ==========================================
   BAŞA DÖN (SCROLL TO TOP) BUTONU
   ========================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #1976d2;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s, background-color 0.2s;
}

.scroll-to-top-btn:hover {
    background: #0d47a1;
    transform: translateY(-3px);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* CATEGORY ROW RESPONSIVE GRID & HIDING RULES */
.category-row:has(.see-all) .domestika-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .category-row:has(.see-all) .domestika-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-row:has(.see-all) .domestika-grid .dm-card:nth-child(3),
    .category-row:has(.see-all) .domestika-grid .dm-card:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .category-row:has(.see-all) .domestika-grid {
        grid-template-columns: 1fr;
    }
    .category-row:has(.see-all) .domestika-grid .dm-card:nth-child(2) {
        display: none;
    }
}

