/*
Theme Name: Bacolod Pediatrician
Theme URI: https://bacolodpediatrician.com
Author: Bacolod Pediatrician
Author URI: https://bacolodpediatrician.com
Description: A clean, pediatric-focused WordPress theme with custom Gutenberg blocks, category emoji support, dynamic TOC, and SEO-friendly architecture.
Version: 1.0.0
Tested up to: 6.6
Requires at least: 6.2
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bacolod
Tags: custom-blocks, block-styles, accessibility-ready, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ========================================
   PEDIATRICIAN BLOG THEME
   Yiğit Ali Demir
   https://yigitali.com
   Minimalist & Clean Design
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #0f766e;
    --color-primary-dark: #0d5c56;
    --color-primary-light: #14b8a6;
    --color-accent: #f59e0b;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-warm: #fafaf9;
    --color-bg-cool: #f8fafc;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
    --container-narrow: 800px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
}

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

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

.logo-icon {
    font-size: 28px;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(15, 118, 110, 0.06);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--color-bg-cool) 0%, var(--color-bg) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f766e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ========================================
   CATEGORIES
   ======================================== */
.categories {
    padding: 40px 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-bg-warm);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.category-card:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cat-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition);
}

.view-all:hover {
    color: var(--color-primary-dark);
    transform: translateX(4px);
}

/* ========================================
   POSTS GRID (HOMEPAGE)
   ======================================== */
.latest-posts {
    padding: 80px 0;
    background: var(--color-bg-warm);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.posts-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.post-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

.post-thumb-placeholder {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    transition: var(--transition);
}

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

.post-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.post-meta time {
    font-weight: 500;
}

.read-time::before {
    content: '•';
    margin-right: 12px;
    color: var(--color-border);
}

.post-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

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

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

.post-excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    color: var(--color-primary-dark);
    gap: 4px;
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter {
    padding: 80px 0;
    background: var(--color-bg);
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    padding: 60px;
    border-radius: var(--radius-xl);
    color: white;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.newsletter-desc {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.newsletter-form .btn-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: none;
    white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
    background: var(--color-bg-warm);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-name {
    color: white;
}

.footer-brand .logo-tagline {
    color: rgba(255,255,255,0.5);
}

.footer-about {
    margin-top: 16px;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact p {
    padding: 6px 0;
    font-size: 0.9375rem;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

/* ========================================
   SINGLE POST PAGE
   ======================================== */
.article-header {
    padding: 60px 0 40px;
    background: var(--color-bg-cool);
    text-align: center;
}

.article-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.article-category {
    padding: 6px 16px;
    background: var(--color-primary);
    color: white;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: var(--transition);
}

.article-category:hover {
    background: var(--color-primary-dark);
}

.article-date {
    color: var(--color-text-muted);
}

.article-read-time {
    color: var(--color-text-muted);
}

.article-read-time::before {
    content: '•';
    margin-right: 16px;
    color: var(--color-border);
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto 20px;
    letter-spacing: -0.03em;
}

.article-excerpt {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.article-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.author-role {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Featured Image */
.article-featured-image {
    padding: 0 0 40px;
    background: var(--color-bg-cool);
}

.featured-img-placeholder {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
    box-shadow: var(--shadow-lg);
}

/* When emoji placeholder is used (no real image) */
div.featured-img-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    height: auto;
    max-height: none;
}

/* Article Content */
.article-content {
    padding: 40px 0 80px;
    background: var(--color-bg);
}

.article-inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    max-width: 1100px;
}

.article-main {
    min-width: 0;
}

.article-main .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-weight: 400;
}

.article-main h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.article-main h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--color-text);
}

.article-main p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.article-main ul,
.article-main ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-main ul {
    list-style: disc;
}

.article-main ol {
    list-style: decimal;
}

.article-main li {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--color-text-light);
}

.article-main li strong {
    color: var(--color-text);
}

/* Callouts */
.callout {
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 32px 0;
    font-size: 1rem;
    line-height: 1.7;
}

.callout-tip {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.callout-warning {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.callout-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-bg-cool);
    border-bottom: 2px solid var(--color-border);
}

.comparison-table td {
    color: var(--color-text-light);
    vertical-align: top;
}

/* Schedule Box */
.schedule-box {
    background: var(--color-bg-cool);
    border-radius: var(--radius-lg);
    padding: 8px;
    margin: 32px 0;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-week {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.875rem;
    min-width: 90px;
    flex-shrink: 0;
}

.schedule-food {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border-light);
}

.tag-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.tag {
    padding: 6px 14px;
    background: var(--color-bg-cool);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--color-text-light);
    transition: var(--transition);
}

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

/* Share */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-light);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Sidebar */
.article-sidebar {
    height: fit-content;
}

/* TOC widget: sticky but constrained so author/related/categories are visible alongside */
.bacolod-toc {
    position: sticky;
    top: 96px;
    max-height: 60vh;
    overflow-y: auto;
}

/* On shorter viewports, don't stick at all so user can scroll past it */
@media (max-height: 700px) {
    .bacolod-toc {
        position: static;
        max-height: none;
    }
}

/* TOC link active state */
.toc-link.is-active {
    color: var(--color-primary);
    font-weight: 600;
    padding-left: 4px;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-link {
    font-size: 0.875rem;
    color: var(--color-text-light);
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition);
    display: block;
}

.toc-link:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.toc-level-3 {
    padding-left: 16px;
    font-size: 0.8125rem;
}

.sidebar-widget {
    background: var(--color-bg-cool);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text);
}

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

.widget-avatar {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 16px;
}

.widget-author p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.widget-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

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

/* Related Posts Widget */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: var(--transition);
}

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

