/* ============================================
   CIRCUIT TENNIS NIMES — Sport Dynamic Theme
   Premium design: sportif, dynamique, energique
   ============================================ */

:root {
  --green: #2E8B57;
  --green-dark: #1E6B3F;
  --green-light: #3AAF6E;
  --yellow: #CCFF00;
  --yellow-dim: #B8E600;
  --anthracite: #333;
  --anthracite-dark: #1a1a1a;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #e0e0e0;
  --gray-text: #666;
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--green-dark); }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--anthracite-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SCORE BAR — animated decorative top ===== */
.score-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--yellow) 50%, var(--green) 100%);
  background-size: 200% 100%;
  animation: scoreSlide 4s ease-in-out infinite;
}

@keyframes scoreSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--anthracite-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.15);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--anthracite);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav a:hover { color: var(--green); }
.main-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--anthracite);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--anthracite-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}

/* Tennis court lines pattern */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg, transparent, transparent 48px,
      rgba(255,255,255,0.05) 48px, rgba(255,255,255,0.05) 50px
    ),
    repeating-linear-gradient(
      90deg, transparent, transparent 48px,
      rgba(255,255,255,0.05) 48px, rgba(255,255,255,0.05) 50px
    );
}

/* Net line */
.hero-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 30px rgba(255,255,255,0.05);
}

.hero-diagonal {
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: rgba(204, 255, 0, 0.08);
  clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
}

.hero-ball {
  position: absolute;
  right: 8%;
  bottom: 15%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--yellow), #9ABF00);
  box-shadow: inset -8px -8px 20px rgba(0,0,0,0.15), 0 8px 32px rgba(204,255,0,0.2);
  animation: ballBounce 3s ease-in-out infinite;
}

.hero-ball::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  right: 10%;
  height: 60%;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: rotate(-30deg);
}

@keyframes ballBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--anthracite-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero h1 span { color: var(--yellow); }

.hero-text {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--anthracite-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--yellow-dim);
  color: var(--anthracite-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204,255,0,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--anthracite-dark);
  border-color: var(--white);
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 80px 0;
  background: var(--gray-light);
}

.stats-header {
  text-align: center;
  margin-bottom: 48px;
}

.stats-header h2 {
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stats-header h2 span { color: var(--green); }

.stats-subtitle {
  color: var(--gray-text);
  margin-top: 12px;
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-box {
  background: var(--green);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.stat-box:hover {
  background: var(--green-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-box:hover::before { transform: scaleX(1); }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--anthracite-dark) 0%, var(--anthracite) 100%);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  left: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 110%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.3;
}

.cta-band::after {
  content: '';
  position: absolute;
  right: 5%;
  top: -30%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(204,255,0,0.1);
  border-radius: 50%;
}

.cta-band h2 {
  color: var(--white);
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  position: relative;
}

.cta-band p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  position: relative;
}

/* ===== ARTICLES SECTION ===== */
.articles-section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-header h2 {
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--yellow);
}

.view-all {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 8px 20px;
  transition: all var(--transition);
}

.view-all:hover {
  background: var(--green);
  color: var(--white);
}

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

/* ===== ARTICLE CARD — Sport Design ===== */
.article-card {
  background: var(--white);
  border-top: 4px solid var(--green);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--yellow);
}

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

.article-card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--gray-mid), var(--gray-light));
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,139,87,0.9), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.card-overlay span {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--yellow);
  color: var(--anthracite-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  z-index: 2;
}

.card-body {
  padding: 24px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray-text);
  margin-bottom: 12px;
  font-weight: 500;
}

.card-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-mid);
}

.card-body h3 {
  margin-bottom: 12px;
  transition: color var(--transition);
}

.card-body h3 a { color: var(--anthracite-dark); }
.card-body h3 a:hover { color: var(--green); }

.card-excerpt {
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  transition: gap var(--transition);
}

.card-link:hover { gap: 12px; }
.card-link::after { content: '\2192'; font-size: 1.1rem; }

