/*
Theme Name: RotaRehberi
Theme URI: https://rotarehberi.net
Author: RotaRehberi
Author URI: https://rotarehberi.net
Description: RotaRehberi.net özel gezi ve rota rehberi teması
Version: 1.0.0
License: GPL v2 or later
Text Domain: rotarehberi
*/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #f05e57;
    --primary-dark: #d04a44;
    --primary-light: #f47a74;
    --accent: #fce4e2;
    --accent-light: #fff0ee;
    --text: #1a202c;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --bg: #ffffff;
    --bg-gray: #f7f8fa;
    --border: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 999px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover { color: var(--primary-dark); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1em; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--bg-gray);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.section-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.section-all-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

.section-all-link::after {
    content: '››';
    font-size: 1.1rem;
}

/* ===== 5-COLUMN GRID ===== */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .grid-5 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Header Main */
.header-main {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
}

.site-title a {
    color: var(--text);
}

.site-title a:hover {
    color: var(--primary);
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu > li {
    position: relative;
}

.main-navigation .nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.main-navigation .nav-menu > li > a:hover,
.main-navigation .nav-menu > li.current-menu-item > a,
.main-navigation .nav-menu > li.current_page_item > a {
    color: var(--primary);
    background: var(--accent-light);
}

.main-navigation .nav-menu > li.has-submenu > a {
    padding-right: 28px;
}

.main-navigation .nav-menu > li.has-submenu > a::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.25s;
}

.main-navigation .nav-menu > li.has-submenu:hover > a::after {
    transform: translateY(-45%) rotate(225deg);
}

/* Dropdown (siyah zemin) */
.main-navigation .nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    background: #000;
    border-radius: var(--radius-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    list-style: none;
    z-index: 100;
}

.main-navigation .nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.main-navigation .nav-menu .sub-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.main-navigation .nav-menu .sub-menu li:last-child {
    border-bottom: none;
}

.main-navigation .nav-menu .sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.main-navigation .nav-menu .sub-menu li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.main-navigation .nav-menu .sub-menu .sub-menu {
    top: 0;
    left: auto;
    right: 100%;
    transform: translateX(-8px) translateY(0);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

.menu-toggle:hover {
    background: var(--bg-gray);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle span + span { margin-top: 5px; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active { opacity: 1; }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.open { right: 0; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
    font-size: 1rem;
    font-weight: 700;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-light);
}

.mobile-close:hover {
    background: var(--bg-gray);
    color: var(--text);
}

.mobile-nav-menu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border);
}

.mobile-nav-menu li:last-child { border-bottom: none; }

.mobile-nav-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
}

.mobile-nav-menu a:hover {
    color: var(--primary);
    background: var(--accent-light);
}

.mobile-nav-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-gray);
    transition: max-height 0.35s ease;
}

.mobile-nav-menu .submenu-open > .sub-menu {
    max-height: 600px;
}

.mobile-nav-menu .sub-menu a {
    padding-left: 36px;
    font-size: 0.85rem;
}

.mobile-nav-menu .has-submenu > a::after {
    content: '▾';
    float: right;
    transition: transform 0.25s;
}

.mobile-nav-menu .submenu-open > a::after {
    transform: rotate(180deg);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.mobile-menu.open .mobile-nav-menu li {
    animation: slideIn 0.3s ease both;
}

.mobile-menu.open .mobile-nav-menu li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.open .mobile-nav-menu li:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.open .mobile-nav-menu li:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.open .mobile-nav-menu li:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.open .mobile-nav-menu li:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.open .mobile-nav-menu li:nth-child(6) { animation-delay: 0.3s; }
.mobile-menu.open .mobile-nav-menu li:nth-child(7) { animation-delay: 0.35s; }
.mobile-menu.open .mobile-nav-menu li:nth-child(8) { animation-delay: 0.4s; }
.mobile-menu.open .mobile-nav-menu li:nth-child(9) { animation-delay: 0.45s; }
.mobile-menu.open .mobile-nav-menu li:nth-child(10) { animation-delay: 0.5s; }

/* ===== HERO ===== */
.hero {
    margin-top: 67px;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    color: #fff;
    margin-bottom: 12px;
    font-weight: 800;
}

.hero p {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    opacity: 0.8;
    max-width: 560px;
    margin-bottom: 28px;
}

.hero-search {
    width: 100%;
    max-width: 620px;
}

.hero-search form {
    display: flex;
    background: #fff;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    transition: box-shadow 0.25s;
}

.hero-search form:focus-within {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 16px 22px;
    font-size: 0.95rem;
    font-family: var(--font);
    color: var(--text);
    background: transparent;
    outline: none;
}

.hero-search input[type="search"]::placeholder {
    color: var(--text-muted);
}

.hero-search select {
    border: none;
    padding: 0 12px 0 16px;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--bg-gray);
    outline: none;
    cursor: pointer;
    min-width: 130px;
    border-left: 1px solid var(--border);
}

