/*
Theme Name: MyGuns
Theme URI: https://myguns.ca/
Author: MyGuns
Description: Custom WordPress theme for MyGuns — firearm training, services, and expert advice.
Version: 1.23.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Copyright: Copyright 2026 MyGuns
Text Domain: myguns
Tags: one-column, custom-menu, featured-images
*/

/* ===========================
   CSS Variables / Design Tokens
   =========================== */
:root {
  --mg-dark: #161616;
  --mg-brown: #6b5445;
  --mg-brown-light: #8d7566;
  --mg-content-bg: #3a4931;
  --mg-light: #f7f7f7;
  --mg-gray: #808080;
  --mg-white: #ffffff;
  --mg-black: #000000;
  --mg-radius-sm: 4px;
  --mg-radius-md: 8px;
  --mg-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.18);
  --mg-shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.28);
  --mg-shadow-circle: 0 4px 12px rgba(0, 0, 0, 0.25);
  --mg-transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --mg-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--mg-light);
  background-color: var(--mg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--mg-transition-base), opacity var(--mg-transition-base);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ===========================
   Top Banner
   =========================== */
.top-banner {
  width: 100%;
  height: 38px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 4px 24px;
  position: relative;
  z-index: 1;
}

.top-banner__text,
.top-banner a {
  font-family: 'Lato', arial, sans-serif;
  font-size: 13px;
  line-height: 24px;
  color: var(--mg-light);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-banner a:hover {
  color: var(--mg-brown-light);
}

/* ===========================
   Navigation Header
   =========================== */
.nav-header {
  width: 100%;
  background-color: var(--mg-content-bg);
  padding: 12px 32px;
  position: relative;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.nav-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-header__logo {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--mg-white);
  letter-spacing: 0.03em;
  transition: color var(--mg-transition-base);
  margin-right: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-header__logo img,
.nav-header__logo .custom-logo {
  max-height: 26px;
  width: auto;
  max-width: none;
  display: block;
}

.nav-header__logo a {
  display: block;
}

.nav-header__logo:hover {
  color: var(--mg-brown-light);
}

.nav-header__nav {
  display: flex;
  align-items: center;
  gap: 128px;
}

.nav-header__link {
  font-family: 'Lato', arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  color: var(--mg-white);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.08em;
  padding-bottom: 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--mg-transition-base), color var(--mg-transition-base);
}

.nav-header__link:hover,
.nav-header__link--active {
  border-bottom-color: var(--mg-brown-light);
}

/* More dropdown */
.nav-header__more {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-header__more-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Lato', arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--mg-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  padding: 0 0 4px;
}

.nav-header__more-btn svg {
  transition: transform 0.3s ease;
}

.nav-header__more-btn.is-open svg {
  transform: rotate(180deg);
}

.nav-header__dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 12px;
  min-width: 200px;
  background-color: var(--mg-content-bg);
  padding: 24px;
  box-shadow: 0px 3px 6px 3px rgba(0, 0, 0, 0.24);
  border-radius: var(--mg-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
  flex-direction: column;
  gap: 16px;
}

.nav-header__dropdown.is-open {
  display: flex;
}

.nav-header__dropdown a {
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--mg-white);
  text-transform: uppercase;
}

.nav-header__dropdown a:hover {
  color: var(--mg-brown-light);
}

/* Right side icons */
.nav-header__icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 32px;
}

.nav-header__icon {
  color: var(--mg-white);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  padding: 0 0 4px;
  display: flex;
  align-items: center;
  transition: color var(--mg-transition-base), transform var(--mg-transition-base);
}

.nav-header__icon:hover {
  color: var(--mg-brown-light);
  transform: scale(1.08);
}

.nav-header__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Hamburger (mobile) */
.nav-header__hamburger {
  display: none;
  color: var(--mg-white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-header__hamburger svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Mobile menu */
.nav-header__mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--mg-content-bg);
  padding: 0;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-header__mobile-menu.is-open {
  display: flex;
  max-height: 100vh;
  padding: 16px 0;
}

.nav-header__mobile-menu a {
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--mg-white);
  text-transform: uppercase;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.nav-header__mobile-menu a:last-child {
  border-bottom: none;
}

.nav-header__mobile-menu a:hover,
.nav-header__mobile-menu a.nav-header__link--active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--mg-brown-light);
}

/* ===========================
   Hero Carousel
   =========================== */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-carousel::before,
.hero-carousel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 25%;
  z-index: 1;
  pointer-events: none;
}

.hero-carousel::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent);
}

