/*
 * front-page.css — BrandName Golf Theme
 * ─────────────────────────────────────────────────────────
 * Homepage-only styles (loaded via functions.php when is_front_page()):
 *   - Featured hero section
 *   - 3-column article grid section
 *   - Complex 3-column section (news list + ed-panels + rankings)
 *   - News grid + featured column section
 *   - Magazine issues carousel section
 *   - Advertise + contact section
 *   - All responsive breakpoints for these sections
 * ─────────────────────────────────────────────────────────
 */

/* ════════════════════════════════════════
   FEATURED ARTICLE HERO
════════════════════════════════════════ */
.featured-article {
  position: relative;
  width: 100%; max-width: var(--max-width);
  margin: 0 auto;
  height: 80vh; min-height: 520px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}

.featured-article__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1);
  transition: transform 8s ease;
}

.featured-article:hover .featured-article__bg { transform: scale(1.04); }

.featured-article__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.featured-article__content {
  position: relative; z-index: 2;
  width: 100%; padding: 0 80px 72px;
  max-width: 860px;
}

.featured-article__cats {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}

.featured-article__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600; color: #ffffff;
  line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.featured-article__desc {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 400; color: rgba(255, 255, 255, 0.78);
  line-height: 1.7; margin-bottom: 32px; max-width: 600px;
}

@media (max-width: 768px) {
  .featured-article { height: 70vh; }
  .featured-article__content { padding: 0 28px 48px; }
}

@media (max-width: 480px) {
  .featured-article { height: 65vh; min-height: 440px; }
  .featured-article__content { padding: 0 20px 36px; }
}

/* ════════════════════════════════════════
   3-COLUMN ARTICLE GRID SECTION
════════════════════════════════════════ */
.articles-grid-section {
  width: 100%; max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 48px 80px;
}

.articles-grid-section__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}

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

@media (max-width: 900px) {
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid .article-card:nth-child(3) { display: none; }
}

@media (max-width: 580px) {
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid .article-card:nth-child(3) { display: flex; }
  .articles-grid-section { padding: 40px 20px 56px; }
}

/* ════════════════════════════════════════
   COMPLEX 3-COLUMN SECTION
════════════════════════════════════════ */
.complex-section {
  width: 100%; max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px 80px;
}

.complex-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 28px; align-items: start;
}

.middle-col { display: flex; flex-direction: column; gap: 20px; }

.sub-cards-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

@media (max-width: 1100px) {
  .complex-grid { grid-template-columns: 1fr 1.4fr; }
  .complex-grid > *:last-child { display: none; }
}

@media (max-width: 720px) {
  .complex-grid { grid-template-columns: 1fr; }
  .complex-grid > *:last-child { display: block; }
  .complex-section { padding: 0 20px 56px; }
  .sub-cards-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   NEWS GRID + FEATURED ARTICLE SECTION
════════════════════════════════════════ */
.news-featured-section {
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 0 48px 80px;
}

.news-featured-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 32px; align-items: start;
}

/* News grid (3-col) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ng-card {
  display: flex; flex-direction: column; gap: 0;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  transition: opacity 0.2s;
}

.ng-card:hover { opacity: 0.82; }

.ng-card__img-wrap {
  width: 100%; aspect-ratio: 16 / 10;
  overflow: hidden; border-radius: 6px;
  margin-bottom: 14px; flex-shrink: 0;
}

.ng-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}

.ng-card:hover .ng-card__img { transform: scale(1.05); }

.ng-card__meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}

.ng-card__cat {
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent);
}

.ng-card__dot { width: 2px; height: 2px; border-radius: 50%; background: #d1d5db; }

.ng-card__date { font-size: 0.6875rem; color: #9ca3af; font-weight: 400; }

.ng-card__title {
  font-size: 0.9375rem; font-weight: 600;
  color: #000; line-height: 1.4; margin-bottom: 10px;
}

.ng-card__author {
  margin-top: auto;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #9ca3af;
}

/* Featured sticky column */
.featured-col__card {
  display: flex; flex-direction: column; gap: 0;
  text-decoration: none; position: sticky;
  top: calc(var(--header-height) + 20px);
}

.featured-col__img-wrap {
  width: 100%; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: 8px;
  margin-bottom: 20px; position: relative;
}

.featured-col__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-col__card:hover .featured-col__img { transform: scale(1.04); }

.featured-col__cat-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--color-accent); color: #fff;
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
}

.featured-col__tag {
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 10px; display: block;
}

.featured-col__title {
  font-size: 1.125rem; font-weight: 700;
  color: #000; line-height: 1.35; margin-bottom: 12px;
  transition: color 0.2s;
}

.featured-col__card:hover .featured-col__title { color: var(--color-accent); }

.featured-col__desc {
  font-size: 0.875rem; font-weight: 400;
  color: #6b7280; line-height: 1.65; margin-bottom: 18px;
}

.featured-col__meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--color-border);
}

.featured-col__author {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #9ca3af;
}

