/*
Theme Name: XOD Class
Description: Minimal classic theme for the X One Design Class Association. Reproduces the site's The7-era look (blue top bar, white logo/nav header, dark footer) with zero commercial dependencies. Includes a small WPBakery-grid compatibility layer for flattened legacy page markup.
Author: XOD Class Association
Version: 1.0.0
License: GPLv2 or later
Text Domain: xclass
*/

/* ---------- tokens ---------- */
:root {
  --blue: #1e73be;        /* top bar */
  --navy: #00548b;        /* headings accent / content boxes */
  --sky: #1baae2;         /* light blue accents */
  --gold: #f6b221;        /* yellow accent box */
  --ink: #111;            /* headings + nav */
  --body: #1a1a1a;        /* body text — black for readability (was The7 grey) */
  --footer-bg: #0e3a5f;   /* deep marine navy (Shaun-approved footer redesign) */
  --max: 1200px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 400 18px/1.6 Roboto, Helvetica, Arial, Verdana, sans-serif;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 34px; }
h2 { font-size: 34px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar { background: var(--footer-bg); color: #fff; font-size: 14px; }   /* matches footer navy */
.topbar a { color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topbar-tools { display: flex; align-items: center; gap: 16px; }
.topbar .search-form { display: flex; }
.topbar .search-form input[type="search"] {
  border: 0; border-radius: 3px 0 0 3px; padding: 2px 8px; font-size: 13px; width: 130px;
}
.topbar .search-form button {
  border: 0; border-radius: 0 3px 3px 0; padding: 2px 8px; background: #fff; cursor: pointer; font-size: 13px;
}

/* ---------- header / nav ---------- */
.masthead-x { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 90px; }
.brand img { display: block; height: 56px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav li { position: relative; }
.site-nav a {
  display: block; padding: 10px 14px; color: var(--ink); font-size: 16px; white-space: nowrap;
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a {
  color: var(--blue); text-decoration: none;
}
/* dropdowns */
.site-nav ul ul {
  display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 230px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15); padding: 6px 0; z-index: 60;
}
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }
.site-nav ul ul ul { top: 0; left: 100%; }
.site-nav ul ul a { padding: 8px 18px; font-size: 15px; }
.nav-toggle { display: none; }

/* mobile nav */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle {
    display: block; margin-left: auto; background: none; border: 1px solid #ccc; border-radius: 4px;
    padding: 8px 14px; font-size: 16px; color: var(--ink); cursor: pointer;
  }
  .site-nav { display: none; width: 100%; margin: 0; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul ul { display: block; position: static; box-shadow: none; padding-left: 18px; min-width: 0; }
}

/* ---------- content ---------- */
.site-main { padding: 40px 0 60px; }
.page-title { margin-bottom: 24px; }
.entry-content h2, .entry-content h3 { margin-top: 1.2em; }
.entry-meta { font-size: 14px; color: #9aa0a6; margin-bottom: 18px; }

/* ---------- posts list (news) ---------- */
.post-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 0 0 30px; }
@media (max-width: 700px) { .post-cards { grid-template-columns: 1fr; } }
.post-card { display: flex; gap: 14px; align-items: flex-start; }
.post-card .thumb img { border-radius: 50%; width: 64px; height: 64px; object-fit: cover; }
.post-card h3 { font-size: 17px; margin: 0 0 4px; }
.post-card .date { font-size: 13px; color: #9aa0a6; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 6px 12px; border: 1px solid #ddd; border-radius: 3px; color: var(--ink);
}
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- front page ---------- */
.fp-title { text-align: center; margin: 10px 0 26px; }
.fp-swiper { margin-bottom: 34px; }
/* Uniform cropped tiles, like the old The7 carousel (slidesPerView set in fp-carousel.js). */
.fp-swiper .swiper-slide img {
  width: 100%; height: 190px; object-fit: cover; display: block; border-radius: 2px;
}
.fp-swiper .swiper-button-prev, .fp-swiper .swiper-button-next {
  width: 36px; height: 36px; border-radius: 50%; background: var(--sky);
  --swiper-navigation-color: #fff; --swiper-navigation-size: 16px;
}
.fp-swiper .swiper-button-prev:hover, .fp-swiper .swiper-button-next:hover { opacity: .88; }
.fp-section-title { text-align: center; margin: 26px 0 22px; }
.fp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 34px; }
@media (max-width: 900px) { .fp-cols { grid-template-columns: 1fr; } }
.quote-box { padding: 0 0 4px; text-align: center; }
.quote-box img { display: block; margin: 0 auto; }
.quote-box h3 { color: #fff; padding: 15px; margin: 0; }
.quote-box--navy { background: var(--navy); }
.quote-box--gold { background: var(--gold); }
.fp-btn {
  display: block; text-align: center; background: var(--sky); color: #fff; padding: 12px 15px;
  font-size: 20px; font-weight: 700; margin-top: 20px;
}
.fp-btn:hover { text-decoration: none; opacity: .92; }
.joys-list { list-style: none; margin: 0; padding: 0; }
.joys-list li { padding: 9px 0 9px 26px; border-bottom: 1px solid #eee; position: relative; }
.joys-list li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--sky);
}
.video-embed { margin: 26px 0; }
.video-embed h3 { text-align: center; }
.video-embed .frame { position: relative; padding-top: 56.25%; }
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: #cfd8e3; margin-top: 40px; }
.site-footer a { color: #fff; }
.footer-divisions-block { text-align: center; padding-top: 30px; }
.footer-divisions-block h4 {
  color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}
.footer-divisions {
  display: flex; flex-wrap: wrap; justify-content: center;
  padding: 0 0 4px; font-size: 17px;
}
.footer-divisions a + a::before { content: "\00b7"; margin: 0 16px; color: rgba(255,255,255,.45); }
.footer-divisions a:hover { color: var(--sky); text-decoration: none; }
.footer-supporters { text-align: center; padding: 22px 0 36px; }
.footer-supporters h4 {
  color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px;
}
.footer-supporters .cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.supporter-card { background: #fff; border-radius: 8px; padding: 10px; }
.supporter-card img { display: block; max-height: 140px; width: auto; border-radius: 4px; }
.bottom-bar { background: rgba(0,0,0,.25); padding: 14px 0; font-size: 14px; color: #dfe6ee; }

/* ---------- WPBakery grid compatibility (flattened legacy pages) ---------- */
.vc_row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.vc_row::after { content: none; }
.wpb_column { padding: 0 15px; width: 100%; min-height: 1px; }
.vc_column-inner > .wpb_wrapper > *:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .vc_col-sm-1{width:8.333%} .vc_col-sm-2{width:16.666%} .vc_col-sm-3{width:25%}
  .vc_col-sm-4{width:33.333%} .vc_col-sm-5{width:41.666%} .vc_col-sm-6{width:50%}
  .vc_col-sm-7{width:58.333%} .vc_col-sm-8{width:66.666%} .vc_col-sm-9{width:75%}
  .vc_col-sm-10{width:83.333%} .vc_col-sm-11{width:91.666%} .vc_col-sm-12{width:100%}
}
@media (min-width: 992px) {
  .vc_col-md-1{width:8.333%} .vc_col-md-2{width:16.666%} .vc_col-md-3{width:25%}
  .vc_col-md-4{width:33.333%} .vc_col-md-5{width:41.666%} .vc_col-md-6{width:50%}
  .vc_col-md-7{width:58.333%} .vc_col-md-8{width:66.666%} .vc_col-md-9{width:75%}
  .vc_col-md-10{width:83.333%} .vc_col-md-11{width:91.666%} .vc_col-md-12{width:100%}
}
@media (min-width: 1200px) {
  .vc_col-lg-1{width:8.333%} .vc_col-lg-2{width:16.666%} .vc_col-lg-3{width:25%}
  .vc_col-lg-4{width:33.333%} .vc_col-lg-5{width:41.666%} .vc_col-lg-6{width:50%}
  .vc_col-lg-7{width:58.333%} .vc_col-lg-8{width:66.666%} .vc_col-lg-9{width:75%}
  .vc_col-lg-10{width:83.333%} .vc_col-lg-11{width:91.666%} .vc_col-lg-12{width:100%}
}
.vc_empty_space { display: block; }
.vc_separator { border-top: 1px solid #e5e5e5; margin: 22px 0; }
.wpb_text_column { margin-bottom: 1em; }
.wpb_single_image { margin-bottom: 1em; }
.wpb_single_image.vc_align_center { text-align: center; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #9aa0a6; text-align: center; }