.hero-carousel::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent);
}

.hero-carousel__track {
  display: flex;
  transition: transform 0.7s ease-in-out;
}

.hero-carousel__slide {
  min-width: 100%;
  height: 65vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-carousel__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0.22) 80%,
    rgba(22, 22, 22, 0.7) 100%
  );
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--mg-white);
  cursor: pointer;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--mg-transition-base), background-color var(--mg-transition-base), border-color var(--mg-transition-base);
}

.hero-carousel__arrow:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-carousel__arrow--prev {
  left: 20px;
}

.hero-carousel__arrow--next {
  right: 20px;
}

.hero-carousel__arrow svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.hero-carousel__dots {
  display: none;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--mg-transition-base), transform var(--mg-transition-base), width var(--mg-transition-base), border-radius var(--mg-transition-base);
}

.hero-carousel__dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.hero-carousel__dot--active {
  background-color: var(--mg-white);
  border-color: var(--mg-white);
  width: 28px;
  border-radius: 5px;
}

.hero-carousel__overlay {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 32px;
  pointer-events: none;
}

.hero-carousel__overlay > * {
  pointer-events: auto;
}

.hero-carousel__tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 56px;
  line-height: 1.25;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--mg-white);
  text-align: center;
  max-width: 720px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);
}

.hero-carousel__tagline .mobile-br {
  display: none;
}

.hero-carousel__cta {
  display: inline-block;
  margin-top: 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mg-dark);
  background: linear-gradient(135deg, #f5c28a, #d4956b);
  border: none;
  border-radius: var(--mg-radius-md);
  padding: 10px 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 40px rgba(245, 194, 138, 0.3);
  transition: transform var(--mg-transition-base), box-shadow var(--mg-transition-base), filter var(--mg-transition-base);
}

.hero-carousel__cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 56px rgba(245, 194, 138, 0.4);
  filter: brightness(1.1);
}

.hero-carousel__tagline em {
  font-style: normal;
  color: #c4a882;
  font-weight: 700;
}

.hero-carousel__overlay::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  right: -10%;
  bottom: -60%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ===========================
   Members Bar
   =========================== */
.members-bar {
  width: 100%;
  background:
    linear-gradient(to right, rgba(0,0,0,0.3), transparent 15%, transparent 85%, rgba(0,0,0,0.3)),
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    var(--mg-content-bg);
  padding: 16px 24px 24px;
  text-align: center;
  position: relative;
}

.members-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 20% 50% at center, rgba(245, 194, 138, 0.1) 0%, rgba(245, 194, 138, 0.03) 40%, transparent 65%);
  pointer-events: none;
}

.members-bar__label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mg-light);
  opacity: 0.5;
  margin-bottom: 18px;
}

.members-bar__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.members-bar__logo {
  object-fit: contain;
  vertical-align: middle;
  display: block;
}

.members-bar__logo--sm {
  height: 37px;
}

.members-bar__logo--md {
  height: 51px;
}

.members-bar__logo--lg {
  height: 63px;
}

@media (max-width: 768px) {
  .members-bar__logos {
    gap: 20px;
  }

  .members-bar__logo--sm {
    height: 25px;
  }

  .members-bar__logo--md {
    height: 36px;
  }

  .members-bar__logo--lg {
    height: 44px;
  }
}

/* ===========================
   Reviews Bar
   =========================== */
.reviews-bar {
  width: 100%;
  background-color: var(--mg-content-bg);
  padding: 32px 24px 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reviews-bar__label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mg-light);
  opacity: 0.5;
  margin-bottom: 24px;
}

.reviews-bar__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-bar__card {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: var(--mg-radius-md);
  padding: 20px 24px;
  text-align: left;
}