.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
    white-space: nowrap;
}

.hero-search button:hover {
    background: var(--primary-dark);
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 620px;
    margin-top: 50px;
    padding: 20px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
}

.hero-feature {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    max-width: 160px;
}

.hero-feature-icon {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 6px;
    line-height: 1;
}

.hero-feature h4 {
    font-size: clamp(0.72rem, 1.5vw, 0.82rem);
    color: #fff;
    font-weight: 600;
    margin: 0 0 3px;
}

.hero-feature p {
    font-size: clamp(0.65rem, 1.2vw, 0.72rem);
    opacity: 0.7;
    margin: 0;
    line-height: 1.4;
}

/* ===== CONTENT AREA ===== */
.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-only {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.card:hover .card-thumb img {
    transform: scale(1.05);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.card-body h3 a {
    color: var(--text);
}

.card-body h3 a:hover {
    color: var(--primary);
}

/* Category Cover Cards (square) */
.cover-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.cover-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.cover-card:hover img {
    transform: scale(1.08);
}

.cover-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.cover-card-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* ===== POST CARD (blog listing) ===== */
.post-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    margin-bottom: 30px;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card-thumb {
    aspect-ratio: 2/1;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.03);
}

.post-card-body {
    padding: 24px;
}

.post-card-body .post-meta {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.post-card-body .post-meta span {
    margin-right: 14px;
}

.post-card-body h2 {
    margin-bottom: 10px;
}

.post-card-body h2 a {
    color: var(--text);
    font-size: 1.2rem;
}

.post-card-body h2 a:hover {
    color: var(--primary);
}

.post-card-body .excerpt {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s;
}

.read-more:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ===== SINGLE / PAGE ===== */
.single-article,
.page-article {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}

.single-thumb {
    margin: -40px -40px 30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    max-height: 450px;
}

.single-thumb img {
    width: 100%;
    object-fit: cover;
}

.single-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.single-meta span { margin-right: 20px; }

.single-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-content h2,
.single-content h3 {
    margin-top: 1.5em;
}

.single-content img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}

.single-content ul,
.single-content ol {
    margin: 1em 0 1em 1.5em;
}

.single-content li {
    margin-bottom: 0.5em;
}

.single-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-light);
}

.single-footer a { color: var(--primary); }

/* ===== SINGLE LAYOUT (detail page) ===== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.single-sidebar {
    position: sticky;
    top: 90px;
}

.single-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.recent-post-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.2s;
}

.recent-post-card:last-child {
    border-bottom: none;
}

.recent-post-card:hover {
    opacity: 0.8;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.recent-post-card h4 a {
    color: var(--text);
    display: block;
}

.recent-post-card h4 a:hover {
    color: var(--primary);
}

/* ===== PAGINATION ===== */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .page-numbers:hover {
    background: var(--accent-light);
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 1rem;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--accent);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-widget ul li:last-child { border-bottom: none; }

.sidebar-widget ul li a {
    color: var(--text);
    font-size: 0.88rem;
}

.sidebar-widget ul li a:hover { color: var(--primary); }

/* ===== FOOTER ===== */
.site-footer {
    background: #1a202c;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-widget h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-about p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.footer-app-badges a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-app-badges a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    padding: 5px 0;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.footer-widget ul li a:hover {
    color: var(--primary);
}

