/* Food Network inspired theme for kafeigonglue.com
   Color system:
   - Body bg: #F9F9F9
   - Nav bg: #FFFFFF, text: #1C1C1C
   - Brand accent (red/pink): #E91E63
   - Footer bg: #000000, text: #FFFFFF
   - Card bg: #FFFFFF
   - Border: #EAECEF
   - Text: #1C1C1C, secondary: #666666, muted: #999999
   Font: Franklin Gothic / Helvetica / Arial */

:root {
    --fn-body-bg: #F9F9F9;
    --fn-white: #FFFFFF;
    --fn-text: #1C1C1C;
    --fn-text-secondary: #666666;
    --fn-text-muted: #999999;
    --fn-border: #EAECEF;
    --fn-border-light: #F2F2F2;
    --fn-accent: #E91E63;
    --fn-accent-dark: #C2185B;
    --fn-footer-bg: #000000;
    --fn-footer-text: #FFFFFF;
    --fn-footer-text-muted: #999999;
    --fn-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --fn-shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Franklin Gothic URW Book", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--fn-text);
    background: var(--fn-body-bg);
    line-height: 1.5;
    font-size: 16px;
}

a { color: var(--fn-text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--fn-accent); }
img { max-width: 100%; height: auto; display: block; }

.fn-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.fn-clearfix::after { content: ""; display: table; clear: both; }

/* === HEADER === */
.fn-header {
    background: var(--fn-white);
    border-bottom: 1px solid var(--fn-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.fn-header-inner {
    display: flex;
    align-items: center;
    height: 70px;
    gap: 24px;
}
.fn-menu-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.fn-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--fn-text);
    transition: background .15s;
}
.fn-menu-toggle:hover span { background: var(--fn-accent); }
.fn-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.fn-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fn-accent);
    color: var(--fn-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    letter-spacing: 0.5px;
}
.fn-logo-icon span { display: block; }
.fn-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--fn-text);
    letter-spacing: -0.5px;
}
.fn-logo-sub {
    font-size: 11px;
    color: var(--fn-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}
.fn-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fn-nav::-webkit-scrollbar { display: none; }
.fn-nav ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.fn-nav li { position: relative; }
.fn-nav li a {
    display: block;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--fn-text);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all .15s;
}
.fn-nav li a:hover,
.fn-nav li a.fn-active {
    color: var(--fn-accent);
    border-bottom-color: var(--fn-accent);
}
.fn-nav li.fn-dropdown > a::after {
    content: " ▾";
    font-size: 10px;
    color: var(--fn-text-muted);
}
.fn-nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
    box-shadow: var(--fn-shadow);
    min-width: 160px;
    flex-direction: column;
    gap: 0;
    z-index: 10;
}
.fn-nav li:hover ul { display: flex; }
.fn-nav li ul li a {
    padding: 10px 18px;
    border-bottom: 1px solid var(--fn-border-light);
    font-weight: 400;
    font-size: 14px;
}
.fn-nav li ul li a:hover { background: var(--fn-body-bg); border-bottom-color: var(--fn-border-light); }

.fn-header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.fn-search-box {
    display: flex;
    align-items: center;
    background: var(--fn-body-bg);
    border: 1px solid var(--fn-border);
    border-radius: 24px;
    padding: 6px 12px;
    width: 260px;
}
.fn-search-box input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--fn-text);
    padding: 4px 8px;
}
.fn-search-box button {
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--fn-text-muted);
    font-size: 16px;
    padding: 4px;
}
.fn-search-box button:hover { color: var(--fn-accent); }

/* === MAIN CONTENT LAYOUT === */
.fn-main { padding: 32px 0 48px; min-height: 60vh; }
.fn-row { display: flex; gap: 32px; }
.fn-content { flex: 1; min-width: 0; }
.fn-sidebar { width: 320px; flex-shrink: 0; }