.reviews-bar__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reviews-bar__name {
  font-family: 'Lato', arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--mg-white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.reviews-bar__stars {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.reviews-bar__body {
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.reviews-bar__card.is-expanded .reviews-bar__body {
  max-height: 600px;
}

.reviews-bar__text {
  font-family: 'Lato', arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mg-light);
  font-style: italic;
}

.reviews-bar__expand {
  display: none;
  background: none;
  border: none;
  color: var(--mg-brown-light);
  font-family: 'Lato', arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0 0;
  transition: opacity 0.2s ease;
}

.reviews-bar__expand:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .reviews-bar__items {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
  }

  .reviews-bar__card {
    min-width: 80vw;
    max-width: 80vw;
    flex-shrink: 0;
    scroll-snap-align: center;
    overflow: hidden;
  }

  .reviews-bar__header {
    flex-direction: row;
  }

  .reviews-bar__text {
    font-size: 13px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .reviews-bar__name {
    font-size: 12px;
  }

  .reviews-bar__body {
    max-height: 80px;
  }

  .reviews-bar__expand {
    font-size: 12px;
  }
}

/* Review Popup (mobile) */
.review-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.review-popup.is-active {
  display: flex;
}

.review-popup__card {
  background-color: var(--mg-content-bg);
  border-radius: var(--mg-radius-md);
  padding: 28px 24px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.review-popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--mg-white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.review-popup__close:hover {
  opacity: 0.7;
}

.review-popup__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-popup__name {
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--mg-white);
}

.review-popup__stars {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.review-popup__text {
  font-family: 'Lato', arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mg-light);
  font-style: italic;
}

/* ===========================
   Content Sections
   =========================== */
.content-sections {
  width: 100%;
  background-color: var(--mg-content-bg);
  padding: 24px 24px;
}

.content-sections__items {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.content-sections__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(24px);
  animation: mgFadeUp 0.6s ease-out forwards;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
}

.content-sections__item:last-child {
  border-bottom: none;
}

.content-sections__item:nth-child(1) { animation-delay: 0.1s; }
.content-sections__item:nth-child(2) { animation-delay: 0.25s; }
.content-sections__item:nth-child(3) { animation-delay: 0.4s; }
.content-sections__item:nth-child(4) { animation-delay: 0.55s; }

@keyframes mgFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-sections__item--reversed {
  flex-direction: row-reverse;
}

.content-sections__item--reversed .content-sections__text {
  text-align: right;
  align-items: flex-end;
}

.content-sections__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

/* Checkerboard grid layout */
.content-sections__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.content-sections__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(24px);
  animation: mgFadeUp 0.6s ease-out forwards;
}

.content-sections__cell:nth-child(1) { animation-delay: 0.1s; }
.content-sections__cell:nth-child(2) { animation-delay: 0.15s; }
.content-sections__cell:nth-child(3) { animation-delay: 0.25s; }
.content-sections__cell:nth-child(4) { animation-delay: 0.3s; }
.content-sections__cell:nth-child(5) { animation-delay: 0.4s; }
.content-sections__cell:nth-child(6) { animation-delay: 0.45s; }
.content-sections__cell:nth-child(7) { animation-delay: 0.55s; }
.content-sections__cell:nth-child(8) { animation-delay: 0.6s; }

.content-sections__cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.content-sections__cell--text {
  text-align: center;
}

.content-sections__cell--text .content-sections__title::after {
  margin-left: auto;
  margin-right: auto;
}

.content-sections__cell--image a {
  display: contents;
}

.content-sections__cell--image .content-sections__image {
  transition: transform var(--mg-transition-slow), box-shadow var(--mg-transition-slow), filter var(--mg-transition-slow);
}

.content-sections__cell--image a .content-sections__image {
  cursor: pointer;
}

.content-sections__cell--image:hover .content-sections__image {
  transform: scale(1.04);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  filter: brightness(1.08);
}

.content-sections__cell--image .content-sections__image {
  width: 100%;
  max-width: 400px;
  height: 260px;
}

.content-sections__cell--text .content-sections__description {
  max-width: 400px;
}

.content-sections__image {
  width: 300px;
  height: 190px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--mg-transition-slow), box-shadow var(--mg-transition-slow);
}

.content-sections__image-wrapper:hover .content-sections__image {
  transform: scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.content-sections__title--no-divider::after {
  display: none;
}

.content-sections__subtitle {
  font-family: 'Lato', arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c4a882;
  margin-bottom: 8px;
}


.content-sections__divider {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 8px 0;
}

.content-sections--about .content-sections__image {
  border-radius: 50%;
}

.content-sections--about .content-sections__image--lg {
  width: 480px;
  height: 480px;
}

.content-sections--about .content-sections__image--sm {
  width: 300px;
  height: 300px;
}

.content-sections__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 360px;
  padding: 0;
}

.content-sections__title {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--mg-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.content-sections__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #c4a882, #a08872);
  border-radius: 2px;
  margin-top: 10px;
}

.content-sections__description {
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--mg-white);
  opacity: 0.88;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  width: 100%;
  background-color: var(--mg-dark);
  padding: 36px 24px;
  border-top: 2px solid var(--mg-brown);
}

