/* ==========================================================================
   ExamPortal Theme — main.css
   Complete stylesheet for examportal-theme
   Version: 1.0.11
   ========================================================================== */

/* ─────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ───────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --primary:        #c0392b;
    --primary-dark:   #922b21;
    --primary-light:  #f5e8e7;
    --secondary:      #1565c0;
    --secondary-dark: #0d47a1;
    --accent:         #ffd600;
    --border:         #e8e0d8;
    --surface:        #ffffff;
    --border:         #e8e0d8;
    --text:           #1a1208;
    --gray:           #6b5f52;
    --gray-light:     #b8ad9e;
    --shadow-sm:      0 2px 8px  rgba(26,18,8,.08);
    --shadow-md:      0 4px 20px rgba(26,18,8,.12);
    --shadow-lg:      0 8px 40px rgba(26,18,8,.16);
    --radius:         10px;

    /* Neutral Colors */
    --white:     #ffffff;
    --light:     #f5f5f5;
    --light-2:   #eeeeee;
    --gray-light: #e0e0e0;
    --gray:      #757575;
    --gray-dark: #424242;
    --dark:      #1a1208;
    --dark-2:    #212121;

    /* Functional */
    --success:  #2e7d32;
    --warning:  #f9a825;
    --danger:   #c62828;
    --info:     #0277bd;

    /* Typography */
    --font-body:    'Roboto', sans-serif;
    --font-heading: 'Roboto', sans-serif;
    --text-base:    1rem;
    --text-sm:      0.875rem;
    --text-xs:      0.75rem;
    --text-lg:      1.125rem;
    --text-xl:      1.25rem;
    --text-2xl:     1.5rem;
    --text-3xl:     1.875rem;
    --text-4xl:     2.25rem;

    /* Spacing */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Layout */
    --container-max: 1200px;
    --header-height: 64px;
    --sidebar-width: 320px;
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.10);
    --shadow-md:  0 4px 12px rgba(0,0,0,.12);
    --shadow-lg:  0 8px 24px rgba(0,0,0,.16);
    --shadow-xl:  0 16px 40px rgba(0,0,0,.20);

    /* Transitions */
    --transition: 0.25s ease;
    --transition-fast: 0.15s ease;
}

/* ─────────────────────────────────────────────
   2. CSS RESET & BASE
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

/* ─────────────────────────────────────────────
   3. LAYOUT UTILITIES
   ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    align-items: start;
}

.blog-post-page {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    align-items: start;
}

/* ─────────────────────────────────────────────
   4. BUTTONS
   ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition-fast);
    border: 2px solid transparent;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1.4;
    vertical-align: middle;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none !important;
}

.btn:active {
    transform: translateY(0);
}

/* Force text color on ALL btn states — overrides WP default a{color} */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:focus {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff !important;
}

.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited,
.btn-secondary:focus {
    background: var(--secondary);
    color: #ffffff !important;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #ffffff !important;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.7);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
    color: var(--white);
}

.btn-small {
    padding: 6px 14px;
    font-size: var(--text-xs);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

/* ─────────────────────────────────────────────
   5. HEADER
   ───────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    height: var(--header-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-text span {
    color: var(--primary-light);
}

/* Primary Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-left: auto;
}

.nav-link {
    color: rgba(255,255,255,.85);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,.12);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: var(--space-md);
    flex-shrink: 0;
}

/* Desktop Search */
.desktop-search .search-form {
    display: flex;
    align-items: center;
}

.desktop-search input[type="search"] {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    width: 200px;
    transition: background var(--transition), border-color var(--transition), width var(--transition);
    outline: none;
}

.desktop-search input[type="search"]::placeholder {
    color: rgba(255,255,255,.5);
}

.desktop-search input[type="search"]:focus {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.4);
    width: 260px;
}

.desktop-search button[type="submit"] {
    display: none;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    transition: background var(--transition-fast);
    margin-left: auto;
}

.menu-toggle:hover {
    background: rgba(255,255,255,.12);
}

/* Mobile Panel */
.mobile-panel {
    display: none;
    background: var(--dark-2);
    padding: var(--space-md);
    border-top: 1px solid rgba(255,255,255,.08);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.mobile-nav .nav-link {
    display: block;
    padding: 10px 14px;
    font-size: var(--text-base);
}

.mobile-search input[type="search"] {
    width: 100%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    outline: none;
}

.mobile-search input[type="search"]::placeholder {
    color: rgba(255,255,255,.5);
}

.mobile-search button[type="submit"] {
    display: none;
}

/* ─────────────────────────────────────────────
   6. BREADCRUMB
   ───────────────────────────────────────────── */
.breadcrumb {
    background: var(--light);
    border-bottom: 1px solid var(--gray-light);
    padding: 10px 0;
}

.breadcrumb-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--gray);
}

