/*
Theme Name: Town Crier Africa
Description: Professional Pan-African news theme v6.0 with enhanced hero slider, latest news widgets, automatic category sections, and comprehensive content management. Amplifying African narratives with modern WordPress functionality and editorial excellence.
Author: Town Crier Africa Editorial Team
Version: 6.0.0
License: GPL v2 or later
Text Domain: towncrier-africa
Tags: news, editorial, responsive, african, modern, two-columns, custom-header, custom-menu, featured-images, sticky-post, translation-ready, blog, journalism
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4

Town Crier Africa WordPress Theme v6.0
Amplifying African Narratives - Pan-African Digital Media Platform

NEW IN V6.0:
- Enhanced hero slider with title-only display
- Latest News sidebar widget with gold dividers  
- Automatic category-based content sections
- Full content management via WordPress editor
- Professional editorial layout improvements
- Enhanced mobile responsiveness and accessibility

Features:
- Auto-rotating hero slider with clean title overlay
- Breaking news ticker with smooth animations
- Weather widget with OpenWeatherMap integration
- African stock markets widget
- Comprehensive ads & sponsors system
- GDPR-compliant cookie consent
- SEO optimization with structured data
- Mobile-responsive design
- Accessibility (WCAG 2.1 AA)
*/

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

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */

:root {
  /* Town Crier Africa Brand Colors */
  --brand-black: #000000;
  --brand-gold: #E2B94B;
  --brand-white: #FFFFFF;
  --text-gray: #6B7280;
  --border-gray: #E5E7EB;
  --bg-gray: #F9FAFB;
  --gold-divider: #b8860b;
  
  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  /* Responsive breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* Spacing */
  --container-max-width: 1280px;
  --section-padding: 3rem 1rem;
  --card-border-radius: 0.375rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ========================================
   Base Styles
   ======================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--brand-black);
  background-color: var(--brand-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-black);
  margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.875rem; line-height: 1.25; }
h3 { font-size: 1.5rem; line-height: 1.3; }
h4 { font-size: 1.125rem; line-height: 1.4; }
h5 { font-size: 1rem; font-weight: 500; }
h6 { font-size: 0.875rem; font-weight: 500; }

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

a {
  color: var(--brand-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-gold);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ========================================
   Layout Components
   ======================================== */

.tca-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .tca-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .tca-container {
    padding: 0 2rem;
  }
}

/* Grid System */
.tca-grid {
  display: grid;
  gap: 2rem;
}

.tca-grid-cols-1 { grid-template-columns: 1fr; }
.tca-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tca-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tca-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
  .tca-grid-md-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .tca-grid-md-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .tca-grid-lg-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .tca-grid-lg-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .tca-main-layout { grid-template-columns: 3fr 1fr; }
}

/* ========================================
   Header & Navigation
   ======================================== */

.tca-header {
  background: var(--brand-white);
  border-bottom: 1px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.tca-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.tca-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-black);
  text-decoration: none;
}

.tca-logo img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
}

.tca-navigation {
  display: none;
}

.tca-nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tca-nav-menu a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.tca-nav-menu a:hover,
.tca-nav-menu a.current {
  border-bottom-color: var(--brand-gold);
}

@media (min-width: 1024px) {
  .tca-navigation {
    display: block;
  }
}

/* Mobile menu button */
.tca-mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

@media (min-width: 1024px) {
  .tca-mobile-menu-button {
    display: none;
  }
}

/* ========================================
   Breaking News Ticker
   ======================================== */

.tca-breaking-news {
  background: var(--brand-black);
  color: var(--brand-white);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.75rem 0;
}

.tca-breaking-content {
  display: flex;
  align-items: center;
}

.tca-breaking-label {
  background: var(--brand-gold);
  color: var(--brand-black);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.tca-breaking-items {
  display: flex;
  align-items: center;
  animation: scroll-left 60s linear infinite;
}

.tca-breaking-item {
  margin-right: 3rem;
  white-space: nowrap;
}

.tca-breaking-item a {
  color: var(--brand-white);
  font-weight: 400;
}

.tca-breaking-item a:hover {
  color: var(--brand-gold);
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ========================================
   Enhanced Hero Section - V6.0 Updates
   ======================================== */

.tca-hero {
  position: relative;
  margin-bottom: 3rem;
}

.tca-hero-main {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--card-border-radius);
}

@media (min-width: 768px) {
  .tca-hero-main {
    height: 500px;
  }
}

.tca-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.tca-hero-slide.active {
  opacity: 1;
}

.tca-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* V6.0 Enhanced: Clean title-only overlay */
.tca-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--brand-white);
  padding: 2rem;
}