.footer-contact p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}

.footer-bottom {
    background: #111827;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 18px 0;
    font-size: 0.82rem;
    margin-top: 40px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: var(--primary);
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 6px;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ===== ARCHIVE ===== */
.archive-header {
    margin-top: 67px;
    background: var(--bg-gray);
    padding: 40px 0;
    text-align: center;
}

.archive-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.archive-header .archive-description {
    color: var(--text-light);
    margin-top: 8px;
}

/* ===== SEARCH ===== */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    outline: none;
}

.search-form input[type="search"]:focus {
    border-color: var(--primary);
}

.search-form button {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--primary);
    line-height: 1;
}

.error-404 p {
    font-size: 1.2rem;
    margin: 20px 0 30px;
}

/* ===== COMMENTS ===== */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
}

.comments-area h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    margin: 0 0 30px;
}

.comment-list .children {
    list-style: none;
    margin-left: 40px;
}

.comment {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.comment:last-child { border-bottom: none; }

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.comment-meta .fn {
    font-weight: 600;
    color: var(--text);
}

.comment-meta a { color: var(--text-light); }

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.comment-reply-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

#respond { margin-top: 30px; }

#respond label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font);
    margin-bottom: 15px;
}

#respond textarea { min-height: 120px; }

#respond input[type="submit"] {
    padding: 10px 25px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

#respond input[type="submit"]:hover {
    background: var(--primary-dark);
}

.comment-nav {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-size: 0.9rem;
}