.breadcrumb-links a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb-links a:hover {
    text-decoration: underline;
}

.breadcrumb-links .separator {
    color: var(--gray-light);
}

.breadcrumb-links .current {
    color: var(--gray-dark);
    font-weight: 500;
}

/* ─────────────────────────────────────────────
   7. HERO SECTION
   ───────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #3a1f0a 60%, var(--primary-dark) 100%);
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,81,0,.18) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.hero-text p {
    font-size: var(--text-lg);
    color: rgba(255,255,255,.8);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    max-height: 360px;
}

/* ─────────────────────────────────────────────
   8. SECTION HEADERS
   ───────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--dark);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 28px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.view-all-container {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ─────────────────────────────────────────────
   9. NOTES SECTION
   ───────────────────────────────────────────── */
.notes-section {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Note Card */
.note-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.note-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.note-card-header {
    padding: var(--space-md) var(--space-md) var(--space-sm);
    background: linear-gradient(135deg, var(--light) 0%, rgba(230,81,0,.05) 100%);
    border-bottom: 1px solid var(--gray-light);
}

.note-card-type {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(230,81,0,.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.note-card-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card-exam {
    font-size: var(--text-xs);
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-card-body {
    padding: var(--space-md);
    flex: 1;
}

.note-card-body p {
    font-size: var(--text-sm);
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card-footer {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    border-top: 1px solid var(--gray-light);
}

.meta-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--gray);
}

/* ─────────────────────────────────────────────
   10. FEATURES SECTION
   ───────────────────────────────────────────── */
.features {
    padding: var(--space-2xl) 0;
    background: var(--light);
}

.features .section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.features .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 auto var(--space-md);
}

.feature-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--gray);
    line-height: 1.6;
}

/* ─────────────────────────────────────────────
   11. TRENDING NOTES SECTION
   ───────────────────────────────────────────── */
.trending-notes {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.trending-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.trending-rank {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--text-sm);
}

.trending-info h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.trending-info p {
    font-size: var(--text-xs);
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-downloads {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--primary);
    font-weight: 600;
}

/* ─────────────────────────────────────────────
   12. CATEGORIES SECTION
   ───────────────────────────────────────────── */
.categories {
    padding: var(--space-2xl) 0;
    background: var(--light);
}

.categories.home-page {
    background: var(--light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(230,81,0,.1) 0%, rgba(21,101,192,.1) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-size: 1.4rem;
    color: var(--primary);
    transition: background var(--transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.category-card h3 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.category-count {
    font-size: var(--text-xs);
    color: var(--gray);
}

/* Category Hero (archive page) */
.category-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2d1200 40%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    margin: 28px 0;
    padding: 48px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Decorative glow */
.category-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(230,81,0,.25) 0%, transparent 70%);
    pointer-events: none;
}

.category-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(21,101,192,.2) 0%, transparent 70%);
    pointer-events: none;
}

.category-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.category-hero-content .category-icon {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.25);
    color: var(--white);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-xl);
}

.category-hero-content h1 {
    font-size: var(--text-3xl);
    font-weight: 900;
    margin-bottom: var(--space-sm);
    color: #ffffff;
}

.category-description {
    color: rgba(255,255,255,.75);
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,.15);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-xs);
    color: rgba(255,255,255,.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────
   13. CTA SECTION
   ───────────────────────────────────────────── */
/* ─────────────────────────────────────────────
   13b. ONLINE TEST SERIES SECTION
   ───────────────────────────────────────────── */
.test-series-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, #f9f4f0 0%, var(--white) 100%);
}

.test-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: var(--space-lg);
}

.test-series-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
}

.test-series-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.test-series-card--featured {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(21,101,192,.15);
}