.tca-hero-category {
  display: inline-block;
  background: var(--brand-gold);
  color: var(--brand-black);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

/* V6.0 Enhanced: Title-only display with ellipsis */
.tca-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--brand-white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .tca-hero-title {
    font-size: 2rem;
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 1024px) {
  .tca-hero-title {
    font-size: 2.25rem;
  }
}

/* V6.0 Enhanced: Removed excerpt display from hero */
.tca-hero-excerpt {
  display: none;
}

.tca-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 1rem;
}

/* Hero Navigation Controls */
.tca-hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-gray);
  border-radius: var(--card-border-radius);
}

.tca-hero-dots {
  display: flex;
  gap: 0.75rem;
}

.tca-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.tca-hero-dot.active {
  background: var(--brand-gold);
}

.tca-hero-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.tca-hero-btn {
  background: var(--brand-white);
  border: 1px solid var(--border-gray);
  color: var(--brand-black);
  width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.tca-hero-btn:hover {
  background: var(--bg-gray);
  transform: translateY(-1px);
}

#heroPlayPause {
  background: var(--brand-gold);
  color: var(--brand-black);
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
}

#heroPlayPause:hover {
  background: #D4A74E;
  transform: translateY(-1px);
}

/* Progress Bar */
#heroProgress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--brand-gold);
  width: 0%;
  transition: width 0.1s linear;
}

/* ========================================
   Enhanced Sidebar Widgets - V6.0 Updates
   ======================================== */

.tca-sidebar {
  position: sticky;
  top: 2rem;
}

.tca-widget {
  background: var(--brand-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--card-border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.tca-widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-black);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* V6.0 Enhanced: Gold dividers */
.tca-widget-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-divider), transparent);
  margin: 1.5rem 0;
}

.tca-gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-divider), transparent);
  margin: 1rem 0;
}

/* V6.0 Enhanced: Latest News Widget */
.tca-latest-news-widget {
  background: var(--brand-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--card-border-radius);
  padding: 1.5rem;
}

.tca-latest-news-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-black);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tca-latest-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tca-latest-news-item {
  margin-bottom: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gold-divider);
}

.tca-latest-news-item:last-child {
  border-bottom: none;
  margin-bottom: 1rem;
}

.tca-latest-news-link {
  color: var(--brand-black);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  display: block;
  transition: all 0.2s ease;
}

.tca-latest-news-link:hover {
  color: var(--brand-gold);
  text-decoration: underline;
}

.tca-latest-news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand-gold);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.tca-latest-news-readmore:hover {
  color: #D4A74E;
  text-decoration: underline;
}

/* ========================================
   Category Hero Sections
   ======================================== */

.tca-category-hero {
  background: linear-gradient(135deg, var(--bg-gray) 0%, #F3F4F6 100%);
  padding: 3rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.tca-category-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L90 50 L50 90 L10 50 Z" fill="none" stroke="%23E2B94B" stroke-width="0.5" opacity="0.05"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

.tca-category-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.tca-category-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--brand-black);
}

.tca-category-blurb {
  font-size: 1.125rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   Article Cards
   ======================================== */

.tca-article-card {
  background: var(--brand-white);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tca-article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.tca-article-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.tca-article-card:hover .tca-article-image img {
  transform: scale(1.02);
}

.tca-article-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--brand-gold);
  color: var(--brand-black);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.tca-article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tca-article-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.tca-article-title a {
  color: var(--brand-black);
}

.tca-article-title a:hover {
  color: var(--brand-gold);
}

.tca-article-excerpt {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tca-article-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gray);
  font-size: 0.75rem;
  color: var(--text-gray);
}

.tca-article-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tca-article-separator {
  opacity: 0.5;
}

.tca-article-reading-time {
  font-weight: 500;
}

/* Image captions */
.tca-image-caption {
  font-style: italic;
  color: #666;
  font-size: 0.9em;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ========================================
   Section Headers - V6.0 Enhanced
   ======================================== */

.tca-section {
  margin-bottom: 3rem;
}

.tca-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--brand-gold);
}

.tca-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-black);
  margin: 0;
  position: relative;
}

.tca-section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--brand-gold);
}

.tca-section-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--brand-gold);
  padding: 0.5rem 1rem;
  border: 1px solid var(--brand-gold);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tca-section-link:hover {
  background: var(--brand-gold);
  color: var(--brand-black);
}

/* Newsletter Section */
.tca-newsletter {
  background: linear-gradient(135deg, var(--bg-gray) 0%, #F3F4F6 100%);
  padding: 4rem 0;
  margin: 3rem 0;
}

.tca-newsletter-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.tca-newsletter-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand-black) 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tca-newsletter-description {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.tca-newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .tca-newsletter-form {
    flex-direction: column;
  }
}

