/*
Theme Name: Mersin Hijyen Temizlik
Theme URI: https://mersinhijyentemizlik.com
Author: Mustafa DEVEBAKAN
Author URI: https://idealsunucu.com.tr
Description: Mersin Hijyen Temizlik için profesyonel WordPress teması.
Version: 7.0.0
License: GPL v2 or later
Text Domain: mersin-hijyen
*/

/* =============================================
   CSS VARIABLES
============================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --text: #1f2937;
    --text-light: #6b7280;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--dark); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* =============================================
   BUTTONS
============================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-block { display: flex; width: 100%; margin-bottom: 10px; }

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

.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--light); color: var(--primary-dark); }

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

.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #128C7E; color: var(--white); transform: translateY(-2px); }

/* =============================================
   HEADER
============================================= */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 1000; transition: var(--transition); }
.site-header.sticky { box-shadow: var(--shadow-lg); }
.site-header.header-hidden { transform: translateY(-100%); }

/* Top Bar */
.top-bar { background: rgba(0,0,0,0.2); padding: 8px 0; font-size: 14px; display: none; }
@media (min-width: 992px) { .top-bar { display: block; } }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.8); display: inline-flex; align-items: center; gap: 6px; }
.top-bar a:hover { color: var(--white); }
.top-bar svg { width: 16px; height: 16px; }

/* Header Main */
.header-main { padding: 15px 0; }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; }

/* Logo */
.site-branding a { display: block; }
.site-branding img { max-height: 50px; width: auto; }
.site-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.custom-logo-link img { max-height: 50px; width: auto; }

/* Navigation */
.main-navigation { display: none; }
@media (min-width: 992px) { .main-navigation { display: block; } }
.nav-menu { display: flex; gap: 30px; }
.nav-menu li { position: relative; }
.nav-menu > li > a { color: var(--white); font-weight: 500; padding: 10px 0; display: block; }
.nav-menu > li > a:hover { color: var(--secondary); }

/* Dropdown */
.nav-menu .sub-menu { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 220px; border-radius: var(--radius); box-shadow: var(--shadow-xl); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); padding: 10px 0; z-index: 100; }
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 10px 20px; color: var(--text); font-size: 14px; }
.sub-menu a:hover { background: var(--light); color: var(--primary); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-phone { display: none; color: var(--white); font-weight: 600; }
@media (min-width: 768px) { .header-phone { display: flex; align-items: center; gap: 8px; } }
.header-phone:hover { color: var(--secondary); }
.header-phone svg { width: 20px; height: 20px; }
.header-actions .btn { padding: 10px 20px; font-size: 14px; }
.header-actions .btn svg { width: 18px; height: 18px; }

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 10px; background: none; border: none; cursor: pointer; }
@media (min-width: 992px) { .mobile-menu-toggle { display: none; } }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* =============================================
   MOBILE MENU - VARSAYILAN GİZLİ!
============================================= */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background: var(--white);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}
.mobile-panel.active {
    right: 0;
}

.mobile-panel-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--light);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.mobile-panel-content {
    padding: 70px 20px 30px;
}

.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list li { border-bottom: 1px solid var(--border); }
.mobile-nav-list a { display: block; padding: 15px 0; color: var(--text); font-weight: 500; font-size: 16px; }
.mobile-nav-list a:hover { color: var(--primary); }
.mobile-nav-list .sub-menu { padding-left: 20px; display: none; }
.mobile-nav-list .sub-menu.active { display: block; }

.mobile-panel-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* =============================================
   HERO SECTION