/* Badge */
.test-series-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    width: fit-content;
}
.badge-orange { background: #fff3e0; color: #e65100; }
.badge-blue   { background: #e3f2fd; color: #0d47a1; }
.badge-green  { background: #e8f5e9; color: #1b5e20; }

/* Icon */
.test-series-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
}

.test-series-card--featured .test-series-icon {
    background: #e3f2fd;
    color: var(--secondary);
}

.test-series-name {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.test-series-desc {
    font-size: var(--text-sm);
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Features list */
.test-series-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.test-series-features li {
    font-size: var(--text-sm);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-series-features li i {
    color: #2e7d32;
    font-size: .8rem;
    flex-shrink: 0;
}

/* Full-width button */
.btn-block {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: auto;
}

@media (max-width: 600px) {
    .test-series-grid {
        grid-template-columns: 1fr;
    }
}

.cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.cta h2 {
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta p {
    font-size: var(--text-lg);
    color: rgba(255,255,255,.8);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ─────────────────────────────────────────────
   14. FILTERS SECTION (Archive)
   ───────────────────────────────────────────── */
.filters-section {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filters-title {
    font-weight: 700;
    color: var(--dark);
    font-size: var(--text-sm);
}

.filter-controls {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-controls form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label {
    font-size: var(--text-xs);
    color: var(--gray);
    white-space: nowrap;
}

.filter-select {
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: var(--text-xs);
    color: var(--dark);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--primary);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gray-light);
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(230,81,0,.08);
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.filter-tag .remove {
    font-size: 1rem;
    line-height: 1;
    color: var(--primary);
    font-weight: 700;
}

/* ─────────────────────────────────────────────
   15. POSTS GRID (Archive, Search, Related)
   ───────────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Post Card */
.post-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.post-card-image-wrap {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    background: var(--light);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform var(--transition);
}

.post-card:hover .post-card-image {
    transform: scale(1.04);
}

.post-card-content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-sm);
}

.post-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.post-card-category {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: rgba(230,81,0,.08);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.post-card-date {
    font-size: var(--text-xs);
    color: var(--gray);
    white-space: nowrap;
}

.post-card-title {
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--dark);
    text-decoration: none;
}

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

.post-card-excerpt {
    font-size: var(--text-sm);
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gray-light);
}

.post-card-stats {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.post-card-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: var(--text-xs);
    color: var(--gray);
}

.post-card-stat i {
    font-size: 0.7rem;
    color: var(--primary-light);
}

/* ─────────────────────────────────────────────
   16. PAGINATION
   ───────────────────────────────────────────── */
.pagination {
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    gap: var(--space-xs);
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--gray-light);
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
}

/* ─────────────────────────────────────────────
   17. SINGLE POST
   ───────────────────────────────────────────── */
.blog-post-content {
    min-width: 0;
}

/* Post Header */
.post-header {
    padding: var(--space-xl) 0 var(--space-lg);
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: var(--space-xl);
}

.post-category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(230,81,0,.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.post-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: var(--space-md);
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--gray);
}

.meta-item a {
    color: var(--gray);
    text-decoration: none;
}

.meta-item a:hover {
    color: var(--primary);
}

.meta-item i {
    color: var(--primary-light);
    font-size: 0.85rem;
}

.post-excerpt {
    font-size: var(--text-lg);
    color: var(--gray-dark);
    line-height: 1.7;
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-left: 4px solid var(--primary);
    background: var(--light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Post Body */
.post-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.post-content {
    font-size: var(--text-base);
    line-height: 1.85;
    color: var(--dark-2);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 700;
    color: var(--dark);
    margin: var(--space-xl) 0 var(--space-md);
    line-height: 1.3;
}

.post-content h2 { font-size: var(--text-2xl); border-bottom: 2px solid var(--gray-light); padding-bottom: 8px; }
.post-content h3 { font-size: var(--text-xl); }
.post-content h4 { font-size: var(--text-lg); }

.post-content p {
    margin-bottom: var(--space-md);
}

.post-content ul,
.post-content ol {
    padding-left: 22px;
    margin-bottom: var(--space-md);
    list-style: revert;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: var(--space-md) var(--space-lg);
    background: var(--light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--gray-dark);
    margin: var(--space-lg) 0;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

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

.post-content img {
    border-radius: var(--radius-md);
    max-width: 100%;
    height: auto;
    margin: var(--space-md) 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: var(--text-sm);
    overflow-x: auto;
    display: block;
}

.post-content table th,
.post-content table td {
    border: 1px solid var(--gray-light);
    padding: 10px 14px;
    text-align: left;
}

.post-content table th {
    background: var(--light);
    font-weight: 700;
    color: var(--dark);
}

.post-content table tr:nth-child(even) td {
    background: rgba(245,245,245,.5);
}

.post-content code {
    font-family: 'Courier New', monospace;
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.post-content pre {
    background: var(--dark);
    color: #f8f8f2;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.post-content pre code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-size: var(--text-sm);
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, rgba(21,101,192,.06) 0%, rgba(230,81,0,.06) 100%);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.download-section h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.download-section p {
    color: var(--gray);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
}

.download-count {
    font-size: var(--text-xs);
    opacity: .8;
}

/* Post Footer */
.post-footer {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-light);
    margin-top: var(--space-xl);
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.post-tags i {
    color: var(--gray);
    font-size: var(--text-sm);
}

.post-tag {
    display: inline-block;
    background: var(--light);
    color: var(--gray-dark);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-light);
    transition: background var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}

.post-tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Page Links */
.page-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray);
}

.page-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--white);
}

.page-links a span {
    background: var(--light);
    color: var(--dark);
}

/* Related Posts */
.related-posts-section {
    padding: var(--space-2xl) 0;
    background: var(--light);
    margin-top: var(--space-xl);
}

.related-posts-section .section-title {
    margin-bottom: var(--space-xl);
}

/* Comments wrapper */
.comments-wrapper {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--gray-light);
}

/* ─────────────────────────────────────────────
   18. SIDEBAR
   ───────────────────────────────────────────── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sidebar-header {
    padding: var(--space-md) var(--space-md) 0;
    border-bottom: 2px solid var(--light);
}

.sidebar-header h3,
.widget-title {
    font-size: var(--text-base);
    font-weight: 800;
    color: var(--dark);
    padding-bottom: 10px;
    position: relative;
}

.sidebar-header h3::after,
.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.sidebar-content {
    padding: var(--space-md);
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.category-item a {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: var(--gray-dark);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.category-item a:hover,
.category-item.active a {
    background: rgba(230,81,0,.08);
    color: var(--primary);
}

.category-item a i {
    width: 16px;
    color: var(--primary);
    font-size: var(--text-sm);
}

.category-item .category-count {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--gray);
    background: var(--light);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-right: 6px;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.popular-post-item a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 0;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.popular-post-image {
    width: 72px;
    height: 56px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--light);
    display: block;
    border: 1px solid var(--gray-light);
}

.popular-post-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-date {
    font-size: var(--text-xs);
    color: var(--gray);
    margin-top: 3px;
}

/* Tags */
.tg-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tg-tag {
    display: inline-block;
    background: var(--light);
    color: var(--gray-dark);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-light);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.tg-tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    outline: none;
    transition: border-color var(--transition-fast);
    background: var(--white);
    color: var(--dark);
}

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

