/*
Theme Name: The Climate Files
Theme URI: https://theclimatefiles.com/
Author: Antigravity
Author URI: https://theclimatefiles.com/
Description: A modern, pixel-perfect editorial and news publication WordPress theme inspired by The Climate Files. Features a sticky breaking news ticker, newspaper-style masthead, featured stories hero, responsive category news grids, dedicated About and Contact templates, customizer options, and reading time estimation.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theclimatefiles
Tags: news, blog, editorial, newspaper, two-columns, grid-layout, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    --tcf-font-serif: 'DM Serif Display', Georgia, serif;
    --tcf-font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --tcf-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Colors */
    --tcf-color-black: #18181a;
    --tcf-color-dark: #1d1e20;
    --tcf-color-charcoal: #333333;
    --tcf-color-gray-dark: #36344d;
    --tcf-color-gray: #727586;
    --tcf-color-gray-light: #f2f3f6;
    --tcf-color-cream: #f7f7f7;
    --tcf-color-offwhite: #ebebeb;
    --tcf-color-white: #ffffff;
    --tcf-color-border: #18181a;
    --tcf-color-border-light: #e5e5e5;
    --tcf-color-accent: #18181a;

    /* Layout */
    --tcf-container-width: 1240px;
    --tcf-container-narrow: 840px;
    --tcf-container-padding: 24px;
    --tcf-header-border: 1px solid var(--tcf-color-border);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--tcf-font-sans);
    font-weight: 400;
    color: var(--tcf-color-dark);
    background-color: var(--tcf-color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.tcf-menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover, a:focus {
    color: var(--tcf-color-gray-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tcf-font-serif);
    font-weight: 400;
    line-height: 1.25;
    color: var(--tcf-color-black);
    margin-bottom: 0.5em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #444444;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

.tcf-container {
    width: 100%;
    max-width: var(--tcf-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tcf-container-padding);
    padding-right: var(--tcf-container-padding);
}

.tcf-container-narrow {
    width: 100%;
    max-width: var(--tcf-container-narrow);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tcf-container-padding);
    padding-right: var(--tcf-container-padding);
}

/* Screen reader text for accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   BREAKING NEWS STICKY BAR
   ========================================================================== */
.tcf-breaking-bar {
    background-color: var(--tcf-color-black);
    color: var(--tcf-color-white);
    font-size: 0.85rem;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tcf-breaking-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tcf-breaking-bar__content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.tcf-breaking-bar__label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #ffcd35;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: rgba(255, 205, 53, 0.12);
    padding: 3px 10px;
    border-radius: 3px;
}

.tcf-breaking-bar__label::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #fc5185;
    border-radius: 50%;
    animation: tcf-pulse 1.5s infinite;
}

@keyframes tcf-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.tcf-breaking-bar__ticker {
    flex: 1;
    min-width: 0;
    position: relative;
    height: 22px;
    overflow: hidden;
}

.tcf-breaking-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    line-height: 22px;
}

.tcf-breaking-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.tcf-breaking-item a {
    color: var(--tcf-color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tcf-breaking-item a:hover {
    color: #ffcd35;
    text-decoration: underline;
}

.tcf-breaking-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 6px;
}

.tcf-breaking-nav-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.tcf-breaking-nav-btn:hover {
    background: #ffcd35;
    color: #18181a;
}

.tcf-breaking-bar__date {
    font-size: 0.8rem;
    color: #a0a0a5;
    flex-shrink: 0;
}

/* ==========================================================================
   MASTHEAD & SITE HEADER
   ========================================================================== */
.tcf-site-header {
    background-color: var(--tcf-color-white);
    border-bottom: var(--tcf-header-border);
}

.tcf-masthead {
    padding: 32px 0 20px;
    text-align: center;
    position: relative;
}

.tcf-masthead__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    text-decoration: none;
    max-width: 100%;
}

.tcf-masthead__logo .custom-logo-link {
    display: inline-block;
    line-height: 1;
}

.tcf-masthead__logo img,
.tcf-masthead__logo .custom-logo {
    max-height: 50px !important;
    max-width: 280px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    transition: opacity 0.2s ease;
}

