/* Aktual News - Main Stylesheet */
:root {
	--an-primary: #D71920;
	--an-secondary: #151515;
	--an-accent: #F4B400;
	--an-bg: #FFFFFF;
	--an-bg-light: #F5F6F8;
	--an-text: #252525;
	--an-muted: #777777;
	--an-border: #E5E7EB;
	--an-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--an-font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--an-article-font-size: 17px;
	--an-container: 1240px;
	--an-radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--an-font-body);
	font-size: 15px;
	line-height: 1.65;
	color: var(--an-text);
	background-color: var(--an-bg);
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--an-font-heading);
	color: var(--an-secondary);
	margin: 0 0 0.6em;
	line-height: 1.28;
	font-weight: 700;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--an-primary); }
img { max-width: 100%; height: auto; display: block; }

.an-container { width: 100%; max-width: var(--an-container); margin: 0 auto; padding: 0 16px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* Topbar */
.an-topbar {
	background: var(--an-secondary);
	color: #E5E7EB;
	font-size: 12.5px;
	padding: 6px 0;
}
.an-topbar-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.an-topbar-left, .an-topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.an-topbar-socials { display: flex; align-items: center; gap: 10px; }
.an-topbar-socials a:hover { color: var(--an-accent); }
.an-dark-toggle {
	background: rgba(255,255,255,0.12); color: #fff; border: 0; border-radius: 4px;
	padding: 3px 9px; font-size: 12px; cursor: pointer;
}

/* Site Header */
.an-header { background: var(--an-bg); border-bottom: 1px solid var(--an-border); position: relative; z-index: 90; }
.an-has-sticky-header .an-header.is-sticky { position: sticky; top: 0; box-shadow: 0 4px 18px rgba(0,0,0,0.08); }
.an-header-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.an-header-layout-centered .an-header-top { justify-content: center; text-align: center; }
.an-logo-text { font-family: var(--an-font-heading); font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--an-secondary); }
.an-logo-text span { color: var(--an-primary); }
.an-site-tagline { font-size: 12px; color: var(--an-muted); margin: 2px 0 0; }

/* Navigation Bar */
.an-navbar { background: var(--an-bg-light); border-top: 1px solid var(--an-border); }
.an-navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.an-primary-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; flex-wrap: wrap; }
.an-primary-menu > li { position: relative; }
.an-primary-menu > li > a {
	display: block; padding: 12px 13px; font-weight: 600; font-size: 14px; color: var(--an-secondary);
}
.an-primary-menu > li > a:hover, .an-primary-menu > li.current-menu-item > a { color: var(--an-primary); }
.an-primary-menu .sub-menu {
	display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--an-bg);
	border: 1px solid var(--an-border); box-shadow: 0 10px 25px rgba(0,0,0,0.08); list-style: none; padding: 6px 0; margin: 0; z-index: 100;
}
.an-primary-menu li:hover > .sub-menu, .an-primary-menu li:focus-within > .sub-menu { display: block; }
.an-primary-menu .sub-menu a { display: block; padding: 8px 16px; font-size: 13.5px; }

.an-header-actions { display: flex; align-items: center; gap: 8px; }
.an-icon-btn {
	background: transparent; border: 1px solid var(--an-border); border-radius: 6px;
	width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--an-secondary);
}
.an-mobile-menu-btn { display: none; }

/* Search Overlay */
.an-search-drawer { display: none; background: var(--an-bg); border-top: 1px solid var(--an-border); padding: 14px 0; }
.an-search-drawer.is-open { display: block; }
.an-search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.an-search-form input[type="search"] {
	flex: 1; padding: 10px 14px; border: 1px solid var(--an-border); border-radius: 6px; font-size: 15px;
}
.an-search-form button {
	background: var(--an-primary); color: #fff; border: 0; border-radius: 6px; padding: 0 20px; font-weight: 600; cursor: pointer;
}

/* Breaking News Bar */
.an-breaking-bar { background: var(--an-bg-light); border-bottom: 1px solid var(--an-border); padding: 8px 0; }
.an-breaking-inner { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.an-breaking-badge {
	background: var(--an-primary); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.6px;
	padding: 4px 10px; border-radius: 4px; white-space: nowrap; text-transform: uppercase;
}
.an-breaking-track { flex: 1; overflow: hidden; white-space: nowrap; }
.an-breaking-list { display: inline-flex; gap: 36px; animation: anTicker 32s linear infinite; }
.an-breaking-track:hover .an-breaking-list { animation-play-state: paused; }
.an-breaking-item { font-size: 13.5px; font-weight: 600; }
@keyframes anTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Badges & Meta */
.an-cat-badge {
	display: inline-block; background: var(--an-primary); color: #fff !important; font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 4px; margin-bottom: 6px;
}
.an-sponsored-badge { background: var(--an-accent); color: #151515 !important; }
.an-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--an-muted); }