/* === HERO SECTION (index) === */
.fn-hero {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 6px;
}
.fn-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}
.fn-hero-main {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 16/9;
}
.fn-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.fn-hero-main:hover img { transform: scale(1.03); }
.fn-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 40px 28px 24px;
    color: var(--fn-white);
}
.fn-hero-overlay h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.fn-hero-overlay h2 a { color: var(--fn-white); }
.fn-hero-overlay h2 a:hover { color: var(--fn-accent); }
.fn-hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 16px;
}
.fn-hero-side-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
.fn-hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.fn-hero-side-item:hover img { transform: scale(1.03); }
.fn-hero-side-item .fn-hero-overlay { padding: 24px 16px 14px; }
.fn-hero-side-item .fn-hero-overlay h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.fn-hero-side-item .fn-hero-overlay h3 a { color: var(--fn-white); }
.fn-hero-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.fn-hero-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex: 1;
    min-height: 0;
}
.fn-hero-sub-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    min-width: 0;
}
.fn-hero-sub-item a { display: block; height: 100%; }
.fn-hero-sub-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.fn-hero-sub-item:hover img { transform: scale(1.03); }
.fn-hero-sub-item .fn-hero-overlay { padding: 32px 14px 12px; }
.fn-hero-sub-item .fn-hero-overlay h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fn-hero-sub-item .fn-hero-overlay h3 a { color: var(--fn-white); }

/* === SECTION TITLES === */
.fn-section { margin-bottom: 48px; }
.fn-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--fn-text);
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.fn-section-title h2 {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fn-text);
}
.fn-section-title .fn-section-more {
    font-size: 13px;
    color: var(--fn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.fn-section-title .fn-section-more:hover { color: var(--fn-accent); }

/* === ARTICLE CARDS === */
.fn-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.fn-card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fn-card-grid > * { min-width: 0; }

.fn-card {
    background: var(--fn-white);
    border-radius: 6px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.fn-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fn-shadow-hover);
}
.fn-card-img {
    position: relative;
    display: block;
    aspect-ratio: 3/2;
    overflow: hidden;
}
.fn-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.fn-card:hover .fn-card-img img { transform: scale(1.05); }
.fn-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.85) 100%);
    padding: 38px 14px 12px;
}
.fn-card-ocat {
    display: inline-block;
    background: var(--fn-accent);
    color: var(--fn-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
}
.fn-card-otitle {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--fn-white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fn-card-body { padding: 16px 4px; }
.fn-card-cat {
    font-size: 11px;
    color: var(--fn-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 6px;
}
.fn-card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}
.fn-card-title a { color: var(--fn-text); }
.fn-card-title a:hover { color: var(--fn-accent); }
.fn-card-meta {
    font-size: 12px;
    color: var(--fn-text-muted);
}
.fn-card-desc {
    font-size: 14px;
    color: var(--fn-text-secondary);
    line-height: 1.5;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === LIST PAGE (article list rows) === */
.fn-list-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--fn-border);
    padding-bottom: 16px;
}
.fn-list-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}
.fn-list-breadcrumb {
    font-size: 13px;
    color: var(--fn-text-muted);
}
.fn-list-breadcrumb a { color: var(--fn-text-muted); }
.fn-list-breadcrumb a:hover { color: var(--fn-accent); }
.fn-list-breadcrumb span { margin: 0 6px; }

.fn-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--fn-border-light);
}
.fn-list-item:last-child { border-bottom: 0; }
.fn-list-item-img {
    width: 220px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}
.fn-list-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.fn-list-item:hover .fn-list-item-img img { transform: scale(1.05); }
.fn-list-item-body { flex: 1; min-width: 0; }
.fn-list-item-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}
.fn-list-item-title a { color: var(--fn-text); }
.fn-list-item-title a:hover { color: var(--fn-accent); }
.fn-list-item-meta {
    font-size: 13px;
    color: var(--fn-text-muted);
    margin-bottom: 10px;
}
.fn-list-item-meta span { margin-right: 14px; }
.fn-list-item-desc {
    font-size: 14px;
    color: var(--fn-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fn-list-item-tags { margin-top: 10px; }
.fn-list-item-tags a {
    display: inline-block;
    background: var(--fn-border-light);
    color: var(--fn-text-secondary);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 6px;
}
.fn-list-item-tags a:hover { background: var(--fn-accent); color: var(--fn-white); }

/* === SHOW (article detail) === */
.fn-article-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--fn-border);
    padding-bottom: 20px;
}
.fn-article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}
.fn-article-meta {
    font-size: 13px;
    color: var(--fn-text-muted);
}
.fn-article-meta span { margin-right: 16px; }
.fn-article-body {
    font-size: 17px;
    line-height: 1.75;
    color: var(--fn-text);
}
.fn-article-body p { margin-bottom: 18px; }
.fn-article-body img { margin: 12px auto; border-radius: 4px; }
.fn-article-body h2, .fn-article-body h3 { margin: 28px 0 14px; font-weight: 700; }
.fn-article-body h2 { font-size: 24px; }
.fn-article-body h3 { font-size: 20px; }
.fn-article-tags {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--fn-border);
}
.fn-article-tags-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--fn-text-muted);
    text-transform: uppercase;
    margin-right: 10px;
}
.fn-article-tags a {
    display: inline-block;
    background: var(--fn-border-light);
    color: var(--fn-text-secondary);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    margin: 4px 4px 4px 0;
}
.fn-article-tags a:hover { background: var(--fn-accent); color: var(--fn-white); }
.fn-article-nav {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--fn-border);
}
.fn-article-nav-cell {
    flex: 1;
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
    border-radius: 6px;
    padding: 16px;
}
.fn-article-nav-cell.fn-next { text-align: right; }
.fn-article-nav-cell .fn-nav-label {
    font-size: 12px;
    color: var(--fn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.fn-article-nav-cell .fn-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--fn-text);
}
.fn-article-nav-cell:hover { border-color: var(--fn-accent); }
.fn-article-nav-cell:hover .fn-nav-title { color: var(--fn-accent); }