/* ─────────────────────────────────────────────
   19. SITE FOOTER
   ───────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.75);
    margin-top: var(--space-3xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding: var(--space-3xl) var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--white);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.footer-brand .site-logo {
    margin-bottom: var(--space-md);
}

.footer-brand .logo-text {
    font-size: 1.1rem;
}

.footer-tagline {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    color: rgba(255,255,255,.6);
}

.footer-socials {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.1);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background var(--transition-fast);
    text-decoration: none;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a,
.footer-links a {
    color: rgba(255,255,255,.65);
    font-size: var(--text-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.footer-links li a:hover,
.footer-links a:hover {
    color: var(--white);
}

.footer-links li a i,
.footer-links a i {
    font-size: 0.65rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.footer-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.footer-app-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: var(--space-md) var(--space-xl);
}

.footer-bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: rgba(255,255,255,.45);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: rgba(255,255,255,.8);
}

/* ─────────────────────────────────────────────
   20. 404 PAGE
   ───────────────────────────────────────────── */
.error-section {
    padding: var(--space-3xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-container {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.error-icon {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: var(--space-md);
    line-height: 1;
}

.error-code {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.error-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.error-message {
    color: var(--gray);
    font-size: var(--text-base);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.action-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.helpful-links {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-light);
}

.helpful-links h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.links-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--space-md) var(--space-sm);
    background: var(--light);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-dark);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.links-grid a:hover {
    background: var(--primary);
    color: var(--white);
}

.links-grid a i {
    font-size: 1.2rem;
}

/* Search form on 404 */
.error-container .search-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.error-container .search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    outline: none;
    transition: border-color var(--transition-fast);
}

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

.error-container .search-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    transition: background var(--transition-fast);
}

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