/* ===== SINGLE ARTICLE ===== */
.article-single {
  padding: 60px 0 80px;
}

.article-hero-banner {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  margin-bottom: 48px;
  background: linear-gradient(135deg, var(--gray-mid), var(--gray-light));
}

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

.article-hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 2px solid var(--gray-mid);
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--gray-text);
}

.article-meta-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
}

.article-content h1 {
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 4px solid var(--yellow);
}

.article-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--green);
}

.article-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--green);
}

.article-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.article-content ul, .article-content ol {
  margin: 20px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  border-left: 4px solid var(--yellow);
  background: var(--gray-light);
  padding: 24px 28px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.1rem;
}

.article-content img {
  margin: 32px 0;
  box-shadow: var(--shadow);
}

.article-content a {
  color: var(--green);
  border-bottom: 1px solid var(--yellow);
  transition: border-color var(--transition);
}

.article-content a:hover {
  border-bottom-color: var(--green);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 2px solid var(--gray-mid);
}

.article-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Horizontal scroll on mobile */
.articles-scroll {
  display: none;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: thin;
}

.articles-scroll::-webkit-scrollbar { height: 6px; }
.articles-scroll::-webkit-scrollbar-track { background: var(--gray-light); }
.articles-scroll::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

.articles-scroll .article-card {
  min-width: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

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

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--gray-mid);
  transition: all var(--transition);
}

.pagination a:hover { border-color: var(--green); color: var(--green); }

.pagination .active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--anthracite-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

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

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-brand span { color: var(--yellow); }

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--yellow);
  color: var(--anthracite-dark);
}

.footer-col h4 {
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ball { width: 80px; height: 80px; right: 5%; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-mid);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .main-nav.active { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding: 16px;
  }

  .main-nav a::after { display: none; }

  .hero { min-height: 400px; }
  .hero-content { padding: 48px 0; }
  .hero-diagonal, .hero-ball { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .articles-grid { display: none; }
  .articles-scroll { display: flex; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-hero-banner { aspect-ratio: 16/9; }
  .article-meta-bar { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .stat-number { font-size: 2.2rem; }
  .articles-scroll .article-card { min-width: 260px; }
}

@media print {
  .site-header, .site-footer, .cta-band, .score-bar { display: none; }
  .article-content { max-width: 100%; }
}

/* ================================================================
   UPGRADED SINGLE ARTICLE — SEO Features
   ================================================================ */

.circui-article {
  padding: 48px 0 80px;
}

.circui-article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.circui-breadcrumb {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.circui-breadcrumb a {
  font-weight: 600;
  transition: color 0.2s ease;
}

.circui-breadcrumb a:hover {
  opacity: 0.8;
}

.circui-breadcrumb span {
  color: #ccc;
}

.circui-article-header {
  margin-bottom: 32px;
}

.circui-article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.circui-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #888;
  flex-wrap: wrap;
}

.circui-meta-sep {
  color: #ccc;
}

.circui-reading-time {
  font-weight: 500;
}

.circui-article-cover {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.circui-article-cover img {
  width: 100%;
  height: auto;
}

.circui-article-body {
  font-size: 1.05rem;
  line-height: 1.85;
}

.circui-article-body h2 {
  margin: 48px 0 16px;
}

.circui-article-body h3 {
  margin: 36px 0 12px;
}

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

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

.circui-article-body li {
  margin-bottom: 8px;
}

.circui-article-body blockquote {
  border-left: 4px solid currentColor;
  padding: 20px 28px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.circui-article-body img {
  border-radius: 8px;
  margin: 28px 0;
}

.circui-related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.circui-related h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.circui-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.circui-related-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circui-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.circui-related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.circui-related-card:hover img {
  transform: scale(1.05);
}

.circui-related-card h4 {
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.circui-related-card a {
  display: block;
  color: inherit;
}

@media (max-width: 768px) {
  .circui-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .circui-article-header h1 {
    font-size: 1.8rem;
  }
}
