/*
Theme Name:   The UK Post
Theme URI:    https://theukpost.co.uk
Description:  Custom Astra child theme for The UK Post news site.
Author:       The UK Post
Template:     astra
Version:      1.0.0
Text Domain:  theukpost
*/

:root {
    --primary-red: #c00000;
    --dark-blue: #0b2240;
    --text-dark: #222222;
    --text-gray: #666666;
    --light-bg: #f8f9fa;
    --border-color: #e5e5e5;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- TOP MINI HEADER --- */
.top-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-gray);
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-links a {
    margin-left: 15px;
}
.top-links a:hover, .social-links a:hover {
    color: var(--primary-red);
}
.social-links a {
    margin-left: 10px;
}

/* --- MAIN BRANDING HEADER --- */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left {
    display: flex;
    gap: 20px;
    font-size: 18px;
    cursor: pointer;
}
.header-left button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dark);
}
.logo {
    text-align: center;
}
.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
}
.logo h1 span {
    color: var(--primary-red);
}
.logo p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-gray);
    margin-top: 5px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-sub {
    background: var(--dark-blue);
    color: #fff;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}
.btn-signin {
    font-size: 14px;
    font-weight: 600;
}

/* --- NAVIGATION --- */
.nav-bar {
    border-bottom: 3px solid var(--text-dark);
}
.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}
.nav-menu li a {
    display: block;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: var(--primary-red);
    border-bottom: 3px solid var(--primary-red);
    margin-bottom: -3px;
}
.nav-menu li a:hover {
    color: var(--primary-red);
}

/* --- BREAKING NEWS TICKER --- */
.breaking-news {
    margin: 15px 0;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: #fff;
}
.ticker-label {
    background: var(--primary-red);
    color: #fff;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}
.ticker-content {
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-grow: 1;
}
.ticker-content a { margin-right: 6px; }
.ticker-content a:not(:last-child)::after { content: "\2022"; margin-left: 10px; }
.ticker-nav {
    display: flex;
    border-left: 1px solid var(--border-color);
}
.ticker-nav button {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-right: 1px solid var(--border-color);
}

/* --- HERO SECTION GRID --- */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.hero-main {
    position: relative;
    color: #fff;
    min-height: 480px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    border-radius: 4px;
    overflow: hidden;
}
.hero-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 70%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.cat-tag {
    background: var(--primary-red);
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 2px;
}
.hero-main h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}
.hero-main h2 a { color: #fff; }
.hero-main p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}
.meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    opacity: 0.8;
}
.author-img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

/* Hero Sidebar Right List */
.hero-side-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.side-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.side-item:last-child {
    border-bottom: none;
}
.side-item-content {
    flex: 1;
}
.side-item-content .cat-name {
    font-size: 11px;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
}
.side-item-content h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 4px 0;
    line-height: 1.3;
}
.side-item-content span {
    font-size: 11px;
    color: var(--text-gray);
}
.side-item-img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

/* --- TRENDING STORIES BANNER --- */
.trending-section {
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 30px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}
.trending-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    width: 100px;
    border-right: 2px solid var(--border-color);
}
.trending-grid {
    display: flex;
    gap: 15px;
    flex-grow: 1;
    overflow-x: auto;
}
.trending-card {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 200px;
}
.trend-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    opacity: 0.3;
}
.trending-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
.trending-card p {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

/* --- MAIN TWO COLUMN LAYOUT --- */
.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    gap: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 5px;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
}
.section-header .view-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-red);
}

/* News Cards Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}
.news-card .cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-red);
}
.news-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 5px 0;
    line-height: 1.3;
}
.news-card p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}
.news-card .author {
    font-size: 11px;
    font-weight: 600;
}

/* Top Categories Cards Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.cat-box {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 4px;
}
.cat-box h3 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}
.cat-box ul {
    list-style: none;
}
.cat-box ul li {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-gray);
}

/* --- SIDEBAR RIGHT --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.widget {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.widget-title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 5px;
}

/* Most Read Tabs */
.tabs {
    display: flex;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.tab {
    cursor: pointer;
    padding-bottom: 2px;
    color: var(--text-gray);
    background: none;
    border: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.tab.active {
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-red);
}

.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.most-read-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.rank {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-gray);
    width: 20px;
}
.most-read-item p {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* Newsletter Form Widget */
.newsletter-widget input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}
.newsletter-widget button {
    width: 100%;
    background: var(--dark-blue);
    color: #fff;
    padding: 10px;
    border: none;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

/* --- FOOTER SECTIONS --- */
.footer-newsletter {
    background: var(--dark-blue);
    color: #fff;
    padding: 20px 0;
    margin-top: 50px;
}
.footer-newsletter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-nl-text h3 {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
}
.footer-nl-text p {
    font-size: 12px;
    opacity: 0.7;
}
.footer-nl-form {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    max-width: 500px;
}
.footer-nl-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
}
.footer-nl-form button {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 0 20px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

.main-footer {
    background: #111;
    color: #aaa;
    padding: 40px 0 20px;
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 30px;
    border-bottom: 1px solid #222;
    padding-bottom: 30px;
    margin-bottom: 20px;
}
.footer-brand h2 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 10px;
}
.footer-brand p {
    font-size: 12px;
    margin-bottom: 15px;
    line-height: 1.4;
}
.footer-socials a {
    color: #fff;
    background: #222;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
}
.footer-links h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 15px;
}
.footer-links ul {
    list-style: none;
}
.footer-links ul li {
    margin-bottom: 8px;
}
.footer-links ul li a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    font-size: 11px;
    color: #666;
}