/* ─────────────────────────────────────────────
   21. SEARCH FORM (generic)
   ───────────────────────────────────────────── */
.search-form {
    display: flex;
    gap: var(--space-sm);
}

.search-field {
    flex: 1;
}

.search-form input[type="search"] {
    padding: 10px 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    width: 100%;
    outline: none;
    transition: border-color var(--transition-fast);
}

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

.search-form button[type="submit"] {
    padding: 10px 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: background var(--transition-fast);
}

.search-form button[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ─────────────────────────────────────────────
   22. COMMENTS
   ───────────────────────────────────────────── */
.comments-area .comments-title,
.comments-area .comment-reply-title {
    font-size: var(--text-xl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    color: var(--dark);
}

.comment-list {
    list-style: none;
}

.comment-list .comment,
.comment-list .pingback {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
}

.comment-body {
    font-size: var(--text-sm);
    line-height: 1.7;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 700;
    font-size: var(--text-base);
}

.comment-metadata {
    font-size: var(--text-xs);
    color: var(--gray);
    margin-bottom: var(--space-sm);
}

.comment-metadata a {
    color: var(--gray);
}

.reply a {
    font-size: var(--text-xs);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.comment-form .comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-fast);
    margin-bottom: var(--space-md);
    color: var(--dark);
    background: var(--white);
}

.comment-form textarea:focus,
.comment-form input:focus {
    border-color: var(--primary);
}

.comment-form .submit {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.comment-form .submit:hover {
    background: var(--primary-dark);
}

/* ─────────────────────────────────────────────
   23. FAQ ACCORDION
   ───────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
}

.faq-item {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow var(--transition-fast);
}

.faq-item.open {
    box-shadow: var(--shadow-md);
    border-color: rgba(230,81,0,.3);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    border: none;
    text-align: left;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.faq-q:hover,
.faq-item.open .faq-q {
    background: rgba(230,81,0,.05);
    color: var(--primary);
}

.faq-arrow {
    font-size: var(--text-sm);
    color: var(--primary);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding: 0 var(--space-lg) var(--space-md);
    font-size: var(--text-sm);
    color: var(--gray-dark);
    line-height: 1.75;
    border-top: 1px solid var(--gray-light);
}

.faq-item.open .faq-a {
    display: block;
}

/* ─────────────────────────────────────────────
   24. CONTENT SECTION EXTRAS (Blog content)
   ───────────────────────────────────────────── */

/* Alert Boxes */
.alert-box {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.alert-box.info    { background: #e3f2fd; border-left: 4px solid #1565c0; color: #0d47a1; }
.alert-box.success { background: #e8f5e9; border-left: 4px solid #2e7d32; color: #1b5e20; }
.alert-box.warning { background: #fff8e1; border-left: 4px solid #f9a825; color: #e65100; }
.alert-box.danger  { background: #ffebee; border-left: 4px solid #c62828; color: #b71c1c; }

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--space-xl) 0;
}

.cta-box h3 {
    color: var(--white);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.cta-box p {
    color: rgba(255,255,255,.8);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.info-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: block;
}

.info-card h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: 4px;
}

.info-card p {
    font-size: var(--text-xs);
    color: var(--gray);
}

/* Responsive Table */
.wp-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ─────────────────────────────────────────────
   25. WORDPRESS DEFAULT CLASSES
   ───────────────────────────────────────────── */
.alignleft  { float: left;  margin: 0 var(--space-lg) var(--space-md) 0; }
.alignright { float: right; margin: 0 0 var(--space-md) var(--space-lg); }
.aligncenter { display: block; margin: var(--space-md) auto; }

.wp-caption {
    max-width: 100%;
    margin-bottom: var(--space-md);
}

.wp-caption-text {
    font-size: var(--text-xs);
    color: var(--gray);
    text-align: center;
    margin-top: 4px;
    font-style: italic;
}

.sticky {}
.bypostauthor {}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.gallery-item img {
    border-radius: var(--radius-sm);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ─────────────────────────────────────────────
   26. RESPONSIVE — TABLET (≤ 1024px)
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .content-wrapper,
    .blog-post-page {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .desktop-search {
        display: none;
    }
}

/* ─────────────────────────────────────────────
   27. RESPONSIVE — MOBILE (≤ 768px)
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    /* Header */
    .site-nav {
        display: none;
    }

    .header-right {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: var(--space-2xl) 0;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: var(--text-base);
    }

    /* Grids */
    .notes-grid,
    .posts-grid,
    .features-grid,
    .trending-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Sidebar */
    .sidebar {
        grid-template-columns: 1fr;
    }

    /* Section title */
    .section-title {
        font-size: var(--text-xl);
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        padding: var(--space-xl) var(--space-md);
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* 404 */
    .error-code {
        font-size: 5rem;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Category Stats */
    .category-stats {
        gap: var(--space-lg);
    }

    /* Post */
    .post-meta {
        gap: var(--space-sm);
    }

    /* Responsive table in post content */
    .post-content table {
        font-size: var(--text-xs);
    }

    /* Download section */
    .download-section {
        padding: var(--space-md);
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }

    /* Filters */
    .filters-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-controls {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    /* Hero section */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        justify-content: center;
    }
}

/* ─────────────────────────────────────────────
   28. RESPONSIVE — SMALL MOBILE (≤ 480px)
   ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .error-container {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }

    .pagination .page-numbers {
        width: 34px;
        height: 34px;
        font-size: var(--text-xs);
    }

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

/* ─────────────────────────────────────────────
   29. PRINT STYLES
   ───────────────────────────────────────────── */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .breadcrumb,
    .pagination,
    .related-posts-section,
    .download-section .btn-group,
    .comments-wrapper {
        display: none !important;
    }

    .blog-post-page,
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .post-content {
        font-size: 12pt;
    }

    a { color: inherit; text-decoration: none; }
}

/* ─────────────────────────────────────────────
   30. BUTTON TEXT COLOR FIXES (WordPress override)
   ───────────────────────────────────────────── */

/* WP sets a{color:var(--primary)} which bleeds into buttons — force white */
a.btn,
a.btn:link,
a.btn:visited,
a.btn:focus,
a.btn:active {
    text-decoration: none !important;
}

a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:focus,
a.btn-primary:active,
.download-section a.btn-primary,
.download-section a.view-pdf-btn,
.post-content a.btn-primary,
.note-card-footer a.btn-primary,
.post-card-meta a.btn-primary {
    color: #ffffff !important;
    text-decoration: none !important;
}

a.btn-secondary,
a.btn-secondary:link,
a.btn-secondary:visited,
a.btn-secondary:focus,
a.btn-secondary:active,
.download-section a.btn-secondary,
.download-section a.download-pdf-btn,
.hero a.btn-secondary,
.cta a.btn-secondary {
    color: #ffffff !important;
    text-decoration: none !important;
}

a.btn-outline,
a.btn-outline:link,
a.btn-outline:visited {
    color: var(--primary) !important;
    text-decoration: none !important;
}

a.btn-outline:hover {
    color: #ffffff !important;
}

a.btn-hero-outline,
a.btn-hero-outline:link,
a.btn-hero-outline:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Download count text inside button */
.download-section .download-count,
.btn .download-count {
    color: inherit;
    opacity: 0.85;
    font-size: var(--text-xs);
}

/* Download section heading color */
.download-section h3 {
    color: var(--dark);
}

/* ================================================================
   27. WORDPRESS WIDGETS
   ================================================================ */

/* ── Base Widget ── */
.widget {
    margin-bottom: 0;
}

/* Widget title rendered via before_title/after_title in functions.php
   already uses .sidebar-header > h3, so we add extra WP-specific targets */
.widget-title,
.widgettitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

/* Close the sidebar-content div opened by after_title */
.widget > .sidebar-content {
    padding: 14px 18px;
}

/* ── Widget: Search ── */
.widget_search .search-form,
.widget_search form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    transition: border-color .2s;
}

.widget_search .search-form:focus-within,
.widget_search form:focus-within {
    border-color: var(--primary);
}

.widget_search input[type="search"],
.widget_search input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 12px;
    font-size: .875rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
    min-width: 0;
}

.widget_search input[type="submit"],
.widget_search button[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 14px;
    font-size: .8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}

.widget_search input[type="submit"]:hover,
.widget_search button[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ── Widget: Recent Posts ── */
.widget_recent_entries ul,
.widget_recent_comments ul {
    list-style: none;
}

.widget_recent_entries ul li,
.widget_recent_comments ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
    line-height: 1.5;
}

.widget_recent_entries ul li:last-child,
.widget_recent_comments ul li:last-child {
    border-bottom: none;
}

.widget_recent_entries ul li a,
.widget_recent_comments ul li a {
    color: var(--text);
    font-weight: 500;
    transition: color .2s;
    display: block;
    margin-bottom: 3px;
}

.widget_recent_entries ul li a:hover,
.widget_recent_comments ul li a:hover {
    color: var(--primary);
}

.widget_recent_entries ul li .post-date {
    font-size: .78rem;
    color: var(--gray-light);
}

/* ── Widget: Categories ── */
.widget_categories ul,
.widget_archive ul,
.widget_pages ul,
.widget_nav_menu ul,
.widget_meta ul {
    list-style: none;
}

.widget_categories ul li,
.widget_archive ul li,
.widget_pages ul li,
.widget_nav_menu ul li,
.widget_meta ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .88rem;
}

.widget_categories ul li:last-child,
.widget_archive ul li:last-child,
.widget_pages ul li:last-child,
.widget_nav_menu ul li:last-child,
.widget_meta ul li:last-child {
    border-bottom: none;
}

.widget_categories ul li a,
.widget_archive ul li a,
.widget_pages ul li a,
.widget_nav_menu ul li a,
.widget_meta ul li a {
    color: var(--text);
    font-weight: 500;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.widget_categories ul li a::before,
.widget_archive ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .7rem;
    color: var(--primary);
    flex-shrink: 0;
}

.widget_categories ul li a:hover,
.widget_archive ul li a:hover,
.widget_pages ul li a:hover,
.widget_nav_menu ul li a:hover,
.widget_meta ul li a:hover {
    color: var(--primary);
}

.widget_categories ul li .post-count,
.widget_categories select {
    font-size: .75rem;
    color: var(--gray-light);
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

/* Nested sub-lists */
.widget_categories ul ul,
.widget_nav_menu ul ul,
.widget_pages ul ul {
    padding-left: 16px;
    margin-top: 4px;
}

/* ── Widget: Tag Cloud ── */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--gray);
    font-size: .78rem !important;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 20px;
    transition: all .2s;
    line-height: 1.4;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* ── Widget: Calendar ── */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.widget_calendar th,
.widget_calendar td {
    text-align: center;
    padding: 6px 4px;
    border: 1px solid var(--border);
}

.widget_calendar th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.widget_calendar caption {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 8px;
    color: var(--text);
}

.widget_calendar td a {
    color: var(--primary);
    font-weight: 700;
}

.widget_calendar td a:hover { text-decoration: underline; }

.widget_calendar #today {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    border-color: var(--primary);
}

.widget_calendar tfoot td {
    padding: 8px 4px;
    background: var(--bg);
}

.widget_calendar tfoot a {
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
}

/* ── Widget: Text / HTML ── */
.widget_text .textwidget,
.widget_custom_html .custom-html-widget {
    font-size: .9rem;
    color: var(--gray);
    line-height: 1.7;
}

.widget_text .textwidget p,
.widget_custom_html .custom-html-widget p {
    margin-bottom: 10px;
}

.widget_text .textwidget p:last-child,
.widget_custom_html .custom-html-widget p:last-child {
    margin-bottom: 0;
}

.widget_text .textwidget a,
.widget_custom_html .custom-html-widget a {
    color: var(--primary);
    font-weight: 500;
}

.widget_text .textwidget a:hover,
.widget_custom_html .custom-html-widget a:hover {
    text-decoration: underline;
}

.widget_text .textwidget img,
.widget_custom_html .custom-html-widget img {
    max-width: 100%;
    border-radius: var(--radius);
}

/* ── Widget: RSS ── */
.widget_rss ul { list-style: none; }

.widget_rss ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.widget_rss .rssSummary {
    font-size: .82rem;
    color: var(--gray);
    margin: 5px 0;
    line-height: 1.55;
}

.widget_rss .rss-date,
.widget_rss cite {
    font-size: .75rem;
    color: var(--gray-light);
    display: block;
}

.widget_rss ul li a {
    font-weight: 600;
    font-size: .875rem;
    color: var(--text);
    transition: color .2s;
}

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

.widget_rss a.rsswidget {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget_rss .rss-widget-icon { color: var(--accent); }

/* ── Widget: Media Image ── */
.widget_media_image img {
    max-width: 100%;
    border-radius: var(--radius);
    display: block;
}

/* ── Widget: Nav Menu ── */
.widget_nav_menu .menu { list-style: none; }

/* ── Widget: Select (archive dropdown) ── */
.widget_archive select,
.widget_categories select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: .875rem;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    margin-top: 8px;
}

.widget_archive select:focus,
.widget_categories select:focus {
    border-color: var(--primary);
}

/* ── Footer Widgets ── */
.site-footer .widget {
    color: #c8bfb3;
}

.site-footer .widget-title,
.site-footer .widgettitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

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

.site-footer .widget ul li {
    padding: 7px 0;
    border-color: rgba(255,255,255,.07);
    font-size: .875rem;
}

.site-footer .widget ul li a {
    color: #c8bfb3;
    opacity: .8;
    transition: opacity .2s, color .2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.site-footer .widget ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.site-footer .widget_search .search-form {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.15);
}

.site-footer .widget_search input[type="search"],
.site-footer .widget_search input[type="text"] {
    color: #fff;
}

.site-footer .widget_search input[type="search"]::placeholder { color: rgba(255,255,255,.4); }

/* ── Widget Responsive ── */
@media (max-width: 600px) {
    .widget_calendar table { font-size: .75rem; }
    .widget_tag_cloud .tagcloud a { font-size: .73rem !important; }
}

/* ================================================================
   27. CONTACT FORM 7
   ================================================================ */

/* ── Wrapper ── */
.wpcf7 { width: 100%; }
.wpcf7-form { display: flex; flex-direction: column; gap: 18px; }

/* ── Form rows ── */
.wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Labels ── */
.wpcf7-form label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--dark);
}