.tcf-masthead__logo .custom-logo-link:hover img {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .tcf-masthead__logo img,
    .tcf-masthead__logo .custom-logo {
        max-height: 40px !important;
        max-width: 220px !important;
    }
}

.tcf-masthead__title {
    font-family: var(--tcf-font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--tcf-color-black);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

.tcf-masthead__title a {
    color: inherit;
}

.tcf-masthead__tagline {
    font-family: var(--tcf-font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--tcf-color-dark);
    margin-top: 6px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tcf-masthead__description {
    font-family: var(--tcf-font-sans);
    font-size: 0.9rem;
    color: var(--tcf-color-gray);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Primary Navigation Bar */
.tcf-nav-bar {
    border-top: var(--tcf-header-border);
    position: relative;
    background-color: var(--tcf-color-white);
}

.tcf-nav-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

.tcf-primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.tcf-primary-menu li {
    position: relative;
}

.tcf-primary-menu a {
    font-family: var(--tcf-font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--tcf-color-black);
    display: block;
    padding: 14px 0;
    position: relative;
    transition: color 0.2s ease;
}

.tcf-primary-menu a:hover,
.tcf-primary-menu .current-menu-item > a,
.tcf-primary-menu .current-page-ancestor > a {
    color: var(--tcf-color-black);
    font-weight: 500;
}

.tcf-primary-menu a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--tcf-color-black);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.tcf-primary-menu a:hover::after,
.tcf-primary-menu .current-menu-item > a::after {
    transform: scaleX(1);
}

/* Submenus */
.tcf-primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--tcf-color-white);
    border: 1px solid var(--tcf-color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    display: none;
    z-index: 100;
}

.tcf-primary-menu li:hover > .sub-menu {
    display: block;
}

.tcf-primary-menu .sub-menu li a {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.tcf-primary-menu .sub-menu li a::after {
    display: none;
}

/* Nav Actions (Socials & Search) */
.tcf-nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.tcf-social-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tcf-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tcf-color-dark);
    transition: transform 0.2s ease, color 0.2s ease;
}

.tcf-social-link:hover {
    color: var(--tcf-color-black);
    transform: translateY(-1px);
}

.tcf-social-link svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.tcf-search-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--tcf-color-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.tcf-search-trigger:hover {
    color: var(--tcf-color-black);
}

.tcf-search-trigger svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Mobile Hamburger Toggle */
.tcf-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--tcf-color-black);
}

.tcf-mobile-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Mobile Drawer Nav */
.tcf-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: var(--tcf-color-white);
    border-left: var(--tcf-header-border);
    z-index: 1000;
    padding: 30px 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.tcf-mobile-nav.is-active {
    transform: translateX(0);
}

.tcf-mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tcf-mobile-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tcf-mobile-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 24px;
    color: var(--tcf-color-black);
}

.tcf-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tcf-mobile-menu li {
    margin-bottom: 16px;
}

.tcf-mobile-menu a {
    font-family: var(--tcf-font-serif);
    font-size: 1.5rem;
    color: var(--tcf-color-black);
    display: block;
}

.tcf-mobile-nav__bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--tcf-color-border-light);
}

/* Search Modal Overlay */
.tcf-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 24, 26, 0.95);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 24px;
}

.tcf-search-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tcf-search-modal__inner {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.tcf-search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

.tcf-search-form {
    display: flex;
    border-bottom: 2px solid #ffffff;
}

.tcf-search-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.75rem;
    font-family: var(--tcf-font-serif);
    padding: 12px 0;
    outline: none;
}

.tcf-search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.tcf-search-form button[type="submit"] {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0 12px;
}

/* ==========================================================================
   HOMEPAGE - FEATURED STORIES SECTION (HERO)
   ========================================================================== */
.tcf-section {
    padding: 48px 0;
}

.tcf-section--gray {
    background-color: var(--tcf-color-offwhite);
}

.tcf-section--cream {
    background-color: var(--tcf-color-cream);
}

