/* =========================
   RESET / VARIABLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #C1121F;
    --gold-dark: #C1121F;
    --gold-light: #FEE2E2;
    --dark: #0A3D91;
    --dark-soft: #082B66;
    --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;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   GLOBAL
========================= */
.container {
    width: 90%;
    max-width: 1380px;
    margin: 0 auto;
}

.site-main {
    padding: 30px 0 50px;
}

.empty-box {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.post-category {
    display: inline-block;
    background: var(--site-secondary, #C1121F) !important;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}
.read-more,
.view-all-link {
    color: var(--gold-dark);
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover,
.view-all-link:hover {
    text-decoration: underline;
}

.news-card-meta,
.mini-meta {
    color: var(--muted);
    font-size: 13px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

/* =========================
   FORMS / BUTTONS / ALERTS
========================= */
.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);
}

.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-dark {
    background: var(--dark);
    color: var(--gold);
}

.btn-dark:hover {
    background: #020617;
}

.btn-sm,
td .btn {
    padding: 8px 12px;
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 4px;
}

.btn-block {
    width: 100%;
}

.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);
}

/* =========================
   LOGIN
========================= */
.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,
.login-box p,
.login-footer {
    text-align: center;
}

.login-box h2 {
    margin-bottom: 10px;
    color: var(--dark);
}

.login-box p,
.login-footer {
    color: var(--muted);
}

.login-box p {
    margin-bottom: 25px;
}

.login-footer {
    margin-top: 18px;
    font-size: 13px;
}

/* =========================
   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;
}

.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-bottom: 10px;
    font-size: 17px;
    color: #334155;
}

.card .number {
    font-size: 30px;
    font-weight: bold;
    color: var(--gold-dark);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.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,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links {
    margin-top: 25px;
}

.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;
}

.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);
}

/* =========================
   TABLES / ADMIN 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,
table td img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
}

.preview-image {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
}

.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 HEADER / NAVBAR
========================= */
.public-body {
    background: #f8fafc;
    color: var(--text);
}

.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.top-strip {
    background: var(--dark);
    color: var(--gold);
    padding: 10px 0;
    font-size: 14px;
    overflow: hidden;
}

.top-strip-flex,
.top-strip-left,
.nav-flex,
.site-brand a,
.nav-links,
.nav-search form {
    display: flex;
    align-items: center;
}

.top-strip-flex {
    justify-content: space-between;
    gap: 20px;
}

.top-strip-left {
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.breaking-label {
    background: var(--site-secondary);
    color: #ffffff;
    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,
.ticker-empty {
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.ticker-track a:hover {
    color: #fff;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.main-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-flex {
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.site-brand a {
    gap: 8px;
    text-decoration: none;
}

.site-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.nav-links {
    gap: 18px;
    flex-wrap: wrap;
}

.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 {
    gap: 8px;
}

.nav-search input {
    min-width: 230px;
}

/* =========================
   HOMEPAGE IMAGES / CARDS
========================= */
.homepage-top-layout {
    display: grid;
    grid-template-columns: 2.15fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
    align-items: stretch;
}

.top-stories-grid {
    display: grid;
    grid-template-columns: 1.55fr 1.05fr;
    gap: 22px;
    min-height: 500px;
}

.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,
.clean-news-card {
    display: flex;
    flex-direction: column;
}

.main-feature-card {
    height: 100%;
    min-height: 500px;
}

.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,
.clean-news-card img,
.category-home-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.main-feature-card img {
    height: 330px;
}

.side-feature-card img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.main-feature-content,
.clean-news-content,
.category-home-content {
    padding: 16px;
}

.main-feature-content {
    padding: 18px 20px 30px;
    flex: 1;
}

.main-feature-content h3 {
    font-size: 24px;
    line-height: 1.3;
    margin: 8px 0 12px;
}

.main-feature-content h3 a,
.clean-news-content h3 a,
.category-home-content h3 a {
    color: var(--dark);
    text-decoration: none;
}

.main-feature-content h3 a:hover,
.clean-news-content h3 a:hover,
.category-home-content h3 a:hover {
    color: var(--gold-dark);
}

.main-feature-content p {
    color: var(--muted);
    line-height: 1.65;
}

.side-feature-list {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    height: 100%;
}

.side-feature-link {
    display: grid;
    grid-template-columns: 145px 1fr;
    height: 100%;
}

.side-feature-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-feature-content h4 {
    font-size: 16px;
    line-height: 1.35;
    color: var(--dark);
}

.clean-news-grid,
.category-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.clean-news-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clean-news-content h3,
.category-home-content h3 {
    font-size: 18px;
    line-height: 1.35;
}

.clean-news-content p,
.category-home-content p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.main-feature-card:hover,
.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);
    transition: 0.25s ease;
}

/* TrustPoint Premium Template Images */
.tp-lead-img {
    height: 500px;
    background: #f8fafc;
    overflow: hidden;
    display: block;
    position: relative;
}

.tp-lead-img img,
.tp-small img,
.tp-card img,
.tp-category-feature img,
.tp-category-side-item img {
    width: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.tp-lead-img img {
    height: 100%;
}

.tp-small img {
    height: 260px;
}

.tp-card img {
    height: 180px;
}

.tp-category-feature img {
    height: 360px;
}

.tp-category-side-item img {
    width: 115px;
    height: 86px;
    border-radius: 10px;
}

/* =========================
   TRENDING / CATEGORY
========================= */
.trending-block,
.top-stories-block {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.compact-trending-list {
    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);
    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 h4 {
    margin: 2px 0 6px;
    font-size: 16px;
    line-height: 1.3;
}

.compact-trend-content h4 a {
    color: var(--dark);
    text-decoration: none;
}

.category-home-section {
    margin-top: 40px;
}

.category-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.category-title-row h2,
.section-title {
    color: var(--site-primary, #0A3D91) !important;
    border-left: 6px solid var(--site-secondary, #C1121F) !important;
    padding-left: 12px;
}
/* =========================
   SINGLE POST
========================= */
.single-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 32px;
    align-items: start;
}

.single-post-card,
.upgraded-sidebar-widget {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.single-post-card {
    overflow: hidden;
    min-width: 0;
}

.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: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    background: #f8fafc;
}

.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,
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.upgraded-sidebar-widget {
    padding: 22px;
}

.related-post-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
}

.related-post-link {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    text-decoration: none;
    color: inherit;
    min-height: 95px;
}

.related-post-card img,
.related-placeholder {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    background: #f8fafc;
}

.related-placeholder,
.image-placeholder,
.tp-placeholder {
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
/* =========================
   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,
.post-content ul,
.post-content ol {
    margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
    padding-left: 20px;
}

.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;
}

/* =========================
   SEARCH / ADS / FOOTER
========================= */
.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;
}

.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%;
    height: auto;
}

.site-footer {
    background: var(--primary-color, #07142b);
    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);
}

.footer-col p,
.footer-links a {
    color: #fff;
}

.footer-col p {
    line-height: 1.8;
    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;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    color: #fff;
}

/* =========================
   UTILITIES
========================= */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
    .homepage-top-layout,
    .top-stories-grid {
        grid-template-columns: 1fr;
    }

    .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;
    }

    .clean-news-grid,
    .category-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-grid,
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .single-post-title {
        font-size: 34px;
    }

    .single-post-hero-image img {
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .single-post-layout {
        display: block !important;
    }

    .single-post-card,
    .blog-sidebar,
    .single-post-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .blog-sidebar,
    .single-post-sidebar {
        margin-top: 25px;
    }

    .topbar,
    .nav-flex,
    .top-strip-left,
    .category-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .page-content {
        padding: 18px;
    }

    .nav-links,
    .nav-search form,
    .breaking-news-ticker {
        width: 100%;
    }

    .nav-search input,
    .search-page-form input {
        width: 100%;
        min-width: unset;
    }

    .site-logo {
        height: 70px;
    }

    .site-name {
        font-size: 24px;
    }

    .side-feature-link {
        grid-template-columns: 1fr;
    }

    .related-post-link {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .side-feature-card img {
        height: 180px;
    }

    .related-post-card img,
    .related-placeholder {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        object-position: center 20% !important;
    }

    .main-feature-card img,
    .feature-placeholder {
        height: 260px;
    }

    .clean-news-grid,
    .category-home-grid {
        grid-template-columns: 1fr;
    }

    .single-post-header,
    .single-post-content {
        padding: 20px;
    }

    .single-post-title {
        font-size: 26px !important;
        line-height: 1.3;
        word-break: break-word;
    }

    .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;
    }
}
.logout-link {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
}
/* FORCE RELATED POSTS IMAGE - NO CROP */
.single-post-sidebar .related-post-card img,
.blog-sidebar .related-post-card img,
.related-post-card a img,
.related-post-card img {
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: auto !important;
}
.related-post-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    border-radius: 10px;
    background: #f8fafc;
    display: block;
}
/* =========================
   CLEAN NAVBAR STYLES
========================= */
.top-strip {
    background: var(--site-primary, #0a2a66);
}

.breaking-label,
.btn,
.btn-sm {
    background: var(--site-secondary, #d4a017) !important;
    color: #000 !important;
}

.main-navbar {
    background: #fff;
    padding: 14px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.site-logo {
    height: 115px !important;
    width: auto !important;
    max-width: 330px !important;
    object-fit: contain !important;
    display: block;
}

.site-name {
    color: var(--site-primary, #0a2a66);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
}

.site-tagline {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-links > a,
.nav-dropdown {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.nav-links a,
.nav-dropdown-btn {
    color: var(--site-primary, #0a2a66);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 99999;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block !important;
}

.nav-dropdown-menu a {
    display: block;
    padding: 11px 16px;
    white-space: nowrap;
}

.nav-search {
    position: relative;
}

.nav-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.live-search-results {
    position: absolute;
    top: 48px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: none;
    z-index: 9999;
    max-height: 350px;
    overflow-y: auto;
}

/* =========================
   CLEAN FOOTER STYLES
========================= */

/* =========================
   CLEAN FOOTER STYLES
========================= */

.trustpoint-footer {
    background: linear-gradient(135deg, var(--site-primary), #082B66);
    color: #ffffff;
    padding: 55px 0 25px;
}

.footer-topline {
    height: 4px;
    width: 90px;
    background: var(--site-secondary);
    border-radius: 30px;
    margin-bottom: 30px;
}

.footer-grid-premium {
    display: grid;
    grid-template-columns: 1.4fr .8fr .9fr 1fr;
    gap: 35px;
    align-items: start;
}

.trustpoint-footer h3 {
    color: var(--site-secondary);
    margin: 0 0 16px;
    font-size: 19px;
    font-weight: 900;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 26px;
    letter-spacing: 1px;
}

.footer-tagline {
    color: var(--site-secondary);
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-about {
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    max-width: 380px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links a,
.footer-socials a {
    color: rgba(255,255,255,.84);
    text-decoration: none;
    transition: .25s;
}

.footer-links a:hover,
.footer-socials a:hover {
    color: var(--site-secondary);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-socials a {
    border: 1px solid rgba(255,255,255,.22);
    padding: 8px 11px;
    border-radius: 30px;
    font-size: 13px;
}

.footer-contact {
    margin-top: 24px;
}

.footer-contact p {
    color: rgba(255,255,255,.82);
    line-height: 1.8;
}

.footer-newsletter {
    margin-top: 38px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 20px;
    align-items: center;
}

.footer-newsletter h3 {
    margin-bottom: 7px;
}

.footer-newsletter p {
    margin: 0;
    color: rgba(255,255,255,.75);
}

.footer-newsletter form {
    display: flex;
    gap: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 14px 15px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
}

.footer-newsletter button {
    background: var(--site-secondary);
    color: #ffffff;
    border: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
}

.footer-newsletter button:hover {
    opacity: 0.9;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.13);
    text-align: center;
    color: rgba(255,255,255,.78);
}
/* RESPONSIVE */
@media (max-width: 992px) {
    .nav-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-logo {
        height: 85px !important;
        max-width: 260px !important;
    }

    .site-name {
        font-size: 26px;
    }

    .nav-links {
        gap: 15px;
    }
.nav-links > a {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.nav-links a,
.nav-dropdown-btn {
    color: var(--site-primary, #0a2a66);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.nav-dropdown-btn {
    cursor: pointer;
    padding: 0;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 9999;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 11px 16px;
    color: var(--site-primary, #0a2a66);
    font-size: 14px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #f4f6f9;
}

    .nav-search,
    .nav-search-form,
    .nav-search input {
        width: 100%;
    }

    .live-search-results {
        left: 0;
        right: auto;
        width: 100%;
    }

    .footer-grid-premium,
    .footer-newsletter {
        grid-template-columns: 1fr;
    }

    .footer-newsletter form {
        flex-direction: column;
    }
}
/* =========================
   TRUSTPOINT NEWS DROPDOWN FINAL
========================= */

.tp-news-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.tp-news-btn {
    color: var(--site-primary, #0a2a66);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.tp-news-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 99999;
}

.tp-news-dropdown:hover .tp-news-menu {
    display: block !important;
}

.tp-news-menu a {
    display: block;
    padding: 11px 16px;
    color: var(--site-primary, #0a2a66);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.tp-news-menu a:hover {
    background: #f4f6f9;
}

@media (max-width: 992px) {
    .tp-news-dropdown {
        width: 100%;
        display: block;
    }

    .tp-news-menu {
        position: absolute;
        top: 100%;
        left: 0;
    }
}

.post-content {
    white-space: pre-line;
}

.post-content p {
    margin-bottom: 18px;
    line-height: 1.9;
}
/* TRUSTPOINT RED/BLUE FINAL OVERRIDE */
:root {
    --site-primary: #0A3D91;
    --site-secondary: #C1121F;
}

.post-category,
.breaking-label,
.btn,
.btn-sm,
.nav-search button,
.search-page-form button {
    background: #C1121F !important;
    color: #fff !important;
}

.top-strip {
    background: #0A3D91 !important;
}

.site-name,
.nav-links a,
.tp-news-btn,
.nav-dropdown-btn,
.main-feature-content h3 a,
.clean-news-content h3 a,
.category-home-content h3 a,
.compact-trend-content h4 a {
    color: #0A3D91 !important;
}

.nav-links a:hover,
.tp-news-btn:hover,
.nav-dropdown-btn:hover,
.main-feature-content h3 a:hover,
.clean-news-content h3 a:hover,
.category-home-content h3 a:hover,
.view-all-link {
    color: #C1121F !important;
}

.category-title-row h2,
.section-title {
    color: #0A3D91 !important;
    border-left: 6px solid #C1121F !important;
    padding-left: 12px;
}

.footer-topline,
.footer-newsletter button {
    background: #C1121F !important;
}

.trustpoint-footer h3,
.footer-tagline,
.footer-links a:hover,
.footer-socials a:hover {
    color: #C1121F !important;
}
.post-category {
    background: red !important;
    color: white !important;
}
/* CATEGORY PAGE MOBILE FIX */
@media (max-width: 768px) {

    .blog-layout {
        display: block !important;
    }

    .blog-main,
    .blog-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .posts-grid {
        grid-template-columns: 1fr !important;
    }

    .post-card {
        width: 100% !important;
    }

    .blog-sidebar {
        margin-top: 30px !important;
    }

    .post-card h2 {
        font-size: 22px !important;
        line-height: 1.4 !important;
    }
}
.post-content p {
    margin-bottom: 20px !important;
    line-height: 1.9;
}