/* ── Page layout ──────────────────────────── */
.page-wrap {
  max-width: 1120px; margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}

/* ── Hero card ────────────────────────────── */
.hero-card {
  position: relative; height: 390px; overflow: hidden;
  border-radius: 10px; display: block; margin-bottom: 14px;
  box-shadow: 0px 0px 10px 0px #000000;
}
.hero-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hero-card:hover > img { transform: scale(1.03); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
}
.hero-cat {
  position: absolute; top: 12px; left: 12px;
  background: #003087; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px;
}
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; text-align: center; }
.hero-title { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.25; margin-bottom: 6px; }
.hero-author { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Two sub-cards ────────────────────────── */
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.sub-card {
  position: relative; height: 190px; border-radius: 4px;
  overflow: hidden; display: block; transition: box-shadow 0.15s;
  border-radius: 10px 10px 10px 10px;
   box-shadow: 0px 0px 5px 0px #000000;
}
.sub-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.sub-card:hover > img { transform: scale(1.04); }
.sub-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
}
.sub-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 12px; text-align: center; }
.sub-card-title { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.sub-card-meta { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }

/* _______ Tags After Header _____ */

.clubs-rail{
		scrollbar-width: none;
		-ms-overflow-style: none;
		max-width: 1120px;
		margin: 0 auto;
		padding: .25rem 1rem;
		display: flex;
		gap: .6rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
	}
	.clubs-rail::-webkit-scrollbar { display: none; }

	.club-pill {
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: #fff;
    color: #111;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    font: 500 13px / 1.1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    white-space: nowrap;
    transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
    flex-shrink: 0;
}

.club-logo {
  width: 20px; height: 20px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}

/* ── Article list rows ────────────────────── */
.article-list { overflow: hidden; }
.article-row {
  display: flex; grid-template-columns: 130px 1fr;
  gap: 12px; padding: 12px; align-items: stretch;
  border-bottom: 1px solid #f0f0f0; transition: background 0.12s;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover { background: #fafafa; }
.article-thumb { width: 250px; min-height: 100px; overflow: hidden; border-radius: 15px; flex-shrink: 0; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-info { display: flex; flex-direction: column; justify-content: flex-start; padding:10px; }
.article-time-auth { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #3ab52b; margin-bottom: 5px; }
.article-title { font-size: 18px; font-weight: 700; color: #1a1a1a; line-height: 1.35; margin-bottom: 5px; }
.article-row:hover .article-title { color: #4fe10f; }
.article-excerpt {
  font-size: 12px; color: #666; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.load-more {
  display: block; width: 100%; margin-top: 14px; padding: 12px; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  border: 1px solid #d0d0d0; border-radius: 3px; color: #666; background: #fff;
  cursor: pointer; transition: 0.15s;
}
.load-more:hover { border-color: #003087; color: #003087; }

/* ── Flash Info ───────────────────────────── */
.flash-block { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.flash-head {
  background: #4fe10f; color: white; font-size: 15px; font-weight: 700;
  padding: 13px 14px; display: flex; align-items: center; gap: 8px;
}
.flash-item { display: block; padding: 11px 14px; border-bottom: 1px solid #f0f0f0; text-decoration: none; transition: background 0.12s; }
.flash-item:hover { background: #f9f9f9; }
.flash-meta { font-size: 11.5px; color: #999; font-weight: 600; margin-bottom: 4px; }
.flash-cat { color: #f35959; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.flash-title { font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.35; }
.flash-item:hover .flash-title { color: #4fe10f; }
.flash-footer {
	background:#4fe10f;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 14px; font-size: 13px; font-weight: 600;
  color: white; text-decoration: none; transition: background 0.12s;
}
.flash-footer:hover { background: #45c20e; color: white; }

/* ── Sidebar ──────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.popular-block { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; }
.popular-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 14px; background: #003087; color: #fff; }
.popular-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #f0f0f0; align-items: start; transition: background 0.12s; text-decoration: none; }
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: #f7f7f7; }
.popular-num { font-size: 17px; font-weight: 900; color: #003087; min-width: 20px; line-height: 1.1; flex-shrink: 0; }
.popular-text { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.35; }
.popular-item:hover .popular-text { color: #003087; }
.popular-more { display: block; text-align: center; padding: 9px 14px; font-size: 12px; font-weight: 700; color: #003087; border-top: 1px solid #e0e0e0; background: #f9f9f9; transition: background 0.12s; text-decoration: none; }
.popular-more:hover { background: #f0f0f0; }

.ad-block { background: #ffc107; border-radius: 4px; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; gap: 10px; }
.ad-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0,0,0,0.45); }
.ad-name { font-size: 26px; font-weight: 900; color: #1a1a1a; letter-spacing: -0.02em; }
.ad-text { font-size: 13px; font-weight: 700; color: #333; line-height: 1.4; }
.ad-cta { margin-top: 6px; background: #1a1a1a; color: #ffc107; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 9px 22px; border-radius: 3px; display: inline-block; transition: background 0.15s; }
.ad-cta:hover { background: #333; }

/* ── Footer ───────────────────────────────── */
.site-footer { background: #0f0f1a; color: rgba(255,255,255,0.7); margin-top: 32px; }
.footer-main { max-width: 1160px; margin: 0 auto; padding: 36px 16px 28px; }
.footer-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-logo { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.footer-logo-icon { font-size: 22px; }
.footer-logo-name { font-size: 18px; font-weight: 900; color: #fff; }
.footer-socials { display: flex; gap: 8px; }
.footer-social { width: 32px; height: 32px; border-radius: 4px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.55); transition: 0.15s; text-decoration: none; }
.footer-social:hover { background: rgba(255,255,255,0.15); color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-col ul { display: flex; flex-direction: column; gap: 7px; list-style: none; }
.footer-col a { font-size: 12px; color: rgba(255,255,255,0.6); transition: color 0.15s; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 14px 16px; font-size: 11px; color: rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.15s; text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* ── Responsive ───────────────────────────── */
@media (max-width: 960px) {
  .page-wrap { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .hero-card { height: 260px; }
  .hero-title { font-size: 17px; }
  .sub-grid { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 85px 1fr; }
  .article-thumb { width: 85px; min-height: 65px; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ══ DARK MODE ════════════════════════════ */
[data-theme="dark"] .article-list {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}
[data-theme="dark"] .article-row {
  border-bottom-color: var(--border);
}
[data-theme="dark"] .article-row:hover {
  background: var(--surface2);
}
[data-theme="dark"] .article-title {
  color: var(--text);
} 
[data-theme="dark"] .article-row:hover .article-title {
  color: #4fe10f;
}
[data-theme="dark"] .article-excerpt {
  color: var(--text2);
}
[data-theme="dark"] .article-time-auth {
  color: var(--text3);
}

[data-theme="dark"] .load-more {
  background: #1e1e24;
  border-color: rgba(255,255,255,0.1);
  color: #9a9aaa;
}
[data-theme="dark"] .load-more:hover {
  border-color: #4fe10f;
  color: #4fe10f;
}

[data-theme="dark"] .flash-block {
  background: #1e1e24;
  border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .flash-item {
  border-bottom-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .flash-item:hover {
  background: #26262e;
}
[data-theme="dark"] .flash-title {
  color: #f0f0f2;
}
[data-theme="dark"] .flash-item:hover .flash-title {
  color: #4fe10f;
}
[data-theme="dark"] .flash-meta {
  color: #5a5a6a;
}

[data-theme="dark"] .popular-block {
  background: #1e1e24;
  border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .popular-item {
  border-bottom-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .popular-item:hover {
  background: #26262e;
}
[data-theme="dark"] .popular-text {
  color: #f0f0f2;
}
[data-theme="dark"] .popular-item:hover .popular-text {
  color: #4fe10f;
}
[data-theme="dark"] .popular-more {
  background: #141417;
  border-top-color: rgba(255,255,255,0.07);
  color: #9a9aaa;
}
[data-theme="dark"] .popular-more:hover {
  background: #1c1c21;
  color: #f0f0f2;
}

[data-theme="dark"] .club-pill {
  background: #1e1e24;
  color: #e0e0e2;
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .club-pill:hover {
  background: #26262e;
  border-color: rgba(255,255,255,0.2);
}

/* popular-num: dark navy #003087 is invisible in dark mode */
[data-theme="dark"] .popular-num {
  color: #4fe10f;
}

/* site-footer: home.css forces #0f0f1a always — restore theme-aware
   background in light mode so the footer isn't permanently dark */
[data-theme="light"] .site-footer {
  background: var(--bg2);
  color: var(--text2);
  border-top: 1px solid var(--border);
}