.tcf-section__header {
    border-bottom: 1px solid var(--tcf-color-black);
    padding-bottom: 12px;
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.tcf-section__title {
    font-family: var(--tcf-font-serif);
    font-size: 2.25rem;
    color: var(--tcf-color-black);
    margin: 0;
}

.tcf-section__view-all {
    font-family: var(--tcf-font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tcf-color-black);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tcf-section__view-all:hover {
    text-decoration: underline;
}

/* Featured Stories Grid (2 large columns) */
.tcf-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.tcf-card--featured {
    display: flex;
    flex-direction: column;
}

.tcf-card--featured .tcf-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #e5e5e5;
}

.tcf-card--featured .tcf-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tcf-card--featured:hover .tcf-card__image {
    transform: scale(1.03);
}

.tcf-card__category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--tcf-color-black);
    color: var(--tcf-color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    z-index: 2;
}

.tcf-card--featured .tcf-card__title {
    font-family: var(--tcf-font-serif);
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--tcf-color-black);
}

.tcf-card--featured .tcf-card__title a {
    color: inherit;
}

.tcf-card--featured .tcf-card__title a:hover {
    color: #444;
}

.tcf-card--featured .tcf-card__excerpt {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.tcf-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.825rem;
    color: var(--tcf-color-gray);
    margin-bottom: 14px;
}

.tcf-card__meta-separator {
    display: inline-block;
}

.tcf-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tcf-color-black);
    transition: transform 0.2s ease;
}

.tcf-card__read-more:hover {
    transform: translateX(4px);
    color: var(--tcf-color-black);
}

/* ==========================================================================
   HOMEPAGE - 3-COLUMN NEWS / POLITICS / BUSINESS / OPINION GRIDS
   ========================================================================== */
.tcf-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tcf-card {
    display: flex;
    flex-direction: column;
}

.tcf-card .tcf-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #ebebeb;
}

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

.tcf-card:hover .tcf-card__image {
    transform: scale(1.04);
}

.tcf-card .tcf-card__title {
    font-family: var(--tcf-font-serif);
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--tcf-color-black);
}

.tcf-card .tcf-card__title a {
    color: inherit;
}

.tcf-card .tcf-card__title a:hover {
    color: #555555;
}

.tcf-card .tcf-card__excerpt {
    font-size: 0.9rem;
    color: #4a4a4a;
    line-height: 1.55;
    margin-bottom: 14px;
    flex-grow: 1;
}

/* ==========================================================================
   NEWSLETTER SUBSCRIPTION BLOCK
   ========================================================================== */
.tcf-newsletter-section {
    padding: 64px 0;
    background-color: var(--tcf-color-cream);
    border-top: var(--tcf-header-border);
    border-bottom: var(--tcf-header-border);
}

.tcf-newsletter-box {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.tcf-newsletter-title {
    font-family: var(--tcf-font-serif);
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: var(--tcf-color-black);
}

.tcf-newsletter-subtitle {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 28px;
    line-height: 1.6;
}

.tcf-newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 16px;
    gap: 8px;
}

.tcf-newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--tcf-color-black);
    background-color: #f1f1f1;
    font-size: 0.95rem;
    color: var(--tcf-color-black);
    outline: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tcf-newsletter-input:focus {
    background-color: var(--tcf-color-white);
    border-color: var(--tcf-color-black);
}

.tcf-newsletter-submit {
    background-color: var(--tcf-color-black);
    color: var(--tcf-color-white);
    border: 1px solid var(--tcf-color-black);
    padding: 14px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tcf-newsletter-submit:hover {
    background-color: var(--tcf-color-white);
    color: var(--tcf-color-black);
}

.tcf-newsletter-feedback {
    font-size: 0.85rem;
    margin-top: 10px;
}

.tcf-newsletter-feedback.is-success {
    color: #008361;
    font-weight: 500;
}

.tcf-newsletter-feedback.is-error {
    color: #d63163;
    font-weight: 500;
}

/* ==========================================================================
   SINGLE POST LAYOUT
   ========================================================================== */
.tcf-single-post {
    padding: 48px 0 64px;
}

.tcf-single-post__header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 36px;
}

