/*
Theme Name: NineToFive
Version: 1.0.2
Text Domain: ninetofive
Description: Clean tech blog theme with minimalist Apple-inspired design. Perfect for technology and gadget news.
Author: Developer
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

:root {
    --ntf-primary: #0070c9;
    --ntf-secondary: #1d1d1f;
    --ntf-accent: #06c;
    --ntf-text: #1d1d1f;
    --ntf-text-light: #6e6e73;
    --ntf-bg: #ffffff;
    --ntf-bg-alt: #f5f5f7;
    --ntf-border: #d2d2d7;
    --ntf-font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --ntf-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --ntf-transition: 0.2s ease;
    --ntf-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ntf-font-body); font-size: 1rem; line-height: 1.65; color: var(--ntf-text); background: var(--ntf-bg-alt); -webkit-font-smoothing: antialiased; }
a { color: var(--ntf-primary); text-decoration: none; transition: color var(--ntf-transition); }
a:hover, a:focus { color: var(--ntf-accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ntf-font-heading); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; color: var(--ntf-secondary); letter-spacing: -0.01em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1.25em; }

.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: fixed; top: 5px; left: 5px; width: auto; height: auto; padding: 15px 23px 14px; clip: auto; font-size: 0.875rem; font-weight: 700; text-decoration: none; background: #f1f1f1; color: #21759b; z-index: 100000; }
.ntf-skip-link { position: absolute; top: -100px; left: 0; padding: 1rem 1.5rem; background: var(--ntf-primary); color: #fff; font-weight: 600; z-index: 99999; transition: top var(--ntf-transition); border-radius: var(--ntf-radius); }
.ntf-skip-link:focus { top: 10px; left: 10px; color: #fff; outline: none; }

.ntf-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.ntf-header { background: rgba(255,255,255,0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.ntf-header-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.ntf-logo { display: flex; align-items: center; font-family: var(--ntf-font-heading); font-size: 1.25rem; font-weight: 700; color: var(--ntf-secondary); }
.ntf-logo:hover, .ntf-logo:focus { color: var(--ntf-primary); }
.ntf-logo img { height: 2rem; width: auto; }

.ntf-nav { display: flex; align-items: center; gap: 0.5rem; }
.ntf-nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }
.ntf-nav-menu a { display: block; padding: 0.5rem 1rem; color: var(--ntf-secondary); font-size: 0.875rem; font-weight: 500; transition: all var(--ntf-transition); }
.ntf-nav-menu a:hover, .ntf-nav-menu a:focus { color: var(--ntf-primary); }
.ntf-nav-menu .current-menu-item > a { color: var(--ntf-primary); }
.ntf-menu-toggle { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--ntf-secondary); }
.ntf-menu-toggle svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

.ntf-search-toggle { background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--ntf-text-light); display: flex; align-items: center; }
.ntf-search-toggle svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.ntf-search-toggle:hover { color: var(--ntf-primary); }
.ntf-search-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 10000; display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.ntf-search-overlay.ntf-search-active { opacity: 1; visibility: visible; }
.ntf-search-form { width: 100%; max-width: 600px; padding: 1.5rem; background: var(--ntf-bg); border-radius: var(--ntf-radius); }
.ntf-search-form input[type="search"] { width: 100%; padding: 1rem 1.25rem; font-size: 1.125rem; border: none; background: var(--ntf-bg-alt); border-radius: var(--ntf-radius); outline: none; }
.ntf-search-form input[type="search"]:focus { box-shadow: 0 0 0 4px rgba(0,112,201,0.3); }
.ntf-search-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.9); border: none; color: var(--ntf-secondary); width: 2.5rem; height: 2.5rem; border-radius: 50%; cursor: pointer; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.ntf-search-close:hover { background: #fff; }

.ntf-content { padding: 2rem 0; min-height: 50vh; }
.ntf-content-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.ntf-has-sidebar .ntf-content-inner { grid-template-columns: 1fr 300px; }
.ntf-main { min-width: 0; }

.ntf-breadcrumbs { padding: 0.75rem 0; margin-bottom: 1rem; font-size: 0.8125rem; }
.ntf-breadcrumbs-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; list-style: none; margin: 0; padding: 0; }
.ntf-breadcrumbs-list li::after { content: "›"; margin-left: 0.375rem; color: var(--ntf-text-light); }
.ntf-breadcrumbs-list li:last-child::after { display: none; }
.ntf-breadcrumbs a { color: var(--ntf-text-light); }
.ntf-breadcrumbs a:hover { color: var(--ntf-primary); }

.ntf-article-card { display: flex; flex-direction: column; background: var(--ntf-bg); border-radius: var(--ntf-radius); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.ntf-article-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.ntf-article-thumb { position: relative; overflow: hidden; }
.ntf-article-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.4s ease; }
.ntf-article-card:hover .ntf-article-thumb img { transform: scale(1.03); }
.ntf-article-category { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--ntf-primary); color: #fff; padding: 0.25rem 0.625rem; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; border-radius: 6px; }
.ntf-article-body { padding: 1.25rem; }
.ntf-article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; color: var(--ntf-text-light); margin-bottom: 0.5rem; }
.ntf-article-meta a { color: var(--ntf-text-light); }
.ntf-article-meta a:hover { color: var(--ntf-primary); }
.ntf-article-title { font-size: 1.125rem; margin-bottom: 0.5rem; line-height: 1.3; }
.ntf-article-title a { color: var(--ntf-secondary); }
.ntf-article-title a:hover { color: var(--ntf-primary); }
.ntf-article-excerpt { color: var(--ntf-text-light); font-size: 0.9375rem; line-height: 1.55; }
.ntf-sticky-badge { display: inline-block; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 0.25rem 0.625rem; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; border-radius: 6px; margin-bottom: 0.5rem; }

.ntf-article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.ntf-article-list { display: flex; flex-direction: column; gap: 1.5rem; }

.ntf-single { background: var(--ntf-bg); border-radius: var(--ntf-radius); overflow: hidden; }
.ntf-single-header { padding: 2rem 2rem 0; }
.ntf-single-category { display: inline-block; color: var(--ntf-primary); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.75rem; }
.ntf-single-category a { color: var(--ntf-primary); }
.ntf-single-title { font-size: 2rem; margin-bottom: 1rem; line-height: 1.15; letter-spacing: -0.02em; }
.ntf-single-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--ntf-text-light); padding-bottom: 1.5rem; border-bottom: 1px solid var(--ntf-border); }
.ntf-single-author { color: var(--ntf-secondary); font-weight: 500; }
.ntf-single-thumbnail { margin: 0; }
.ntf-single-thumbnail img { width: 100%; }
.ntf-single-thumbnail figcaption { font-size: 0.8125rem; color: var(--ntf-text-light); padding: 0.75rem 2rem; background: var(--ntf-bg-alt); }

.ntf-entry-content { padding: 2rem; font-size: 1.0625rem; line-height: 1.8; }
.ntf-entry-content p { margin-bottom: 1.5em; }
.ntf-entry-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.ntf-entry-content h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.ntf-entry-content a { color: var(--ntf-primary); text-decoration: underline; text-decoration-color: rgba(0,112,201,0.3); text-underline-offset: 2px; }
.ntf-entry-content a:hover { text-decoration-color: currentColor; }
.ntf-entry-content blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--ntf-bg-alt); border-radius: var(--ntf-radius); font-size: 1.125rem; font-style: italic; border-left: 3px solid var(--ntf-primary); }
.ntf-entry-content ul, .ntf-entry-content ol { margin: 1.5em 0; padding-left: 1.5em; }
.ntf-entry-content li { margin-bottom: 0.5em; }
.ntf-entry-content img { margin: 2rem 0; border-radius: var(--ntf-radius); }
.ntf-entry-content figure { margin: 2rem 0; }
.ntf-entry-content figcaption { font-size: 0.875rem; color: var(--ntf-text-light); margin-top: 0.5rem; text-align: center; }
.ntf-entry-content pre { background: #1d1d1f; color: #fff; padding: 1.5rem; overflow-x: auto; font-size: 0.875rem; border-radius: var(--ntf-radius); }
.ntf-entry-content code { background: var(--ntf-bg-alt); padding: 0.125rem 0.375rem; font-size: 0.875em; border-radius: 4px; }

.ntf-tags { padding: 0 2rem 1.5rem; }
.ntf-tags-title { font-size: 0.75rem; font-weight: 600; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ntf-text-light); }
.ntf-tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ntf-tags-list a { display: inline-block; padding: 0.375rem 0.75rem; background: var(--ntf-bg-alt); color: var(--ntf-text); font-size: 0.8125rem; border-radius: 20px; }
.ntf-tags-list a:hover { background: var(--ntf-primary); color: #fff; }

.ntf-share { padding: 0 2rem 1.5rem; }
.ntf-share-title { font-size: 0.75rem; font-weight: 600; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ntf-text-light); }
.ntf-share-buttons { display: flex; gap: 0.5rem; }
.ntf-share-buttons a { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; background: var(--ntf-bg-alt); color: var(--ntf-text); border-radius: 50%; }
.ntf-share-buttons a:hover { background: var(--ntf-primary); color: #fff; }
.ntf-share-buttons svg { width: 0.875rem; height: 0.875rem; fill: currentColor; }

.ntf-author-box { margin: 0 2rem 2rem; padding: 1.5rem; background: var(--ntf-bg-alt); border-radius: var(--ntf-radius); display: flex; gap: 1rem; }
.ntf-author-avatar img { width: 64px; height: 64px; border-radius: 50%; }
.ntf-author-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.ntf-author-bio { font-size: 0.875rem; color: var(--ntf-text-light); }

.ntf-post-nav { margin: 0 2rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ntf-border); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ntf-post-nav-item { display: flex; flex-direction: column; }
.ntf-post-nav-item.ntf-next { text-align: right; }
.ntf-post-nav-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ntf-text-light); margin-bottom: 0.375rem; }
.ntf-post-nav-title { font-size: 0.9375rem; font-weight: 500; color: var(--ntf-secondary); }
.ntf-post-nav-title:hover { color: var(--ntf-primary); }

.ntf-related { margin: 0 2rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ntf-border); }
.ntf-related-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em; }
.ntf-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ntf-related-item { display: flex; flex-direction: column; }
.ntf-related-thumb { margin-bottom: 0.625rem; overflow: hidden; border-radius: 8px; }
.ntf-related-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.3s ease; }
.ntf-related-item:hover .ntf-related-thumb img { transform: scale(1.03); }
.ntf-related-item-title { font-size: 0.875rem; font-weight: 500; line-height: 1.35; color: var(--ntf-secondary); }
.ntf-related-item-title:hover { color: var(--ntf-primary); }

.ntf-sidebar { font-size: 0.9375rem; }
.ntf-widget { background: var(--ntf-bg); padding: 1.25rem; margin-bottom: 1rem; border-radius: var(--ntf-radius); }
.ntf-widget-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.625rem; border-bottom: 2px solid var(--ntf-primary); }
.ntf-widget ul { list-style: none; margin: 0; padding: 0; }
.ntf-widget li { padding: 0.5rem 0; border-bottom: 1px solid var(--ntf-border); }
.ntf-widget li:last-child { border-bottom: none; }
.ntf-widget a { color: var(--ntf-text); }
.ntf-widget a:hover { color: var(--ntf-primary); }

.ntf-pagination { display: flex; justify-content: center; align-items: center; gap: 0.25rem; margin-top: 2rem; }
.ntf-pagination a, .ntf-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.625rem; border-radius: 8px; font-weight: 500; font-size: 0.875rem; }
.ntf-pagination a:hover { background: var(--ntf-bg); }
.ntf-pagination .current { background: var(--ntf-primary); color: #fff; }

.ntf-page-header { margin-bottom: 1.5rem; background: var(--ntf-bg); padding: 1.5rem; border-radius: var(--ntf-radius); }
.ntf-page-title { font-size: 1.75rem; margin-bottom: 0.25rem; }
.ntf-page-desc { color: var(--ntf-text-light); font-size: 1rem; }

.ntf-search-header { background: var(--ntf-bg); padding: 1.5rem; border-radius: var(--ntf-radius); margin-bottom: 1.5rem; }
.ntf-search-query { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.25rem; }
.ntf-search-count { color: var(--ntf-text-light); font-size: 0.875rem; }
.ntf-no-results { text-align: center; padding: 3rem 2rem; background: var(--ntf-bg); border-radius: var(--ntf-radius); }
.ntf-no-results-title { font-size: 1.375rem; margin-bottom: 0.75rem; }
.ntf-no-results-text { color: var(--ntf-text-light); margin-bottom: 1.25rem; }

.ntf-error-page { text-align: center; padding: 4rem 2rem; background: var(--ntf-bg); border-radius: var(--ntf-radius); }
.ntf-error-code { font-size: 6rem; font-weight: 700; color: var(--ntf-primary); line-height: 1; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ntf-error-title { font-size: 1.75rem; margin-bottom: 0.75rem; }
.ntf-error-text { color: var(--ntf-text-light); font-size: 1rem; margin-bottom: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto; }
.ntf-error-search { max-width: 360px; margin: 0 auto 1.25rem; }
.ntf-error-search input[type="search"] { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--ntf-border); font-size: 1rem; border-radius: var(--ntf-radius); }
.ntf-error-search input[type="search"]:focus { border-color: var(--ntf-primary); outline: none; box-shadow: 0 0 0 4px rgba(0,112,201,0.2); }
.ntf-error-home { display: inline-block; padding: 0.75rem 1.5rem; background: var(--ntf-primary); color: #fff; font-weight: 600; font-size: 0.9375rem; border-radius: var(--ntf-radius); }
.ntf-error-home:hover { background: var(--ntf-accent); color: #fff; }

.ntf-comments { margin: 0 2rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ntf-border); }
.ntf-comments-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 1.25rem; }
.ntf-comments-list { list-style: none; margin: 0; padding: 0; }
.ntf-comment { padding: 1.25rem 0; border-bottom: 1px solid var(--ntf-border); }
.ntf-comment:last-child { border-bottom: none; }
.ntf-comment-body { display: flex; gap: 0.875rem; }
.ntf-comment-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.ntf-comment-content { flex: 1; }
.ntf-comment-meta { margin-bottom: 0.375rem; }
.ntf-comment-author { font-weight: 600; font-size: 0.9375rem; }
.ntf-comment-date { font-size: 0.75rem; color: var(--ntf-text-light); margin-left: 0.5rem; }
.ntf-comment-text { font-size: 0.9375rem; }
.ntf-comment-actions { margin-top: 0.5rem; font-size: 0.75rem; }
.ntf-comment-actions a { color: var(--ntf-text-light); margin-right: 0.75rem; }
.ntf-comment-actions a:hover { color: var(--ntf-primary); }
.ntf-comment-awaiting { background: #fff3cd; padding: 0.5rem 0.75rem; font-size: 0.8125rem; margin-bottom: 0.5rem; border-radius: 6px; }
.ntf-comment-form { margin-top: 1.5rem; }
.ntf-comment-form label { display: block; font-weight: 500; margin-bottom: 0.375rem; font-size: 0.875rem; }
.ntf-comment-form input[type="text"], .ntf-comment-form input[type="email"], .ntf-comment-form input[type="url"], .ntf-comment-form textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--ntf-border); font-size: 1rem; margin-bottom: 0.875rem; border-radius: var(--ntf-radius); }
.ntf-comment-form textarea { min-height: 120px; resize: vertical; }
.ntf-comment-form input:focus, .ntf-comment-form textarea:focus { border-color: var(--ntf-primary); outline: none; box-shadow: 0 0 0 4px rgba(0,112,201,0.2); }
.ntf-comment-form input[type="submit"] { background: var(--ntf-primary); color: #fff; border: none; padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 600; cursor: pointer; border-radius: var(--ntf-radius); }
.ntf-comment-form input[type="submit"]:hover { background: var(--ntf-accent); }
.ntf-comments-closed { background: var(--ntf-bg-alt); padding: 1rem; text-align: center; color: var(--ntf-text-light); border-radius: var(--ntf-radius); }

.ntf-footer { background: var(--ntf-secondary); color: #fff; margin-top: 2rem; }
.ntf-footer-widgets { padding: 2.5rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.ntf-footer-widget { font-size: 0.875rem; }
.ntf-footer-widget-title { font-size: 0.8125rem; font-weight: 600; margin-bottom: 1rem; }
.ntf-footer-widget ul { list-style: none; margin: 0; padding: 0; }
.ntf-footer-widget li { padding: 0.375rem 0; }
.ntf-footer-widget a { color: rgba(255,255,255,0.7); }
.ntf-footer-widget a:hover { color: #fff; }
.ntf-footer-bottom { padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.ntf-footer-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0 0 0.75rem; padding: 0; }
.ntf-footer-menu a { color: rgba(255,255,255,0.7); font-size: 0.8125rem; }
.ntf-footer-menu a:hover { color: #fff; }
.ntf-copyright { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.ntf-scroll-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 2.75rem; height: 2.75rem; background: var(--ntf-bg); color: var(--ntf-secondary); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--ntf-transition); z-index: 999; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.ntf-scroll-top.ntf-visible { opacity: 1; visibility: visible; }
.ntf-scroll-top:hover { background: var(--ntf-primary); color: #fff; }
.ntf-scroll-top svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }

@media (max-width: 1024px) {
    .ntf-has-sidebar .ntf-content-inner { grid-template-columns: 1fr; }
    .ntf-sidebar { order: 2; }
    .ntf-footer-widgets { grid-template-columns: repeat(2, 1fr); }
    .ntf-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ntf-sidebar { display: none !important; }
    .ntf-nav-menu { display: none; position: fixed; top: 3.5rem; left: 0; right: 0; background: var(--ntf-bg); flex-direction: column; padding: 0.5rem; gap: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .ntf-nav-menu.ntf-nav-open { display: flex; }
    .ntf-nav-menu a { padding: 0.75rem 1rem; border-bottom: 1px solid var(--ntf-border); }
    .ntf-menu-toggle { display: block; }
    .ntf-single-title { font-size: 1.5rem; }
    .ntf-single-header, .ntf-entry-content, .ntf-tags, .ntf-share, .ntf-author-box, .ntf-post-nav, .ntf-related, .ntf-comments { padding-left: 1.25rem; padding-right: 1.25rem; margin-left: 0; margin-right: 0; }
    .ntf-footer-widgets { grid-template-columns: 1fr; gap: 1.5rem; }
    .ntf-related-grid { grid-template-columns: 1fr; }
    .ntf-post-nav { grid-template-columns: 1fr; gap: 0.75rem; }
    .ntf-post-nav-item.ntf-next { text-align: left; }
    .ntf-author-box { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .ntf-container { padding: 0 1rem; }
    .ntf-single-title { font-size: 1.375rem; }
    .ntf-error-code { font-size: 4rem; }
    .ntf-article-grid { grid-template-columns: 1fr; }
}

:focus { outline: 2px solid var(--ntf-primary); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--ntf-primary); outline-offset: 2px; }

/* Interlinking Section */
.nine-interlinking {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.nine-interlinking-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.nine-interlinking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nine-interlinking-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}
.nine-interlinking-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--nine-color-primary, #333);
}
.nine-interlinking-list a {
    color: var(--nine-color-primary, #333);
    text-decoration: none;
}
.nine-interlinking-list a:hover {
    text-decoration: underline;
}

/* Grid Layout Options */
.ntf-article-grid.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ntf-article-grid.grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.ntf-article-grid.grid-list { display: flex; flex-direction: column; gap: 1.5rem; }
.ntf-article-grid.grid-list .ntf-article-card { flex-direction: row; }
.ntf-article-grid.grid-list .ntf-article-thumb { flex: 0 0 300px; }
.ntf-article-grid.grid-list .ntf-article-body { flex: 1; }
@media (max-width: 1024px) {
    .ntf-article-grid.grid-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ntf-article-grid.grid-3col, .ntf-article-grid.grid-2col { grid-template-columns: 1fr; }
    .ntf-article-grid.grid-list .ntf-article-card { flex-direction: column; }
    .ntf-article-grid.grid-list .ntf-article-thumb { flex: none; }
}