/* Section Headers */
.an-section-head {
	display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--an-secondary);
	margin-bottom: 18px; padding-bottom: 8px;
}
.an-section-title { font-size: 20px; margin: 0; position: relative; }
.an-section-title::after {
	content: ""; position: absolute; left: 0; bottom: -10px; width: 48px; height: 2px; background: var(--an-primary);
}
.an-section-more { font-size: 13px; font-weight: 600; color: var(--an-primary); }

/* Hero 1 + 2 Grid */
.an-hero-section { padding: 22px 0; }
.an-hero-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; }
.an-hero-card { position: relative; border-radius: var(--an-radius); overflow: hidden; background: #151515; min-height: 215px; }
.an-hero-main { min-height: 450px; }
.an-hero-side-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.an-hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.an-hero-card:hover img { transform: scale(1.03); }
.an-hero-overlay {
	position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.85) 100%);
	display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff;
}
.an-hero-overlay h2, .an-hero-overlay h3 { color: #fff; margin: 4px 0 8px; }
.an-hero-main .an-hero-overlay h2 { font-size: 26px; }
.an-hero-side-stack .an-hero-overlay h3 { font-size: 17px; }
.an-hero-overlay .an-post-meta { color: #D1D5DB; }

/* Main Layout + Sidebar */
.an-main-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding: 24px 0 42px; }
.an-sidebar-left .an-main-wrap { grid-template-columns: 330px minmax(0, 1fr); }
.an-sidebar-left .an-content-area { order: 2; }
.an-sidebar-left .an-sidebar { order: 1; }
.an-sidebar-none .an-main-wrap { grid-template-columns: minmax(0, 1fr); }

/* Cards & Lists */
.an-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.an-news-list { display: flex; flex-direction: column; gap: 18px; }
.an-card {
	background: var(--an-bg); border: 1px solid var(--an-border); border-radius: var(--an-radius);
	overflow: hidden; display: flex; flex-direction: column;
}
.an-news-list .an-card { flex-direction: row; align-items: stretch; }
.an-news-list .an-card-thumb { width: 240px; flex-shrink: 0; }
.an-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--an-bg-light); }
.an-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.an-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.an-card-title { font-size: 17px; margin: 0; }
.an-card-excerpt { font-size: 13.5px; color: var(--an-muted); margin: 4px 0 0; }

/* Popular Numbered List */
.an-popular-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.an-popular-item { display: grid; grid-template-columns: 32px 76px 1fr; gap: 10px; align-items: start; }
.an-pop-num {
	font-family: var(--an-font-heading); font-size: 20px; font-weight: 800; color: var(--an-primary); line-height: 1;
}
.an-pop-thumb { width: 76px; height: 56px; border-radius: 6px; overflow: hidden; }
.an-pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.an-pop-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; line-height: 1.35; }