============================================= */
.hero-section { background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%); padding: 60px 0 80px; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(59,130,246,0.3) 0%, transparent 50%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 50px; font-size: 14px; color: var(--white); margin-bottom: 20px; }
.hero-content h1 { font-size: 2.5rem; color: var(--white); margin-bottom: 20px; }
@media (min-width: 768px) { .hero-content h1 { font-size: 3rem; } }
@media (min-width: 992px) { .hero-content h1 { font-size: 3.5rem; } }
.text-gradient { background: linear-gradient(135deg, #60a5fa, #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; }
.hero-features span { color: rgba(255,255,255,0.85); font-size: 14px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.2); }
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: var(--white); }
.stat-text { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.hero-visual { display: none; position: relative; }
@media (min-width: 992px) { .hero-visual { display: block; } }
.hero-image-box { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 30px; text-align: center; overflow: hidden; }
.hero-image-box img { max-width: 100%; max-height: 400px; object-fit: contain; border-radius: var(--radius); }
.hero-placeholder { font-size: 4rem; color: var(--white); line-height: 1.3; padding: 30px 0; }
.floating-card { position: absolute; background: var(--white); padding: 10px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: float 3s ease-in-out infinite; }
.fc-1 { top: 10%; right: 0; }
.fc-2 { bottom: 30%; left: -10px; animation-delay: 0.5s; }
.fc-3 { bottom: 10%; right: 20%; animation-delay: 1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =============================================
   SECTIONS COMMON
============================================= */
section { padding: 60px 0; }
@media (min-width: 768px) { section { padding: 80px 0; } }

.section-header { margin-bottom: 40px; }
.section-header.text-center { text-align: center; }
.section-badge { display: inline-block; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.section-header h2 { font-size: 1.75rem; margin-bottom: 10px; }
@media (min-width: 768px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p { color: var(--text-light); max-width: 600px; }
.section-header.text-center p { margin: 0 auto; }
.section-header.light h2, .section-header.light p { color: var(--white); }
.section-cta { text-align: center; margin-top: 40px; }

/* =============================================
   SERVICES SECTION
============================================= */
.services-section { background: var(--light); }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 576px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}
.service-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.service-card h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; }
.service-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* =============================================
   WHY US SECTION
============================================= */
.why-section { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 992px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.why-features { display: grid; gap: 20px; margin-top: 30px; }
.why-item { display: flex; gap: 15px; }
.why-icon { font-size: 2rem; flex-shrink: 0; }
.why-item h4 { font-size: 1.1rem; margin-bottom: 5px; }
.why-item p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-box { background: var(--light); border-radius: var(--radius-lg); padding: 25px; text-align: center; border: 1px solid var(--border); }
.stat-box .stat-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.stat-box .stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; }
.stat-box .stat-label { font-size: 0.9rem; color: var(--text-light); }

/* =============================================
   DISTRICTS SECTION
============================================= */
.districts-section { background: linear-gradient(135deg, var(--dark), var(--primary-dark)); }
.districts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
@media (min-width: 768px) { .districts-grid { grid-template-columns: repeat(4, 1fr); } }
.district-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--white); border: 1px solid rgba(255,255,255,0.2); transition: var(--transition); display: block; text-decoration: none; }
.district-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); color: var(--white); }
.district-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.district-name { font-weight: 600; }

/* =============================================
   PROCESS SECTION
============================================= */
.process-section { background: var(--light); }
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (min-width: 992px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-item { text-align: center; }
.process-num { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 15px; }
.process-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* =============================================
   TESTIMONIALS
============================================= */
.testimonials-section { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 25px; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { background: var(--light); border-radius: var(--radius-lg); padding: 25px; border: 1px solid var(--border); }
.testimonial-stars { margin-bottom: 15px; color: var(--accent); }
.testimonial-card > p { font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 14px; }
.author-info strong { display: block; font-size: 0.95rem; }
.author-info span { font-size: 0.85rem; color: var(--text-light); }

/* =============================================
   BLOG SECTION
============================================= */
.blog-section { background: var(--light); }
.section-header-flex { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 25px; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.blog-image { display: block; height: 180px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); font-size: 3rem; }
.blog-content { padding: 20px; }
.blog-date { font-size: 0.85rem; color: var(--text-light); display: block; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card > .blog-content > p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; }
.blog-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* =============================================
   CTA SECTION
============================================= */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 60px 0; }
.cta-box { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-box h2 { font-size: 2rem; color: var(--white); margin-bottom: 15px; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 25px; font-size: 1.1rem; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }

/* =============================================
   FAQ SECTION
============================================= */
.faq-section { background: var(--white); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-question { width: 100%; background: var(--white); border: none; padding: 18px 20px; font-size: 1rem; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { background: var(--light); }
.faq-toggle { font-size: 1.25rem; color: var(--primary); transition: var(--transition); }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 20px 20px; color: var(--text-light); margin: 0; }

/* =============================================
   FOOTER
============================================= */
.site-footer { background: var(--dark); color: var(--white); }
.footer-main { padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; } }
.footer-col h4 { font-size: 1.1rem; color: var(--white); margin-bottom: 20px; }
.footer-col p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-logo h3 { font-size: 1.25rem; margin-bottom: 15px; }
.footer-logo img { max-height: 45px; margin-bottom: 15px; }
.footer-social { display: flex; gap: 10px; margin-top: 15px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-col ul a:hover { color: var(--white); padding-left: 5px; }
.contact-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.contact-icon { font-size: 1.1rem; }

.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-content { display: flex; flex-direction: column; gap: 10px; text-align: center; }
@media (min-width: 768px) { .footer-bottom-content { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-bottom a { color: var(--secondary); }

/* =============================================
   SCROLL TO TOP
============================================= */
.scroll-to-top { position: fixed; bottom: 90px; right: 20px; width: 45px; height: 45px; background: var(--primary); color: var(--white); border: none; border-radius: 50%; font-size: 1.25rem; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; box-shadow: var(--shadow-lg); }
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* =============================================
   WHATSAPP FLOAT
============================================= */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 55px; height: 55px; background: #25D366; color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-xl); z-index: 1000; transition: var(--transition); }
.whatsapp-float:hover { background: #128C7E; transform: scale(1.1); color: var(--white); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* =============================================
   PAGE HERO
============================================= */
.page-hero { background: linear-gradient(135deg, var(--dark), var(--primary-dark)); padding: 50px 0; color: var(--white); }
.breadcrumb { margin-bottom: 15px; font-size: 0.9rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }
.page-hero h1 { font-size: 2rem; color: var(--white); margin-bottom: 15px; }
@media (min-width: 768px) { .page-hero h1 { font-size: 2.5rem; } }
.page-hero .lead { font-size: 1.1rem; color: rgba(255,255,255,0.9); max-width: 700px; margin-bottom: 20px; }
.page-features { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.page-features span { background: rgba(255,255,255,0.15); padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; }
.hero-buttons-page { display: flex; flex-wrap: wrap; gap: 12px; }

/* =============================================
   ARCHIVE PAGES - GRİD ÇALIŞIYOR!
============================================= */
.page-content { padding: 50px 0; background: var(--light); }

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 992px) {
    .content-grid { grid-template-columns: 1fr 350px; }
}

.content-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}
@media (min-width: 768px) { .content-main { padding: 40px; } }

/* Archive Grid - HİZMETLER VE SEMTLER İÇİN */
.archive-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}
@media (min-width: 576px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 992px) {
    .archive-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

.archive-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
}
.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}
.archive-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    overflow: hidden;
    position: relative;
}
.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.archive-card:hover .archive-card-image img {
    transform: scale(1.05);
}
.archive-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-size: 3rem;
}
.archive-card-content {
    padding: 20px;
}
.archive-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}
.archive-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}
.archive-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 500; }
.pagination a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* =============================================
   SIDEBAR