.tcf-single-post__categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.tcf-single-post__cat-pill {
    background-color: var(--tcf-color-black);
    color: var(--tcf-color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
}

.tcf-single-post__title {
    font-family: var(--tcf-font-serif);
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--tcf-color-black);
}

.tcf-single-post__excerpt {
    font-size: 1.2rem;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tcf-single-post__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--tcf-color-gray);
    border-top: 1px solid var(--tcf-color-border-light);
    border-bottom: 1px solid var(--tcf-color-border-light);
    padding: 12px 0;
}

.tcf-single-post__author-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tcf-single-post__avatar-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.tcf-single-post__author-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    overflow: hidden !important;
    background-color: #e2e8f0;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tcf-single-post__avatar-link:hover .tcf-single-post__author-avatar {
    transform: scale(1.06);
    box-shadow: 0 2px 8px rgba(0, 131, 97, 0.25);
}

.tcf-single-post__author-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.tcf-single-post__author-text {
    font-weight: 500;
}

.tcf-single-post__author-link {
    color: var(--tcf-color-black);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tcf-single-post__author-link:hover {
    color: #008361;
    text-decoration: underline;
}

.tcf-single-post__featured-image {
    max-width: 980px;
    margin: 0 auto 40px;
}

.tcf-single-post__featured-image img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
}

.tcf-single-post__content {
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--tcf-font-body);
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2b2b2b;
}

.tcf-single-post__content p {
    margin-bottom: 1.6rem;
}

.tcf-single-post__content h2,
.tcf-single-post__content h3,
.tcf-single-post__content h4 {
    margin-top: 2.2rem;
    margin-bottom: 0.8rem;
}

.tcf-single-post__content blockquote {
    border-left: 4px solid var(--tcf-color-black);
    padding: 16px 24px;
    margin: 32px 0;
    font-family: var(--tcf-font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--tcf-color-black);
    background-color: var(--tcf-color-cream);
}

.tcf-single-post__footer {
    max-width: 760px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--tcf-color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.tcf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--tcf-color-black);
}

.tcf-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tcf-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--tcf-color-border-light);
    font-size: 0.85rem;
    color: var(--tcf-color-dark);
    transition: all 0.2s ease;
}

.tcf-share-btn:hover {
    border-color: var(--tcf-color-black);
    color: var(--tcf-color-black);
}

/* Related Posts Section */
.tcf-related-posts {
    padding: 56px 0;
    background-color: var(--tcf-color-cream);
    border-top: var(--tcf-header-border);
}

/* ==========================================================================
   ARCHIVE & CATEGORY TEMPLATES
   ========================================================================== */
.tcf-archive-header {
    background-color: var(--tcf-color-white);
    padding: 40px 0 24px;
    text-align: center;
    border-bottom: 1px solid var(--tcf-color-border-light);
}

.tcf-archive-title {
    font-family: var(--tcf-font-serif);
    font-size: 3rem;
    margin-bottom: 8px;
}

.tcf-archive-description {
    font-size: 1rem;
    color: var(--tcf-color-gray);
    max-width: 600px;
    margin: 0 auto 24px;
}

/* Category Filter Tabs */
.tcf-category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.tcf-category-tab {
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tcf-color-dark);
    border: 1px solid var(--tcf-color-border-light);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.tcf-category-tab:hover,
.tcf-category-tab.is-active {
    background-color: var(--tcf-color-black);
    color: var(--tcf-color-white);
    border-color: var(--tcf-color-black);
}

/* Pagination */
.tcf-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    gap: 8px;
}

.tcf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tcf-color-black);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tcf-color-black);
    transition: all 0.2s ease;
}

.tcf-pagination .page-numbers.current,
.tcf-pagination .page-numbers:hover {
    background-color: var(--tcf-color-black);
    color: var(--tcf-color-white);
}

/* ==========================================================================
   ABOUT PAGE TEMPLATE
   ========================================================================== */
.tcf-about-hero {
    padding: 48px 0 32px;
    text-align: center;
}