.featured-col__readmore {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #000; text-decoration: none;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}

.featured-col__readmore svg {
  width: 12px; height: 12px; stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}

.featured-col__readmore:hover           { color: var(--color-accent); }
.featured-col__readmore:hover svg       { transform: translateX(3px); }

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .news-featured-grid { grid-template-columns: 1fr; }
  .featured-col__card { position: static; }
  .featured-col__img-wrap { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .news-featured-section { padding: 0 20px 56px; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   MAGAZINE ISSUES CAROUSEL
════════════════════════════════════════ */
.issues-section {
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 0 48px 80px;
}

.issues-section__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; border-bottom: 2px solid #000; padding-bottom: 14px;
}

.issues-section__title {
  font-size: 1.375rem; font-weight: 700;
  color: #000; letter-spacing: -0.02em;
}

.issues-section__controls { display: flex; align-items: center; gap: 8px; }

.carousel-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid #000; background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s; flex-shrink: 0;
}

.carousel-btn:hover { background: #000; color: #fff; }

.carousel-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.carousel-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }

.carousel-viewport { overflow: hidden; position: relative; }

.carousel-viewport::after {
  content: ''; position: absolute;
  top: 0; right: 0; height: 100%; width: 80px;
  background: linear-gradient(to right, transparent, #fff);
  pointer-events: none; z-index: 2;
}

.carousel-track {
  display: flex; gap: 20px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.issue-card {
  flex-shrink: 0; width: 200px;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; cursor: pointer;
}

.issue-card__cover-wrap {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  border-radius: 6px; overflow: hidden;
  box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.3s, transform 0.3s;
}

.issue-card:hover .issue-card__cover-wrap {
  box-shadow: 8px 14px 32px rgba(0, 0, 0, 0.26);
  transform: translateY(-4px);
}

.issue-card__cover {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}

.issue-card:hover .issue-card__cover { transform: scale(1.04); }

.issue-card__badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}

.issue-card__info { padding: 0 2px; }

.issue-card__month { font-size: 0.875rem; font-weight: 700; color: #000; margin-bottom: 4px; }

.issue-card__headline {
  font-size: 0.75rem; font-weight: 400; color: #6b7280;
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.issue-card__read-btn {
  display: inline-block; margin-top: 6px;
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent); text-decoration: none;
  border-bottom: 1px solid var(--color-accent); padding-bottom: 1px;
  transition: opacity 0.2s;
}

.issue-card__read-btn:hover { opacity: 0.6; }

.carousel-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 28px;
}

.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d1d5db; border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, width 0.2s;
}

.carousel-dot.active { background: #000; width: 20px; border-radius: 3px; }

@media (max-width: 768px) {
  .issues-section { padding: 0 20px 56px; }
  .issue-card { width: 160px; }
  .carousel-viewport::after { width: 40px; }
}

/* ════════════════════════════════════════
   ADVERTISE + CONTACT SECTION
════════════════════════════════════════ */
.advertise-section {
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 0 48px 80px;
}

.advertise-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}

.adv-heading {
  font-size: 1.5rem; font-weight: 700; color: #000;
  letter-spacing: -0.02em; margin-bottom: 6px;
}

.adv-subheading {
  font-size: 0.9375rem; font-weight: 400;
  color: #6b7280; line-height: 1.6; margin-bottom: 32px;
}

.adv-cards { display: flex; flex-direction: column; gap: 16px; }

.adv-card {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 24px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px; text-decoration: none;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}

.adv-card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--adv-color, #000);
  border-radius: 4px 0 0 4px;
}

.adv-card:hover {
  border-color: var(--adv-color, #000);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.adv-card--print   { --adv-color: #1d4ed8; }
.adv-card--digital { --adv-color: #059669; }
.adv-card--events  { --adv-color: #d97706; }

.adv-card__icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.adv-card--print   .adv-card__icon { background: #eff6ff; }
.adv-card--digital .adv-card__icon { background: #ecfdf5; }
.adv-card--events  .adv-card__icon { background: #fffbeb; }

.adv-card__icon svg {
  width: 22px; height: 22px;
  stroke: var(--adv-color, #000); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.adv-card__body { flex: 1; min-width: 0; }

.adv-card__title { font-size: 1rem; font-weight: 700; color: #000; margin-bottom: 4px; }

.adv-card__desc { font-size: 0.8125rem; font-weight: 400; color: #6b7280; line-height: 1.5; }

.adv-card__arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.adv-card:hover .adv-card__arrow {
  background: var(--adv-color, #000);
  border-color: var(--adv-color, #000);
}

.adv-card__arrow svg {
  width: 13px; height: 13px;
  stroke: #9ca3af; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.2s, transform 0.2s;
}

.adv-card:hover .adv-card__arrow svg { stroke: #fff; transform: translateX(2px); }

@media (max-width: 860px) { .advertise-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 560px) {
  .advertise-section { padding: 0 20px 56px; }
  .form-row { grid-template-columns: 1fr; }
}
