/*
Theme Name: Ajmani MA
Theme URI: https://ajmanidev.com
Author: Ajmani
Author URI: https://ajmanidev.com
Description: A minimal, editorial blog theme for AI, Automation & Backend Engineering content. Clean serif typography with a timeless, distraction-free reading experience.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: ajmani-ma
Tags: blog, minimal, serif, editorial, clean
*/

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #fefefe;
    color: #1a1a1a;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.container--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.container--wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================================
   SKIP LINK (ACCESSIBILITY)
   ========================================================= */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #1a1a1a;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    z-index: 9999;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skip-link:focus {
    top: 0;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

.site-header__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.site-header--single .site-header__inner,
.site-header--page .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header--single,
.site-header--page {
    padding: 40px 0;
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.site-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.site-title a:hover {
    color: #666;
}

.site-title--small {
    font-size: 32px;
    letter-spacing: -1px;
}

.site-description {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    line-height: 1.7;
    max-width: 500px;
    font-family: 'Inter', sans-serif;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-nav {
    background: white;
    padding: 18px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-nav__menu {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.site-nav__menu li a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s;
}

.site-nav__menu li a:hover,
.site-nav__menu li.current-menu-item > a {
    color: #999;
}

.site-nav__search {
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #1a1a1a;
    transition: color 0.3s;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: inherit;
}

.search-toggle:hover {
    color: #999;
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: #1a1a1a;
    transition: all 0.3s;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
    margin: 50px 0 40px 0;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.breadcrumb a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #666;
}

.breadcrumb span + span::before {
    content: " / ";
    color: #ccc;
}

/* =========================================================
   HOME / BLOG INDEX
   ========================================================= */
.blog-main {
    margin: 80px 0;
}

.articles-header {
    margin-bottom: 60px;
}

.articles-header__title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.articles-header__subtitle {
    color: #999;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

/* =========================================================
   ARTICLES GRID
   ========================================================= */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 50px;
    margin-bottom: 80px;
}

/* Featured sticky article — full width, image + content side by side */
.article-card--featured {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: start;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 60px 0;
    margin-bottom: 60px;
}

.article-card--featured .article-card__thumbnail {
    width: 100%;
    height: 320px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.article-card--featured__content {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.article-card--featured__content .article-card__meta {
    margin-top: auto;
    padding-top: 20px;
}

/* =========================================================
   FEATURED GRID (multiple featured posts, each full-width)
   ========================================================= */
.featured-grid {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 70px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    align-items: start;
    padding: 50px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 60px;
}

.featured-card__thumbnail {
    width: 100%;
    height: 280px;
    background: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-card__thumbnail img,
.featured-card__thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-card__thumbnail img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-card__thumbnail img {
    transform: scale(1.03);
}

.featured-card__content {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.featured-card__content .article-card__title {
    font-size: 28px;
    margin-bottom: 14px;
}

.featured-card__content .article-card__excerpt {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0;
}

.featured-card__content .article-card__meta {
    margin-top: 20px;
    padding-top: 0;
}

.featured-card__content .article-card__read-more {
    margin-top: 20px;
    align-self: flex-start;
}

/* =========================================================
   ARTICLE CARD
   ========================================================= */
.article-card {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}

.article-card__thumbnail {
    width: 100%;
    height: 220px;
    background: #f0f0f0;
    margin-bottom: 30px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.article-card:hover .article-card__thumbnail img {
    transform: scale(1.03);
}

.article-card__thumbnail--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    color: #ccc;
    font-size: 40px;
}

.article-card__category {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
}

.article-card__category:hover {
    color: #1a1a1a;
}

.article-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.article-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.article-card__title a:hover {
    color: #666;
}

.article-card__excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.article-card__meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #999;
    margin-top: auto;
    padding-top: 20px;
    font-family: 'Inter', sans-serif;
}

.article-card__read-more {
    font-size: 13px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
}

.article-card__read-more:hover {
    border-bottom-color: transparent;
    padding-left: 10px;
}

/* =========================================================
   PAGINATION / LOAD MORE
   ========================================================= */
.pagination-section {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
}

/* =========================================================
   POSTS FEED — unified 2-column grid, algorithm-driven
   ========================================================= */
.posts-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 50px;
    margin-bottom: 80px;
}

/* Regular card inside the feed */
.posts-feed .post-card {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Wide card — spans both columns, image left + content right */
.posts-feed .post-card.post-card--wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    align-items: start;
    padding-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.post-card__thumb {
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
    margin-bottom: 20px;
}

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

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

/* Regular card thumb */
.posts-feed .post-card:not(.post-card--wide) .post-card__thumb {
    height: 210px;
}

/* Wide card thumb */
.posts-feed .post-card.post-card--wide .post-card__thumb {
    height: 300px;
    margin-bottom: 0;
}

.post-card__thumb--placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.post-card__body {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.post-card__body .article-card__meta {
    margin-top: 20px;
    padding-top: 0;
}

.post-card__body .article-card__read-more {
    margin-top: 20px;
    align-self: flex-start;
}

.post-card__body .article-card__title {
    font-size: 26px;
    margin-bottom: 14px;
}

/* =========================================================
   LOAD MORE
   ========================================================= */
.load-more-section {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.load-more-btn,
.load-more-section a {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid #1a1a1a;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.load-more-btn:hover,
.load-more-section a:hover {
    background: #1a1a1a;
    color: white;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.load-more-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.load-more-section--loading .load-more-spinner {
    display: inline-block;
}

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    font-size: 13px;
    color: #1a1a1a;
    transition: all 0.3s;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.pagination .page-numbers.dots {
    border: none;
    width: auto;
}

/* =========================================================
   CATEGORY TAGS (SIDEBAR / BROWSE)
   ========================================================= */
.topics-section {
    margin-top: 80px;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
}

.topics-section__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 30px;
}

.category-tags {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-tag {
    padding: 14px;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-size: 13px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.category-tag:hover {
    border-color: #1a1a1a;
    background: #f5f5f5;
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.post-header {
    margin-bottom: 50px;
}

.post-category {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
}

.post-category:hover {
    color: #1a1a1a;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 30px;
    letter-spacing: -1.5px;
}

.post-meta {
    display: flex;
    gap: 30px;
    font-size: 13px;
    color: #999;
    font-family: 'Inter', sans-serif;
}

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

/* Featured Image - Full Bleed */
.post-featured-image {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 50px;
    height: 500px;
    background: #f0f0f0;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.post-content {
    margin-bottom: 80px;
}

.post-content p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 28px;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin: 60px 0 25px 0;
    letter-spacing: -0.5px;
}

.post-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin: 45px 0 18px 0;
    letter-spacing: -0.5px;
}

.post-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 35px 0 15px 0;
    font-family: 'Inter', sans-serif;
}

.post-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.post-content a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.post-content a:hover {
    color: #666;
}

.post-content ul,
.post-content ol {
    margin: 25px 0 25px 28px;
    font-family: 'Inter', sans-serif;
}

.post-content li {
    margin-bottom: 12px;
    color: #333;
    font-size: 17px;
    line-height: 1.8;
}

.post-content blockquote {
    border-left: 3px solid #1a1a1a;
    padding: 5px 0 5px 25px;
    margin: 40px 0;
    font-style: italic;
    font-size: 20px;
    color: #555;
    line-height: 1.8;
    font-family: 'Playfair Display', serif;
}

.post-content blockquote p {
    font-size: 20px;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.post-content img {
    width: 100%;
    height: auto;
    margin: 40px 0;
    display: block;
}

.post-content figcaption,
.post-content .image-caption {
    font-size: 12px;
    color: #999;
    margin-top: -30px;
    margin-bottom: 40px;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

/* Code */
.post-content pre,
.post-content code {
    font-family: 'Courier New', 'Lucida Console', monospace;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    font-size: 14px;
    color: #333;
}

.post-content pre {
    background: #f5f5f5;
    border-left: 3px solid #1a1a1a;
    padding: 20px;
    margin: 30px 0;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

/* WordPress blocks */
.post-content .wp-block-image img {
    margin: 40px 0 10px;
}

.post-content .wp-block-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 50px 0;
}

/* Post Footer (tags + share) */
.post-footer {
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.post-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.post-tags__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.post-tag {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid #e0e0e0;
    font-size: 12px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.post-tag:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

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

.share-buttons__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.share-btn:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Post Navigation (prev/next) */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 80px;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
}

.post-nav__item {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.post-nav__item:hover {
    color: #666;
}

.post-nav__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 8px;
    display: block;
    font-family: 'Inter', sans-serif;
}

.post-nav__title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.post-nav__item--next {
    text-align: right;
}

/* Author Box */
.author-box {
    margin-top: 60px;
    padding: 40px;
    border: 1px solid #e0e0e0;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.author-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.author-box__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box__name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.author-box__bio {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-section {
    margin-top: 60px;
}

.comments-section__title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin-bottom: 50px;
}

.comment-list .comment {
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.comment-author-name {
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.comment-date {
    font-size: 12px;
    color: #999;
    font-family: 'Inter', sans-serif;
}

.comment-body p {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
}

.comment-reply-link:hover {
    color: #1a1a1a;
}

/* Comment Children */
.comment-list .children {
    list-style: none;
    margin-top: 20px;
    padding-left: 40px;
    border-left: 2px solid #f0f0f0;
}

/* Comment Form */
.comment-respond {
    margin-top: 50px;
}

.comment-reply-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.comment-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label,
.comment-form label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    font-family: 'Inter', inherit;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
    color: #1a1a1a;
    border-radius: 0;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #f9f9f9;
}

.form-group textarea,
.comment-form textarea#comment {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
}

.comment-form .form-submit {
    margin: 0;
}

.comment-form input#submit,
.submit-btn {
    padding: 12px 32px;
    border: 1px solid #1a1a1a;
    background: white;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0;
}

.comment-form input#submit:hover,
.submit-btn:hover {
    background: #1a1a1a;
    color: white;
}

/* =========================================================
   PAGE TEMPLATES
   ========================================================= */
.page-main {
    padding: 0 0 100px 0;
}

.page-header {
    margin-bottom: 60px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.page-subtitle,
.page-intro {
    font-size: 18px;
    color: #555;
    margin-top: 16px;
    line-height: 1.8;
    max-width: 700px;
    font-family: 'Inter', sans-serif;
}

.page-content p {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 24px;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin: 50px 0 20px 0;
}

.page-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin: 40px 0 16px 0;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.about-section ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.about-section li {
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
}

.about-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image--placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 80px;
    text-align: center;
}

.about-stat__number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.about-stat__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
}

.about-cta {
    background: #f9f9f9;
    padding: 50px;
    border: 1px solid #e0e0e0;
    text-align: center;
    margin-bottom: 80px;
}

.about-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-cta p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-cta__button {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid #1a1a1a;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.3s;
}

.about-cta__button:hover {
    background: #1a1a1a;
    color: white;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    padding-top: 10px;
}

.contact-info__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 20px;
}

.contact-info__text {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.contact-link:hover {
    color: #666;
}

.contact-link__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-form .form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* =========================================================
   ARCHIVE / CATEGORY
   ========================================================= */
.archive-header {
    margin-top: 60px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.archive-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.archive-title {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.archive-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    font-family: 'Inter', sans-serif;
}

.archive-list {
    list-style: none;
    margin-bottom: 60px;
}

.archive-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: start;
}

.archive-item:first-child {
    padding-top: 0;
}

.archive-item__thumb {
    overflow: hidden;
}

.archive-item__thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}

.archive-item__thumb img:hover {
    opacity: 0.85;
}

.archive-item__date {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 6px;
    font-family: 'Inter', sans-serif;
}

.archive-item__meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.archive-item__date-inline {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.archive-item__content {}

.archive-item__category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.archive-item__category:hover {
    color: #1a1a1a;
}

.archive-item__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.archive-item__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.archive-item__title a:hover {
    color: #666;
}

.archive-item__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
    margin-bottom: 14px;
}

.archive-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.archive-item__reading-time {
    font-size: 12px;
    color: #aaa;
    font-family: 'Inter', sans-serif;
}

.archive-item__read-more {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.archive-item__read-more:hover {
    color: #666;
    border-color: #666;
}

@media (max-width: 640px) {
    .archive-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .archive-item__thumb img {
        height: 180px;
        width: 100%;
    }
}

/* =========================================================
   SEARCH RESULTS
   ========================================================= */
.search-header {
    margin-bottom: 60px;
}

.search-form-main {
    display: flex;
    gap: 0;
    margin: 30px 0 0;
    max-width: 600px;
}

.search-form-main input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: white;
    color: #1a1a1a;
    border-radius: 0;
    appearance: none;
}

.search-form-main input[type="search"]:focus {
    outline: none;
    border-color: #1a1a1a;
}

.search-form-main button {
    padding: 14px 24px;
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    border-radius: 0;
}

.search-form-main button:hover {
    background: #333;
}

.no-results {
    padding: 80px 0;
    text-align: center;
}

.no-results__title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 16px;
}

.no-results__text {
    color: #666;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

/* =========================================================
   404 PAGE
   ========================================================= */
.page-404 {
    text-align: center;
    padding: 120px 0;
}

.page-404__number {
    font-family: 'Playfair Display', serif;
    font-size: 140px;
    font-weight: 800;
    line-height: 1;
    color: #e0e0e0;
    letter-spacing: -5px;
    margin-bottom: 20px;
}

.page-404__title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 16px;
}

.page-404__text {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid #1a1a1a;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn:hover {
    background: #1a1a1a;
    color: white;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: white;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 80px;
}

.site-footer__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section__heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
}

.footer-links a:hover {
    color: #1a1a1a;
}

.footer-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    font-family: 'Inter', sans-serif;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #1a1a1a;
}

/* =========================================================
   WIDGETS
   ========================================================= */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

/* =========================================================
   NEWSLETTER SECTION
   ========================================================= */
.newsletter-section {
    padding: 60px;
    border: 1px solid #e0e0e0;
    text-align: center;
    margin: 80px 0;
}

.newsletter-section__title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 12px;
}

.newsletter-section__text {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-right: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: white;
    color: #1a1a1a;
    border-radius: 0;
    appearance: none;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #1a1a1a;
}

.newsletter-form button {
    padding: 12px 20px;
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    border-radius: 0;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #333;
}

/* =========================================================
   ARCHIVE YEAR DIVIDER
   ========================================================= */
.archive-year-divider {
    list-style: none;
    padding: 40px 0 15px;
    border-bottom: 1px solid #e0e0e0;
}

.archive-year-divider span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #e0e0e0;
}

/* =========================================================
   FULL ARCHIVE PAGE (page-archive-full.php)
   ========================================================= */

.full-archive-header {
    margin-bottom: 40px;
}

.archive-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.archive-search-box {
    flex: 1;
}

.archive-search-box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s;
}

.archive-search-box input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.archive-sort-dropdown {
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 160px;
}

.archive-sort-dropdown:focus,
.archive-sort-dropdown:hover {
    outline: none;
    border-color: #1a1a1a;
}

.archive-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 50px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 60px;
}

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

.archive-stat__number {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.archive-stat__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.full-archive-list {
    margin-bottom: 80px;
}

.full-archive-year {
    margin-bottom: 50px;
}

.full-archive-year__heading {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0e0e0;
    letter-spacing: -0.5px;
}

.full-archive-row {
    display: grid;
    grid-template-columns: 100px 1fr 130px;
    gap: 24px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, padding 0.2s, margin 0.2s;
}

.full-archive-row:hover {
    background: #f9f9f9;
    padding: 18px 14px;
    margin: 0 -14px;
}

.full-archive-row__date {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.full-archive-row__title {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.full-archive-row__title a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s;
}

.full-archive-row__title a:hover {
    color: #666;
}

.full-archive-row__category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 600;
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.full-archive-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .archive-controls {
        flex-direction: column;
    }

    .archive-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .full-archive-row {
        grid-template-columns: 80px 1fr;
        gap: 14px;
    }

    .full-archive-row__category {
        display: none;
    }
}

/* =========================================================
   FORM NOTICES
   ========================================================= */
.form-notice {
    padding: 14px 20px;
    margin-bottom: 25px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    border: 1px solid;
}

.form-notice--success {
    background: #f0faf0;
    border-color: #c3e6cb;
    color: #276535;
}

.form-notice--error {
    background: #fdf0f0;
    border-color: #f5c6cb;
    color: #721c24;
}

/* =========================================================
   SCREEN READER ONLY
   ========================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 60px 0;
    }

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

    .posts-feed .post-card.post-card--wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .posts-feed .post-card.post-card--wide .post-card__thumb {
        height: 220px;
    }

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

    .article-card--featured .article-card__thumbnail {
        height: 220px;
    }

    .featured-grid {
        gap: 0;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-card__thumbnail {
        height: 220px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

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

    .post-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container,
    .container--narrow,
    .container--wide {
        padding: 0 20px;
    }

    .site-header__inner,
    .site-nav__inner,
    .site-footer__inner {
        padding: 0 20px;
    }

    .site-title {
        font-size: 36px;
    }

    .site-title--small {
        font-size: 24px;
    }

    .site-description {
        font-size: 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav__menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px;
    }

    .site-nav__menu.is-open {
        display: flex;
    }

    .site-nav__menu li a {
        display: block;
        padding: 10px 0;
    }

    .site-nav {
        position: sticky;
        top: 0;
    }

    .site-nav__inner {
        position: relative;
    }

    .post-title {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .post-featured-image {
        height: 300px;
        margin-bottom: 30px;
    }

    .post-content p {
        font-size: 16px;
    }

    .archive-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .about-stat__number {
        font-size: 36px;
    }

    .page-title {
        font-size: 34px;
    }

    .newsletter-section {
        padding: 40px 20px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .author-box {
        flex-direction: column;
    }

    .contact-form .form-group-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 28px;
    }

    .post-title {
        font-size: 28px;
    }

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

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

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

    .newsletter-form input[type="email"] {
        border-right: 1px solid #e0e0e0;
        border-bottom: none;
    }

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

/* =============================================================================
   GUIDE CARDS (page-guides.php)
   ========================================================================== */

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid #e0e0e0;
    background: transparent;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.filter-tab:hover,
.filter-tab.is-active {
    border-color: #1a1a1a;
    color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

.guides-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

.guide-card {
    border: 1px solid #e0e0e0;
    padding: 0;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.guide-card:hover {
    border-color: #1a1a1a;
    background: #f9f9f9;
}

.guide-card a {
    text-decoration: none;
    color: inherit;
}

/* Header section */
.guide-header {
    padding: 28px;
    border-bottom: 1px solid #e0e0e0;
}

.guide-difficulty {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin-bottom: 8px;
}

.guide-difficulty--beginner  { color: #4caf50; }
.guide-difficulty--intermediate { color: #ff9800; }
.guide-difficulty--advanced  { color: #f44336; }

.guide-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.guide-description {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Body / content section */
.guide-content {
    padding: 28px;
}

.guide-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.guide-step {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.guide-step__number {
    font-weight: 700;
    color: #1a1a1a;
    min-width: 24px;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

.guide-step__text {
    color: #666;
    line-height: 1.6;
}

.guide-time {
    font-size: 13px;
    color: #999;
    font-family: 'Inter', sans-serif;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.guide-link {
    display: inline-block;
    font-size: 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.3s;
}

.guide-link:hover {
    border-bottom-color: transparent;
    padding-left: 8px;
}

.guides-placeholder {
    text-align: center;
    padding: 80px 40px;
    border: 1px dashed #e0e0e0;
    margin-bottom: 60px;
}

.guides-placeholder__text {
    color: #999;
    margin-bottom: 24px;
}

/* =============================================================================
   TOOL CARDS (page-tools.php)
   ========================================================================== */

.tool-category-section {
    margin-bottom: 60px;
}

.tool-category-section__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

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

.tool-card {
    border: 1px solid #e0e0e0;
    padding: 20px;
    background: #fff;
    transition: border-color 0.2s;
}

.tool-card:hover {
    border-color: #1a1a1a;
}

.tool-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.tool-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.tool-card__price {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    white-space: nowrap;
}

.tool-card__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tool-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tool-tag {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #e0e0e0;
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.tool-card__link {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-decoration: none;
    display: inline-block;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.tool-card__link:hover {
    border-bottom-color: transparent;
}

/* =============================================================================
   PROJECT CARDS (page-projects.php)
   ========================================================================== */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.projects {
    display: grid;
    gap: 0;
    margin-bottom: 80px;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.project:nth-child(even) {
    direction: rtl;
}

.project:nth-child(even) > * {
    direction: ltr;
}

.project-image {
    width: 100%;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border: 1px solid #e0e0e0;
}

.project-image__placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.project-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.project-content h3 a {
    text-decoration: none;
    color: inherit;
}

.project-content h3 a:hover {
    text-decoration: underline;
}

.project-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.project-meta-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: start;
}

.project-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
    padding-top: 2px;
}

.project-meta-value {
    font-size: 14px;
    color: #333;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
    border-radius: 3px;
}

.project-links {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #1a1a1a;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.3s;
}

.project-link:hover {
    background: #1a1a1a;
    color: white;
}

.project-link.secondary {
    border-color: #e0e0e0;
    color: #666;
}

.project-link.secondary:hover {
    border-color: #1a1a1a;
    background: white;
    color: #1a1a1a;
}

.project-detail-image {
    margin: 32px 0 40px;
    overflow: hidden;
}

.project-detail-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border: 1px solid #e0e0e0;
}

.project-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tech-stack--large .tech-tag {
    font-size: 13px;
    padding: 6px 14px;
}

/* =============================================================================
   SINGLE PROJECT — full redesign
   ========================================================================== */

/* ── Header ── */
.sp-header {
    padding: 64px 0 56px;
    border-bottom: 1px solid #e0e0e0;
    max-width: 820px;
}

.sp-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.sp-status {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 2px;
}

.sp-meta-sep {
    color: #ccc;
    font-size: 16px;
    line-height: 1;
}

.sp-year {
    font-size: 13px;
    color: #999;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.sp-header__title {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2.5px;
    color: #1a1a1a;
    margin: 0 0 28px;
}

.sp-header__tagline {
    font-size: 19px;
    color: #555;
    line-height: 1.75;
    margin: 0 0 36px;
    max-width: 660px;
}

/* WordPress wraps auto-excerpts in <p> — strip the margin */
.sp-header__tagline p {
    margin: 0;
}

.sp-header__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    cursor: pointer;
    white-space: nowrap;
}

.sp-btn--primary {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
}

.sp-btn--primary:hover {
    background: #333;
    border-color: #333;
}

.sp-btn--ghost {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #d0d0d0;
}

.sp-btn--ghost:hover {
    border-color: #1a1a1a;
    background: #f5f5f5;
}

/* ── Full-bleed hero image ── */
.sp-hero-image {
    /* Escape the 40px container padding on both sides */
    margin: 0 -40px;
    width: calc(100% + 80px);
    overflow: hidden;
    line-height: 0;
}

.sp-hero-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

/* ── Tech stack strip ── */
.sp-tech-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.sp-tech-bar__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #999;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.sp-tech-bar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Article body — centered reading column ── */
.sp-body {
    max-width: 720px;
    margin: 64px auto 0;
    padding-bottom: 64px;
    border-bottom: 1px solid #e0e0e0;

    /* Typography */
    font-size: 17px;
    line-height: 1.9;
    color: #2a2a2a;
    font-family: 'Inter', sans-serif;
}

.sp-body h2,
.sp-body h3,
.sp-body h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    margin-top: 48px;
    margin-bottom: 18px;
    line-height: 1.2;
}

.sp-body h2 { font-size: 30px; }
.sp-body h3 { font-size: 24px; }
.sp-body h4 { font-size: 18px; }

.sp-body p { margin-bottom: 22px; }

.sp-body ul,
.sp-body ol {
    padding-left: 26px;
    margin-bottom: 22px;
}

.sp-body li { margin-bottom: 10px; }

.sp-body a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sp-body blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 3px solid #1a1a1a;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

.sp-body pre {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 24px;
    overflow-x: auto;
    margin: 28px 0;
    font-size: 13.5px;
    line-height: 1.7;
    border-radius: 2px;
}

.sp-body code {
    background: #f0f0f0;
    color: #1a1a1a;
    padding: 2px 7px;
    font-size: 14px;
    border-radius: 2px;
}

.sp-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.sp-body img {
    width: 100%;
    height: auto;
    display: block;
    margin: 32px 0;
    border: 1px solid #e0e0e0;
}

/* ── Footer row ── */
.sp-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 40px 0 0;
    margin-bottom: 64px;
}

.sp-back-link {
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.sp-back-link:hover { color: #1a1a1a; }

.sp-footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .sp-header__title {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .sp-header__tagline {
        font-size: 17px;
    }

    .sp-hero-image {
        margin: 0 -20px;
        width: calc(100% + 40px);
    }

    .sp-hero-image img {
        height: 300px;
    }

    .sp-body {
        margin-top: 48px;
        font-size: 16px;
    }

    .sp-footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================================================
   RESOURCE LIST (page-resources.php)
   ========================================================================== */

.resource-category-section {
    margin-bottom: 56px;
}

.resource-category-section__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.resource-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: start;
}

.resource-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-column: 1;
}

.resource-item__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.resource-item__type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #666;
    padding: 2px 8px;
    border: 1px solid #e0e0e0;
}

.resource-item__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    grid-column: 1;
}

.resource-item__link {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-decoration: none;
    display: inline-block;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    white-space: nowrap;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    transition: all 0.2s;
}

.resource-item__link:hover {
    border-bottom-color: transparent;
}

/* =============================================================================
   CODE TEMPLATES (page-templates.php)
   ========================================================================== */

.template-category-section {
    margin-bottom: 64px;
}

.template-category-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.template-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.template-item {
    border: 1px solid #e0e0e0;
    padding: 24px;
    background: #fff;
    transition: border-color 0.2s;
}

.template-item:hover {
    border-color: #1a1a1a;
}

.template-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.template-item__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.template-item__lang {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.template-item__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.template-item__preview {
    background: #f5f5f5;
    border-left: 3px solid #1a1a1a;
    padding: 12px 14px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    overflow-x: auto;
    margin-bottom: 14px;
    white-space: pre;
}

.template-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.template-item__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.template-item__link {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-decoration: none;
    display: inline-block;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.template-item__link:hover {
    border-bottom-color: transparent;
}

/* =============================================================================
   SINGLE GUIDE / TOOL / RESOURCE / PROJECT
   ========================================================================== */

.guide-detail-header {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.guide-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.guide-detail-meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.guide-meta-item {
    display: flex;
    flex-direction: column;
}

.guide-meta-item__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
    margin-bottom: 4px;
}

.guide-meta-item__value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.guide-detail-intro {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
    max-width: 680px;
}

.guide-detail-content {
    margin-bottom: 48px;
}

/* Tip / Warning boxes in guide content */
.guide-detail-content .tip-box,
.tip-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px 24px;
    margin: 24px 0;
}

.tip-box .tip-title {
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 6px;
}

.tip-box .tip-content {
    font-size: 14px;
    color: #0d47a1;
    line-height: 1.6;
}

.guide-detail-content .warning-box,
.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px 24px;
    margin: 24px 0;
}

.warning-box .warning-title {
    font-weight: 700;
    color: #e65100;
    margin-bottom: 6px;
}

.warning-box .warning-content {
    font-size: 14px;
    color: #bf360c;
    line-height: 1.6;
}

/* Step blocks in guide content */
.guide-detail-content .step {
    margin-bottom: 40px;
    padding: 28px;
    background: #f9f9f9;
    border-left: 4px solid #1a1a1a;
}

.guide-detail-content .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 14px;
}

.guide-detail-content .step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.guide-detail-content .code-block {
    background: #f5f5f5;
    border-left: 4px solid #1a1a1a;
    padding: 14px 16px;
    margin: 14px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

/* Next Steps box */
.next-steps {
    background: #f9f9f9;
    padding: 36px;
    border: 1px solid #e0e0e0;
    margin: 48px 0;
}

.next-steps .next-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.next-steps .next-list {
    margin-left: 20px;
}

.next-steps .next-list li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.next-steps .next-list a {
    color: #1a1a1a;
    font-weight: 600;
    border-bottom: 1px solid #1a1a1a;
    transition: border-color 0.2s;
}

.next-steps .next-list a:hover {
    border-bottom-color: transparent;
}

/* Steps overview list */
.guide-detail-steps-list {
    margin-bottom: 36px;
}

.steps-overview {
    margin-left: 24px;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

.steps-overview li {
    margin-bottom: 6px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.content-block {
    margin-bottom: 40px;
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pros-box,
.cons-box {
    padding: 24px;
    border: 1px solid #e0e0e0;
}

.pros-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cons-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.pros-box ul,
.cons-box ul {
    margin-left: 18px;
}

.pros-box li,
.cons-box li {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    font-size: 14px;
}

.comparison-table th {
    text-align: left;
    padding: 10px 14px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.comparison-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.comparison-table tr:nth-child(even) td {
    background: #f9f9f9;
}

/* CTA button */
.cta-button {
    display: inline-block;
    padding: 12px 36px;
    border: 1px solid #1a1a1a;
    background: transparent;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 20px;
}

.cta-button:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Related section */
.related-section {
    background: #f9f9f9;
    padding: 36px;
    margin: 48px 0 0;
    border: 1px solid #e0e0e0;
}

.related-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.related-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.related-item {
    background: #fff;
    padding: 16px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #1a1a1a;
    transition: border-color 0.2s;
    display: block;
}

.related-item:hover {
    border-color: #1a1a1a;
}

.related-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.related-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Back link row */
.guide-back-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.back-link {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 1;
}

/* =============================================================================
   RESPONSIVE — NEW COMPONENTS
   ========================================================================== */

@media (max-width: 900px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }

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

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card__image {
        height: 200px;
        overflow: hidden;
    }

    .project-card__content {
        padding: 24px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project:nth-child(even) {
        direction: ltr;
    }

    .project:nth-child(even) > * {
        direction: ltr;
    }

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

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .related-items {
        grid-template-columns: 1fr;
    }

    .resource-item {
        grid-template-columns: 1fr;
    }

    .resource-item__link {
        grid-column: 1;
        grid-row: auto;
    }

    .guide-detail-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .guide-detail-meta {
        gap: 20px;
    }

    .comparison-table {
        font-size: 12px;
    }

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