.tcf-about-hero__image {
    margin-top: 24px;
    margin-bottom: 40px;
}

.tcf-about-hero__image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.tcf-mission-section {
    padding: 56px 0;
    border-top: 1px solid var(--tcf-color-border-light);
}

.tcf-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.tcf-mission-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tcf-mission-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444444;
}

.tcf-what-we-cover {
    padding: 56px 0;
    background-color: var(--tcf-color-cream);
    border-top: var(--tcf-header-border);
    border-bottom: var(--tcf-header-border);
}

.tcf-cover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tcf-cover-card {
    background: var(--tcf-color-white);
    padding: 32px 24px;
    border: 1px solid var(--tcf-color-border-light);
}

.tcf-cover-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.tcf-cover-card p {
    font-size: 0.95rem;
    color: #555555;
    margin: 0;
}

/* Editorial Team Grid (6 portraits) */
.tcf-team-section {
    padding: 64px 0;
}

.tcf-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.tcf-team-member {
    text-align: center;
}

.tcf-team-member__photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #ebebeb;
}

.tcf-team-member__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tcf-team-member:hover .tcf-team-member__photo img {
    transform: scale(1.03);
}

.tcf-team-member__name {
    font-family: var(--tcf-font-serif);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.tcf-team-member__role {
    font-size: 0.9rem;
    color: var(--tcf-color-gray);
}

/* ==========================================================================
   CONTACT PAGE TEMPLATE
   ========================================================================== */
.tcf-contact-section {
    padding: 56px 0 64px;
}

.tcf-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

.tcf-contact-form-card {
    background: var(--tcf-color-cream);
    padding: 40px;
    border: 1px solid var(--tcf-color-border-light);
}

.tcf-contact-form-card h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.tcf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.tcf-form-group {
    margin-bottom: 16px;
}

.tcf-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--tcf-color-dark);
}

.tcf-form-input,
.tcf-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--tcf-color-black);
    background-color: var(--tcf-color-white);
    font-size: 0.95rem;
    color: var(--tcf-color-black);
    outline: none;
}

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

.tcf-contact-submit {
    background-color: var(--tcf-color-black);
    color: var(--tcf-color-white);
    border: 1px solid var(--tcf-color-black);
    padding: 14px 32px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tcf-contact-submit:hover {
    background-color: var(--tcf-color-white);
    color: var(--tcf-color-black);
}

/* Departments & Headquarters */
.tcf-contact-info-block {
    margin-bottom: 36px;
}

.tcf-contact-info-block h3 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--tcf-color-black);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.tcf-dept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tcf-dept-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.tcf-dept-item a {
    font-size: 0.9rem;
    color: var(--tcf-color-gray);
}

.tcf-hq-details p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER (4-COLUMN DARK CHARCOAL)
   ========================================================================== */
.tcf-site-footer {
    background-color: var(--tcf-color-charcoal);
    color: #cccccc;
    padding-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tcf-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tcf-footer-col h6 {
    font-family: var(--tcf-font-serif);
    font-size: 1.15rem;
    color: var(--tcf-color-white);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.tcf-footer-brand__title {
    font-family: var(--tcf-font-serif);
    font-size: 1.75rem;
    color: var(--tcf-color-white);
    margin-bottom: 8px;
}

.tcf-footer-brand__tagline {
    font-size: 0.875rem;
    color: #aaaaaa;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tcf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tcf-footer-links li {
    margin-bottom: 10px;
}

.tcf-footer-links a {
    color: #cccccc;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.tcf-footer-links a:hover {
    color: var(--tcf-color-white);
}

.tcf-footer-contact-item {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tcf-footer-contact-item a {
    color: #cccccc;
}

.tcf-footer-contact-item a:hover {
    color: var(--tcf-color-white);
}

.tcf-footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888888;
}

.tcf-footer-bottom a {
    color: #aaaaaa;
}

.tcf-footer-bottom a:hover {
    color: #ffffff;
}

/* ==========================================================================
   PAGE 404 & SEARCH
   ========================================================================== */
.tcf-404-content {
    padding: 80px 0;
    text-align: center;
}

.tcf-404-title {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 16px;
}

.tcf-404-subtitle {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--tcf-color-gray);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .tcf-featured-grid {
        grid-template-columns: 1fr;
    }
    .tcf-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tcf-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tcf-cover-grid {
        grid-template-columns: 1fr;
    }
    .tcf-mission-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.85rem; }
    h3 { font-size: 1.5rem; }

    .tcf-masthead__title {
        font-size: 2.5rem;
    }

    .tcf-primary-menu,
    .tcf-nav-actions .tcf-social-links {
        display: none;
    }

    .tcf-mobile-toggle {
        display: block;
    }

    .tcf-news-grid {
        grid-template-columns: 1fr;
    }

    .tcf-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .tcf-form-row {
        grid-template-columns: 1fr;
    }

    .tcf-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tcf-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .tcf-newsletter-form {
        flex-direction: column;
    }

    .tcf-breaking-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .tcf-breaking-bar__date {
        display: none;
    }
}

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