.no-comments {
    color: var(--text-light);
    font-style: italic;
    margin: 20px 0;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumbs a { color: var(--primary); }

.breadcrumbs .current { color: var(--text-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-inner {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .main-navigation {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu,
    .mobile-menu-overlay {
        display: block;
    }

    .hero-features {
        gap: 12px;
        padding: 20px;
    }

    .hero-search form {
        flex-wrap: wrap;
        border-radius: var(--radius-xl);
    }

    .hero-search input[type="search"] {
        width: 100%;
        text-align: center;
        padding: 16px 18px;
    }

    .hero-search select {
        flex: 1;
        min-width: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 14px 16px;
        text-align: center;
        font-size: 0.95rem;
    }

    .hero-search button {
        flex: 1;
        justify-content: center;
        padding: 14px 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 66px;
        padding: 44px 0 36px;
    }

    .hero p {
        margin-bottom: 22px;
    }

    .hero-features {
        gap: 8px;
        padding: 14px;
        margin-top: 28px;
    }

    .hero-feature {
        padding: 6px 2px;
    }

    .hero-feature h4 {
        font-size: 0.7rem;
    }

    .hero-feature p {
        font-size: 0.62rem;
    }

    /* Mobile Search */
    .hero-search form {
        flex-direction: column;
        gap: 10px;
        border-radius: 0;
        background: none;
        box-shadow: none;
        overflow: visible;
    }

    .hero-search input[type="search"] {
        width: 100%;
        text-align: left;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 14px center no-repeat;
        padding: 14px 16px 14px 44px;
    }

    .hero-search select {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") 14px center no-repeat;
        padding: 14px 16px 14px 44px;
        text-align: left;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        font-size: 0.95rem;
    }

    .hero-search button {
        width: 100%;
        border-radius: var(--radius-lg);
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .section {
        padding: 36px 0;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .section-all-link {
        font-size: 0.82rem;
    }

    .content-area {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 20px auto;
    }

    .content-only {
        margin: 20px auto;
    }

    .grid-5 {
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 0.88rem;
    }

    .post-card-body {
        padding: 16px;
    }

    .post-card-body h2 a {
        font-size: 1.05rem;
    }

    .post-card-body .excerpt {
        font-size: 0.85rem;
    }

    .archive-header {
        padding: 24px 0;
    }

    .archive-header h1 {
        font-size: 1.3rem;
    }

    .single-article,
    .page-article {
        padding: 20px;
    }

    .single-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-sidebar {
        position: static;
    }

    .single-thumb {
        margin: -20px -20px 20px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        overflow: hidden;
        max-height: 250px;
    }

    .single-thumb img {
        width: 100%;
        object-fit: cover;
    }

    .single-meta {
        font-size: 0.8rem;
    }

    .breadcrumbs {
        font-size: 0.78rem;
        padding: 6px 0;
        margin-bottom: 14px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer {
        padding: 36px 0 0;
        margin-top: 36px;
    }

    .footer-bottom {
        margin-top: 28px;
        padding: 14px 0;
        font-size: 0.75rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .comments-area {
        margin-top: 24px;
        padding-top: 20px;
    }

    .comment-list .children {
        margin-left: 16px;
    }

    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.15rem; }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .search-form {
        flex-direction: column;
        gap: 8px;
    }

    .search-form input[type="search"] {
        padding: 12px 14px;
    }

    .search-form button {
        padding: 12px 20px;
    }

    .error-404 {
        padding: 40px 16px;
    }

    .error-404 h1 {
        font-size: 4rem;
    }

    .error-404 p {
        font-size: 1rem;
    }

    .pagination {
        margin: 24px 0;
    }

    .pagination .page-numbers {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 40px;
    }
}

@media (max-width: 576px) {
    .header-main-inner {
        min-height: 56px;
        padding: 0 12px;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 14px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .mobile-menu {
        width: 85vw;
        max-width: 320px;
        right: -85vw;
    }

    .mobile-menu.open {
        right: 0;
    }

    .mobile-menu a {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .mobile-menu .sub-menu a {
        padding-left: 30px;
        font-size: 0.88rem;
    }

    .mobile-close {
        padding: 10px 14px;
        font-size: 1.1rem;
    }

    .hero {
        padding: 36px 0 30px;
    }

    .hero-features {
        gap: 6px;
        padding: 10px;
        margin-top: 20px;
    }

    .hero-feature {
        padding: 4px 2px;
    }

    .hero-feature-icon {
        margin-bottom: 4px;
    }

    .hero-search button {
        font-size: 0.85rem;
        padding: 12px 16px;
    }

    .grid-5 {
        gap: 10px;
    }

    .card-body {
        padding: 10px;
    }

    .card-body h3 {
        font-size: 0.82rem;
    }

    .section {
        padding: 28px 0;
    }

    .section-header {
        margin-bottom: 16px;
    }

    .section-header h2 {
        font-size: 1.05rem;
    }

    .site-footer {
        padding: 28px 0 0;
        margin-top: 28px;
    }

    .footer-inner {
        gap: 22px;
    }

    .footer-widget h4 {
        font-size: 0.92rem;
        margin-bottom: 12px;
    }

    .footer-app-badges a {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .footer-bottom {
        margin-top: 22px;
        padding: 12px 0;
    }

    .read-more {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .pagination {
        margin: 20px 0;
    }

    .pagination .page-numbers {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 36px;
        margin: 2px;
    }

    .archive-header {
        padding: 18px 0;
    }

    .archive-header h1 {
        font-size: 1.15rem;
    }

    .single-article,
    .page-article {
        padding: 16px;
    }

    .single-meta span {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .single-content {
        font-size: 0.95rem;
    }

    .recent-post-thumb {
        width: 56px;
        height: 56px;
    }

    .recent-post-card h4 {
        font-size: 0.82rem;
    }

    .cover-card-overlay {
        padding: 14px;
    }

    .cover-card-overlay h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .hero-features {
        gap: 4px;
        padding: 8px;
    }

    .hero-feature {
        padding: 4px 2px;
    }

    .hero-feature h4 {
        font-size: 0.65rem;
    }

    .grid-5 {
        gap: 8px;
    }

    .card-body {
        padding: 8px;
    }

    .card-body h3 {
        font-size: 0.78rem;
    }

    .card-thumb {
        aspect-ratio: 3/2;
    }

    .section {
        padding: 22px 0;
    }

    .container {
        padding: 0 10px;
    }

    .post-card-body {
        padding: 12px;
    }

    .post-card-body h2 a {
        font-size: 0.95rem;
    }

    .post-card-thumb {
        aspect-ratio: 3/1;
    }

    .mobile-menu {
        width: 90vw;
        right: -90vw;
    }
}
