/* FancySaver.com - Main Stylesheet
   Bambu Media Ltd © 2024
   Built for performance and readability
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;700&display=swap');

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

:root {
    --red: #e8192c;
    --dark: #111111;
    --dark2: #1a1a1a;
    --mid: #2d2d2d;
    --grey: #888;
    --lightgrey: #f0f0f0;
    --white: #ffffff;
    --text: #222;
    --textmid: #555;
    --border: #e2e2e2;
    --font-body: 'Inter', sans-serif;
    --font-head: 'Playfair Display', serif;
    --max-width: 1200px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

/* ----------------------------------------
   TOP BAR
---------------------------------------- */
.top-bar {
    background: var(--dark);
    color: #aaa;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #2a2a2a;
}

.top-bar .inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .date-line {
    letter-spacing: 0.3px;
}

.top-bar .top-links a {
    color: #aaa;
    margin-left: 14px;
    font-size: 11px;
    transition: color var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-bar .top-links a:hover {
    color: var(--red);
}

/* ----------------------------------------
   HEADER
---------------------------------------- */
.site-header {
    background: var(--dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.header-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    gap: 20px;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-text {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--red);
}

/* Nav */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav ul li a {
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

.main-nav ul li a.cat-health { border-bottom: 2px solid #4caf50; }
.main-nav ul li a.cat-travel { border-bottom: 2px solid #2196f3; }
.main-nav ul li a.cat-food { border-bottom: 2px solid #ff9800; }
.main-nav ul li a.cat-tech { border-bottom: 2px solid #9c27b0; }
.main-nav ul li a.cat-home { border-bottom: 2px solid #00bcd4; }

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: color var(--transition);
    font-size: 18px;
    line-height: 1;
}

.search-btn:hover { color: #fff; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    font-size: 22px;
}

/* ----------------------------------------
   BREAKING NEWS TICKER
---------------------------------------- */
.ticker-bar {
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-label {
    background: rgba(0,0,0,0.25);
    padding: 8px 16px;
    white-space: nowrap;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    padding: 8px 0;
}

.ticker-scroll {
    display: inline-flex;
    gap: 60px;
    animation: tickerMove 40s linear infinite;
    white-space: nowrap;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

.ticker-scroll a {
    color: #fff;
    transition: opacity var(--transition);
}

.ticker-scroll a:hover { opacity: 0.8; }

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

/* ----------------------------------------
   BREADCRUMB
---------------------------------------- */
.breadcrumb {
    background: var(--lightgrey);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 12px;
    color: var(--textmid);
}

.breadcrumb .inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a { color: var(--red); }
.breadcrumb .sep { color: #bbb; }

/* Breadcrumb lists (e.g. category pages) — keep trail on one line */
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb ol li {
    display: inline;
}

/* Category listing intro */
.category-hero {
    border-left: 4px solid var(--red);
    padding-left: 1rem;
    margin: 8px 0 28px;
}

.category-hero h1 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 8px;
}

.category-hero p {
    color: var(--textmid);
    font-size: 15px;
    line-height: 1.55;
    max-width: 720px;
}

/* ----------------------------------------
   LAYOUT WRAPPER
---------------------------------------- */
.site-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    margin-top: 28px;
}

/* ----------------------------------------
   AD PLACEHOLDER (disclosure text only — same as page background)
---------------------------------------- */
.ad-placeholder {
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 14px 0;
    padding: 0;
    display: block;
    text-align: center;
    min-height: 0;
}

.ad-placeholder .ad-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--grey);
    margin: 0;
    display: block;
}

.sidebar .ad-placeholder,
.ad-placeholder.sidebar-ad {
    min-height: 0;
}

.ad-placeholder.header-banner {
    min-height: 0;
    margin: 8px 0;
}

/* ----------------------------------------
   HERO / FEATURED
---------------------------------------- */
.hero-section {
    margin-top: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 340px 200px;
    gap: 3px;
    border-radius: 6px;
    overflow: hidden;
}

.hero-card {
    position: relative;
    overflow: hidden;
    display: block;
}

.hero-card:first-child {
    grid-row: 1 / 3;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-card:hover img {
    transform: scale(1.04);
}

.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    color: #fff;
}

.hero-card-overlay .cat-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.hero-card-overlay h2 {
    font-family: var(--font-head);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-card:first-child .hero-card-overlay h2 {
    font-size: 30px;
}

.hero-card-overlay .meta {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ----------------------------------------
   SECTION TITLE
---------------------------------------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 18px;
}

.section-title h2 {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark);
    white-space: nowrap;
}

.section-title .title-line {
    flex: 1;
    height: 2px;
    background: var(--border);
}

.section-title .title-accent {
    display: inline-block;
    width: 40px;
    height: 3px;
    background: var(--red);
    flex-shrink: 0;
}

.section-title.cat-health h2 { color: #4caf50; }
.section-title.cat-travel h2 { color: #2196f3; }
.section-title.cat-food h2 { color: #ff9800; }
.section-title.cat-tech h2 { color: #9c27b0; }
.section-title.cat-home h2 { color: #00bcd4; }

/* ----------------------------------------
   ARTICLE CARDS (GRID)
---------------------------------------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.article-card {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
    background: #fff;
}

.article-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.article-card .thumb {
    position: relative;
    overflow: hidden;
    height: 185px;
    background: var(--lightgrey);
}

.article-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card:hover .thumb img {
    transform: scale(1.06);
}

.article-card .cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 2px;
    color: #fff;
}

.badge-health { background: #4caf50; }
.badge-travel { background: #2196f3; }
.badge-food { background: #ff9800; }
.badge-tech { background: #9c27b0; }
.badge-home { background: #00bcd4; }

.article-card .card-body {
    padding: 14px;
}

.article-card .card-body h3 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--dark);
    transition: color var(--transition);
}

.article-card:hover .card-body h3 {
    color: var(--red);
}

.article-card .card-body p {
    font-size: 13px;
    color: var(--textmid);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #aaa;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.article-card .card-meta .read-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ----------------------------------------
   LIST ARTICLES (sidebar style)
---------------------------------------- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.article-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-list-item .thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--lightgrey);
}

.article-list-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-list-item:hover .thumb img { transform: scale(1.08); }

.article-list-item .info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dark);
    transition: color var(--transition);
    margin-bottom: 4px;
}

.article-list-item:hover .info h4 { color: var(--red); }

.article-list-item .info .meta {
    font-size: 11px;
    color: #aaa;
}

/* ----------------------------------------
   SIDEBAR
---------------------------------------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-widget .widget-title {
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget .widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}

.sidebar-widget .widget-body {
    padding: 14px;
}

/* ----------------------------------------
   POPULAR POSTS SIDEBAR
---------------------------------------- */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.popular-item .num {
    font-size: 20px;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    font-family: var(--font-head);
}

.popular-item .info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 3px;
    transition: color var(--transition);
}

.popular-item:hover .info h4 { color: var(--red); }

.popular-item .info .meta {
    font-size: 11px;
    color: #aaa;
}

/* ----------------------------------------
   CATEGORY TAGS SIDEBAR
---------------------------------------- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-cloud a {
    background: var(--lightgrey);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--textmid);
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.tag-cloud a:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* ----------------------------------------
   NEWSLETTER WIDGET
---------------------------------------- */
.newsletter-widget {
    background: var(--dark);
    color: #fff;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.newsletter-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-widget p {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 14px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form input {
    padding: 10px 14px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-form input:focus { border-color: var(--red); }
.newsletter-form input::placeholder { color: #666; }

.newsletter-form button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-form button:hover {
    background: #c0121f;
}

/* ----------------------------------------
   ARTICLE PAGE
---------------------------------------- */
.article-page {
    margin-top: 28px;
}

.article-header {
    margin-bottom: 24px;
}

.article-header .cat-badge-big {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 2px;
    color: #fff;
    margin-bottom: 14px;
}

.article-header h1 {
    font-family: var(--font-head);
    font-size: 36px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--grey);
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.article-header .article-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lightgrey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--grey);
    overflow: hidden;
    flex-shrink: 0;
}

.article-header .share-btns {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity var(--transition);
}

.share-btn:hover { opacity: 0.85; }
.share-btn.fb { background: #1877f2; color: #fff; }
.share-btn.tw { background: #000; color: #fff; }

/* ----------------------------------------
   ARTICLE FEATURED IMAGE
---------------------------------------- */
.article-featured-img {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
    height: 450px;
    background: var(--lightgrey);
}

.article-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-featured-img figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    padding: 8px 14px;
}

/* ----------------------------------------
   ARTICLE BODY
---------------------------------------- */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin: 32px 0 14px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark);
    margin: 24px 0 10px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 16px 0 20px 24px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-body blockquote {
    border-left: 4px solid var(--red);
    padding: 14px 20px;
    margin: 24px 0;
    background: #fafafa;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    font-size: 17px;
    color: #555;
    line-height: 1.7;
}

.article-body .key-point {
    background: #f0f7ff;
    border: 1px solid #c8e0ff;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 24px 0;
}

.article-body .key-point strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2196f3;
    margin-bottom: 6px;
}

.ad-placeholder.in-article-ad {
    margin: 22px 0;
    min-height: 0;
}

/* ----------------------------------------
   RELATED ARTICLES
---------------------------------------- */
.related-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid var(--border);
}

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

/* ----------------------------------------
   TAGS
---------------------------------------- */
.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.article-tags .tags-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--grey);
}

.article-tags a {
    background: var(--lightgrey);
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--textmid);
    font-weight: 500;
    transition: all var(--transition);
}

.article-tags a:hover {
    background: var(--red);
    color: #fff;
}

/* ----------------------------------------
   CATEGORY PAGE HEADER
---------------------------------------- */
.cat-page-header {
    padding: 28px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.cat-page-header .cat-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    font-family: var(--font-head);
}

.cat-page-header p {
    font-size: 14px;
    color: var(--textmid);
    max-width: 600px;
}

/* ----------------------------------------
   FOOTER
---------------------------------------- */
.site-footer {
    background: var(--dark2);
    color: #aaa;
    margin-top: 50px;
}

.footer-top {
    padding: 40px 0 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2d2d2d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--red);
    display: inline-block;
    border-radius: 2px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.7;
    color: #888;
    margin-bottom: 14px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: #888;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a::before {
    content: '›';
    color: var(--red);
    font-size: 16px;
    line-height: 1;
}

.footer-col ul li a:hover { color: #fff; }

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-contact p .ico {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
    font-style: normal;
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 16px 0;
}

.footer-bottom .inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom .copy {
    font-size: 12px;
    color: #666;
}

.footer-bottom .legal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom .legal-links a {
    font-size: 12px;
    color: #666;
    transition: color var(--transition);
}

.footer-bottom .legal-links a:hover { color: #fff; }

/* ----------------------------------------
   COOKIE BANNER
---------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid var(--red);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-text p {
    font-size: 13px;
    color: var(--textmid);
    line-height: 1.6;
}

.cookie-banner-text p a {
    color: var(--red);
    text-decoration: underline;
}

.cookie-btn-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
    min-width: 140px;
}

.cookie-btn {
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all var(--transition);
    white-space: nowrap;
}

.cookie-btn.accept-all {
    background: var(--red);
    color: #fff;
}

.cookie-btn.accept-all:hover { background: #c0121f; }

.cookie-btn.manage {
    background: transparent;
    color: var(--dark);
    border: 1px solid #ccc;
    font-size: 12px;
}

.cookie-btn.manage:hover {
    border-color: var(--dark);
}

.cookie-btn.reject {
    background: transparent;
    color: #999;
    font-size: 11px;
    font-weight: 400;
    padding: 4px;
    text-decoration: underline;
    cursor: pointer;
    border: none;
}

/* Cookie preferences modal */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-modal-overlay.open {
    display: flex;
}

.cookie-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cookie-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #aaa;
    line-height: 1;
    transition: color var(--transition);
}

.modal-close:hover { color: var(--dark); }

.cookie-modal-body {
    padding: 20px 24px;
}

.cookie-modal-body p {
    font-size: 13px;
    color: var(--textmid);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-option {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-option-header strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.cookie-option p {
    font-size: 12px;
    color: var(--textmid);
    margin: 0;
    line-height: 1.5;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--red);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
    background: #4caf50;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-modal-footer .btn-save {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.cookie-modal-footer .btn-save:hover { background: #c0121f; }

.cookie-modal-footer .btn-accept-all {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.cookie-modal-footer .btn-accept-all:hover { background: #333; }

/* ----------------------------------------
   STATIC PAGES (privacy, terms, etc.)
---------------------------------------- */
.static-page {
    max-width: 820px;
    margin: 36px auto;
    padding: 0 16px 60px;
}

.static-page h1 {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.static-page .last-updated {
    font-size: 13px;
    color: var(--grey);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.static-page h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 28px 0 12px;
}

.static-page h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0 8px;
}

.static-page p {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 14px;
}

.static-page ul, .static-page ol {
    margin: 10px 0 14px 24px;
}

.static-page ul { list-style: disc; }
.static-page ol { list-style: decimal; }

.static-page li {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 6px;
}

.static-page .info-box {
    background: #f5f9ff;
    border-left: 4px solid #2196f3;
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    margin: 20px 0;
}

.static-page .info-box p {
    margin: 0;
    font-size: 14px;
    color: #444;
}

.static-page a {
    color: var(--red);
    text-decoration: underline;
}

/* contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 28px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition);
    color: var(--text);
    margin-bottom: 12px;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); }

.contact-form textarea { height: 140px; resize: vertical; }

.contact-form button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form button:hover { background: #c0121f; }

.contact-info-card {
    background: var(--dark);
    color: #fff;
    border-radius: 8px;
    padding: 24px;
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2d2d2d;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-info-item .ci-icon {
    color: var(--red);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    font-style: normal;
}

.contact-info-item h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: #ccc;
}

.contact-info-item p, .contact-info-item a {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
}

/* ----------------------------------------
   PAGINATION
---------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 36px 0;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--textmid);
    transition: all var(--transition);
}

.pagination a:hover, .pagination span.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ----------------------------------------
   BACK TO TOP
---------------------------------------- */
.back-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.back-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-top:hover { background: #c0121f; }

/* ----------------------------------------
   MOBILE MENU
---------------------------------------- */
.mobile-nav {
    display: none;
    background: var(--dark2);
    padding: 16px;
    border-top: 1px solid #2a2a2a;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav ul li a {
    display: block;
    color: #ccc;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mobile-nav ul li a:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */
@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr 260px;
        gap: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid {
        grid-template-rows: 280px 170px;
    }
}

@media (max-width: 768px) {
    .main-nav, .header-search { display: none; }

    .mobile-menu-btn { display: flex; }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar { display: none; }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-card:first-child { grid-row: auto; }

    .hero-card { height: 240px; }

    .articles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .article-header h1 {
        font-size: 26px;
    }

    .article-featured-img { height: 280px; }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding-top: 28px;
    }

    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .hero-card { height: 200px; }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .cookie-banner-inner {
        flex-direction: column;
    }

    .cookie-btn-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .top-bar .top-links { display: none; }
}

/* ----------------------------------------
   MISC UTILITIES
---------------------------------------- */
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}
