:root {
    --primary-color: #000000;
    /* Exact Black for Titles */
    --body-text: #0d141a;
    /* Exact Body Text */
    --accent-color: #000000;
    /* Black (Removed Blue) */
    --footer-bg: #1a2633;
    /* Exact Footer Background */
    --text-white: #ffffff;
    --shadow-light: 0px 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-card: 0px 0px 8px rgba(0, 0, 0, 0.1);
    --font-heading: 'Inter', sans-serif;
    /* CoinDesk Style */
    --font-body: 'Inter', sans-serif;
    /* CoinDesk Style */
    --primary-color: #000000;
    --secondary-color: #1A1A1A;
    --background-color: #ffffff;
    --text-color: #333333;
    --accent-color: #000000;
    --border-color: #eee;
}

html {
    font-size: 16px;
    letter-spacing: -0.015em;
    /* Slight tight tracking for modern feel */
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--body-text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    /* Now Black */
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Force all content links to be black */
.entry-content a,
.entry-content a:visited,
.entry-content a:active,
.entry-content a:focus {
    color: #000 !important;
    text-decoration: underline;
}

/* Explicitly force LinkedIn and other raw links to be black ONLY in content */
.entry-content a[href*="linkedin.com"],
.entry-content a[href^="http"] {
    color: #000 !important;
}

.entry-content a:hover {
    color: #333 !important;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    /* High opacity for content readability */
    backdrop-filter: blur(10px);
    /* Glass effect */
    box-shadow: var(--shadow-light);
    height: auto;
    /* Allow auto height for stacking */
    min-height: 102px;
    /* Maintain minimum visual bulk */
    display: flex;
    flex-direction: column;
    /* Stack children vertically */
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Ensure it stays on top */
    transition: min-height 0.3s ease, top 0.3s ease;
}

/* Fix for Admin Bar covering Sticky Header */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    gap: 20px;
    /* Reduced Gap to prevent squeeze */
}

.site-branding {
    flex-shrink: 0;
    /* Prevent title from crushing */
    margin-right: auto;
    /* Push menu to right */
}

/* Header Search Bar */
.header-search {
    margin-left: 0;
    flex-shrink: 1;
    /* Allow shrinking */
    min-width: 0;
}

/* ... existing ... */