.related-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.related-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
    transition: var(--transition);
}

.related-date {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Widget Categories */
.widget-categories {
    display: flex;
    flex-direction: column;
}

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.cat-link:last-child {
    border-bottom: none;
}

.cat-link:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.cat-link span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    background: var(--color-bg);
    padding: 2px 10px;
    border-radius: 100px;
}

/* Related Section */
.related-section {
    padding: 60px 0 80px;
    background: var(--color-bg-warm);
}

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

/* ========================================
   STATIC PAGE (About, Contact, etc.)
   ======================================== */
.page-header {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, var(--color-bg-cool) 0%, var(--color-bg) 100%);
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 40px 0 80px;
}

.page-inner {
    max-width: 900px;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

.about-image {
    position: sticky;
    top: 100px;
}

.about-img-placeholder {
    width: 280px;
    height: 350px;
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    box-shadow: var(--shadow-md);
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--color-text);
}

/* Credentials */
.credentials-section {
    margin-bottom: 64px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.credential-card {
    background: var(--color-bg-cool);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.credential-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.credential-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.credential-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.credential-card ul {
    list-style: disc;
    padding-left: 20px;
}

.credential-card li {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* Philosophy */
.philosophy-section {
    margin-bottom: 64px;
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.philosophy-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.philosophy-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.philosophy-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.philosophy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.philosophy-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* FAQ */
.faq-section {
    margin-bottom: 64px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.faq-item {
    background: var(--color-bg-cool);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-text-muted);
    transition: var(--transition);
    font-weight: 300;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.faq-item p a {
    color: var(--color-primary);
    font-weight: 500;
}

.faq-item p a:hover {
    text-decoration: underline;
}

/* Page CTA */
.page-cta {
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-bg-cool) 0%, #f0fdfa 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .posts-grid,
    .posts-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: static;
        display: flex;
        justify-content: center;
    }

    .philosophy-cards {
        grid-template-columns: 1fr;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-img-placeholder {
        width: 280px;
        height: 280px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .posts-grid,
    .posts-grid-3 {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 1.875rem;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-about {
        margin-left: auto;
        margin-right: auto;
    }

    .credentials-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-inner {
        padding: 40px 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .article-meta-top {
        flex-wrap: wrap;
    }

    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .page-title,
    .article-title {
        font-size: 1.625rem;
    }

    .categories-grid {
        gap: 8px;
    }

    .category-card {
        padding: 10px 14px;
        font-size: 0.8125rem;
    }

    .about-img-placeholder {
        width: 240px;
        height: 300px;
    }
}

/* ========================================
   WORDPRESS UTILITIES
   ======================================== */

/* No sidebar layout */
.article-inner--full {
    grid-template-columns: 1fr;
    max-width: 900px;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.alignwide {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 99999;
    background: var(--color-primary);
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.skip-link:focus {
    left: 24px;
    top: 24px;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--color-primary);
    color: white;
    z-index: 99999;
}

/* WP Nav list */
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-list li {
    margin: 0;
    flex-shrink: 0;
}

.nav-list a {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: block;
    white-space: nowrap;
}

.header-inner {
    min-width: 0;
}

.header-inner .logo {
    flex-shrink: 0;
    min-width: 0;
    max-width: 280px;
}

.logo-name,
.logo-tagline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

/* Force mobile menu earlier when nav is too cramped */
@media (max-width: 1100px) {
    .main-nav .nav-list {
        font-size: 0.8125rem;
    }
    .main-nav .nav-list a {
        padding: 6px 10px;
    }
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: var(--color-primary);
    background: rgba(15, 118, 110, 0.06);
}

/* Search form */
.search-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    outline: none;
    transition: var(--transition);
}

.search-field:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 80px 24px;
}

.no-posts h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.no-posts p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* Comments */
.comments-area {
    background: var(--color-bg-warm);
    border-top: 1px solid var(--color-border-light);
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 32px;
}

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

.comment-list li {
    margin-bottom: 24px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

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

.comment-metadata {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.comment-content {
    padding-left: 52px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.comment-form .submit {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px;
}

.nav-links a,
.nav-links span {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a {
    color: var(--color-text-light);
    background: var(--color-bg-cool);
}

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

.nav-links .current {
    background: var(--color-primary);
    color: white;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    padding: 16px 24px;
    max-width: var(--container);
    margin: 0 auto;
}

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

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

.breadcrumbs-sep {
    margin: 0 8px;
    opacity: 0.4;
}

/* Gallery */
.wp-block-gallery {
    gap: 16px;
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Sticky post */
.sticky .post-card {
    border: 2px solid var(--color-primary);
}

/* Featured image in single */
.post-thumb-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Footer auto columns via body class */
.has-footer-cols-1 .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
}

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

.has-footer-cols-3 .footer-grid {
    grid-template-columns: repeat(3, 1fr);
}

.has-footer-cols-4 .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-cool);
}

.slider-track {
    position: relative;
    width: 100%;
    height: clamp(360px, 60vh, 600px);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}

.slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.slide-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slide-img,
.slide-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 160px;
}

.slide-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 50%, transparent 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0 70px;
    color: white;
}

.slide-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: white;
    margin-bottom: 16px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    max-width: 800px;
}

.slide-title a {
    color: white;
}

.slide-title a:hover {
    color: rgba(255,255,255,0.85);
}

.slide-excerpt {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    max-width: 640px;
    margin-bottom: 24px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow--prev { left: 24px; }
.slider-arrow--next { right: 24px; }

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.is-active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .slider-arrow { width: 36px; height: 36px; }
    .slider-arrow--prev { left: 12px; }
    .slider-arrow--next { right: 12px; }
    .slide-content { padding: 30px 0 60px; }
}