.site-footer__inner {
  max-width: 1064px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__links {
  margin-bottom: 20px;
}

.site-footer__links a {
  display: inline-block;
  padding: 6px 0;
  margin: 0 12px;
  font-family: 'Lato', arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--mg-brown-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--mg-transition-base);
  position: relative;
}

.site-footer__links a + a::before {
  content: '\00b7';
  position: absolute;
  left: -14px;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.site-footer__links a:hover {
  color: var(--mg-white);
}

.site-footer__brand {
  margin-bottom: 16px;
}

.site-footer__brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--mg-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.site-footer__brand-name::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #c4a882, #a08872);
  border-radius: 2px;
  margin: 10px auto 0;
}

.site-footer__contact {
  font-family: 'Lato', arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--mg-light);
  line-height: 1.7;
}

.site-footer__contact-sep {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.25);
}

.site-footer__contact a {
  color: var(--mg-brown-light);
  transition: color var(--mg-transition-base);
}

.site-footer__contact a:hover {
  color: #c4a882;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__copyright,
.site-footer__powered-by {
  font-family: 'Lato', arial, sans-serif;
  font-size: 12px;
  color: var(--mg-light);
  letter-spacing: 0.03em;
  opacity: 0.5;
}

/* ===========================
   Checkout — dark-themed form + summary
   =========================== */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  align-items: start;
}

@media (max-width: 880px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-form-panel,
.checkout-summary {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mg-radius-md);
  padding: 28px;
  color: var(--mg-light);
  font-family: 'Lato', arial, sans-serif;
  box-shadow: var(--mg-shadow-card);
}

/* Guest auth toggle: Create account / Log in */
.checkout-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.checkout-auth-tab {
  flex: 1 1 0;
  padding: 11px 12px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--mg-radius-sm);
  color: var(--mg-light);
  font-family: 'Lato', arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--mg-transition-base), background-color var(--mg-transition-base), color var(--mg-transition-base);
}

.checkout-auth-tab:hover {
  border-color: rgba(245, 194, 138, 0.5);
}

.checkout-auth-tab.is-active {
  border-color: #f5c28a;
  background-color: rgba(245, 194, 138, 0.1);
  color: var(--mg-white);
}

.checkout-form__signedin {
  font-size: 14px;
  color: var(--mg-light);
  letter-spacing: 0;
  text-transform: none;
}

.checkout-form__signedin a {
  margin-left: 8px;
  color: var(--mg-brown-light);
  font-size: 13px;
  text-decoration: underline;
}

.checkout-form__heading {
  font-family: 'Lato', arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-form__heading:not(:first-child) {
  margin-top: 28px;
}

.checkout-form p {
  margin: 0 0 16px;
}

.checkout-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mg-light);
  margin-bottom: 6px;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--mg-radius-sm);
  color: var(--mg-white);
  font-family: 'Lato', arial, sans-serif;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color var(--mg-transition-base), background-color var(--mg-transition-base);
}

.checkout-form input[type="text"]:focus,
.checkout-form input[type="email"]:focus,
.checkout-form input[type="password"]:focus {
  outline: none;
  border-color: rgba(245, 194, 138, 0.65);
  background-color: rgba(0, 0, 0, 0.4);
}

.checkout-form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .checkout-form__row--two {
    grid-template-columns: 1fr;
  }
}

.checkout-form__hint {
  display: block;
  font-size: 12px;
  color: var(--mg-brown-light);
  margin-top: 6px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.checkout-form__stripe-mount {
  min-height: 64px;
  padding: 14px 16px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--mg-radius-sm);
  margin-bottom: 16px;
  position: relative;
}

.checkout-form__stripe-mount:empty::before {
  content: attr(data-placeholder);
  display: block;
  color: var(--mg-brown-light);
  font-size: 13px;
  text-align: center;
  padding: 10px 0;
}

.checkout-form__error {
  color: #ffb1ac;
  min-height: 1em;
  margin: 0 0 16px;
  font-size: 14px;
}

.checkout-form__error:not(:empty) {
  padding: 10px 14px;
  background-color: rgba(184, 49, 47, 0.15);
  border: 1px solid rgba(184, 49, 47, 0.5);
  border-radius: var(--mg-radius-sm);
}

.checkout-form__submit {
  text-align: center;
  margin: 24px 0 12px;
}

.checkout-form__submit .hero-carousel__cta {
  margin-top: 0;
  font-size: 16px;
  padding: 12px 36px;
  letter-spacing: 0.12em;
}

.checkout-form__submit .hero-carousel__cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.checkout-form__terms {
  color: var(--mg-brown-light);
  font-size: 12px;
  text-align: center;
  margin: 8px 0 0;
}

