/* =========================
   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;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 0;
}

.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;
    margin: 0;
    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;
    transition: 0.3s;
}

.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);
}

/* =========================================
   PREMIUM LEGAL FOOTER
========================================= */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0;
}

.footer-col h3 {
    margin-bottom: 18px;
    color: #c8a648; /* premium gold */
    font-size: 18px;
    letter-spacing: 0.5px;
}

.footer-col p {
    line-height: 1.8;
    color: #cbd5e1; /* softer text */
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-socials a {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.footer-socials a:hover {
    background: #c8a648;
    color: #07142b;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #c8a648;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    text-align: center;
    color: #cbd5e1;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }
}
/* =========================
   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 rgba(15,23,42,0.06);
    position: sticky;
    top: 0;
    z-index: 999;
    min-height: unset;
}
.site-brand a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    flex-wrap: nowrap;
}

.site-brand a {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.site-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
}

.site-name {
    font-size: 26px;
    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;
}

/* 3 SMALL 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 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 SAME HEIGHT AS TOP STORIES */
.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);
}

.clean-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.clean-news-card {
    border-radius: 14px;
    overflow: hidden;
}

.clean-news-card h3 {
    font-size: 18px;
    line-height: 1.4;
}

.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);
}

/* =========================
   UPGRADED 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;
}

/* =========================
   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) {
    .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-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,
    .single-post-title {
        font-size: 20px;
    }

    .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 {
        grid-template-columns: 1fr;
    }
}
.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 {
    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;
}

/* =========================================================
   LEGAL AUTHORITY TEMPLATE
========================================================= */

.legal-authority-template {
    background: #f8fafc;
}

/* HERO */

.legal-hero {
    background: linear-gradient(135deg, #07142b, #102b57);
    padding: 90px 0;
    color: #fff;
}

.legal-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 420px;
    gap: 60px;
    align-items: center;
}

.legal-kicker {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #e5b82e;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.legal-hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.legal-subtitle {
    font-size: 20px;
    line-height: 1.8;
    color: #dbeafe;
    margin-bottom: 20px;
}

.legal-intro {
    font-size: 17px;
    line-height: 1.9;
    color: #cbd5e1;
    max-width: 700px;
}

.legal-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.btn-gold {
    background: #c8a648;
    color: #07142b;
    padding: 15px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s ease;
}

.btn-gold:hover {
    background: #e5b82e;
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 15px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
}

.legal-hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* ABOUT */

.legal-about-snapshot {
    padding: 80px 0;
    background: #fff;
}

.legal-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.section-kicker {
    color: #c8a648;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.legal-about-grid h2 {
    font-size: 40px;
    line-height: 1.3;
    color: #07142b;
}

.legal-about-grid p {
    color: #475569;
    line-height: 1.9;
    font-size: 17px;
}

.text-link-gold {
    color: #c8a648;
    text-decoration: none;
    font-weight: 700;
}

/* FOCUS */

.legal-focus {
    padding: 80px 0;
}

.legal-focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.legal-focus-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 35px rgba(15,23,42,0.06);
    transition: 0.3s ease;
}

.legal-focus-card:hover {
    transform: translateY(-6px);
}

.legal-focus-card h3 {
    color: #07142b;
    margin-bottom: 15px;
    font-size: 22px;
}

.legal-focus-card p {
    color: #64748b;
    line-height: 1.8;
}

/* ARTICLES */

.legal-articles {
    padding: 80px 0;
}

/* MEDIA CTA */

.legal-media-cta {
    padding: 90px 0;
}

