/*
Theme Name: KEHAKTOMPOR Profile
Theme URI: https://kk.com.kh/
Author: KEHAKTOMPOR Knongsrok (KK Media)
Author URI: https://knongsrok.com/
Description: A premium corporate company profile, portfolio, and media network theme for KEHAKTOMPOR Knongsrok (KK Media). Built for advertisers, partners, and brand presentation. Includes roadmap, services, portfolio cards, and a modern horizontal "Top Highlights" card strip.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kehaktompor-profile
Tags: business, portfolio, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, two-columns, right-sidebar
*/

/* =========================================================
   1. Root Variables
   ========================================================= */
:root {
    --primary: #D4AF37;
    --primary-dark: #9B7A16;
    --dark: #07111F;
    --dark-2: #0B1628;
    --text: #334155;
    --muted: #64748B;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(7, 17, 31, 0.06);
    --shadow-md: 0 6px 20px rgba(7, 17, 31, 0.08);
    --shadow-lg: 0 12px 40px rgba(7, 17, 31, 0.12);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --container: 1200px;
    --transition: all 0.25s ease;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* =========================================================
   2. Reset & Base
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 16px; }

ul, ol { padding-left: 1.25rem; }

/* =========================================================
   3. Layout helpers
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-tight {
    padding: 56px 0;
}

.section-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #CBD5E1;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-white {
    background: var(--white);
}

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

.section-title {
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

/* =========================================================
   4. Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

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

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

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

.btn-outline:hover,
.btn-outline:focus {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

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

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

/* =========================================================
   5. Site header
   ========================================================= */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding a {
    color: var(--dark);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.site-branding .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.site-title-text small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--primary-dark);
}

.main-nav .current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--dark);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    margin: 4px 0;
    border-radius: 2px;
}

/* =========================================================
   6. Hero
   ========================================================= */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #E2E8F0;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -160px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.10), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 .accent {
    color: var(--primary);
}

.hero p {
    color: #CBD5E1;
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   7. Top Highlights — horizontal card strip
   ========================================================= */
.kk-top-highlights {
    background: var(--bg);
    padding: 56px 0 32px;
}

.kk-top-highlights .strip-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.kk-top-highlights .strip-head h2 {
    font-size: 1.6rem;
    margin: 0;
}

.kk-top-highlights .strip-head p {
    margin: 0;
    color: var(--muted);
}

.kk-top-cards {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.kk-top-cards::-webkit-scrollbar {
    height: 8px;
}

.kk-top-cards::-webkit-scrollbar-track {
    background: transparent;
}

.kk-top-cards::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 999px;
}

.kk-card {
    flex: 0 0 auto;
    width: 280px;
    min-height: 140px;
    background: var(--white);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(7, 17, 31, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.7);
    text-decoration: none;
    color: var(--dark);
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.kk-card:hover,
.kk-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(7, 17, 31, 0.10);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--dark);
}

.kk-card .kk-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.kk-card .kk-label {
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kk-card .kk-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin: 0;
}

.kk-card .kk-text {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kk-card .kk-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.06));
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    overflow: hidden;
}

.kk-card .kk-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.kk-card .kk-arrow {
    position: absolute;
    bottom: 14px;
    right: 16px;
    color: var(--muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.kk-card:hover .kk-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* =========================================================
   8. Company Profile
   ========================================================= */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.4);
}

.profile-card .icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.profile-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.profile-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.values-list li {
    background: rgba(212, 175, 55, 0.12);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* =========================================================
   9. Portfolio
   ========================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.portfolio-card .tag {
    align-self: flex-start;
    background: rgba(212, 175, 55, 0.14);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.portfolio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.portfolio-card .domain {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
    word-break: break-all;
}

.portfolio-card p {
    color: var(--muted);
    font-size: 0.95rem;
    flex: 1;
}

.portfolio-card .visit-link {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dark);
    font-weight: 600;
    align-self: flex-start;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.portfolio-card .visit-link:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* =========================================================
   10. Services
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.4);
}

.service-item .check {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.service-item h4 {
    font-size: 1rem;
    margin: 0 0 4px;
}

.service-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

/* =========================================================
   11. Roadmap timeline
   ========================================================= */
.roadmap {
    position: relative;
    margin-top: 48px;
}

.roadmap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(212, 175, 55, 0.2));
    transform: translateX(-50%);
}

.roadmap-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.roadmap-item:nth-child(odd) {
    margin-left: auto;
    text-align: left;
}