/* Order summary aside */
.checkout-summary {
  position: sticky;
  top: 24px;
}

.checkout-summary__title {
  font-family: 'Lato', arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-white);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.checkout-summary__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--mg-radius-sm);
  margin-bottom: 14px;
}

.checkout-summary__price {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--mg-white);
  letter-spacing: 0.06em;
  margin: 0;
}

.checkout-summary__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mg-light);
  margin: 12px 0 0;
  opacity: 0.85;
}

@media (max-width: 880px) {
  .checkout-summary {
    position: static;
    order: -1;
  }
}

/* ===========================
   My Courses — empty state
   =========================== */
.my-courses-empty {
  text-align: center;
  padding: 48px 16px 32px;
  color: var(--mg-light);
  font-family: 'Lato', arial, sans-serif;
}

.my-courses-empty__message {
  font-size: 18px;
  margin: 0 0 24px;
  opacity: 0.9;
}

/* ===========================
   Single Online Course — Buy state
   =========================== */
.course-buy-cta {
  text-align: center;
  margin: 0 auto 24px;
  padding: 0 16px;
}

.course-buy-cta .hero-carousel__cta {
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 8px 22px;
  margin-top: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 24px rgba(245, 194, 138, 0.25);
}

.course-buy-cta .hero-carousel__cta:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 32px rgba(245, 194, 138, 0.35);
}

.course-video-placeholder {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 32px;
  aspect-ratio: 16 / 9;
  border-radius: var(--mg-radius-md);
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.course-video-placeholder__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.78));
  color: var(--mg-white);
  text-align: center;
  padding: 16px;
}

.course-video-placeholder__play {
  width: 96px;
  height: 96px;
  color: var(--mg-white);
}

.course-video-placeholder__text {
  font-family: 'Lato', arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.85;
}

.course-lessons--locked {
  opacity: 0.7;
  color: var(--mg-light);
  font-family: 'Lato', arial, sans-serif;
}

.course-lessons--locked li {
  padding: 4px 0;
}

@media (max-width: 600px) {
  .course-video-placeholder__play {
    width: 72px;
    height: 72px;
  }
  .course-video-placeholder__text {
    font-size: 11px;
    letter-spacing: 0.14em;
  }
}

/* ===========================
   Page: Account (login + signup CTA)
   =========================== */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 720px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

.account-panel {
  background-color: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mg-radius-md);
  padding: 32px;
  color: var(--mg-light);
  font-family: 'Lato', arial, sans-serif;
}

.account-panel__heading {
  font-family: 'Lato', arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--mg-white);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.account-panel__body {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.account-panel__greeting {
  font-size: 18px;
  color: var(--mg-white);
  margin: 0 0 20px;
}

.account-panel__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-panel__error {
  background-color: rgba(184, 49, 47, 0.15);
  border: 1px solid rgba(184, 49, 47, 0.5);
  border-radius: var(--mg-radius-sm);
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 14px;
  color: #ffd1cf;
}

.account-panel__forgot {
  margin: 16px 0 0;
  font-size: 13px;
}

.account-panel__forgot a {
  color: var(--mg-brown-light);
  text-decoration: underline;
}

.account-panel__forgot a:hover {
  color: var(--mg-white);
}

.account-panel__register-fallback {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--mg-light);
  opacity: 0.85;
}

.account-panel__register-fallback a {
  color: var(--mg-white);
  text-decoration: underline;
}

/* Style wp_login_form() output. WP outputs:
   form#loginform > p.login-username, p.login-password, p.login-remember, p.login-submit */
#loginform p {
  margin: 0 0 14px;
}

#loginform label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mg-light);
  margin-bottom: 6px;
}

#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--mg-radius-sm);
  color: var(--mg-white);
  font-family: 'Lato', arial, sans-serif;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color var(--mg-transition-base), background-color var(--mg-transition-base);
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
  outline: none;
  border-color: var(--mg-white);
  background-color: rgba(0, 0, 0, 0.4);
}

#loginform p.login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 14px;
  margin: 0;
}

#loginform p.login-remember input[type="checkbox"] {
  margin: 0;
}

#loginform p.login-submit {
  margin-top: 18px;
}

#loginform input[type="submit"] {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--mg-white);
  border-radius: var(--mg-radius-sm);
  color: var(--mg-dark);
  background-color: var(--mg-white);
  cursor: pointer;
  transition: background-color var(--mg-transition-base), color var(--mg-transition-base);
}