.legal-media-box {
    background: linear-gradient(135deg, #07142b, #102b57);
    color: #fff;
    padding: 60px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
}

.legal-media-box h2 {
    color: #fff;
    margin: 12px 0;
    font-size: 38px;
    line-height: 1.3;
}

.legal-media-box p {
    color: #cbd5e1;
    line-height: 1.9;
    max-width: 700px;
}

/* MOBILE */

@media (max-width: 992px) {

    .legal-hero-grid,
    .legal-about-grid,
    .legal-media-box {
        grid-template-columns: 1fr;
        display: grid;
    }

    .legal-focus-grid {
        grid-template-columns: 1fr 1fr;
    }

    .legal-hero-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {

    .legal-focus-grid {
        grid-template-columns: 1fr;
    }

    .legal-hero {
        padding: 70px 0;
    }

    .legal-about-snapshot,
    .legal-focus,
    .legal-articles,
    .legal-media-cta {
        padding: 60px 0;
    }

    .legal-media-box {
        padding: 35px;
    }

    .legal-media-box h2 {
        font-size: 28px;
    }

    .legal-about-grid h2 {
        font-size: 30px;
    }

    .legal-hero-content h1 {
        font-size: 36px;
    }
}
/* =========================================================
   LEGAL AUTHORITY PREMIUM REFINEMENTS
========================================================= */

/* cleaner overall spacing */
.legal-authority-template .container {
    max-width: 1320px;
}

/* premium typography */
.legal-hero-content h1 {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
}

/* subtitle refinement */
.legal-subtitle {
    max-width: 850px;
    font-weight: 500;
}

/* more elegant intro */
.legal-intro {
    max-width: 760px;
}

/* hero image refinement */
.legal-hero-image {
    text-align: center;
}

.legal-hero-image img {
    max-width: 420px;
    object-fit: cover;
    object-position: center top;
    border: 4px solid rgba(255,255,255,0.08);
}

/* section spacing consistency */
.legal-about-snapshot,
.legal-focus,
.legal-articles,
.legal-media-cta {
    position: relative;
}

/* premium cards */
.legal-focus-card,
.clean-news-card {
    border: 1px solid rgba(15,23,42,0.04);
}

/* latest insight cards */
.clean-news-card img {
    height: 220px;
}

/* article card spacing */
.clean-news-content {
    padding: 18px;
}

/* article heading */
.clean-news-content h3 {
    font-size: 20px;
    line-height: 1.45;
}

/* reduce bloggy feel */
.clean-news-content p {
    font-size: 15px;
    line-height: 1.8;
}

/* premium section headings */
.section-title-row h2 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #07142b;
}

/* media box refinement */
.legal-media-box {
    box-shadow: 0 20px 60px rgba(2,6,23,0.25);
}

/* hover effect */
.btn-gold,
.btn-outline-light,
.clean-news-card,
.legal-focus-card {
    transition: all 0.3s ease;
}

/* gold accent line */
.section-title-row h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #c8a648;
    border-radius: 30px;
    margin-top: 14px;
}

/* cleaner navbar feel for legal authority */
/* cleaner navbar feel for legal authority */
.legal-authority-template .main-navbar {
    border-bottom: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 4px 18px rgba(15,23,42,0.04);
    padding: 8px 0;
}

/* more elegant navigation */
.nav-links a {
    font-size: 15px;
    letter-spacing: 0.2px;
}

/* mobile refinements */
@media (max-width: 768px) {

    .legal-hero-content h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .section-title-row h2,
    .legal-about-grid h2 {
        font-size: 30px;
    }

    .clean-news-card img {
        height: 220px;
    }

    .legal-media-box {
        border-radius: 22px;
    }
}
/* =========================================================
   LEGAL AUTHORITY HERO FINAL REFINEMENT
========================================================= */

.legal-hero {
    padding: 80px 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(200,166,72,0.18), transparent 28%),
        linear-gradient(135deg, #07142b 0%, #0b2347 55%, #102b57 100%);
}

.legal-hero .container {
    max-width: 1480px;
    padding-left: 40px;
    padding-right: 40px;
}

.legal-hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 90px;
}

.legal-hero-content {
    padding-left: 0;
    max-width: 860px;
}

.legal-hero-content h1 {
    font-size: 76px;
    line-height: 1.03;
    letter-spacing: -2.5px;
}

.legal-subtitle {
    font-size: 21px;
    max-width: 900px;
}

.legal-intro {
    font-size: 18px;
    max-width: 760px;
}

.legal-hero-image img {
    width: 100%;
    max-width: 420px;
    height: 430px;
    min-height: unset;
    object-fit: cover;
    object-position: center top;
    border-radius: 28px;
}

@media (max-width: 992px) {
    .legal-hero .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .legal-hero-grid {
        gap: 45px;
    }

    .legal-hero-content h1 {
        font-size: 48px;
    }

    .legal-hero-image img {
        min-height: auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 80px 0;
    }

    .legal-hero .container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .legal-hero-content h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }
}
/* =========================================
   VIDEO / INTERVIEWS PAGE (CLEAN)
========================================= */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.videos-grid::-webkit-scrollbar {
    height: 6px;
}