/* --- ARCHIVE / CATEGORY PAGE --- */
.archive-header {
    padding-bottom: 15px;
    border-bottom: 2px solid var(--text-dark);
    margin: 20px 0 30px;
}
.archive-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    text-transform: capitalize;
}
.archive-desc {
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 8px;
}
.archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.pagination-nav {
    margin-top: 10px;
}
.pagination-nav .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}
.pagination-nav .page-numbers.current {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}
.pagination-nav .page-numbers.dots {
    border: none;
}

/* --- STATIC PAGE (About, Contact, Privacy, etc) --- */
.static-page {
    max-width: 900px;
    margin: 0 auto 40px;
}

/* --- CONTACT PAGE --- */
.contact-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 10px 0 30px;
}
.contact-hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.contact-hero-text h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
}
.contact-hero-text p {
    color: var(--text-gray);
    font-size: 14px;
    max-width: 480px;
}
.contact-hero-illustration {
    flex-shrink: 0;
    width: 42%;
    max-width: 520px;
}
.contact-hero-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.contact-form-card,
.contact-info-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px;
}
.contact-form-card h2,
.contact-info-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: #fff;
}
.form-group textarea {
    resize: vertical;
}

.btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--dark-blue);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.btn-send:hover {
    opacity: 0.92;
}
.btn-send:disabled {
    opacity: 0.6;
    cursor: default;
}
.form-privacy-note {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 12px;
}
.theukpost-contact-msg {
    font-size: 13px;
    margin-top: 10px;
    font-weight: 600;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}
.icon-navy {
    background: var(--dark-blue);
    color: #fff;
}
.icon-red {
    background: var(--primary-red);
    color: #fff;
}
.icon-light {
    background: var(--light-bg);
    color: var(--dark-blue);
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.info-item {
    display: flex;
    gap: 15px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}
.info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.info-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
}
.info-item p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}
.info-item p a {
    color: var(--text-dark);
}
.info-item p a:hover {
    color: var(--primary-red);
}

.contact-socials {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.contact-socials h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.quick-links-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    background: var(--light-bg);
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 40px;
}
.quick-link-item h4 {
    font-size: 15px;
    margin: 15px 0 8px;
}
.quick-link-item p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 10px;
    line-height: 1.5;
}
.quick-link-cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-red);
}

/* --- SINGLE ARTICLE PAGE --- */
.breadcrumb {
    font-size: 12px;
    color: var(--text-gray);
    margin: 15px 0;
}
.breadcrumb a:hover {
    color: var(--primary-red);
}
.breadcrumb .current-crumb {
    color: var(--text-dark);
}

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.article-cat {
    display: inline-block;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 12px;
}
.article-excerpt {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 15px;
}
.article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.article-meta-row .meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
}
.article-meta-row .author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}
.save-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
}
.save-btn.is-saved {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.featured-image-wrap img {
    width: 100%;
    border-radius: 4px;
}
.image-caption {
    font-size: 12px;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 8px;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.share-row .share-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-right: 5px;
}
.share-row a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.share-fb { background: #1877f2; }
.share-x { background: #000; }
.share-li { background: #0a66c2; }
.share-wa { background: #25d366; }
.share-email { background: var(--text-gray); }

.main-article {
    min-width: 0;
}
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-wrap: break-word;
}
.article-body img,
.article-body iframe,
.article-body table,
.article-body pre {
    max-width: 100%;
}
.article-body iframe {
    height: auto;
    aspect-ratio: 16 / 9;
}
.article-body p {
    margin-bottom: 18px;
}
.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
}
.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 25px 0 12px;
}
.article-body blockquote {
    border-left: 4px solid var(--primary-red);
    background: var(--light-bg);
    padding: 12px 20px;
    margin: 25px 0;
    font-size: 18px;
    font-style: italic;
}
.article-body blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: var(--text-gray);
}
.article-body img {
    border-radius: 4px;
    margin: 10px 0;
}

.author-bio-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin: 30px 0;
}
.author-bio-box img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}
.author-bio-box h4 {
    font-size: 15px;
    margin-bottom: 5px;
}
.author-bio-box p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}
.author-bio-box .author-socials a {
    color: var(--text-gray);
    margin-right: 10px;
}
.author-bio-box .author-socials a:hover {
    color: var(--primary-red);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}
.post-nav > div {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.post-nav .next-post {
    text-align: right;
}
.post-nav a {
    color: var(--text-dark);
}
.post-nav a:hover {
    color: var(--primary-red);
}

.related-stories .related-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
}
.related-stories .related-item:last-child {
    margin-bottom: 0;
}
.related-stories img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.related-stories .cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-red);
}
.related-stories h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 2px 0;
}
.related-stories span {
    font-size: 11px;
    color: var(--text-gray);
}

.tags-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tags-widget a {
    font-size: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--text-dark);
}
.tags-widget a:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
}

.ad-widget {
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 180px;
    background: linear-gradient(135deg, var(--dark-blue), #1a3a5c);
}
.ad-widget .ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 9px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
}
.ad-widget .ad-content {
    padding: 20px;
    color: #fff;
}
.ad-widget .ad-content h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
}
.ad-widget .btn-find {
    display: inline-block;
    background: #fff;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    margin-top: 8px;
}

/* Responsive Setup */
@media(max-width: 992px) {
    .hero-grid, .main-layout, .news-grid, .categories-grid, .single-layout, .archive-layout, .contact-grid {
        grid-template-columns: 1fr;
    }
    .quick-links-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-hero-illustration {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-menu {
        flex-wrap: wrap;
    }
    .footer-newsletter .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-nl-form {
        width: 100%;
    }
}
