/*
 * Theme Name:  Swyft Child
 * Theme URI:   https://swyft.codesupply.co/
 * Description: Swyft Child Theme
 * Author:      Code Supply Co.
 * Author URI:  https://codesupply.co/
 * Template:    swyft
 * Version:     1.0.0
 */

/* -------------------------------------------------------------------
   I. BASE STYLES & HEADER
   ------------------------------------------------------------------- */
   .team-breadcrumb {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.6;
}

.team-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

/* Tabs Navigation */
.team-tabs-nav {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #333; /* Darker border */
    margin-bottom: 40px;
    padding-left: 0;
    list-style: none;
}

.team-tabs-nav li {
    padding: 10px 0;
}

.team-tabs-nav li a {
    color: #e0e0e0;
}

.team-tabs-nav li.active a {
    border-bottom: 2px solid #ffffff; /* Active tab underline */
    font-weight: 600;
    color: #ffffff;
}

/* Content Wrapper defines the max width for the page content */
.team-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------------------------------------------------
   II. BIG FEATURED ARTICLE (Full Width)
   ------------------------------------------------------------------- */
.featured-article {
    margin-bottom: 40px;
}

.featured-article-image {
    margin-bottom: 30px;
    overflow: hidden;
}

.featured-article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.team-article-meta-top {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #a0a0a0;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.large-title {
    font-size: 52px;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 20px;
}

.large-title a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.team-article-byline {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 25px;
}

.team-article-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #c0c0c0;
}

.read-more-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #c0c0c0;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}


/* -------------------------------------------------------------------
   III. TWO-COLUMN GRID (Below Featured)
   ------------------------------------------------------------------- */
