/*
Theme Name: Kalamanthana
Theme URI: https://kalamanthana.id/
Author: ATD
Description: Data-driven WordPress news theme reconstructed from the approved Kalamanthana blueprint.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: kalamanthana
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --kt-color-primary: #055445;
  --kt-color-primary-deep: #043a36;
  --kt-color-accent: #d68b29;
  --kt-color-background: #f9fafb;
  --kt-color-surface: #fff;
  --kt-color-text: #1f2937;
  --kt-color-muted: #6b7280;
  --kt-color-border: #e5e7eb;
  --kt-color-link: #055445;
  --kt-color-link-hover: #d68b29;
  --kt-font-body: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --kt-font-heading: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --kt-font-article: Georgia, serif;
  --kt-base-size: 16px;
  --kt-line-height: 1.5;
  --kt-radius-sm: 6px;
  --kt-radius-md: 8px;
  --kt-radius-lg: 12px;
  --kt-button-radius: 999px;
  --kt-container: 1200px;
  --kt-logo-width: 250px;
  --kt-header-height: 76px;
  --kt-shadow-card: 0 4px 12px rgba(0, 0, 0, .08);
  --kt-motion-duration: 250ms;
  --kt-motion-easing: ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kt-color-background);
  color: var(--kt-color-text);
  font-family: var(--kt-font-body);
  font-size: var(--kt-base-size);
  line-height: var(--kt-line-height);
  overflow-wrap: break-word;
}
body.kt-menu-open, body.kt-dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--kt-color-link); text-decoration: none; }
a:hover { color: var(--kt-color-link-hover); }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--kt-font-heading); line-height: 1.3; }
.kt-container { width: min(100% - 32px, var(--kt-container)); margin-inline: auto; }
.kt-site-main { min-width: 0; }
.screen-reader-text {
  position: absolute !important; 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, .kt-skip-link:focus {
  z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px;
  clip: auto; background: #fff; color: #111827; box-shadow: var(--kt-shadow-card);
}
:focus-visible { outline: 3px solid var(--kt-color-accent); outline-offset: 3px; }

/* Header */
.kt-topbar { background: #fff; border-bottom: 1px solid var(--kt-color-border); font-size: 12px; }
.kt-topbar-inner { display: flex; justify-content: flex-end; align-items: center; min-height: 30px; gap: 16px; }
.kt-topbar a { color: var(--kt-color-muted); }
.kt-header { position: relative; z-index: 40; background: rgba(255,255,255,.97); transition: box-shadow var(--kt-motion-duration) var(--kt-motion-easing); }
.kt-header.is-sticky { position: sticky; top: 0; }
.admin-bar .kt-header.is-sticky { top: 32px; }
.kt-header.is-scrolled { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.kt-masthead { position: relative; display: flex; align-items: center; min-height: var(--kt-header-height); padding-block: 12px; }
.kt-header-left, .kt-header-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }
.kt-header-actions { margin-left: auto; }
.kt-brand { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; }
.kt-header-layout-left .kt-brand { position: relative; left: auto; transform: none; margin-right: auto; }
.kt-brand img { width: min(var(--kt-logo-width), 44vw); max-height: 45px; object-fit: contain; }
.kt-brand-title { color: var(--kt-color-primary); font-weight: 800; font-size: 24px; }
.kt-icon-button {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--kt-color-border); border-radius: 50%; background: #fff; color: #374151;
  transition: color var(--kt-motion-duration), background var(--kt-motion-duration), transform var(--kt-motion-duration);
}
.kt-icon-button:hover { background: var(--kt-color-accent); color: #fff; border-color: var(--kt-color-accent); }
.kt-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.kt-date { display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; color: #4b5563; }
.kt-clock { color: #9ca3af; font-family: ui-monospace, monospace; font-size: 11px; }
.kt-socials { display: flex; gap: 8px; }
.kt-socials a { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d1d5db; border-radius: 50%; color: #4b5563; }
.kt-socials a:hover { color: #fff; background: var(--kt-color-accent); border-color: var(--kt-color-accent); }
.kt-primary-nav { height: 40px; background: var(--kt-color-primary); color: #fff; }
.kt-primary-nav .kt-container { height: 100%; }
.kt-primary-menu, .kt-primary-menu ul { margin: 0; padding: 0; list-style: none; }
.kt-primary-menu { display: flex; align-items: stretch; height: 100%; overflow: visible; }
.kt-primary-menu > li { position: relative; }
.kt-primary-menu > li > a { display: flex; align-items: center; height: 100%; padding: 0 14px; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.kt-primary-menu > li:hover > a, .kt-primary-menu > li.current-menu-item > a, .kt-primary-menu > li.current-menu-ancestor > a { background: rgba(255,255,255,.16); }
.kt-primary-menu .sub-menu {
  position: absolute; top: 100%; left: 0; display: none; min-width: 220px; padding: 8px;
  background: #fff; border: 1px solid var(--kt-color-border); border-radius: 0 0 var(--kt-radius-md) var(--kt-radius-md); box-shadow: var(--kt-shadow-card);
}
.kt-primary-menu li:hover > .sub-menu, .kt-primary-menu li:focus-within > .sub-menu { display: block; }
.kt-primary-menu .sub-menu a { display: block; padding: 9px 10px; border-radius: var(--kt-radius-sm); color: var(--kt-color-text); font-size: 13px; }
.kt-primary-menu .sub-menu a:hover { background: #f3f4f6; color: var(--kt-color-accent); }

/* Drawers and dialogs */
.kt-overlay { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(0,0,0,.6); }
.kt-overlay.is-open { display: block; }
.kt-drawer { width: min(288px, 88vw); height: 100%; overflow-y: auto; padding: 20px; background: #fff; transform: translateX(-100%); transition: transform 300ms ease; }
.kt-overlay.is-open .kt-drawer { transform: translateX(0); }
.kt-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.kt-drawer-logo { width: 34px; }
.kt-mobile-menu, .kt-mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.kt-mobile-menu a { display: block; padding: 9px 8px; border-radius: var(--kt-radius-sm); color: #374151; font-size: 14px; font-weight: 600; }
.kt-mobile-menu .sub-menu { padding-left: 12px; }
.kt-mobile-menu .sub-menu a { font-weight: 400; }
.kt-mobile-menu a:hover { background: #f3f4f6; color: var(--kt-color-accent); }
.kt-dialog-wrap { display: grid; place-items: center; min-height: 100%; padding: 20px; }
.kt-dialog { position: relative; width: min(100%, 512px); padding: 28px; border-radius: var(--kt-radius-lg); background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.22); }
.kt-dialog h2 { margin: 0 0 20px; text-align: center; font-size: 24px; }
.kt-dialog-close { position: absolute; top: 12px; right: 12px; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: var(--kt-radius-md); background: #fff; }
.search-submit, .kt-button {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px;
  border: 1px solid var(--kt-color-primary); border-radius: var(--kt-button-radius); background: var(--kt-color-primary); color: #fff; font-weight: 700;
  transition: background var(--kt-motion-duration), color var(--kt-motion-duration), transform var(--kt-motion-duration);
}
.search-submit:hover, .kt-button:hover { background: var(--kt-color-accent); border-color: var(--kt-color-accent); color: #fff; }
.search-submit:active, .kt-button:active { transform: translateY(1px); }
.search-submit:disabled, .kt-button:disabled { opacity: .58; cursor: not-allowed; }
.kt-button.is-secondary { background: transparent; color: var(--kt-color-primary); }
.kt-button.is-secondary:hover { background: #eef6f4; }

/* Content */
.kt-mini-news { padding: 24px 0 12px; }
.kt-mini-track { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.kt-mini-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 12px; scroll-snap-align: start; border: 1px solid rgba(229,231,235,.8); border-radius: var(--kt-radius-sm); background: #fff; color: var(--kt-color-text); }
.kt-mini-media { position: relative; flex: 0 0 56px; }
.kt-mini-media img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.kt-mini-number { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 21px; height: 21px; border: 2px solid #fff; border-radius: 50%; background: var(--kt-color-accent); color: #fff; font-size: 11px; font-weight: 700; }
.kt-mini-title { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 13px; font-weight: 600; line-height: 1.35; }
.kt-home-grid { display: grid; grid-template-columns: minmax(0, 9fr) minmax(260px, 3fr); gap: 24px; margin-top: 12px; }
.kt-hero { position: relative; min-height: 450px; overflow: hidden; border-radius: var(--kt-radius-lg); background: #111827; }
.kt-hero-image, .kt-hero-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kt-hero-placeholder { background: linear-gradient(135deg, var(--kt-color-primary), var(--kt-color-primary-deep)); }
.kt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.38), transparent); }
.kt-hero-content { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 24px 24px 40px; color: #fff; }
.kt-hero-title { max-width: 850px; margin: 6px 0; font-size: clamp(20px, 3vw, 30px); }
.kt-hero-title a { color: #fff; }
.kt-category-pill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--kt-radius-sm); background: var(--kt-color-accent); color: #111827; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kt-category-pill:hover { background: #e8a84f; color: #111827; }
.kt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--kt-color-muted); font-size: 12px; }
.kt-hero .kt-meta { color: rgba(255,255,255,.82); }
.kt-section { margin-top: 28px; }
.kt-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--kt-color-border); }
.kt-section-title { margin: 0; color: var(--kt-color-text); font-size: 20px; font-weight: 600; }
.kt-section-title::first-letter { color: var(--kt-color-accent); }
.kt-section-more { font-size: 12px; font-weight: 600; }
.kt-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kt-card { overflow: hidden; border: 1px solid var(--kt-color-border); border-radius: var(--kt-radius-md); background: var(--kt-color-surface); transition: box-shadow var(--kt-motion-duration), transform var(--kt-motion-duration); }
.kt-card:hover { transform: translateY(-2px); box-shadow: var(--kt-shadow-card); }
.kt-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: #e5e7eb; }
.kt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.kt-card:hover .kt-card-media img { transform: scale(1.05); }
.kt-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #d1d5db, #f3f4f6); }
.kt-card-body { padding: 12px; }
.kt-card-title { display: -webkit-box; margin: 6px 0 10px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 15px; font-weight: 700; line-height: 1.4; }
.kt-card-title a { color: var(--kt-color-text); }
.kt-card-title a:hover { color: var(--kt-color-accent); }
.kt-row-list { display: grid; gap: 14px; }
.kt-story-row { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--kt-color-border); }
.kt-story-row-media { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--kt-radius-sm); background: #e5e7eb; }
.kt-story-row-media img { width: 100%; height: 100%; object-fit: cover; }
.kt-story-row h3 { margin: 4px 0 8px; font-size: 15px; }
.kt-layout { display: grid; grid-template-columns: minmax(0, 9fr) minmax(260px, 3fr); gap: 24px; padding-block: 28px 44px; }
.kt-content-panel { padding: 24px; border-radius: var(--kt-radius-lg); background: #fff; }
.kt-page-header { margin-bottom: 20px; }
.kt-page-title { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); }
.kt-page-description { color: var(--kt-color-muted); }
.kt-breadcrumbs { margin: 0 0 18px; color: var(--kt-color-muted); font-size: 12px; }
.kt-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.kt-sidebar { min-width: 0; }
.kt-sidebar-widget { margin-bottom: 24px; padding: 18px; border-radius: var(--kt-radius-md); background: #fff; }
.kt-sidebar-widget .widget-title { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--kt-color-border); font-size: 18px; }
.kt-ad { overflow: hidden; border-radius: var(--kt-radius-md); background: #fff; }
.kt-ad img { width: 100%; }

/* Article */
.kt-article-header { margin-bottom: 20px; }
.kt-article-title { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 36px); line-height: 1.25; }
.kt-featured { margin: 20px 0; overflow: hidden; border-radius: var(--kt-radius-lg); background: #f3f4f6; }
.kt-featured img { width: 100%; max-height: 580px; object-fit: cover; }
.kt-article-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 18px 0; padding: 12px 0; border-block: 1px solid var(--kt-color-border); }
.kt-tool-group { display: flex; align-items: center; gap: 8px; }
.kt-tool-button { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; font-size: 12px; }
.kt-tool-button:hover { background: #f3f4f6; }
.kt-share-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.kt-share-whatsapp { background: #25d366; color: #111827; border-color: #25d366; }
.kt-share-telegram { background: #229ed9; color: #111827; border-color: #229ed9; }
.kt-article-content { font-family: var(--kt-font-body); font-size: var(--kt-article-size, 17px); line-height: 1.75; }
.kt-article-content > * { max-width: 100%; }
.kt-article-content p { margin: 0 0 1.25em; }
.kt-article-content img { border-radius: var(--kt-radius-lg); }
.kt-preferred-source { margin: 24px 0; padding: 20px 16px; border: 1px solid var(--kt-color-border); border-radius: 16px; background: #f9fafb; text-align: center; }
.kt-preferred-source h2 { margin: 0 0 4px; font-size: 16px; }
.kt-preferred-source p { margin: 0 0 14px; color: var(--kt-color-muted); font-size: 13px; }
.kt-share-after { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--kt-color-border); text-align: center; }
.kt-share-after .kt-tool-group { justify-content: center; }

/* Pagination, empty states, and 404 */
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 28px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--kt-color-border); border-radius: var(--kt-radius-sm); background: #fff; }
.nav-links .current { background: var(--kt-color-primary); color: #fff; border-color: var(--kt-color-primary); }
.kt-empty { padding: 52px 24px; border: 1px dashed #d1d5db; border-radius: var(--kt-radius-lg); background: #fff; text-align: center; }
.kt-empty h2 { margin: 0 0 8px; }
.kt-404 { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: #f9fafb; text-align: center; }
.kt-404-inner { max-width: 480px; }
.kt-404-icon { display: grid; width: 96px; height: 96px; margin: 0 auto 24px; place-items: center; border-radius: 50%; background: #eaf4f1; color: var(--kt-color-primary); }
.kt-404-code { margin: 0; color: #111827; font-size: 72px; font-weight: 800; }
.kt-404-title { margin: 12px 0 0; font-size: 20px; }
.kt-404-message { margin: 8px 0 0; color: var(--kt-color-muted); }
.kt-404-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.kt-404-copy { margin-top: 40px; color: #6b7280; font-size: 13px; }
.kt-mode-toggle { position: fixed; right: 20px; bottom: 20px; }

/* Footer */
.kt-footer { margin-top: 36px; padding: 38px 0 0; background: var(--kt-color-primary-deep); color: #d1d5db; }
.kt-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.kt-footer-layout-two .kt-footer-grid { grid-template-columns: 1.4fr 1fr; }
.kt-footer-layout-stack .kt-footer-grid { grid-template-columns: 1fr; }
.kt-archive-layout-list .kt-archive-grid { grid-template-columns: 1fr; }
.kt-footer-logo { width: min(250px, 100%); margin-bottom: 16px; }
.kt-footer h2 { margin: 0 0 12px; color: #fff; font-size: 17px; }
.kt-footer p, .kt-footer li { font-size: 13px; }
.kt-footer a { color: #e5e7eb; }
.kt-footer a:hover { color: var(--kt-color-accent); }
.kt-footer ul { margin: 0; padding: 0; list-style: none; }
.kt-footer-bottom { margin-top: 30px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.2); font-size: 12px; text-align: center; }
.kt-back-to-top { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: none; }
.kt-back-to-top.is-visible { display: grid; }
.kt-mode-toggle + .kt-back-to-top { bottom: 72px; }

/* Dark mode */
.kt-dark { --kt-color-background: #000; --kt-color-surface: #111827; --kt-color-text: #f3f4f6; --kt-color-muted: #9ca3af; --kt-color-border: #1f2937; --kt-color-link: #f3f4f6; }
.kt-dark .kt-topbar, .kt-dark .kt-header, .kt-dark .kt-dialog, .kt-dark .kt-drawer, .kt-dark .kt-content-panel, .kt-dark .kt-card, .kt-dark .kt-mini-card, .kt-dark .kt-sidebar-widget, .kt-dark .kt-ad, .kt-dark .search-field, .kt-dark .kt-tool-button, .kt-dark .nav-links .page-numbers, .kt-dark .kt-empty { background: #111827; color: #e5e7eb; }
.kt-dark .kt-brand .custom-logo, .kt-dark .kt-brand .kt-light-logo { display: none; }
.kt-brand .kt-dark-logo { display: none; }
.kt-dark .kt-brand .kt-dark-logo { display: block; }
.kt-dark .kt-icon-button { border-color: #4b5563; background: #111827; color: #e5e7eb; }
.kt-dark .kt-404 { background: #111827; color: #e5e7eb; }
.kt-dark .kt-404-code { color: #fff; }

@media (max-width: 1023px) {
  .kt-home-grid, .kt-layout { grid-template-columns: 1fr; }
  .kt-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .kt-sidebar > * { margin: 0; }
  .kt-socials { display: none; }
  .kt-mini-track { grid-template-columns: repeat(4, minmax(240px, 1fr)); }
  .kt-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 782px) { .admin-bar .kt-header.is-sticky { top: 46px; } }
@media (max-width: 767px) {
  body { background: #fff; }
  .kt-topbar, .kt-primary-nav, .kt-search-trigger { display: none; }
  .kt-date { display: none; }
  .kt-masthead { min-height: 64px; }
  .kt-brand img { max-height: 35px; }
  .kt-container { width: min(100% - 24px, var(--kt-container)); }
  .kt-mini-news { padding-top: 18px; }
  .kt-hero { min-height: 260px; }
  .kt-hero-content { padding: 16px 16px 22px; }
  .kt-card-grid { grid-template-columns: 1fr; }
  .kt-sidebar { grid-template-columns: 1fr; }
  .kt-layout { padding-top: 18px; }
  .kt-content-panel { padding: 0; }
  .kt-story-row { grid-template-columns: 112px minmax(0,1fr); }
  .kt-article-title { font-size: 27px; }
  .kt-article-tools { align-items: flex-start; }
  .kt-footer-grid { grid-template-columns: 1fr; }
  .kt-404-actions { flex-direction: column; }
}
@media (max-width: 420px) {
  .kt-header-actions .kt-mode-header { display: none; }
  .kt-mini-track { grid-template-columns: repeat(4, minmax(86vw, 1fr)); }
  .kt-story-row { grid-template-columns: 96px minmax(0,1fr); }
  .kt-tool-group { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Reference home composition (v1.1). */
:root { --kt-container: 1160px; }
.kt-topbar-inner { min-height: 28px; justify-content: space-between; gap: 22px; }
.kt-live { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #ef4444; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.kt-live span { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.kt-utility-nav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 0; }
.kt-utility-nav a { color: #4b5563; font-size: 10px; white-space: nowrap; }
.kt-masthead { min-height: 68px; padding-block: 8px; }
.kt-brand img { max-height: 42px; }
.kt-primary-nav { height: 38px; }
.kt-primary-menu { justify-content: center; }
.kt-primary-menu > li > a { font-size: 12px; }

.kt-mini-news { padding: 18px 0 10px; }
.kt-mini-track { gap: 10px; }
.kt-mini-card { min-height: 66px; padding: 6px 8px; border-color: #edf0f2; border-radius: 10px; }
.kt-mini-media { flex-basis: 48px; }
.kt-mini-media img { width: 48px; height: 48px; }
.kt-mini-title { font-size: 11px; line-height: 1.28; }

.kt-lead-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: 18px; align-items: stretch; margin-top: 8px; }
.kt-hero { min-height: 0; aspect-ratio: 16 / 8.7; border-radius: 10px; }
.kt-hero-content { padding: 20px 22px 28px; }
.kt-hero-title { max-width: 720px; margin: 6px 0 5px; font-size: clamp(21px, 2.25vw, 29px); line-height: 1.16; }
.kt-category-pill { padding: 3px 7px; border-radius: 3px; font-size: 9px; }
.kt-meta { gap: 5px; font-size: 9px; }

.kt-trending-panel, .kt-channel-widget, .kt-channel-box { min-width: 0; border: 1px solid var(--kt-color-border); border-radius: 9px; background: var(--kt-color-surface); }
.kt-trending-panel { padding: 12px; overflow: hidden; }
.kt-trending-panel .kt-section-head, .kt-channel-widget .kt-section-head, .kt-channel-box .kt-section-head { margin-bottom: 9px; }
.kt-trending-feature { margin-bottom: 9px; }
.kt-trending-image { display: block; overflow: hidden; aspect-ratio: 16 / 8.5; border-radius: 6px; }
.kt-trending-image img { width: 100%; height: 100%; object-fit: cover; }
.kt-trending-feature h3 { display: -webkit-box; margin: 7px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.32; }
.kt-trending-feature h3 a, .kt-ranked-story h3 a { color: var(--kt-color-text); }
.kt-ranked-story { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--kt-color-border); }
.kt-rank { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 4px; background: var(--kt-color-accent); color: #fff; font-size: 10px; font-weight: 800; }
.kt-ranked-story h3 { display: -webkit-box; margin: 0 0 3px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10px; line-height: 1.32; }

.kt-section { margin-top: 24px; }
.kt-section-head { margin-bottom: 10px; padding-bottom: 6px; border-bottom-color: #edf0f2; }
.kt-section-title { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; }
.kt-section-title::before { content: "//"; color: var(--kt-color-primary); font-size: 14px; font-weight: 900; letter-spacing: -4px; transform: skew(-10deg); }
.kt-section-title::first-letter { color: inherit; }
.kt-section-more { color: #9ca3af; font-size: 9px; font-weight: 500; }
.kt-card-grid { gap: 14px; }
.kt-card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kt-card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kt-card { border-radius: 7px; box-shadow: none; }
.kt-card-media { aspect-ratio: 16 / 9; }
.kt-card-body { padding: 8px 9px 10px; }
.kt-card-title { margin: 4px 0 6px; font-size: 11px; line-height: 1.3; }
.kt-card .kt-category-pill { padding: 0; background: transparent; color: var(--kt-color-accent); }

.kt-content-rail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(235px, 1fr); gap: 20px; align-items: start; }
.kt-content-flow { min-width: 0; }
.kt-home-side { min-width: 0; padding-top: 24px; }
.kt-row-list { gap: 0; }
.kt-story-row { grid-template-columns: 172px minmax(0,1fr); gap: 12px; min-height: 102px; padding: 10px 0; }
.kt-story-row:first-child { padding-top: 0; }
.kt-story-row-media { height: 92px; aspect-ratio: auto; }
.kt-story-row h3 { display: -webkit-box; margin: 4px 0 7px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.35; }
.kt-story-row h3 a { color: var(--kt-color-text); }
.kt-latest-list .kt-story-row { grid-template-columns: 180px minmax(0,1fr); }
.kt-mixed-section .kt-card-grid { margin-bottom: 6px; }
.kt-mixed-rows { margin-top: 4px; }

.kt-channel-widget { padding: 11px; }
.kt-channel-feature { padding-bottom: 9px; border-bottom: 1px solid var(--kt-color-border); }
.kt-channel-feature > a { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 6px; }
.kt-channel-feature img { width: 100%; height: 100%; object-fit: cover; }
.kt-channel-feature h3 { display: -webkit-box; margin: 7px 0 5px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; line-height: 1.35; }
.kt-channel-feature h3 a, .kt-channel-mini h3 a { color: var(--kt-color-text); }
.kt-channel-mini { display: grid; grid-template-columns: minmax(0,1fr) 54px; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--kt-color-border); }
.kt-channel-mini:last-child { border-bottom: 0; }
.kt-channel-mini h3 { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 10px; line-height: 1.35; }
.kt-channel-mini-image { display: block; overflow: hidden; width: 54px; height: 45px; border-radius: 4px; }
.kt-channel-mini-image img { width: 100%; height: 100%; object-fit: cover; }

.kt-section-wide { margin-top: 30px; }
.kt-channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 30px; }
.kt-channel-box { padding: 12px; }
.kt-channel-box-feature { position: relative; overflow: hidden; min-height: 142px; border-radius: 7px; background: #111827; }
.kt-channel-box-feature > a { position: absolute; inset: 0; }
.kt-channel-box-feature img { width: 100%; height: 100%; object-fit: cover; }
.kt-channel-box-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.08)); }
.kt-channel-box-feature > div { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 12px; }
.kt-channel-box-feature .kt-category-pill { padding: 0; background: transparent; color: #f6a63a; }
.kt-channel-box-feature h3 { display: -webkit-box; margin: 4px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.32; }
.kt-channel-box-feature h3 a { color: #fff; }
.kt-channel-link { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--kt-color-border); font-size: 10px; line-height: 1.35; }
.kt-channel-link:last-child { border-bottom: 0; }
.kt-channel-link a { color: var(--kt-color-text); }

.kt-footer { margin-top: 32px; padding-top: 30px; text-align: center; }
.kt-footer-center { display: grid; justify-items: center; max-width: 820px; }
.kt-footer-center h2 { margin-bottom: 8px; text-transform: uppercase; font-size: 12px; }
.kt-footer-center p { max-width: 700px; margin: 2px 0; color: #d9e1df; font-size: 9px; }
.kt-footer-nav { margin-top: 20px; }
.kt-footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.kt-footer-nav li { position: relative; font-size: 9px; }
.kt-footer-socials { display: flex; gap: 8px; margin-top: 18px; }
.kt-footer-socials a { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 10px; }
.kt-verified { display: grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; align-items: center; margin-top: 18px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; text-align: left; }
.kt-verified span { grid-row: 1 / 3; display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.kt-verified strong { color: #fff; font-size: 9px; }
.kt-verified small { color: #c6d4d1; font-size: 7px; }
.kt-footer-bottom { margin-top: 18px; padding: 10px 0; font-size: 8px; }

@media (max-width: 1023px) {
  .kt-utility-nav { gap: 10px; overflow: hidden; }
  .kt-utility-nav a:nth-last-child(-n+3) { display: none; }
  .kt-lead-grid, .kt-content-rail { grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); }
  .kt-card-grid--four { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .kt-lead-grid, .kt-content-rail { grid-template-columns: 1fr; }
  .kt-home-side { padding-top: 0; }
  .kt-channel-widget { margin-top: 24px; }
  .kt-channel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .kt-lead-grid { margin-top: 4px; }
  .kt-hero { min-height: 250px; aspect-ratio: auto; }
  .kt-trending-panel { margin-top: 2px; }
  .kt-card-grid--three, .kt-card-grid--four, .kt-channel-grid { grid-template-columns: 1fr; }
  .kt-card-grid--three .kt-card { display: grid; grid-template-columns: 122px minmax(0,1fr); }
  .kt-card-grid--three .kt-card-media { height: 100%; min-height: 92px; }
  .kt-story-row, .kt-latest-list .kt-story-row { grid-template-columns: 112px minmax(0,1fr); }
  .kt-story-row-media { height: 74px; }
  .kt-footer-nav ul { gap: 7px 12px; }
}