/* === SIDEBAR === */
.fn-widget {
    background: var(--fn-white);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}
.fn-widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fn-text);
    border-bottom: 2px solid var(--fn-text);
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.fn-widget-list { list-style: none; }
.fn-widget-list li { padding: 10px 0; border-bottom: 1px solid var(--fn-border-light); }
.fn-widget-list li:last-child { border-bottom: 0; }
.fn-widget-list-num {
    list-style: none;
    counter-reset: fnnum;
}
.fn-widget-list-num li {
    counter-increment: fnnum;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fn-border-light);
}
.fn-widget-list-num li:last-child { border-bottom: 0; }
.fn-widget-list-num li i {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--fn-text-muted);
    color: var(--fn-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
}
.fn-widget-list-num li i::before { content: counter(fnnum); }
.fn-widget-list-num li a {
    font-size: 14px;
    line-height: 1.4;
    color: var(--fn-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fn-widget-list-num li a:hover { color: var(--fn-accent); }
.fn-widget-list li a {
    font-size: 14px;
    line-height: 1.4;
    color: var(--fn-text);
}
.fn-widget-list li a:hover { color: var(--fn-accent); }

.fn-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fn-tag-cloud a {
    display: inline-block;
    background: var(--fn-border-light);
    color: var(--fn-text-secondary);
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
}
.fn-tag-cloud a:hover { background: var(--fn-accent); color: var(--fn-white); }

/* === PAGINATION === */
.fn-pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.fn-pager a, .fn-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--fn-text);
}
.fn-pager a:hover { border-color: var(--fn-accent); color: var(--fn-accent); }
.fn-pager .fn-cur {
    background: var(--fn-accent);
    border-color: var(--fn-accent);
    color: var(--fn-white);
}

/* === TAGS / FRIEND LINKS / FOOTER === */
.fn-tags-section {
    background: var(--fn-white);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 32px;
}
.fn-friend-links {
    background: var(--fn-white);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 32px;
}
.fn-friend-links-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--fn-text);
    padding-bottom: 10px;
}
.fn-friend-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.fn-friend-links li a {
    color: var(--fn-text-secondary);
    font-size: 14px;
}
.fn-friend-links li a:hover { color: var(--fn-accent); }

/* === FOOTER === */
.fn-footer {
    background: var(--fn-footer-bg);
    color: var(--fn-footer-text);
    padding: 48px 0 0;
    margin-top: 48px;
}
.fn-footer-top {
    border-bottom: 1px solid #333333;
    padding-bottom: 36px;
}
.fn-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}
.fn-footer-brand .fn-logo-icon { width: 52px; height: 52px; font-size: 13px; }
.fn-footer-brand .fn-logo-text { color: var(--fn-white); font-size: 22px; }
.fn-footer-brand .fn-logo-sub { color: var(--fn-footer-text-muted); }
.fn-footer-brand p {
    color: var(--fn-footer-text-muted);
    font-size: 14px;
    margin-top: 14px;
    line-height: 1.6;
}
.fn-footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--fn-white);
}
.fn-footer-col ul { list-style: none; }
.fn-footer-col li { margin-bottom: 10px; }
.fn-footer-col li a {
    color: var(--fn-footer-text-muted);
    font-size: 14px;
}
.fn-footer-col li a:hover { color: var(--fn-white); }
.fn-footer-links {
    padding: 24px 0;
    border-bottom: 1px solid #333333;
    text-align: center;
}
.fn-footer-links a {
    color: var(--fn-footer-text-muted);
    font-size: 14px;
    margin: 0 14px;
}
.fn-footer-links a:hover { color: var(--fn-white); }
.fn-footer-copy {
    padding: 24px 0;
    text-align: center;
    color: var(--fn-footer-text-muted);
    font-size: 13px;
}
.fn-footer-copy a { color: var(--fn-footer-text-muted); }
.fn-footer-copy a:hover { color: var(--fn-white); }

