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

:root {
    --gold: #d4af37;
    --gold-dark: #b8962e;
    --gold-light: #f4e4a6;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --danger-bg: #fee2e2;
    --danger-text: #b91c1c;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

body {
    font-family: Arial, sans-serif;
    background: var(--light-bg);
    color: var(--text);
    line-height: 1.5;
}

/* =========================
   GLOBAL / SHARED
========================= */
.container {
    width: 90%;
    max-width: 1380px;
    margin: 0 auto;
}

.site-main {
    padding: 30px 0 50px;
}

.section-title-row {
    margin-bottom: 18px;
}

.section-title-row h1,
.section-title-row h2 {
    color: var(--dark);
    margin-bottom: 0;
}

.post-category {
    display: inline-block;
    background: #fff7d6;
    color: #8a6b00;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--gold-dark);
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.empty-box {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.image-placeholder {
    width: 100%;
    height: 220px;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mini-meta {
    color: var(--muted);
    font-size: 13px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
}

/* =========================
   LOGIN PAGE
========================= */
.login-body {
    background: linear-gradient(135deg, var(--dark), var(--dark-soft));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-top: 5px solid var(--gold);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--dark);
}

.login-box p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 25px;
}

.login-footer {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* =========================
   FORMS
========================= */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    color: #334155;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* =========================
   BUTTONS
========================= */
.btn {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
}

.btn:hover {
    background: var(--gold-dark);
}

.btn-block {
    width: 100%;
}

.btn-dark {
    background: var(--dark);
    color: var(--gold);
}

.btn-dark:hover {
    background: #020617;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 4px;
}

td .btn {
    padding: 8px 12px;
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 4px;
}

/* =========================
   ALERTS
========================= */
.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert.error {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.alert.success {
    background: var(--success-bg);
    color: var(--success-text);
}

/* =========================
   ADMIN LAYOUT
========================= */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--dark);
    color: var(--white);
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar .brand {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 15px;
    color: var(--gold);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li a {
    display: block;
    padding: 14px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: var(--dark-soft);
    color: var(--gold);
    border-left: 4px solid var(--gold);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: var(--white);
    padding: 16px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid rgba(212, 175, 55, 0.15);
}

.topbar h1 {
    font-size: 22px;
    color: var(--dark);
}

.topbar .admin-info {
    font-size: 14px;
    color: #475569;
}

.page-content {
    padding: 25px;
}

/* =========================
   DASHBOARD
========================= */
.welcome-box {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.welcome-box h2 {
    margin: 0 0 10px;
}

.quick-links {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-links a {
    background: #000;
    color: var(--gold);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.quick-links a:hover {
    background: #111827;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: var(--white);
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-left: 5px solid var(--gold);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #334155;
}

.card .number {
    font-size: 30px;
    font-weight: bold;
    color: var(--gold-dark);
}

.form-card {
    max-width: 900px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0 20px;
}

.form-check input[type="checkbox"] {
    width: auto;
    transform: scale(1.1);
}

.form-check label {
    margin: 0;
    font-weight: 600;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.page-actions {
    margin-bottom: 20px;
}

/* =========================
   TABLES / IMAGES / BADGES
========================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

table th {
    background: #f8fafc;
    color: var(--dark);
}

.table-image {
    width: 70px;
    height: 50px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.preview-image {
    width: 180px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.image-preview-box {
    margin-top: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-featured {
    background: #fff7d6;
    color: #8a6b00;
}

.badge-muted {
    background: #e2e8f0;
    color: #475569;
}

/* =========================
   PUBLIC WEBSITE BASE
========================= */
.public-body {
    background: #f8fafc;
    color: var(--text);
}

.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.site-footer {
    background: var(--primary-color, #07142b) !important;
    color: #fff;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 50px 0;
}

.footer-col h3 {
    margin-bottom: 15px;
    color: var(--secondary-color, #e5b82e) !important;
}

.footer-col p {
    line-height: 1.8;
    color: #fff;
    margin-bottom: 15px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-socials a {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    padding: 8px 12px;
    border-radius: 8px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    color: #fff;
}

/* =========================
   UPGRADED NAVBAR / TICKER
========================= */
.top-strip {
    background: var(--dark);
    color: var(--gold);
    padding: 10px 0;
    font-size: 14px;
    overflow: hidden;
}

.top-strip-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-strip-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.breaking-label {
    background: var(--gold);
    color: #000;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 13px;
}

.breaking-news-ticker {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    gap: 50px;
    min-width: max-content;
    animation: ticker-scroll 28s linear infinite;
}

.ticker-track a {
    color: #f8edbe;
    text-decoration: none;
    white-space: nowrap;
}

.ticker-track a:hover {
    color: #fff;
}

.ticker-empty {
    color: #f8edbe;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.main-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.site-brand a {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.site-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    display: block;
}

.site-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:hover {
    color: var(--gold-dark);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-search form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-search input {
    min-width: 230px;
}

/* =========================
   CLEAN HOMEPAGE REBUILD
========================= */
.homepage-top-layout {
    display: grid;
    grid-template-columns: 2.15fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
    align-items: stretch;
}

.top-stories-block,
.trending-block {
    height: 100%;
}

.top-stories-block {
    display: flex;
    flex-direction: column;
}

.top-stories-grid {
    display: grid;
    grid-template-columns: 1.55fr 1.05fr;
    gap: 22px;
    align-items: stretch;
    min-height: 500px;
    height: 100%;
}

.main-feature-card,
.side-feature-card,
.compact-trending-list,
.clean-news-card,
.category-home-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.main-feature-link,
.side-feature-link,
.clean-news-image-link,
.category-home-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.main-feature-card img {
    width: 100%;
    height: 310px;
    object-fit: contain;
    object-position: center top;
    background: #f1f5f9;
    display: block;
}

.main-feature-content {
    padding: 18px 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.main-feature-content h3 {
    font-size: 24px;
    line-height: 1.3;
    margin: 8px 0 12px;
}

.main-feature-content h3 a {
    color: var(--dark);
    text-decoration: none;
}

.main-feature-content h3 a:hover {
    color: var(--gold-dark);
}

.main-feature-content p {
    display: none;
}

/* =========================
   SIDE FEATURE POSTS
========================= */
.side-feature-list {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    align-content: stretch;
    height: 100%;
}

.side-feature-card,
.clean-news-card,
.category-home-card,
.compact-trending-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.side-feature-card:hover,
.clean-news-card:hover,
.category-home-card:hover,
.compact-trending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.10);
}

.side-feature-card {
    min-height: 0;
    height: 100%;
}

.side-feature-link {
    display: grid;
    grid-template-columns: 145px 1fr;
    min-height: 0;
    height: 100%;
}

.side-feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.side-feature-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-feature-content .post-category {
    margin-bottom: 8px;
    padding: 6px 12px;
    font-size: 12px;
}

.side-feature-content h4 {
    font-size: 16px;
    line-height: 1.35;
    margin: 4px 0 6px;
    color: var(--dark);
}

/* =========================
   TRENDING
========================= */
.trending-block {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.compact-trending-list {
    padding: 0;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    height: 100%;
    min-height: 500px;
}

.compact-trending-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.25s ease, transform 0.25s ease;
    min-height: 0;
    align-items: flex-start;
}

.compact-trending-card:last-child {
    border-bottom: none;
}

.compact-trending-card:hover {
    background: #f8fafc;
}

.compact-trend-number {
    min-width: 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff7d6;
    color: #8a6b00;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-trend-content {
    flex: 1;
}

.compact-trend-content .post-category {
    margin-bottom: 6px;
    padding: 5px 10px;
    font-size: 11px;
}

.compact-trend-content h4 {
    margin: 2px 0 6px;
    font-size: 16px;
    line-height: 1.3;
}

.compact-trend-content h4 a {
    color: var(--dark);
    text-decoration: none;
}

.compact-trend-content h4 a:hover {
    color: var(--gold-dark);
}

/* =========================
   NEWS GRID
========================= */
.clean-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.clean-news-card {
    display: flex;
    flex-direction: column;
}

.clean-news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.clean-news-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clean-news-content h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
}

.clean-news-content h3 a {
    color: var(--dark);
    text-decoration: none;
}

.clean-news-content h3 a:hover {
    color: var(--gold-dark);
}

.clean-news-content p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
    margin: 2px 0 0;
}

.clean-news-content .news-card-meta {
    margin-top: 6px;
}

.clean-news-content .read-more {
    margin-top: 6px;
    font-size: 14px;
}

.feature-placeholder {
    height: 310px;
}

.side-placeholder {
    height: 100%;
    min-height: 120px;
}

/* =========================
   CATEGORY SECTIONS
========================= */
.category-home-section {
    margin-top: 40px;
}

.category-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.view-all-link {
    text-decoration: none;
    color: var(--gold-dark);
    font-weight: bold;
    font-size: 14px;
}

.view-all-link:hover {
    text-decoration: underline;
}

.category-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.category-home-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.category-home-content {
    padding: 14px;
}

.category-home-content h3 {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.category-home-content h3 a {
    color: var(--dark);
    text-decoration: none;
}

.category-home-content h3 a:hover {
    color: var(--gold-dark);
}

.category-home-content p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

/* =========================
   SEARCH PAGE
========================= */
.search-page-box {
    background: var(--white);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.search-page-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-page-form input {
    flex: 1;
    min-width: 250px;
}

.search-result-info {
    margin: 20px 0;
    color: var(--muted);
}

/* =========================
   SINGLE POST PAGE
========================= */
.single-post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.single-post-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.single-post-header {
    padding: 28px 28px 20px;
}

.single-post-title {
    font-size: 42px;
    line-height: 1.2;
    color: var(--dark);
    margin: 14px 0 18px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

.single-post-hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.single-post-summary-box {
    margin: 24px 28px 0;
    padding: 18px 20px;
    background: #fffdf5;
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
}

.single-post-content {
    padding: 28px;
    font-size: 17px;
    line-height: 2;
    color: #334155;
}

.single-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upgraded-sidebar-widget {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.upgraded-sidebar-widget h3 {
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--dark);
}

.related-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.related-post-link {
    display: grid;
    grid-template-columns: 110px 1fr;
    text-decoration: none;
    color: inherit;
    min-height: 95px;
}

.related-post-card img,
.related-placeholder {
    width: 100%;
    height: 100%;
    min-height: 95px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.related-placeholder {
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.related-post-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-post-content h4 {
    font-size: 16px;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 8px;
}

.related-post-content span {
    color: var(--muted);
    font-size: 13px;
}

/* =========================
   POST CONTENT
========================= */
.post-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #111;
    line-height: 1.4;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.post-content blockquote {
    border-left: 4px solid #0a2a66;
    margin: 20px 0;
    padding: 10px 15px;
    background: #f8f9fc;
    color: #444;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-content table th,
.post-content table td {
    border: 1px solid #ddd;
    padding: 10px;
}

/* =========================
   YOUTUBE / VIDEO EMBEDS
========================= */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 20px 0;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    border: 0;
    border-radius: 12px;
}

.post-content iframe,
.article-content iframe,
.single-post-content iframe {
    max-width: 100%;
    border-radius: 12px;
}

/* =========================
   ADS
========================= */
.ad-box {
    width: 100%;
    background: #f3f4f6;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    text-align: center;
    padding: 22px 15px;
    border-radius: 12px;
    font-size: 14px;
    margin: 20px 0;
}

.managed-ad {
    width: 100%;
    margin: 20px 0;
    text-align: center;
}

.managed-ad img {
    max-width: 100%;
}

/* =========================
   UTILITY
========================= */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
    .homepage-top-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .top-stories-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .main-feature-card,
    .trending-block,
    .compact-trending-list {
        height: auto;
        min-height: auto;
    }

    .side-feature-list,
    .compact-trending-list {
        grid-template-rows: auto;
        height: auto;
    }

    .side-feature-link {
        height: auto;
        min-height: 120px;
    }

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

@media (max-width: 1100px) {
    .main-feature-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .footer-grid,
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .single-post-title {
        font-size: 34px;
    }

    .single-post-hero-image img {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .container,
    .main-container,
    .content-wrapper {
        width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .page-content {
        padding: 18px;
    }

    .login-box {
        padding: 24px;
    }

    .top-strip-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .breaking-news-ticker {
        width: 100%;
    }

    .nav-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
    }

    .nav-search form {
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-search input {
        width: 100%;
        min-width: unset;
    }

    .site-brand a {
        align-items: center;
    }

    .site-logo {
        height: 80px;
        width: auto;
        object-fit: contain;
    }

    .site-name {
        font-size: 24px;
    }

    .side-feature-link,
    .related-post-link {
        grid-template-columns: 1fr;
        height: auto;
    }

    .side-feature-card img,
    .side-placeholder {
        height: 180px;
    }

    .related-post-card img,
    .related-placeholder {
        height: 180px;
    }

    .main-feature-card img {
        height: 260px;
    }

    .feature-placeholder {
        height: 260px;
    }

    .main-feature-content h3,
    .clean-news-content h3,
    .compact-trend-content h4 {
        font-size: 20px;
    }

    .single-post-title {
        font-size: 28px !important;
        line-height: 1.3;
    }

    .single-post-header,
    .single-post-content {
        padding: 20px;
    }

    .single-post-summary-box {
        margin: 20px 20px 0;
        font-size: 16px;
    }

    .single-post-meta,
    .news-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .category-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-page-form input {
        min-width: unset;
        width: 100%;
    }

    .clean-news-grid,
    .category-home-grid,
    .posts-grid,
    .category-grid,
    .news-grid,
    .latest-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .clean-news-card,
    .category-home-card,
    .post-card,
    .category-card,
    .news-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .clean-news-card img,
    .category-home-card img,
    .post-card img,
    .category-card img,
    .news-card img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        object-position: center top;
    }

    h1 {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 22px !important;
    }

    h3 {
        font-size: 18px !important;
    }
}

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

    .site-logo {
        height: 70px;
    }

    .main-feature-card img,
    .clean-news-card img,
    .category-home-card img {
        height: 210px !important;
    }

    .single-post-title {
        font-size: 24px !important;
    }

    .single-post-hero-image img {
        height: 240px;
    }

    .footer-grid {
        gap: 20px;
        padding: 35px 0;
    }
}

/* =========================
   FORCE CATEGORY PAGE MOBILE FIX
========================= */
@media (max-width: 768px) {
    .category-posts-grid,
    .category-post-list,
    .category-page-grid,
    .posts-list,
    .post-list,
    .posts-wrapper,
    .category-posts {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        width: 100% !important;
    }

    .category-posts-grid > *,
    .category-post-list > *,
    .category-page-grid > *,
    .posts-list > *,
    .post-list > *,
    .posts-wrapper > *,
    .category-posts > * {
        width: 100% !important;
        max-width: 100% !important;
    }

    .category-posts-grid img,
    .category-post-list img,
    .category-page-grid img,
    .posts-list img,
    .post-list img,
    .posts-wrapper img,
    .category-posts img {
        width: 100% !important;
        height: 230px !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}
/* CATEGORY PAGE: ONE COLUMN ON MOBILE */
@media (max-width: 768px) {
    .category-page .posts-grid,
    .category-page .category-grid,
    .category-page .news-grid,
    .category-page .latest-grid,
    .category-page .clean-news-grid,
    .category-page .category-home-grid,
    .category-posts-grid,
    .category-post-list,
    .category-page-grid,
    .posts-list,
    .category-posts {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        width: 100% !important;
    }

    .category-page .post-card,
    .category-page .category-card,
    .category-page .news-card,
    .category-page .clean-news-card,
    .category-page .category-home-card,
    .category-posts-grid > *,
    .category-post-list > *,
    .category-page-grid > *,
    .posts-list > *,
    .category-posts > * {
        width: 100% !important;
        max-width: 100% !important;
    }

    .category-page img,
    .category-posts-grid img,
    .category-post-list img,
    .category-page-grid img,
    .posts-list img,
    .category-posts img {
        width: 100% !important;
        height: 230px !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}
/* =========================
   FINAL MOBILE FIX FOR LIST/CATEGORY PAGES
========================= */
@media (max-width: 768px) {

    body {
        overflow-x: hidden !important;
    }

    .blog-layout,
    .posts-layout,
    .category-layout,
    .archive-layout,
    .content-sidebar-layout,
    .main-with-sidebar,
    .page-with-sidebar {
        display: block !important;
        width: 100% !important;
    }

    .main-column,
    .content-column,
    .posts-column,
    .category-main,
    .archive-main,
    .left-content {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .sidebar,
    .blog-sidebar,
    .category-sidebar,
    .archive-sidebar,
    .right-sidebar,
    aside {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 30px !important;
        display: block !important;
        position: static !important;
    }

    .posts-grid,
    .post-grid,
    .latest-posts-grid,
    .category-posts-grid,
    .blog-posts-grid,
    .archive-posts-grid,
    .news-list-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        width: 100% !important;
    }

    .post-card,
    .blog-card,
    .category-card,
    .archive-card,
    .news-card,
    .latest-post-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .post-card img,
    .blog-card img,
    .category-card img,
    .archive-card img,
    .news-card img,
    .latest-post-card img {
        width: 100% !important;
        height: 230px !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}
/* =========================
   SINGLE POST MOBILE SIDEBAR FIX
========================= */
@media (max-width: 768px) {
    .single-post-layout {
        display: block !important;
        width: 100% !important;
    }

    .single-post-card,
    .single-post-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .single-post-sidebar {
        margin-top: 30px !important;
        position: static !important;
        display: block !important;
    }

    .related-post-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .related-post-link {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .related-post-card img,
    .related-placeholder {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
    }
}
.video-wrapper{
    position:relative;
    padding-bottom:56.25%;
    height:0;
    overflow:hidden;
    border-radius:12px;
    margin:20px 0;
}

.video-wrapper iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}