.roadmap-item:nth-child(even) {
    text-align: right;
}

.roadmap-item .dot {
    position: absolute;
    top: 32px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary);
    z-index: 2;
}

.roadmap-item:nth-child(odd) .dot {
    left: -8px;
}

.roadmap-item:nth-child(even) .dot {
    right: -8px;
}

.roadmap-item .year {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 4px;
    display: block;
}

.roadmap-item h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 12px;
}

.roadmap-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #CBD5E1;
    font-size: 0.95rem;
}

.roadmap-item ul li {
    padding: 4px 0;
}

.roadmap-item ul li::before {
    content: "✦";
    color: var(--primary);
    margin-right: 8px;
}

.roadmap-item:nth-child(even) ul li::before {
    margin-left: 8px;
    margin-right: 0;
}

/* =========================================================
   12. Stats
   ========================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-num {
    color: var(--primary-dark);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-card .stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================================
   13. Why Work With Us
   ========================================================= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.why-item .why-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.why-item h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.why-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* =========================================================
   14. Contact CTA
   ========================================================= */
.cta-block {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    border-radius: var(--radius-xl);
    padding: 56px 32px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-block h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
    position: relative;
}

.cta-block p {
    color: #CBD5E1;
    max-width: 640px;
    margin: 0 auto 28px;
    position: relative;
}

.cta-block .btn {
    position: relative;
}

/* =========================================================
   15. Site footer
   ========================================================= */
.site-footer {
    background: var(--dark);
    color: #94A3B8;
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #94A3B8;
    font-size: 0.92rem;
    line-height: 1.7;
}

.site-footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer ul a {
    color: #94A3B8;
    font-size: 0.92rem;
}

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

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748B;
}

/* =========================================================
   16. Single post / Article layout
   ========================================================= */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    margin-top: 32px;
}

.post-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.post-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 18px;
}

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

.post-meta .sep {
    color: var(--border);
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.entry-content {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.85;
}

.entry-content p { margin: 0 0 18px; }
.entry-content h2 { margin: 32px 0 14px; font-size: 1.6rem; }
.entry-content h3 { margin: 28px 0 12px; font-size: 1.3rem; }
.entry-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 22px 0;
    color: var(--dark);
    font-style: italic;
}
.entry-content img {
    border-radius: var(--radius-md);
    margin: 18px 0;
}
.entry-content a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.author-box {
    margin-top: 36px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg);
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-box img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.author-box h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.author-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.related-posts {
    margin-top: 48px;
}

.related-posts h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.4);
}

.related-card a {
    display: block;
    color: var(--dark);
}

.related-card .related-thumb {
    aspect-ratio: 16 / 9;
    background: var(--bg);
    overflow: hidden;
}

.related-card .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h4 {
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* =========================================================
   17. Sidebar / widgets
   ========================================================= */
.post-sidebar {
    align-self: start;
    position: sticky;
    top: 92px;
}

.widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--dark);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
}

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

.widget a {
    color: var(--text);
    font-size: 0.92rem;
}

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

/* =========================================================
   18. Breadcrumbs
   ========================================================= */
.breadcrumbs {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

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

.breadcrumbs .sep {
    margin: 0 6px;
    color: var(--border);
}

/* =========================================================
   19. Archive / index
   ========================================================= */
.archive-header {
    margin-bottom: 32px;
    text-align: center;
}

.archive-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.archive-header p {
    color: var(--muted);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.4);
}

.post-card .thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg);
}

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

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

.post-card .post-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card .cat {
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.post-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    line-height: 1.4;
}

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

.post-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 14px;
    flex: 1;
}

.post-card .post-card-meta {
    color: var(--muted);
    font-size: 0.8rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =========================================================
   20. Pagination
   ========================================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

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

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

.error-404 .big {
    font-size: 6rem;
    color: var(--primary);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
}

.error-404 h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.error-404 p {
    color: var(--muted);
    margin-bottom: 24px;
}

/* =========================================================
   22. Search
   ========================================================= */
.search-form {
    display: flex;
    max-width: 480px;
    margin: 24px auto 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-form input[type="search"] {
    flex: 1;
    border: 0;
    padding: 14px 20px;
    font-size: 0.95rem;
    background: transparent;
    color: var(--dark);
}

.search-form input[type="search"]:focus { outline: none; }

.search-form button {
    background: var(--primary);
    color: var(--dark);
    border: 0;
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

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

/* =========================================================
   23. Utilities
   ========================================================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

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