/* ── Text / Email / Tel / URL / Number inputs ── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="search"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: .92rem;
    color: var(--dark);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.wpcf7-form textarea {
    min-height: 130px;
    resize: vertical;
}

.wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ── Focus state ── */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form input[type="search"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: #fff;
}

/* ── Submit button ── */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    background: var(--primary);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    width: 100%;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    background: var(--primary-dark, #1a56db);
    box-shadow: 0 4px 14px rgba(37,99,235,.25);
    transform: translateY(-1px);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── Checkbox & Radio ── */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    margin-right: 6px;
    flex-shrink: 0;
}

.wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 14px;
    font-size: .9rem;
}

.wpcf7-list-item label { font-weight: 400; cursor: pointer; }

/* ── Acceptance checkbox ── */
.wpcf7-acceptance .wpcf7-list-item {
    margin-right: 0;
}

/* ── Validation: not-valid ── */
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.wpcf7-not-valid-tip {
    font-size: .78rem;
    color: #ef4444;
    margin-top: 4px;
    display: block;
}

/* ── Response messages ── */
.wpcf7-response-output {
    margin: 4px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    border: none !important;
}

/* Success */
.wpcf7-form.sent .wpcf7-response-output {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a !important;
}

/* Error / Invalid */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626 !important;
}

/* Spam */
.wpcf7-form.spam .wpcf7-response-output {
    background: #fff7ed;
    color: #ea580c;
    border-left: 4px solid #ea580c !important;
}