#loginform input[type="submit"]:hover {
  background-color: transparent;
  color: var(--mg-white);
}

/* Account icon — small visual cue when signed in */
.nav-header__icon--signed-in::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6fbf73;
  border: 2px solid var(--mg-dark);
}

.nav-header__icon {
  position: relative;
}

/* ===========================
   Page: Courses — In-Person & Online sections
   =========================== */
.courses-panel {
  display: block;
  margin-bottom: 48px;
}

.courses-panel:last-of-type {
  margin-bottom: 0;
}

.courses-panel__empty {
  font-family: 'Lato', arial, sans-serif;
  color: var(--mg-light);
  text-align: center;
  padding: 32px 16px;
  opacity: 0.85;
}

/* ===========================
   Page: Card Grid (Courses, Services)
   =========================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.card-grid__item {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border-radius: var(--mg-radius-md);
  box-shadow: var(--mg-shadow-card);
  transition: transform var(--mg-transition-base), box-shadow var(--mg-transition-base);
}

.card-grid__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--mg-shadow-card-hover);
}

.card-grid__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform var(--mg-transition-slow);
}

.card-grid__item:hover .card-grid__image {
  transform: scale(1.03);
}

.card-grid__overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: 'Lato', arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mg-white);
  background-color: rgba(0, 0, 0, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-grid__body {
  padding: 20px 20px 24px;
}

.card-grid__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-grid__title {
  font-family: 'Lato', arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-white);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.card-grid__price {
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--mg-light);
  white-space: nowrap;
  margin-left: 12px;
}

.card-grid__desc {
  font-family: 'Lato', arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--mg-light);
}

.card-grid__desc strong {
  color: #f5c28a;
}

.card-grid__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-grid__tag {
  display: inline-block;
  font-family: 'Lato', arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mg-light);
  opacity: 0.75;
}

.card-grid__tag--accent {
  background: rgba(245, 194, 138, 0.15);
  color: #f5c28a;
  opacity: 1;
}

/* ===========================
   Page: Hero Banner (per-page)
   =========================== */
.page-hero {
  background-color: var(--mg-content-bg);
  padding: 48px 24px;
  text-align: center;
}

.page-hero--dark {
  background:
    linear-gradient(to right, rgba(0,0,0,0.3), transparent 15%, transparent 85%, rgba(0,0,0,0.3)),
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    var(--mg-content-bg);
}

.page-hero__title {
  font-family: 'Oswald', sans-serif;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--mg-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-hero__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #f5c28a, #d4956b);
  border-radius: 2px;
  margin: 14px auto 0;
}

.page-hero__subtitle {
  font-family: 'Lato', arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--mg-light);
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 20px;
}

.page-hero .hero-carousel__cta {
  margin-top: 2px;
  font-size: 16px;
  padding: 8px 28px;
}

/* Page Hero with Instructor Profile */
.page-hero--with-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: left;
  padding: 48px 24px;
}

.page-hero__profile {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 48px;
}

.page-hero__profile-label {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f5c28a;
  margin-bottom: 8px;
  white-space: nowrap;
}

.page-hero__profile-link {
  display: block;
  transition: transform var(--mg-transition-base);
}

.page-hero__profile-link:hover {
  transform: scale(1.05);
}

.page-hero__profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(245, 194, 138, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.page-hero__credentials-wrap {
  display: flex;
  flex-direction: column;
}

.page-hero__profile-subtitle {
  font-family: 'Lato', arial, sans-serif;
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mg-light);
  opacity: 0.5;
  margin-top: 8px;
  white-space: nowrap;
}

.page-hero__credentials-label {
  font-family: 'Lato', arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mg-light);
  opacity: 0.45;
  margin-bottom: 4px;
}

.page-hero__credentials {
  font-family: 'Lato', arial, sans-serif;
  font-size: 11px;
  line-height: 1.7;
  color: var(--mg-light);
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-hero__credentials li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #f5c28a;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.page-hero__credentials span {
  opacity: 0.5;
}

.page-hero--with-profile .page-hero__content {
  width: 420px;
  flex-shrink: 0;
}

.page-hero--with-profile .page-hero__title::after {
  margin: 14px 0 0;
}

.page-hero--with-profile .page-hero__subtitle {
  margin: 0 0 20px;
}