.videos-grid::-webkit-scrollbar-thumb {
    background: #c8a648;
    border-radius: 10px;
}

.video-card {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(15,23,42,0.08);
    border: 1px solid rgba(15,23,42,0.05);
    transition: 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000;
}

.video-thumb img,
.video-card img,
img[src*="img.youtube.com"] {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    object-position: unset;
    background: #000;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #c8a648;
    color: #07142b;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.15);
    background: #e5b82e;
}

.video-content {
    padding: 20px;
}

.video-category {
    display: inline-block;
    background: #fff7d6;
    color: #8a6b00;
    padding: 7px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.video-content h3 {
    font-size: 21px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.video-content h3 a {
    color: #07142b;
    text-decoration: none;
}

.video-content h3 a:hover {
    color: #c8a648;
}

.video-content p,
.video-excerpt {
    color: #64748b;
    line-height: 1.75;
    font-size: 15px;
}

/* Featured interview */
.featured-interview {
    margin-top: 40px;
}

.featured-video-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(15,23,42,0.08);
}

.featured-video {
    max-width: 900px;
    margin: 0 auto 35px;
    background: #fff;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.featured-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.featured-video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.featured-video h2 {
    font-size: 24px;
    color: #07142b;
    margin: 18px 0 0;
}
.featured-video-content h3 a {
    color: #07142b;
    text-decoration: none;
}

.featured-video-content h3 a:hover {
    color: #c8a648;
}

.featured-video-content p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* Sidebar thumbnails */
.blog-sidebar .sidebar-thumb {
    width: 78px !important;
    height: 78px !important;
    object-fit: contain !important;
    object-position: center top !important;
    background: #f1f5f9 !important;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Article cards */
.clean-news-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center 10%;
}

/* Mobile */
@media (max-width: 768px) {
    .featured-video-box {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}
.latest-interviews-section {
    padding-bottom: 25px !important;
}

.legal-media-cta {
    padding-top: 15px !important;
    margin-top: 0 !important;
}

.legal-media-box {
    margin-top: 0 !important;
}
.premium-insight-cta {
    background: #132f57;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 70px 80px;
    border-radius: 30px;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.premium-insight-cta h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin: 10px 0;
}

.premium-insight-cta p {
    color: #dbe6f4;
    font-size: 17px;
    margin: 0;
}

.premium-insight-cta .section-kicker {
    color: #c8a648;
    font-weight: 700;
    letter-spacing: 1px;
}

.premium-insight-cta .btn-gold {
    white-space: nowrap;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Mobile */
@media (max-width: 768px) {
    .premium-insight-cta {
        flex-direction: column;
        text-align: center;
        padding: 45px 25px;
    }
}
@media (max-width: 768px) {

    /* Articles grid */
    .clean-news-grid {
        grid-template-columns: 1fr !important;
    }

    .video-card {
        min-width: 85%;
    }

    /* CTA (Insights + Interviews) */
    .premium-insight-cta,
    .legal-media-box {
        flex-direction: column !important;
        text-align: center !important;
        padding: 40px 20px !important;
    }

    .premium-insight-cta h2,
    .legal-media-box h2 {
        font-size: 24px !important;
    }

    .btn-gold {
        width: 100%;
        text-align: center;
    }

}
@media (max-width: 768px) {

    footer .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px;
    }

    footer .container > div {
        width: 100% !important;
    }

    footer h4 {
        margin-bottom: 10px;
    }

}
/* ================================
   MOBILE POLISH (GLOBAL FIX)
================================ */
@media (max-width: 768px) {

    /* ================= HERO ================= */
    .legal-hero {
        padding: 40px 20px !important;
    }

    .legal-hero-grid {
        display: block !important;
    }

    .legal-hero-grid > div {
        width: 100% !important;
    }

    .legal-hero h1 {
        font-size: 34px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px;
    }

    .legal-subtitle {
        font-size: 16px !important;
        line-height: 1.6 !important;
        display: block !important;
        white-space: normal !important;
    }

    .legal-hero-actions {
        margin-top: 20px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .legal-hero-actions a {
        flex: 1;
        text-align: center;
    }

    .legal-hero-grid img {
        width: 100%;
        margin-top: 25px;
        border-radius: 20px;
    }

    /* ================= GRIDS ================= */
    .clean-news-grid,
    .videos-grid,
    .blog-grid,
    .category-posts-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* ================= CARDS ================= */
    .clean-news-card,
    .video-card,
    .post-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .clean-news-card h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    .clean-news-card p {
        font-size: 15px;
    }

    /* ================= LAYOUT (SIDEBAR FIX) ================= */
    .single-post-layout,
    .blog-layout,
    .category-layout,
    .content-sidebar-layout,
    .main-with-sidebar {
        display: block !important;
    }

    main {
        width: 100% !important;
    }

    aside {
        width: 100% !important;
        margin-top: 30px !important;
    }

    /* ================= CTA BLOCKS ================= */
    .premium-insight-cta,
    .legal-media-box,
    .legal-section-cta {
        flex-direction: column !important;
        text-align: center !important;
        padding: 40px 20px !important;
        gap: 20px;
    }

    .premium-insight-cta h2,
    .legal-media-box h2,
    .legal-section-cta h2 {
        font-size: 24px !important;
        line-height: 1.3;
    }

    .btn-gold {
        width: 100%;
        text-align: center;
    }

    /* ================= FOOTER ================= */
    footer .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px;
    }

    footer .container > div {
        width: 100% !important;
    }

    footer h4 {
        margin-bottom: 10px;
    }

    /* ================= IMAGES ================= */
    img {
        max-width: 100%;
        height: auto;
    }

}
@media (max-width:768px){

  footer .container{
    gap:18px;
  }

  footer h4{
    font-size:16px;
    margin-bottom:6px;
  }

  footer ul li{
    margin-bottom:6px;
  }

  footer a{
    display:block;
    padding:6px 0;
  }

}

/* subtle separation */
footer{
  border-top:1px solid rgba(255,255,255,.08);
}
@media (max-width: 768px) {

    /* FORCE ALL 2-COLUMN LAYOUTS TO STACK */
    .row,
    .container > .row,
    .d-flex,
    .content-area,
    .page-layout,
    .wrapper,
    .main-content-wrapper {
        display: block !important;
    }

    /* MAIN CONTENT */
    main,
    .main-content,
    .content-area {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* SIDEBAR */
    aside,
    .sidebar,
    .right-sidebar,
    .col-md-4,
    .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 30px !important;
        display: block !important;
    }

    /* GRID FIX */
    .clean-news-grid,
    .category-posts-grid {
        grid-template-columns: 1fr !important;
    }

}
.blog-layout {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 25px;
}

/* MOBILE FIX */
@media (max-width: 768px) {

    .blog-layout {
        grid-template-columns: 1fr !important;
    }

}
/* ================================
   GLOBAL CONTENT + SIDEBAR LAYOUT
================================ */

.page-layout {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 25px;
    align-items: start;
}

/* main content */
.page-main {
    width: 100%;
}

/* sidebar */
.page-sidebar {
    width: 100%;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .page-layout {
        grid-template-columns: 1fr;
    }

}
.video-grid,
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}
@media (max-width: 1200px) {
    .video-grid,
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .video-grid,
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
}
.video-card h3 {
    padding: 14px 16px 18px;
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}

.video-card h3 a {
    color: #07142b;
    text-decoration: none;
}

.video-card h3 a:hover {
    color: #c8a648;
}
/* ================================
   LIVE PAGE
================================ */

.live-page {
    padding: 50px 0;
}

.live-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 35px;
}

.live-header h1 {
    font-size: 42px;
    color: #07142b;
    margin: 15px 0 10px;
}

.live-header p {
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}

.live-badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
}

.live-video-box {
    max-width: 1050px;
    margin: 0 auto;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15,23,42,0.18);
    aspect-ratio: 16 / 9;
}

.live-video-box iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.live-offline-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    text-align: center;
    padding: 60px 30px;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(15,23,42,0.08);
}

.live-offline-box h2 {
    color: #07142b;
    font-size: 30px;
    margin-bottom: 12px;
}

.live-offline-box p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .live-header h1 {
        font-size: 30px;
    }

    .live-page {
        padding: 35px 0;
    }

    .live-offline-box {
        padding: 40px 22px;
    }
}

.site-footer .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    align-items: flex-start;
}

.footer-col {
    min-width: 0;
}

.footer-col h3 {
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer .container {
        padding: 0 20px;
    }
}