/* ==========================================================================
   DYNAMIC CLIMATE EXPLAINERS & REGIONAL EXPLORER
   ========================================================================== */
.tcf-explainers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tcf-explainer-card {
    background: var(--tcf-color-white);
    border: 1px solid var(--tcf-color-border-light);
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tcf-explainer-card:hover {
    transform: translateY(-2px);
    border-color: var(--tcf-color-black);
}

.tcf-explainer-icon {
    width: 38px;
    height: 38px;
    background-color: var(--tcf-color-black);
    color: var(--tcf-color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 16px;
}

.tcf-explainer-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--tcf-color-black);
}

.tcf-explainer-card p {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

/* Regional Climate Explorer */
.tcf-explorer-panel {
    background: var(--tcf-color-white);
    border: 1px solid var(--tcf-color-border);
    padding: 36px;
    margin-top: 24px;
}

.tcf-region-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tcf-color-border-light);
}

.tcf-region-tab {
    background: var(--tcf-color-white);
    border: 1px solid var(--tcf-color-black);
    color: var(--tcf-color-black);
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tcf-region-tab:hover,
.tcf-region-tab.is-active {
    background-color: var(--tcf-color-black);
    color: var(--tcf-color-white);
}

.tcf-region-content {
    animation: tcfFadeIn 0.3s ease;
}

@keyframes tcfFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.tcf-region-title {
    font-family: var(--tcf-font-serif);
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--tcf-color-black);
}

.tcf-region-text {
    font-size: 1.05rem;
    color: #444444;
    line-height: 1.7;
    max-width: 820px;
    margin-bottom: 20px;
}

.tcf-region-risks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tcf-risk-badge {
    background-color: #def4f0;
    color: #008361;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 5px 14px;
    border-radius: 20px;
}

.tcf-explorer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tcf-color-black);
    border-bottom: 2px solid var(--tcf-color-black);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tcf-explorer-link:hover {
    color: #008361;
    border-color: #008361;
}

@media (max-width: 768px) {
    .tcf-explainers-grid {
        grid-template-columns: 1fr;
    }
    .tcf-explorer-panel {
        padding: 20px;
    }
    .tcf-region-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   Author Link & Meta
   ========================================================================== */
.tcf-card__author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tcf-card__author-avatar-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.tcf-card__author-avatar-link span {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    overflow: hidden !important;
    background-color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tcf-card__author-avatar-link img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.tcf-card__author-link {
    color: var(--tcf-color-black);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tcf-card__author-link:hover {
    color: #008361;
    text-decoration: underline;
}

/* ==========================================================================
   Author Profile Hero Banner (author.php)
   ========================================================================== */
.tcf-author-hero {
    background: linear-gradient(180deg, #f7f6f2 0%, #ffffff 100%);
    border-bottom: 1px solid var(--tcf-color-border);
    padding: 60px 0 50px;
}

.tcf-author-hero__card {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    max-width: 920px;
}

.tcf-author-hero__avatar-wrap {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 4px solid var(--tcf-color-white);
}

.tcf-author-hero__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.tcf-author-hero__details {
    flex-grow: 1;
}

.tcf-author-hero__name {
    font-family: var(--tcf-font-serif);
    font-size: 2.6rem;
    line-height: 1.15;
    color: var(--tcf-color-black);
    margin: 0 0 8px;
}

.tcf-author-hero__tag-wrap {
    margin-bottom: 16px;
}

.tcf-author-hero__tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #008361;
    background: #def4f0;
    padding: 4px 12px;
    border-radius: 4px;
}

.tcf-author-hero__bio {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #444444;
    margin-bottom: 20px;
}

.tcf-author-hero__bio p {
    margin: 0 0 10px;
}

.tcf-author-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--tcf-color-border-light);
}

.tcf-author-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tcf-color-black);
}