.tca-newsletter-input {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--brand-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tca-newsletter-button {
  background: var(--brand-gold);
  color: var(--brand-black);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tca-newsletter-button:hover {
  background: #D4A74E;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ========================================
   Footer
   ======================================== */

.tca-footer {
  background: var(--brand-black);
  color: var(--brand-white);
  padding: 3rem 0 1rem;
}

.tca-footer-content {
  margin-bottom: 2rem;
}

.tca-footer-section {
  margin-bottom: 2rem;
}

.tca-footer-section-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-white);
  margin-bottom: 1rem;
}

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

.tca-footer-links li {
  margin-bottom: 0.5rem;
}

.tca-footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.tca-footer-links a:hover {
  color: var(--brand-gold);
}

.tca-footer-contact {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.6;
}

.tca-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Cookie Banner
   ======================================== */

.tca-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-black);
  color: var(--brand-white);
  padding: 1rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.tca-cookie-content {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.tca-cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.tca-cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.tca-cookie-accept {
  background: var(--brand-gold);
  color: var(--brand-black);
  border: none;
}

.tca-cookie-accept:hover {
  background: #D4A74E;
}

.tca-cookie-learn {
  background: transparent;
  color: var(--brand-white);
  border: 1px solid rgba(255,255,255,0.3);
}

.tca-cookie-learn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--brand-white);
}

@media (max-width: 768px) {
  .tca-cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .tca-cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (min-width: 640px) {
  .tca-footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .tca-footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tca-hero-nav {
    flex-direction: row;
  }
  
  .tca-article-meta {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .tca-footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tca-main-layout {
    grid-template-columns: 3fr 1fr;
  }
}

/* ========================================
   Utility Classes
   ======================================== */

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

.tca-text-center { text-align: center; }
.tca-text-left { text-align: left; }
.tca-text-right { text-align: right; }

.tca-mb-0 { margin-bottom: 0; }
.tca-mb-1 { margin-bottom: 0.5rem; }
.tca-mb-2 { margin-bottom: 1rem; }
.tca-mb-3 { margin-bottom: 1.5rem; }
.tca-mb-4 { margin-bottom: 2rem; }

.tca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.tca-btn-primary {
  background: var(--brand-gold);
  color: var(--brand-black);
}

.tca-btn-primary:hover {
  background: #D4A74E;
}

.tca-btn-secondary {
  background: transparent;
  color: var(--brand-black);
  border: 1px solid var(--border-gray);
}

.tca-btn-secondary:hover {
  background: var(--bg-gray);
}

/* ========================================
   Performance & Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .tca-breaking-items {
    animation: none;
  }
  
  .tca-hero-slide {
    transition: none !important;
  }
}

/* Print styles */
@media print {
  .tca-header,
  .tca-breaking-news,
  .tca-sidebar,
  .tca-newsletter,
  .tca-footer,
  .tca-cookie-banner {
    display: none;
  }
  
  .tca-hero-overlay,
  .tca-article-card {
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Loading animation */
.tca-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-gray);
  border-radius: 50%;
  border-top-color: var(--brand-gold);
  animation: spin 1s ease-in-out infinite;
}

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

/* Focus styles for accessibility */
.tca-hero-btn:focus,
.tca-hero-dot:focus,
.tca-mobile-menu-button:focus,
.search-toggle:focus {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.tca-hero-btn,
#heroPlayPause,
.tca-newsletter-button,
.tca-hero-dot {
  transition: all 0.2s ease;
}/* ========================================
   Brevo Form Overrides (make it match theme)
   ======================================== */
.sib_signup_form input[type="email"],
.sib_signup_form input[type="text"] {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--brand-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-family: var(--font-body);
}

.sib_signup_form input[type="submit"] {
  background: var(--brand-gold);
  color: var(--brand-black);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sib_signup_form input[type="submit"]:hover {
  background: #D4A74E;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Center the Brevo form like the old one */
.sib_signup_form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .sib_signup_form {
    flex-direction: column;
  }
}/* Newsletter form wrapper */
.tca-newsletter-form form {
    max-width: 500px;
    margin: 1.5rem auto;
    text-align: center;
}

/* Input fields */
.tca-newsletter-form input[type="text"],
.tca-newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

/* Checkbox + label */
.tca-newsletter-form input[type="checkbox"] {
    margin-right: 0.5rem;
}
.tca-newsletter-form label {
    font-size: 0.9rem;
    color: #555;
}

/* Submit button */
.tca-newsletter-form input[type="submit"],
.tca-newsletter-form button {
    background: var(--brand-gold);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: black;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.tca-newsletter-form input[type="submit"]:hover,
.tca-newsletter-form button:hover {
    background: #d4a74e;
    transform: translateY(-2px);
}

/* Error and success messages */
.tca-newsletter-form .sib-alert-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.tca-newsletter-form .sib-alert-message-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.tca-newsletter-form .sib-alert-message-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}