.team-layout-grid {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.team-main-articles {
    flex: 2; /* Left column takes 2/3 of the space */
    min-width: 0;
}

.team-right-sidebar {
    flex: 1; /* Right column takes 1/3 of the space */
    min-width: 300px;
}

/* -------------------------------------------------------------------
   IV. SMALLER LIST ARTICLES (Left Column)
   ------------------------------------------------------------------- */
.list-article {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #333;
}

.list-article:last-of-type {
    border-bottom: none;
}

.list-article-thumb {
    flex-shrink: 0;
    width: 240px; /* Matches new image size */
    height: 160px; /* Matches new image size */
    overflow: hidden;
}

.list-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.list-article-content {
    flex-grow: 1;
}

.list-article-title {
    font-size: 20px; /* Adjusted size for tighter look */
    line-height: 1.2;
    margin: 0 0 5px 0;
    text-transform: uppercase; /* Match all-caps style from homepage */
}

.list-article-title a {
    color: #ffffff;
    text-decoration: none;
}

.list-article-excerpt {
    font-size: 14px; /* Adjusted for smaller size */
    color: #a0a0a0;
    line-height: 1.4;
    margin-top: 5px;
}

/* -------------------------------------------------------------------
   V. RIGHT SIDEBAR STYLES (Related Posts & Ads)
   ------------------------------------------------------------------- */
.team-right-sidebar section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.team-right-sidebar h3 {
    font-size: 16px; /* Adjusted to match typical sidebar heading size */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sidebar-related-posts .related-post-item {
    margin-bottom: 15px;
}

.sidebar-related-posts h4 {
    font-size: 16px;
    margin: 0;
}

.sidebar-related-posts h4 a {
    color: #c0c0c0;
    text-decoration: none;
}

.ads-placeholder {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 50px 10px;
    height: 250px;
    border: 1px dashed #555;
    font-size: 14px;
}

/* -------------------------------------------------------------------
   VI. RESPONSIVE ADJUSTMENTS
   ------------------------------------------------------------------- */
@media (max-width: 900px) {
    .team-layout-grid {
        flex-direction: column; 
    }
    .team-main-articles,
    .team-right-sidebar {
        flex: auto;
        min-width: unset;
        width: 100%;
    }
    .large-title {
        font-size: 40px;
    }
    .list-article-thumb {
        width: 180px;
        height: 120px;
    }
}
@media (max-width: 600px) {
    .large-title {
        font-size: 32px;
    }
    .list-article-thumb {
        width: 100px;
        height: 60px;
    }
    .list-article-title {
        font-size: 18px;
    }
}
/* ========== TEAM PAGE LAYOUT ========== */

.team-page {
  padding-top: 20px;
  padding-bottom: 40px;
}

.team-page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.team-header {
  margin-bottom: 20px;
}

.team-tagline {
  margin-top: 5px;
  opacity: 0.85;
  font-size: 15px;
}

/* Tabs */
.team-tabs {
  margin-bottom: 20px;
}

.team-tabs-nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.team-tabs-nav li {
  padding: 10px 0;
}

.team-tabs-nav a {
  display: inline-block;
  padding-bottom: 8px;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.8;
}

.team-tabs-nav li.active a,
.team-tabs-nav a:hover {
  border-bottom: 2px solid currentColor;
  opacity: 1;
}

/* Tab panels */
.team-tab-panel {
  display: none;
  padding-top: 20px;
}

.team-tab-panel.is-active {
  display: block;
}

/* Main layout */
.team-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.team-main {
  flex: 2;
  min-width: 0;
}

.team-sidebar {
  flex: 1;
}

/* ========== NEWS CARDS ========== */

.team-article {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  margin-bottom: 24px;
}

.team-article__image-link {
  display: block;
  overflow: hidden;
}

.team-article__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.team-article__image-link:hover .team-article__image {
  transform: scale(1.03);
}

/* Main featured image ~660x371 */
.team-article__image-link--main {
  aspect-ratio: 660 / 371;
}

/* Secondary featured images ~316x177 */
.team-article__image-link--secondary {
  aspect-ratio: 316 / 177;
}

/* Small thumbnails in list */
.team-article__image--thumb {
  max-width: 180px;
  aspect-ratio: 16 / 9;
}

/* Content */
.team-article__content {
  padding: 16px 18px 18px;
}

.team-article__meta {
  font-size: 13px;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.team-article__dot {
  opacity: 0.7;
}

.team-article__title {
  margin: 0 0 6px;
  line-height: 1.25;
}

.team-article__title a {
  text-decoration: none;
}

.team-article__title--main {
  font-size: 22px;
}

.team-article__title--secondary {
  font-size: 18px;
}

.team-article__title--list {
  font-size: 16px;
}

.team-article__excerpt {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.team-article__tags {
  margin-top: 5px;
}

.team-article__tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

/* Featured layout: main + 2 secondary */
.team-article--featured-main {
  margin-bottom: 24px;
}

.team-featured-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

/* Additional news list */
.team-news-list .team-article-item {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 18px;
  margin-bottom: 18px;
  background: transparent;
  box-shadow: none;
}

.team-news-list .team-article-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.team-article__thumb-link {
  flex-shrink: 0;
}

/* Section titles (H2/H3) */
.team-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 16px;
}

/* ========== SIDEBAR CARDS ========== */

.team-sidebar-card {
  border-radius: 14px;
  padding: 16px 18px 14px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.team-sidebar-card__title {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 10px;
}

.team-sidebar-card__body {
  font-size: 14px;
}

/* Sidebar “match list” basic styling – to be used inside hooks output */
.team-match-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-match-list__item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.team-match-list__item:last-child {
  border-bottom: none;
}

.team-match-list__date {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.team-match-list__teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.team-match-list__cta {
  margin-top: 4px;
}

.team-match-list__button {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

@media (max-width: 960px) {
  .team-layout {
      flex-direction: column;
  }

  .team-sidebar {
      width: 100%;
  }
}

@media (max-width: 768px) {
  .team-featured-secondary-grid {
      grid-template-columns: 1fr;
  }

  .team-news-list .team-article-item {
      flex-direction: column;
  }

  .team-article__image--thumb {
      max-width: 100%;
  }

  .team-tabs-nav {
      overflow-x: auto;
      white-space: nowrap;
  }
}
/* Force headings & meta on team page to follow theme text colour */
.team-page h1,
.team-page h2,
.team-page h3,
.team-page h4,
.team-page p,
.team-page .team-article__meta {
    color: inherit !important;
}
/* -------- TEAM HEADER COLOR FIX -------- */

.team-header,
.team-header * {
    color: var(--cs-text) !important;
}

/* Breadcrumb links */
.team-breadcrumb a {
    color: var(--cs-text-muted) !important;
}

.team-breadcrumb span {
    color: var(--cs-text-muted) !important;
}
/* Tabs text */
.team-tabs-nav a {
  color: var(--cs-text) !important;
}

/* Active tab */
.team-tabs-nav li.active a {
  color: var(--cs-text) !important;
  border-bottom: 2px solid var(--cs-text) !important;
}

/* Hover state */
.team-tabs-nav a:hover {
  color: var(--cs-text) !important;
  opacity: 0.9;
}
.team-tabs-nav {
  border-bottom: 1px solid var(--cs-border) !important;
}
html[data-theme="dark"]
html[data-theme="dark"] .team-header,
html[data-theme="dark"] .team-tabs-nav a {
    color: var(--cs-text) !important;
}

html[data-theme="dark"] .team-tabs-nav li.active a {
    border-bottom-color: var(--cs-text) !important;
}
/* === Center team page layout more nicely === */

/* Give the content a max-width and center it */
.team-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Keep header + tabs aligned with cards */
.team-header,
.team-tabs {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Main layout: center the block (news + sidebar) */
.team-layout {
  display: flex;
  justify-content: center;   /* this centers the whole group */
  gap: 28px;
}

/* Fixed-ish widths so it feels deliberate, not stretched */
.team-main {
  flex: 0 1 700px;           /* main news column */
  min-width: 0;
}

.team-sidebar {
  flex: 0 0 260px;           /* sidebar column */
}
/* Fixtures page layout */
.fixtures-page__wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.fixtures-page__header {
  margin-bottom: 24px;
}

.fixtures-breadcrumb {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.fixtures-breadcrumb a {
  text-decoration: none;
}

.fixtures-page__title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 4px;
}

.fixtures-page__subtitle {
  font-size: 14px;
  opacity: 0.7;
}

/* Filters */
.fixtures-page__filters {
  margin: 24px 0 32px;
}

.fixtures-filters__form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.fixtures-filters__field {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.fixtures-filters__field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  opacity: 0.8;
}

.fixtures-filters__field select {
  background: #191919;
  border-radius: 999px;
  border: 1px solid #333;
  padding: 8px 14px;
  font-size: 14px;
  color: #f5f5f5;
}

.fixtures-filters__actions {
  margin-left: auto;
}

.fixtures-filters__button {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

/* List + cards */
.fixtures-page__hint {
  font-size: 14px;
  opacity: 0.8;
}

.fixtures-group {
  margin-bottom: 24px;
}

.fixtures-group__title {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 10px;
  opacity: 0.9;
}

.fixture-card {
  display: grid;
  grid-template-columns: 60px 1fr 160px;
  align-items: center;
  background: #141414;
  border-radius: 16px;
  padding: 10px 16px;
  margin-bottom: 8px;
}

.fixture-card__time {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.fixture-card__teams {
  font-size: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fixture-card__vs {
  opacity: 0.7;
}

.fixture-card__competition {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #333;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .fixtures-filters__form {
      flex-direction: column;
      align-items: stretch;
  }

  .fixtures-filters__actions {
      margin-left: 0;
  }

  .fixture-card {
      grid-template-columns: 1fr;
      gap: 6px;
  }

  .fixture-card__meta {
      justify-self: flex-start;
  }
}
/* ==== FIX LATEST NEWS ON COMPETITION PAGES ==== */

/* Make inner wrapper a flex row: thumbnail + text */
.team-news-list .team-article-item-inner {
  display: flex !important;
  gap: 20px !important;
  align-items: flex-start !important;
}

/* Give the text block space and make sure it’s visible */
.team-news-list .team-article__content {
  flex: 1 1 auto !important;
  padding: 8px 0 0 10px !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure meta, title and excerpt actually render + have readable colors */
.team-news-list .team-article__meta,
.team-news-list .team-article__title--list,
.team-news-list .team-article__excerpt {
  display: block !important;
  color: #ffffff !important;
}

.team-news-list .team-article__excerpt {
  color: #a0a0a0 !important;
  margin-top: 4px;
}

/* Keep the thumbnail on the left with a fixed width */
.team-news-list .team-article__thumb-link {
  flex-shrink: 0 !important;
  width: 180px !important;
}

.team-news-list .team-article__image--thumb {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Centered two-column shell */
.wtr-article-page .wtr-article-shell {
  max-width: 1180px;
  margin: 40px auto;
  display: flex;
  gap: 24px;
  padding: 0 16px;
}

/* MAIN ARTICLE PANEL */
.wtr-article-main {
  flex: 0 0 68%;
  border-radius: 4px;
  padding: 16px 18px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Breadcrumbs small at top */
.wtr-breadcrumbs {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 8px;
}

/* Title / meta */
.wtr-article-title {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #ffffff;
}

.wtr-article-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a3b7bf;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.wtr-article-hero img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin-bottom: 12px;
}

/* Article content typography */
.wtr-article-content {
  font-size: 15px;
  line-height: 1.7;
  color: #e1edf2;
}

.wtr-article-content p {
  margin-bottom: 14px;
}

.wtr-article-content a {
  color: #4fc3f7;
}

/* SIDEBAR */
.wtr-article-sidebar {
  flex: 0 0 32%;
}

.wtr-sidebar-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 10px;
}

/* Latest news cards */
.wtr-latest-card {
  display: flex;
  gap: 8px;
  border-radius: 3px;
  padding: 6px;
  margin-bottom: 8px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.wtr-latest-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.wtr-latest-thumb img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}

.wtr-latest-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wtr-latest-title {
  font-size: 13px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 4px;
}

.wtr-latest-time {
  font-size: 11px;
  color: #9eb1ba;
}

/* Empty message */
.wtr-latest-empty {
  font-size: 13px;
  color: #cfdde3;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .wtr-article-page .wtr-article-shell {
      flex-direction: column;
  }

  .wtr-article-main,
  .wtr-article-sidebar {
      flex: 0 0 100%;
  }
}
/**
 * WeTalkRugby – PlanetRugby-style single post layout
 * Namespaced with wtr- to avoid clashes.
 */

/* Outer container for the two-column layout */
.wtr-article-page .wtr-article-shell {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 16px;
  display: flex;
  gap: 24px;
}

/* LEFT COLUMN – MAIN ARTICLE CARD */
.wtr-article-main {
  flex: 0 0 68%;
  background: rgba(0, 0, 0, 0.45); /* subtle overlay; keeps underlying theme colours */
  border-radius: 4px;
  padding: 18px 20px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Breadcrumbs */
.wtr-breadcrumbs {
  font-size: 11px;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* Title & meta */
.wtr-article-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.wtr-article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  opacity: 0.85;
}

.wtr-article-meta-sep {
  font-size: 14px;
}

/* Featured image */
.wtr-article-hero {
  margin: 0 0 14px;
}

.wtr-article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.wtr-article-hero-caption {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.7;
}

/* Article content */
.wtr-article-content {
  font-size: 15px;
  line-height: 1.7;
}

.wtr-article-content p {
  margin-bottom: 16px;
}

/* RIGHT COLUMN – LATEST NEWS SIDEBAR */
.wtr-article-sidebar {
  flex: 0 0 32%;
  display: flex;
  flex-direction: column;
}

/* Sidebar title */
.wtr-sidebar-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

/* Latest post cards */
.wtr-latest-card {
  display: flex;
  gap: 8px;
  align-items: stretch;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 3px;
  padding: 6px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.wtr-latest-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  opacity: 0.95;
}

/* Thumbnail – uses 660x370 but visually smaller like PlanetRugby */
.wtr-latest-thumb {
  flex: 0 0 120px;
}

.wtr-latest-thumb img {
  width: 100%;
  height: 75px;              /* keeps landscape feel */
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* Text block in sidebar card */
.wtr-latest-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wtr-latest-title {
  font-size: 13px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.wtr-latest-time {
  font-size: 11px;
  opacity: 0.8;
}

.wtr-latest-empty {
  font-size: 13px;
  opacity: 0.8;
}

/* RESPONSIVE – stack on mobile */
@media (max-width: 960px) {
  .wtr-article-page .wtr-article-shell {
      flex-direction: column;
      margin-top: 24px;
  }

  .wtr-article-main,
  .wtr-article-sidebar {
      flex: 0 0 100%;
  }

  .wtr-article-sidebar {
      margin-top: 12px;
  }
}
/* Force main featured image into 16:9 (660x370) crop */
.wtr-article-hero {
  position: relative;
  aspect-ratio: 660 / 370;
  overflow: hidden;
  border-radius: 4px;
}

.wtr-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* this is what actually reshapes it */
  display: block;
}
/* Make Latest Rugby News thumbnails bigger */
.wtr-latest-thumb {
  flex: 0 0 190px;           /* increase width */
  max-width: 190px;
  aspect-ratio: 660 / 370;   /* same shape as main image */
  overflow: hidden;
  border-radius: 4px;
}

.wtr-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/*
 * Additional styles for the WeTalkRugby single post layout with multiple
 * sidebar sections. This CSS assumes the base styles from the
 * previously provided example are already in place. It enlarges the
 * sidebar thumbnails, ensures a consistent 16:9 ratio, and adds
 * spacing between the latest posts, Editorâ€™s Picks, and Trending
 * blocks.
 */

/* Space out each sidebar block */
.wtr-block {
    margin-bottom: 28px;
}

/* Increase thumbnail width and keep 16:9 ratio across all sidebar blocks */
/*
 * Sidebar thumbnail sizing â€” set to 350x200 (7/4 ratio) as requested.
 * This applies to the thumbnails in Latest Posts, Editorâ€™s Picks and
 * Trending Posts blocks. Adjust the width and height here if you want
 * them even larger or smaller, but keep the aspect ratio to avoid
 * distortion. 350Ã—200 is visually similar to Planet Rugbyâ€™s cards.
 */
.wtr-latest-thumb {
    flex: 0 0 350px;
    max-width: 350px;
    aspect-ratio: 7 / 4; /* 350/200 */
    overflow: hidden;
    border-radius: 4px;
}

.wtr-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Space out each sidebar block */
.wtr-block {
  margin-bottom: 28px;
}

/* Sidebar thumbnail size: 350×200 (7:4 ratio) */
.wtr-latest-thumb {
  flex: none;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 7 / 4;
  overflow: hidden;
  border-radius: 4px;
}
.wtr-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stack the card vertically: image on top, title and time below */
.wtr-latest-card {
  display: block;
  padding: 0;
  margin-bottom: 14px;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  overflow: hidden;
}
.wtr-latest-body {
  display: block;
  width: 100%;
  padding: 8px 10px;
}
.wtr-latest-title {
  font-size: 14px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 4px;
}
.wtr-latest-time {
  font-size: 12px;
  color: #9eb1ba;
  display: block;
}
/* Space out sidebar blocks */
.wtr-block { margin-bottom: 28px; }

/* Sidebar thumbnails: 350x200 (7:4 ratio) */
.wtr-latest-thumb {
    flex: none;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 7 / 4;
    overflow: hidden;
    border-radius: 4px;
}
.wtr-latest-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Vertical card layout: image on top, text below */
.wtr-latest-card {
    display: block;
    margin-bottom: 14px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    overflow: hidden;
    text-decoration: none;
}
.wtr-latest-body {
    padding: 8px 10px;
}
.wtr-latest-title {
    font-size: 14px; color: #fff;
    line-height: 1.3;
    margin: 0 0 4px;
}
.wtr-latest-time {
    font-size: 12px; color: #9eb1ba;
    display: block;
}

/* Related articles section */
.wtr-related { margin-top: 40px; }
.wtr-related-heading {
    font-size: 18px; text-transform: uppercase;
    letter-spacing: .08em; margin: 0 0 16px;
    color: var(--cs-text,#fff);
}
.wtr-related-cols {
    display: flex; gap: 24px;
}
.wtr-related-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wtr-related-card {
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    overflow: hidden;
    text-decoration: none;
}
.wtr-related-thumb {
    width: 100%;
    aspect-ratio: 7 / 4;
    overflow: hidden;
}
.wtr-related-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.wtr-related-body {
    padding: 8px 10px;
}
.wtr-related-title {
    font-size: 16px;
    color: #fff;
    margin: 0;
}
/* =========================================
   1. Author Header & Perfect Circle
   ========================================= */
   .wtr-author-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #fff; /* Dark mode text */
}

/* Flex container for the Author Header */
.wtr-author-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

/* --- THE PERFECT CIRCLE AUTHOR PHOTO --- */
.wtr-author-photo-wrapper {
    flex-shrink: 0; /* Prevents squishing */
}

/* Target the img tag from PHP get_avatar */
.wtr-author-photo img {
    width: 200px; /* Good size for header */
    height: 200px;
    border-radius: 50%;     /* Makes it circular */
    object-fit: cover;      /* Crops to fit perfectly */
    aspect-ratio: 1 / 1;    /* Enforces perfect circle ratio */
    border: 4px solid #333; /* Dark border */
    display: block;
}

/* Author Text Info */
.wtr-author-info {
    flex-grow: 1;
}

.wtr-author-name {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    line-height: 1;
    color: #fff;
}

.wtr-author-role {
    display: block;
    font-family: Georgia, serif;
    font-style: italic;
    color: #d32f2f; /* Red accent */
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.wtr-author-tagline {
    background: #1a1a1a;
    padding: 15px;
    border-left: 4px solid #fff;
    margin: 20px 0;
    font-style: italic;
    color: #ccc;
}

/* Social Buttons */
.wtr-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.wtr-social-btn {
    text-decoration: none;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.2s;
}

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

/* =========================================
   2. The Article Grid (Fixed Sizes)
   ========================================= */

.wtr-recent-posts-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
    border-top: 2px solid #d32f2f;
    display: inline-block;
    padding-top: 10px;
}

/* Grid Container */
.wtr-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns on Desktop */
    gap: 40px; /* Nice big gap between items */
}

/* Individual Post Card */
.wtr-post-item {
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* --- FIXING THE IMAGE SIZE (300px Height) --- */
.wtr-post-thumb {
    width: 100%;
    margin-bottom: 15px;
}

.wtr-post-thumb a {
    display: block;
    width: 100%;
}

/* Force image to fill the box and be 300px tall */
.wtr-post-thumb img {
    width: 100% !important;  /* Stretches to fill grid column */
    height: 300px !important; /* Fixed Height as requested */
    object-fit: cover;       /* Crops image so it doesn't stretch/distort */
    border-radius: 8px;      /* Slight rounded corners */
    display: block;
}

/* Post Titles */
.wtr-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.wtr-post-title:hover {
    text-decoration: underline;
    color: #ccc;
}

.wtr-post-date {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   3. Mobile Responsiveness (The 'Bile' Fix)
   ========================================= */
@media (max-width: 768px) {
    /* Stack the Author Header */
    .wtr-author-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .wtr-author-tagline {
        text-align: center; /* Center quote on mobile */
    }
    
    .wtr-social-links {
        justify-content: center;
    }

    /* Stack the Articles (1 Column) */
    .wtr-posts-grid {
        grid-template-columns: 1fr; /* 1 Column */
        gap: 40px;
    }

    /* Adjust Image height for mobile so it's not too tall */
    .wtr-post-thumb img {
        height: 250px !important; 
    }
    
    .wtr-author-name {
        font-size: 2.2rem;
    }
}

/* Load More Button Container */
.wtr-load-more-container {
  text-align: center;
  margin-top: 50px;
  padding-bottom: 20px;
  width: 100%;
  grid-column: 1 / -1; /* spans full width of grid */
}

/* The Button Styling */
#wtr-load-more-btn {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px; /* Pill shape */
}

#wtr-load-more-btn:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

#wtr-load-more-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Hide button if no more posts (handled by JS) */
.wtr-hidden {
  display: none;
}
/* Hide Archives widget everywhere */
.widget_archive {
  display: none !important;
}

/* Hide Categories widget everywhere */
.widget_categories {
  display: none !important;
}

/* Hide individual month links (December, November, etc.) */
.widget_archive li,
.widget_categories li {
  display: none !important;
}