@media (max-width: 768px) {
  .page-hero {
    padding-left: 10%;
    padding-right: 10%;
  }

  .page-hero--with-profile {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding-left: 10%;
    padding-right: 10%;
  }

  .page-hero__profile {
    margin-right: 0;
  }

  .page-hero__profile-block {
    flex-direction: column;
    margin-right: 0;
  }

  .page-hero__credentials {
    text-align: left;
  }

  .page-hero--with-profile .page-hero__content {
    width: 100%;
  }

  .page-hero__subtitle {
    max-width: 100%;
  }

  .page-hero--with-profile .page-hero__title::after {
    margin: 14px auto 0;
  }

  .page-hero--with-profile .page-hero__subtitle {
    max-width: 100%;
    margin: 0 auto 20px;
  }
}

/* ===========================
   CTA Buttons
   =========================== */
.btn-cta {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--mg-white);
  border-radius: var(--mg-radius-sm);
  color: var(--mg-dark);
  background-color: var(--mg-white);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background-color var(--mg-transition-base), color var(--mg-transition-base), transform var(--mg-transition-base), box-shadow var(--mg-transition-base);
}

.btn-cta:hover {
  background-color: transparent;
  color: var(--mg-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-cta--outline {
  background-color: transparent;
  color: var(--mg-light);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.btn-cta--outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--mg-white);
  border-color: rgba(255, 255, 255, 0.6);
  transform: none;
  box-shadow: none;
}

/* ===========================
   Page: Downloads
   =========================== */
.download-list {
  max-width: 800px;
  margin: 0 auto;
}

.download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--mg-radius-sm);
  transition: background-color var(--mg-transition-base);
}

.download-row:nth-child(odd) {
  background-color: rgba(0,0,0,0.1);
}

.download-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.download-row__name {
  font-family: 'Lato', arial, sans-serif;
  font-size: 15px;
  color: var(--mg-light);
}

.download-row__link {
  font-family: 'Lato', arial, sans-serif;
  font-size: 14px;
  color: var(--mg-brown-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.download-row__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===========================
   Page: FAQ Accordion
   =========================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: 'Lato', arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--mg-white);
  cursor: pointer;
  list-style: none;
  transition: color var(--mg-transition-base);
}

.faq-item summary:hover {
  color: var(--mg-brown-light);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '›';
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
}

.faq-item__answer {
  padding: 0 0 20px;
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--mg-light);
  opacity: 0.9;
}

/* ===========================
   Page: Photo Gallery
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.gallery-grid__item {
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--mg-radius-sm);
}

.gallery-grid__item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: brightness(0.95);
  transition: transform var(--mg-transition-slow), filter var(--mg-transition-slow);
}

.gallery-grid__item:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

/* ===========================
   Page: Member Of (card-grid extensions)
   =========================== */
.card-grid__body--member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 24px;
  flex: 1;
}

.card-grid__body--member .card-grid__title {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 4px;
}

.card-grid__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  margin: 16px 0 24px;
}

.card-grid__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--mg-transition-slow);
}

.card-grid__item:hover .card-grid__logo {
  transform: scale(1.06);
}

.card-grid__member-cta {
  margin-top: auto;
  font-size: 13px;
  padding: 6px 64px;
  letter-spacing: 0.12em;
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  background-color: transparent;
  border-width: 1px;
  border-radius: 2px;
}

.card-grid__member-cta:hover {
  border-color: var(--mg-white);
  color: var(--mg-dark);
  background-color: var(--mg-white);
}

/* ===========================
   Page: Contact
   =========================== */
.contact-layout {
  display: flex;
  min-height: 60vh;
}

.contact-layout__info {
  flex: 1;
  padding: 64px 48px;
  background-color: var(--mg-brown);
}

.contact-layout__map {
  flex: 1;
  min-height: 400px;
}

.contact-layout__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================
   Page: Newsletter Signup
   =========================== */
.newsletter {
  background-color: var(--mg-dark);
  padding: 64px 24px;
  text-align: center;
}

.newsletter__title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 32px;
  color: var(--mg-white);
  margin-bottom: 12px;
}

.newsletter__subtitle {
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  color: var(--mg-light);
  margin-bottom: 24px;
}

.newsletter__form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 12px 16px;
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  border: 1px solid var(--mg-gray);
  border-radius: var(--mg-radius-sm);
  background-color: var(--mg-dark);
  color: var(--mg-white);
  transition: border-color var(--mg-transition-base);
}

.newsletter__input:focus {
  border-color: var(--mg-brown-light);
  outline: none;
}