/* ── Spinner (loading) ── */
.wpcf7-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cf7-spin .7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
    visibility: visible !important;
}

@keyframes cf7-spin {
    to { transform: rotate(360deg); }
}

/* ── File upload ── */
.wpcf7-form input[type="file"] {
    font-size: .88rem;
    color: var(--gray);
    cursor: pointer;
}

/* ── Quiz / CAPTCHA ── */
.wpcf7-quiz-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 6px;
}

/* ── Inside sidebar card ── */
.sidebar-card .wpcf7-form input[type="text"],
.sidebar-card .wpcf7-form input[type="email"],
.sidebar-card .wpcf7-form textarea {
    font-size: .85rem;
    padding: 9px 12px;
}

.sidebar-card .wpcf7-form input[type="submit"] {
    padding: 9px 20px;
    font-size: .88rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea,
    .wpcf7-form select {
        font-size: .88rem;
    }
}


.error-container .header-search {
  max-width: 400px;
  margin: 0 auto 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background var(--dur);
}
.error-container .header-search input {
  color: var(--text);
  width: 100%;
}
.header-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  padding: 8px 12px;
  font-size: .85rem;
  width: 190px;
}
.header-search button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 8px 13px;
  cursor: pointer;
  transition: background var(--dur);
}

#main .header-search input {
  color: var(--text);
  width: 100%;
   border: 2px solid var(--border);
  border-radius: var(--radius);
}
 .post-card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}