============================================= */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}
.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}
.sidebar-card.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}
.sidebar-card.cta-card h3 {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.3);
}
.sidebar-card.cta-card p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--text); display: flex; align-items: center; gap: 8px; }
.sidebar-list a:hover { color: var(--primary); }

/* =============================================
   TABS & ACCORDION
============================================= */
/* Tabs */
.tabs-container { margin: 25px 0; }
.tabs-nav { display: flex; gap: 5px; border-bottom: 2px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-btn { padding: 12px 20px; background: none; border: none; font-size: 0.95rem; font-weight: 600; color: var(--text-light); cursor: pointer; white-space: nowrap; position: relative; transition: var(--transition); }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Accordion */
.accordion { margin: 25px 0; }
.acc-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.acc-header { width: 100%; background: var(--white); border: none; padding: 15px 20px; font-size: 1rem; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.acc-header:hover { background: var(--light); }
.acc-icon { transition: var(--transition); }
.acc-item.active .acc-icon { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.acc-item.active .acc-body { max-height: 500px; }
.acc-body-inner { padding: 0 20px 20px; color: var(--text-light); }

/* Info Box */
.info-box { background: var(--light); border-left: 4px solid var(--primary); padding: 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }
.info-box.success { border-left-color: var(--secondary); background: #ecfdf5; }
.info-box.warning { border-left-color: var(--accent); background: #fffbeb; }

/* Check List */
.check-list { list-style: none !important; padding-left: 0 !important; }
.check-list li { padding: 8px 0 8px 28px !important; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: bold; }

/* Content Main Styles */
.content-main h2 { font-size: 1.5rem; margin: 25px 0 15px; padding-top: 20px; border-top: 1px solid var(--border); }
.content-main h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content-main h3 { font-size: 1.25rem; margin: 20px 0 12px; }
.content-main p { line-height: 1.8; }
.content-main ul, .content-main ol { margin-bottom: 20px; padding-left: 25px; }
.content-main ul { list-style: disc; }
.content-main ol { list-style: decimal; }
.content-main li { margin-bottom: 8px; line-height: 1.7; }

/* =============================================
   BLOG SINGLE
============================================= */
.post-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; font-size: 0.9rem; color: var(--text-light); }
.post-meta span { display: flex; align-items: center; gap: 5px; }
.post-thumbnail { margin-bottom: 25px; border-radius: var(--radius-lg); overflow: hidden; }
.post-thumbnail img { width: 100%; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0; padding-top: 20px; border-top: 1px solid var(--border); }
.post-tags a { background: var(--light); padding: 6px 14px; border-radius: 50px; font-size: 0.85rem; color: var(--text-light); }
.post-tags a:hover { background: var(--primary); color: var(--white); }
.author-box { display: flex; gap: 20px; padding: 25px; background: var(--light); border-radius: var(--radius-lg); margin: 30px 0; }
.author-avatar-big { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { margin-bottom: 5px; }
.author-info p { margin: 0; font-size: 0.95rem; color: var(--text-light); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
.post-nav a { padding: 15px; background: var(--light); border-radius: var(--radius); color: var(--text); }
.post-nav a:hover { background: var(--primary); color: var(--white); }
.post-nav .prev { text-align: left; }
.post-nav .next { text-align: right; }

/* =============================================
   404 PAGE
============================================= */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-size: 6rem; color: var(--primary); margin-bottom: 20px; }
.error-404 h2 { font-size: 2rem; margin-bottom: 15px; }
.error-404 p { color: var(--text-light); margin-bottom: 30px; }

/* =============================================
   SEARCH FORM
============================================= */
.search-form { display: flex; max-width: 500px; }
.search-form input[type="search"] { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); font-size: 1rem; }
.search-form button { padding: 12px 20px; background: var(--primary); color: var(--white); border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.search-form button:hover { background: var(--primary-dark); }

/* =============================================
   UTILITIES
============================================= */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