/* === 404 / MSG PAGES === */
.fn-msg {
    text-align: center;
    padding: 80px 20px;
    background: var(--fn-white);
    border-radius: 6px;
}
.fn-msg h1 {
    font-size: 72px;
    font-weight: 700;
    color: var(--fn-accent);
    margin-bottom: 16px;
    line-height: 1;
}
.fn-msg h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}
.fn-msg p {
    font-size: 16px;
    color: var(--fn-text-secondary);
    margin-bottom: 28px;
}
.fn-msg .fn-btn {
    display: inline-block;
    background: var(--fn-accent);
    color: var(--fn-white);
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
}
.fn-msg .fn-btn:hover { background: var(--fn-accent-dark); color: var(--fn-white); }

/* === RELATED ARTICLES === */
.fn-related {
    background: var(--fn-white);
    border-radius: 6px;
    padding: 24px;
    margin-top: 32px;
}
.fn-related h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--fn-text);
    padding-bottom: 10px;
}
.fn-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.fn-related-grid > * { min-width: 0; }
.fn-related-item .fn-card-img { aspect-ratio: 4/3; }
.fn-related-item .fn-card-title { font-size: 14px; }

/* === CATEGORY BLOCKS WITH ARTICLES (index) === */
.fn-cat-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.fn-cat-list > * { min-width: 0; }
.fn-cat-block {
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
    border-radius: 6px;
    padding: 18px 20px 10px;
}
.fn-cat-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--fn-text);
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.fn-cat-block-title { font-size: 19px; font-weight: 700; color: var(--fn-text); }
.fn-cat-block-title a { color: inherit; }
.fn-cat-block-title a:hover { color: var(--fn-accent); }
.fn-cat-block-more {
    font-size: 12px;
    color: var(--fn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    flex-shrink: 0;
}
.fn-cat-block-more:hover { color: var(--fn-accent); }
.fn-cat-feature {
    display: block;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 14px;
}
.fn-cat-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.fn-cat-block:hover .fn-cat-feature img { transform: scale(1.04); }
.fn-cat-feature-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.85) 100%);
    padding: 34px 12px 10px;
}
.fn-cat-feature-overlay h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fn-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fn-cat-articles { list-style: none; padding: 0; margin: 0; }
.fn-cat-articles li { border-top: 1px solid var(--fn-border-light); }
.fn-cat-articles a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 2px;
}
.fn-cat-art-thumb {
    flex-shrink: 0;
    width: 96px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--fn-body-bg);
}
.fn-cat-art-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.fn-cat-articles a:hover .fn-cat-art-thumb img { transform: scale(1.08); }
.fn-cat-art-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fn-cat-art-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fn-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fn-cat-articles a:hover .fn-cat-art-title { color: var(--fn-accent); }
.fn-cat-art-meta { font-size: 12px; color: var(--fn-text-muted); }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
    .fn-sidebar { display: none; }
    .fn-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fn-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fn-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .fn-header-inner { height: 60px; gap: 12px; }
    .fn-logo-text { font-size: 17px; }
    .fn-search-box { width: 160px; }
    .fn-nav li a { padding: 6px 10px; font-size: 14px; }
    .fn-hero-grid { grid-template-columns: 1fr; }
    .fn-hero-side { grid-template-rows: 1fr 1fr; grid-template-columns: 1fr 1fr; }
    .fn-card-grid, .fn-card-grid-4 { grid-template-columns: 1fr; }
    .fn-related-grid { grid-template-columns: 1fr; }
    .fn-list-item { flex-direction: column; }
    .fn-list-item-img { width: 100%; height: 200px; }
    .fn-article-nav { flex-direction: column; }
    .fn-footer-grid { grid-template-columns: 1fr; }
    .fn-cat-list { grid-template-columns: 1fr; }
    .fn-cat-art-thumb { width: 84px; height: 56px; }
    .fn-card-otitle { font-size: 15px; }
}