.tcf-author-hero__social-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tcf-author-hero__social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    background: var(--tcf-color-white);
    border: 1px solid var(--tcf-color-border);
    border-radius: 4px;
    color: var(--tcf-color-black);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tcf-author-hero__social-btn:hover {
    background: var(--tcf-color-black);
    color: var(--tcf-color-white);
    border-color: var(--tcf-color-black);
}

@media (max-width: 768px) {
    .tcf-author-hero {
        padding: 36px 0;
    }
    .tcf-author-hero__card {
        gap: 20px !important;
    }
    .tcf-author-hero__avatar-wrap {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        flex: 0 0 100px !important;
    }
    .tcf-author-hero__avatar-wrap img {
        width: 100px !important;
        height: 100px !important;
    }
    .tcf-author-hero__name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .tcf-author-hero__card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .tcf-author-hero__meta {
        justify-content: center !important;
    }
}

/* ==========================================================================
   Single Article Author Bio Box (single.php)
   ========================================================================== */
.tcf-author-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    background-color: #fbfbfa;
    border: 1px solid var(--tcf-color-border);
    border-left: 4px solid #008361;
    margin: 48px 0;
    border-radius: 4px;
}

.tcf-author-box__avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--tcf-color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tcf-author-box__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.tcf-author-box__content {
    flex-grow: 1;
}

.tcf-author-box__name {
    font-family: var(--tcf-font-serif);
    font-size: 1.45rem;
    margin: 0 0 6px;
}

.tcf-author-box__name a {
    color: var(--tcf-color-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tcf-author-box__name a:hover {
    color: #008361;
}

.tcf-author-box__tag-wrap {
    margin-bottom: 12px;
}

.tcf-author-box__label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #008361;
    background: #def4f0;
    padding: 2px 8px;
    border-radius: 3px;
}

.tcf-author-box__bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 14px;
}

.tcf-author-box__bio p {
    margin: 0;
}

.tcf-author-box__more {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #008361;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.tcf-author-box__more:hover {
    text-decoration: underline;
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .tcf-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
    }
}

/* ==========================================================================
   Infinite Scroll & Load More Controls
   ========================================================================== */
.tcf-load-more-container {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0 10px;
    position: relative;
}

.tcf-infinite-scroll-sentinel {
    height: 1px;
    width: 100%;
    position: absolute;
    top: -300px;
    pointer-events: none;
    visibility: hidden;
}

.tcf-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 34px;
    background-color: var(--tcf-color-black);
    color: var(--tcf-color-white);
    font-family: var(--tcf-font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--tcf-color-black);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tcf-load-more-btn:hover {
    background-color: #333333;
    border-color: #333333;
    transform: translateY(-1px);
}

.tcf-load-more-btn:active {
    transform: translateY(0);
}

.tcf-load-more-btn:disabled,
.tcf-load-more-btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.tcf-no-more-posts {
    font-size: 0.92rem;
    color: #727586;
    margin: 16px 0 0;
    font-style: italic;
}

.tcf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--tcf-color-white);
    border-radius: 50%;
    animation: tcfSpin 0.7s linear infinite;
}

@keyframes tcfSpin {
    to {
        transform: rotate(360deg);
    }
}

.tcf-card--ajax-loaded {
    animation: tcfCardFadeIn 0.4s ease-out forwards;
}

@keyframes tcfCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