.newsletter__input::placeholder {
  color: var(--mg-gray);
}
.newsletter__msg {
  font-family: 'Lato', arial, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 12px;
  text-align: center;
}
.newsletter__msg--success { color: #8bc34a; }
.newsletter__msg--info    { color: var(--mg-brown-light); }
.newsletter__msg--error   { color: #ef5350; }

/* ===========================
   Page: Policy (placeholder)
   =========================== */
.policy-page {
  background-color: var(--mg-dark);
  padding: 64px 16px;
  min-height: 50vh;
  text-align: center;
}

.policy-page__title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 44px;
  color: var(--mg-brown-light);
  margin-bottom: 32px;
}

.policy-page__placeholder {
  background-color: var(--mg-black);
  padding: 24px 48px;
  display: inline-block;
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  color: var(--mg-gray);
}

/* ===========================
   WordPress Defaults
   =========================== */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 14px;
  color: var(--mg-gray);
  text-align: center;
  padding: 4px 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
  background-color: #161616;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #ffffff;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 6px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 6px;
  width: auto;
  z-index: 100000;
}

/* Widget area styling */
.widget {
  margin-bottom: 24px;
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--mg-white);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .nav-header__nav {
    display: none;
  }

  .nav-header__hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .top-banner {
    gap: 16px;
    padding: 4px 12px;
  }

  .top-banner__text,
  .top-banner a {
    font-size: 11px;
  }

  .top-banner__desktop-only {
    display: none;
  }

  .hero-carousel__slide {
    height: 50vh;
  }

  .hero-carousel__overlay {
    top: 45%;
    padding: 0 20px;
  }

  .hero-carousel__tagline {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-carousel__tagline .mobile-br {
    display: block;
  }

  .hero-carousel__cta {
    margin-top: 16px;
    font-size: 16px;
    padding: 8px 24px;
  }

  .content-sections {
    padding: 56px 16px;
  }

  .site-footer {
    padding: 28px 16px;
  }

  .content-sections__item,
  .content-sections__item--reversed {
    flex-direction: column;
    text-align: center;
  }

  .content-sections__grid {
    grid-template-columns: 1fr;
  }

  /* Even sections: swap text/image so image always comes first */
  .content-sections__cell:nth-child(3) { order: 4; } /* text 2 → after image 2 */
  .content-sections__cell:nth-child(4) { order: 3; } /* image 2 → before text 2 */
  .content-sections__cell:nth-child(7) { order: 8; } /* text 4 → after image 4 */
  .content-sections__cell:nth-child(8) { order: 7; } /* image 4 → before text 4 */

  .content-sections__text {
    padding: 0 16px;
    align-items: center;
  }

  .content-sections__title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .content-sections__image {
    width: 260px;
    height: 170px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }


  .contact-layout {
    flex-direction: column;
  }

  .contact-layout__info {
    padding: 32px 16px;
  }

  .page-hero__title {
    font-size: 26px;
    line-height: 1.2;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

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

}

/* ===========================
   WordPress Required Classes
   =========================== */

/* Sticky posts */
.sticky {
  position: relative;
}

/* Gallery captions */
.gallery-caption {
  display: block;
  font-size: 13px;
  color: var(--mg-gray);
  margin-top: 4px;
  text-align: center;
}

/* Comment author highlight */
.bypostauthor > .comment-body {
  border-left: 3px solid var(--mg-brown-light);
  padding-left: 12px;
}

/* Online courses checkout */
#myguns-payment-element:empty::before {
  content: attr(data-placeholder);
  color: #888;
  font-style: italic;
}

/* ---------------------------------------------------------------
   Course preview (non-owner click-to-play 5s preview)
   --------------------------------------------------------------- */
.course-preview {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: #000;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}
.course-preview:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.course-preview__idle {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55));
    text-align: center;
    padding: 16px;
}
.course-preview__play-icon {
    width: 80px;
    height: 80px;
}
.course-preview__hint {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.course-preview__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: #000;
    object-fit: contain;
}

.course-preview__overlay {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 24px;
    text-align: center;
}
.course-preview__overlay-headline {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

/* States */
.course-preview--idle .course-preview__idle    { display: flex; }
.course-preview--idle .course-preview__video   { display: none; }
.course-preview--idle .course-preview__overlay { display: none; }

.course-preview--playing,
.course-preview--ended { cursor: default; }

.course-preview--playing .course-preview__idle    { display: none; }
.course-preview--playing .course-preview__video   { display: block; }
.course-preview--playing .course-preview__overlay { display: none; }

.course-preview--ended .course-preview__idle    { display: none; }
.course-preview--ended .course-preview__video   { display: block; }
.course-preview--ended .course-preview__overlay { display: flex; }