/* Crypto Ticker Bar */
.crypto-ticker-wrap {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    height: 40px;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 998;
    /* Just below header branding z-index */
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    padding-left: 20px;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 30px;
    font-family: var(--font-body);
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.ticker-item img {
    margin-right: 6px;
    border-radius: 50%;
}

.ticker-item .symbol {
    font-weight: 700;
    margin-right: 6px;
}

.ticker-item .price {
    margin-right: 6px;
}

.ticker-item .change {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
}

.change.positive {
    color: #098551;
    /* CoinDesk Green */
}

.change.negative {
    color: #cf202f;
    /* CoinDesk Red */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* -50% because we doubled the content */
}

/* On mobile, adjust speed or size if needed */
@media (max-width: 768px) {
    .crypto-ticker-wrap {
        height: 36px;
    }

    .ticker-item {
        font-size: 12px;
        margin-right: 20px;
    }
}

/* ... existing ... */

/* Make Latest News Titles match Footer Font (Inter) exactly */
.latest-news h2,
.news-card-title a {
    font-family: var(--font-body);
    /* Ensure Inter */
    font-weight: 700;
    /* Bold like standard headings */
    letter-spacing: -0.01em;
    text-transform: none !important;
    /* Force Mixed Case */
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 99px;
    /* Pill shape */
    padding: 5px 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.header-search .search-form:focus-within {
    border-color: #ddd;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* CoinDesk-like subtle shadow */
}

.header-search .search-field {
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    /* Inter */
    width: 200px;
    /* Default width */
    outline: none;
    color: #333;
}

.header-search .search-submit {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.header-search .search-submit:hover {
    color: #000;
}

/* Toggle hidden on Desktop */
.menu-toggle {
    display: none;
}

/* Mobile Responsive Search & Menu */
@media (max-width: 768px) {

    /* Disable Sticky Header on Mobile */
    .site-header {
        position: relative;
        top: auto !important;
    }

    .header-inner {
        flex-wrap: wrap;
        /* Allow wrapping on mobile */
        height: auto;
        padding: 15px 20px;
    }

    /* Show Toggle */
    .menu-toggle {
        display: flex;
        align-items: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: 15px;
        color: #333;
        order: 2;
        /* Place after logo */
    }

    /* Hide Nav by default on mobile */
    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        /* Below header */
        left: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f1f1f1;
        z-index: 999;
        order: 4;
        /* Force to bottom when visible */
    }

    /* Show when toggled */
    .main-navigation.toggled {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid #f5f5f5;
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
        /* Larger tap targets */
    }

    .header-search {
        order: 3;
        width: 100%;
        margin: 15px 0 0 0;
    }

    .header-search .search-form {
        width: 100%;
    }

    .header-search .search-field {
        width: 100%;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-title {
    font-family: var(--font-body);
    /* Title usually sans-serif even if headings are serif */
    font-size: 20px;
    /* Reduced for space */
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #000;
    text-transform: uppercase;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    /* Adjusted gap */
}

.main-navigation a {
    font-family: var(--font-body);
    /* Menu uses Manrope */
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-transform: none;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Hero / Latest News Grid */
/* Hero / Latest News Grid */
.latest-news-section {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-body);
    /* Manrope */
    color: var(--primary-color);
    text-transform: uppercase;
    /* Keeping uppercase based on "Latest News" usually being so, but ref might be mixed. Inspection said Manrope Bold. */
    font-weight: 700;
    font-size: 24px;
    /* Ref size */
    border-bottom: none;
    /* Removed border */
    display: block;
    /* Block to not need inline-block behavior if no border */
    margin-bottom: 20px;
    /* Space between title and grid */
    padding-bottom: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    /* Ref gap */
    margin-top: 0;
    /* Title margin handles spacing */
}

.news-card {
    background: #fff;
    border-radius: 8px;
    /* Slightly clearer radius */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
    /* Ref shadow */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    /* Slightly stronger on hover */
}

/* Thumbnail Container (Anchor) */
.news-card>a {
    display: block;
    overflow: hidden;
    /* Clips the zoom */
    border-radius: 8px;
    margin-bottom: 12px;
    /* Reduced from 20px to bring title up */
    isolation: isolate;
    /* Fixes some browser rendering glitches */
}

.news-card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
    border-radius: 0;
    /* Let container handle radius */
    transition: transform 0.5s ease;
    /* Slower, smoother transition */
}

/* Image Zoom Effect */
.news-card:hover img {
    transform: scale(1.1);
    /* More noticeable zoom */
}

.news-card-content {
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-cat {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.news-card-title {
    font-size: 23px;
    /* Exact match */
    font-weight: 700;
    margin-bottom: 15px;
    /* Exact match ~10-16px */
    line-height: 1.25;
    font-family: 'Trirong', serif;
    /* Confirmed */
    text-transform: uppercase;
    /* Confirmed */
    letter-spacing: 0.5px;
}

.news-card-title a {
    color: #000000 !important;
    /* Strict Black Force */
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #000000 !important;
    /* No color change on hover as per site */
    text-decoration: underline;
    /* Standard behavior often seen if color doesn't change */
}

.news-card-meta {
    font-size: 13px;
    /* Adjusted slightly smaller than 16px to look good in grid, 16px might be too big for this specific customized layout but I will try to respect the content */
    color: #444444;
    /* Confirmed Grey */
    margin-top: auto;
    font-family: 'Manrope', sans-serif;
    /* Confirmed */
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping if tight */
    gap: 10px;
    align-items: center;
}

.news-card-cat {
    color: #444444 !important;
    /* Strict Grey Force */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    /* Relative size matching visual hierarchy */
    letter-spacing: 0.5px;
}

/* Ensure links in meta are also grey */
.news-card-cat a {
    color: #444444 !important;
    text-decoration: none;
    border-bottom: 1px solid #444444;
    /* Underline as requested */
    transition: all 0.3s ease;
}

.news-card-cat a:hover {
    color: #000 !important;
    border-color: #000;
}

.news-card-time {
    color: #444444;
    /* Matched Grey */
    font-style: normal;
    /* Manrope is usually sans-serif normal */
    font-weight: 400;
}

/* Crypto Updates Banner (Middle Section) */
/* Crypto Updates Banner (Middle Section) */
.cta-banner {
    background-color: #0d141a;
    /* Dark fallback */
    background-image: url('https://images.unsplash.com/photo-1639825988283-39e5408b75e8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    /* Reference image or similar */
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 1;
}

.cta-banner .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.cta-content-box {
    background-color: rgba(255, 255, 255, 0.15);
    /* Glass effect */
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 40px 60px;
    max-width: 700px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner h2 {
    font-family: 'Trirong', serif;
    color: #fff;
    font-size: 60px;
    /* Exact match */
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-banner p {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary {
    display: inline-block;
    padding: 12px 35px;
    background-color: rgb(6, 106, 171);
    /* Exact Blue */
    border: none;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: none;
    /* Not uppercase on ref */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: rgb(5, 85, 138);
    /* Darker blue on hover */
    color: #fff;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #fdfdfd;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 30px;
    color: var(--body-text);
    font-size: 16px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #000;
    color: #000;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

/* Stay Updated Section (Bottom) */
.stay-updated-section {
    background-color: rgb(226, 247, 250);
    /* Light Teal */
    padding: 40px 0;
    text-align: center;
    color: #0d141a;
}

.stay-updated-section .container {
    max-width: 700px;
    margin: 0 auto;
}

.stay-updated-section h2 {
    font-family: 'Trirong', serif;
    font-size: 38px;
    margin-bottom: 15px;
    color: #0d141a;
}

.stay-updated-section p {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    margin-bottom: 30px;
    color: #444;
}

.btn-pill-outline {
    display: inline-block;
    padding: 10px 40px;
    background-color: transparent;
    border: 1px solid #0d141a;
    color: #0d141a;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    text-transform: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pill-outline:hover {
    background-color: #0d141a;
    color: #fff;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    /* #1A2633 */
    color: #ffffff;
    /* White text */
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #fff;
    /* Footer links are often white or very light gray */
    font-size: 14px;
    opacity: 0.8;
}

.footer-col a:hover {
    color: #fff;
    opacity: 1;
}

.footer-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    box-sizing: border-box;
    /* Fix input width */
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 13px;
    color: #888;
}

/* Social Links */
.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links a {
    color: #ccc;
    font-weight: 500;
}

.social-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
    font-family: var(--font-body);
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #000;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #ccc;
    font-size: 12px;
}

.breadcrumbs .bread-current {
    font-weight: 600;
    color: #000;
}


/* News List View (Vertical) */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-list .news-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    border-radius: 0;
}

.news-list .news-card:hover {
    transform: none;
    box-shadow: none;
}

.news-list .news-card>a {
    width: 260px;
    flex-shrink: 0;
    margin-bottom: 0;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.news-list .news-card-content {
    padding: 0;
    justify-content: center;
}

.news-list .news-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-list .news-card-meta {
    justify-content: flex-start;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #fff;
    text-decoration: none;
}

.pagination .page-numbers:hover {
    border-color: #000;
    color: #000;
}

.pagination .page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-banner h2 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .site-header {
        height: auto;
        padding: 10px 0;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
        /* Image on top on mobile */
        margin-bottom: 20px;
    }

    .stay-updated-section .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner h2 {
        font-size: 36px;
    }

    .cta-content-box {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .news-card-title {
        font-size: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .latest-news-section,
    .about-section,
    .cta-banner {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {

    /* Switch to Stacked Layout (Image Top, Title Bottom) like Desktop but Full Width */
    /* Applied to ALL news cards (Home, Archive, Search) */
    .news-list .news-card,
    .news-grid .news-card,
    .news-card {
        flex-direction: column !important;
        /* Stack vertically */
        align-items: flex-start;
        margin-bottom: 30px;
        /* More spacing between cards */
        border-bottom: 1px solid #eee;
        /* Optional separator */
        padding-bottom: 20px;
    }

    .news-list .news-card:last-child,
    .news-grid .news-card:last-child {
        border-bottom: none;
    }

    .news-list .news-card>a,
    .news-grid .news-card>a,
    .news-card>a {
        width: 100%;
        /* Full Width Image */
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
        /* Space between Image and Title */
    }

    .news-list .news-card img,
    .news-grid .news-card img,
    .news-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        /* Standard Video/Image Ratio */
        object-fit: cover;
        border-radius: 12px;
        /* Smooth corners */
        display: block;
    }

    .news-list .news-card-title,
    .news-grid .news-card-title,
    .news-card-title {
        font-size: 20px;
        /* Larger Title */
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .news-list .news-card-meta,
    .news-grid .news-card-meta,
    .news-card-meta {
        font-size: 13px;
        color: #777;
        margin-top: 5px;
    }
}