/* Category Blocks */
.an-category-blocks { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.an-cat-block { background: var(--an-bg-light); padding: 16px; border-radius: var(--an-radius); }
.an-cat-mini-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.an-cat-mini-list li { border-top: 1px solid var(--an-border); padding-top: 10px; font-size: 14px; font-weight: 600; }

/* Video & Gallery Sections */
.an-media-section { padding: 28px 0; background: var(--an-bg-light); margin-top: 24px; }
.an-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.an-play-badge {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 52px; height: 52px; border-radius: 50%; background: rgba(215, 25, 32, 0.92); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* Lightbox Modal */
.an-lightbox {
	display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 9999;
	align-items: center; justify-content: center; padding: 24px;
}
.an-lightbox.is-open { display: flex; }
.an-lightbox-content { max-width: 920px; width: 100%; text-align: center; color: #fff; position: relative; }
.an-lightbox-content img { max-height: 78vh; margin: 0 auto 12px; border-radius: 6px; }
.an-lightbox-close {
	position: absolute; top: -36px; right: 0; background: transparent; border: 0; color: #fff; font-size: 28px; cursor: pointer;
}

/* Single Post */
.an-breadcrumbs { font-size: 13px; color: var(--an-muted); margin-bottom: 14px; }
.an-breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.an-bc-sep { margin-left: 6px; color: var(--an-muted); }
.an-single-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.an-single-subheadline { font-size: 18px; color: var(--an-muted); margin: 0 0 16px; font-weight: 400; }
.an-single-author-bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 0; border-top: 1px solid var(--an-border); border-bottom: 1px solid var(--an-border); margin-bottom: 18px;
}
.an-author-chip { display: flex; align-items: center; gap: 10px; }
.an-author-chip img { border-radius: 50%; width: 40px; height: 40px; object-fit: cover; }
.an-featured-figure { margin: 0 0 20px; }
.an-featured-figure img { border-radius: var(--an-radius); width: 100%; }
.an-featured-caption { font-size: 12.5px; color: var(--an-muted); margin-top: 8px; }

.an-share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.an-share-label { font-weight: 600; font-size: 13px; }
.an-share-btn {
	border: 0; border-radius: 5px; padding: 7px 12px; font-size: 12.5px; font-weight: 600;
	color: #fff !important; cursor: pointer; display: inline-flex; align-items: center;
}
.an-share-wa { background: #25D366; }
.an-share-fb { background: #1877F2; }
.an-share-x { background: #111111; }
.an-share-copy { background: var(--an-muted); }

/* Auto TOC */
.an-toc-box {
	background: var(--an-bg-light); border-left: 4px solid var(--an-primary); border-radius: 6px;
	padding: 14px 18px; margin: 18px 0 24px;
}
.an-toc-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; cursor: pointer; }
.an-toc-list { margin: 10px 0 0; padding-left: 18px; font-size: 14.5px; }
.an-toc-list li { margin: 5px 0; }

.an-article-content { font-size: var(--an-article-font-size); line-height: 1.78; }
.an-article-content p { margin-bottom: 1.25em; }
.an-article-content h2, .an-article-content h3 { margin-top: 1.5em; }

/* Author Box & Prev/Next */
.an-author-box {
	display: flex; gap: 16px; background: var(--an-bg-light); padding: 18px; border-radius: var(--an-radius); margin: 28px 0;
}
.an-author-box img { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.an-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.an-post-nav a {
	display: block; padding: 14px; border: 1px solid var(--an-border); border-radius: var(--an-radius); font-weight: 600;
}

/* Ads */
.an-ad-slot { text-align: center; margin: 18px auto; }
.an-ad-label { display: block; font-size: 10px; letter-spacing: 0.8px; color: var(--an-muted); margin-bottom: 4px; text-transform: uppercase; }

/* Buttons & Load More */
.an-btn {
	display: inline-flex; align-items: center; justify-content: center; background: var(--an-primary); color: #fff !important;
	border: 0; border-radius: 6px; padding: 11px 22px; font-weight: 600; cursor: pointer; font-size: 14px;
}
.an-btn:hover { opacity: 0.92; }
.an-load-more-wrap { text-align: center; margin-top: 24px; }

/* Sidebar Widgets */
.an-widget { margin-bottom: 26px; background: var(--an-bg); border: 1px solid var(--an-border); border-radius: var(--an-radius); padding: 16px; }
.an-widget-title { font-size: 17px; border-bottom: 2px solid var(--an-primary); padding-bottom: 8px; margin-bottom: 14px; }

/* Footer */
.an-footer { background: var(--an-secondary); color: #D1D5DB; padding: 42px 0 24px; margin-top: 32px; }
.an-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.an-footer-title { color: #fff; font-size: 16px; margin-bottom: 14px; }
.an-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.an-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px;
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px;
}

/* Back to Top & Mobile Bottom Nav */
.an-back-top {
	position: fixed; right: 18px; bottom: 72px; width: 42px; height: 42px; border-radius: 50%;
	background: var(--an-primary); color: #fff; border: 0; cursor: pointer; display: none; z-index: 95; font-size: 18px;
}
.an-back-top.is-visible { display: flex; align-items: center; justify-content: center; }
.an-mobile-bottom-nav { display: none; }

/* Responsive: Tablet & Mobile */
@media (max-width: 992px) {
	.an-hero-grid { grid-template-columns: 1fr; }
	.an-hero-main { min-height: 320px; }
	.an-hero-side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.an-main-wrap, .an-sidebar-left .an-main-wrap { grid-template-columns: 1fr; }
	.an-footer-grid { grid-template-columns: 1fr 1fr; }
	.an-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.an-mobile-menu-btn { display: inline-flex; }
	.an-nav-menu-wrap { display: none; width: 100%; }
	.an-nav-menu-wrap.is-open { display: block; padding: 10px 0; }
	.an-primary-menu { flex-direction: column; }
	.an-navbar-inner { flex-wrap: wrap; }
	.an-hero-side-stack, .an-news-grid, .an-category-blocks, .an-media-grid, .an-footer-grid, .an-post-nav { grid-template-columns: 1fr; }
	.an-news-list .an-card { flex-direction: column; }
	.an-news-list .an-card-thumb { width: 100%; }
	.an-mobile-bottom-nav {
		display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--an-bg);
		border-top: 1px solid var(--an-border); z-index: 98; justify-content: space-around; padding: 8px 4px;
	}
	.an-mobile-bottom-nav a { font-size: 11.5px; font-weight: 600; text-align: center; }
	body.has-mobile-bottom-nav { padding-bottom: 58px; }
}
