/*
Theme Name: GYGSA Genesis Child
Template: genesis-block-theme
Version: 1.0
*/
/* =========================================================
   GYGSA Homepage System
   ========================================================= */

/* ---------- Core Layout Shell ---------- */

.gygsa-shell {
  padding-bottom: 60px;
}

.gygsa-container {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.gygsa-hero {
  padding: 40px 24px;
}

.gygsa-hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 420px;
  box-shadow: 0 20px 50px rgba(11,31,59,.15);
}

.gygsa-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.gygsa-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11,31,59,0.85) 0%,
    rgba(11,31,59,0.45) 60%,
    rgba(11,31,59,0.15) 100%
  );
}

.gygsa-hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 60px 50px;
  color: #fff;
}

.gygsa-hero__kicker {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: .9;
}

.gygsa-hero__title {
  font-size: clamp(32px, 3vw, 54px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.gygsa-hero__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.gygsa-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}

.gygsa-hero__dot.is-active {
  background: #f6c400;
}

/* =========================================================
   EVENTS + POSTS GRID
   ========================================================= */

.gygsa-homegrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  margin-top: 60px;
}

.gygsa-sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.gygsa-sectionhead h2 {
  font-size: 26px;
  margin: 0;
}

.gygsa-sectionhead a {
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: #0b1f3b;
}

/* =========================================================
   EVENT CARD
   ========================================================= */

.gygsa-eventlist {
  display: grid;
  gap: 16px;
}

.gygsa-event {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  align-items: center;

  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11,31,59,.08);
}

.gygsa-datebadge {
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  background: #0b1f3b;
  color: #fff;
}

.gygsa-datebadge__top {
  padding: 8px 6px 6px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .12em;
}

.gygsa-datebadge__day {
  font-size: 28px;
  font-weight: 900;
  padding-bottom: 8px;
}

.gygsa-datebadge__time {
  background: #f6c400;
  color: #111;
  padding: 6px;
  font-size: 12px;
  font-weight: 900;
}

.gygsa-event__title {
  font-weight: 900;
  font-size: 18px;
  color: #0b1f3b;
}

.gygsa-event__meta {
  font-size: 14px;
  color: #555;
  font-weight: 700;
}

.gygsa-event__thumb {
  width: 90px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
}

.gygsa-event__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   RECENT POSTS
   ========================================================= */

.gygsa-posts {
  display: grid;
  gap: 18px;
}

.gygsa-post {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11,31,59,.08);
}

.gygsa-post__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.gygsa-post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gygsa-post__body {
  padding: 16px 18px 20px;
}

.gygsa-post__title {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px;
  color: #0b1f3b;
}

.gygsa-post__title a {
  text-decoration: none;
  color: inherit;
}

.gygsa-post__date {
  font-size: 13px;
  font-weight: 800;
  color: #777;
}

/* Upcoming Events Styling */

.gygsa-events {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gygsa-event {
  margin-bottom: 12px;
}

.gygsa-event__date {
  display: block;
  font-weight: 700;
  color: #000; /* bold black */
  margin-bottom: 2px;
}

.gygsa-event__title {
  font-weight: 700;
  color: #0b1f3b; /* your navy */
  text-decoration: none;
}

.gygsa-event__title:hover {
  text-decoration: underline;
}
/* Recent Posts (full width) -> 3-column grid */
.gygsa-container .gygsa-posts{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* Make each post card behave nicely inside the grid */
.gygsa-container .gygsa-posts .gygsa-post{
  margin: 0;              /* in case older CSS adds vertical spacing */
  height: 100%;
}

/* Optional: keep thumbnails consistent */
.gygsa-container .gygsa-posts .gygsa-post__img img{
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive: 2 columns on tablets, 1 column on phones */
@media (max-width: 900px){
  .gygsa-container .gygsa-posts{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px){
  .gygsa-container .gygsa-posts{
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   CONTACT SECTION
   ========================================================= */

.gygsa-contact {
  margin: 80px 24px 0;
  background: #0b1f3b;
  color: #fff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 30px 70px rgba(11,31,59,.25);
}

.gygsa-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.gygsa-contact__title {
  font-size: 28px;
  margin-bottom: 18px;
}

.gygsa-contact__meta div {
  margin-bottom: 8px;
  font-weight: 700;
}

.gygsa-form input,
.gygsa-form textarea {
  width: 100%;
  border-radius: 12px;
  border: none;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 700;
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 1024px) {
  .gygsa-homegrid {
    grid-template-columns: 1fr;
  }

  .gygsa-contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .gygsa-hero__content {
    padding: 40px 24px;
  }

  .gygsa-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(11,31,59,0.85) 0%,
      rgba(11,31,59,0.35) 70%
    );
  }

  .gygsa-event {
    grid-template-columns: 80px 1fr;
  }

  .gygsa-event__thumb {
    display: none;
  }

  .gygsa-contact {
    padding: 30px 24px;
  }
}
/* ===========================
   Header fixes: logo + menu
   =========================== */

/* Clamp custom logo size */
.gygsa-brand .custom-logo-link,
.gygsa-brand .custom-logo-link img {
  display: inline-block;
}

.gygsa-brand img.custom-logo {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
}

/* Sometimes WP wraps logo in a div */
.gygsa-brand .custom-logo {
  max-width: 44px;
}

/* Make sure header row aligns nicely */
.gygsa-header__row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
}

/* WP menus are ul/li by default — style them */
.gygsa-nav > ul,
.gygsa-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.gygsa-nav li {
  margin: 0;
  padding: 0;
}

.gygsa-nav a {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  color: var(--gygsa-navy, #0b1f3b);
  padding: 8px 10px;
  border-radius: 999px;
}

.gygsa-nav a:hover {
  background: rgba(11, 31, 59, 0.06);
  text-decoration: none;
}
/* Desktop dropdown submenus */
.gygsa-nav li {
  position: relative; /* anchor dropdown to parent item */
}

/* submenu ULs */
.gygsa-nav ul ul {
  /* hidden by default (but still hoverable when parent is hovered) */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;

  min-width: 220px;
  margin: 0;
  padding: 10px 0;
  list-style: none;

  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);

  /* animation */
  transform: translateY(6px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
}

/* Hover bridge so moving the mouse into the submenu doesn't collapse it */
.gygsa-nav ul ul::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
	
}

/* ensure submenu items stack */
.gygsa-nav ul ul li {
  width: 100%;
}

.gygsa-nav ul ul a {
  display: block;
  padding: 10px 14px;
  border-radius: 0;
  white-space: nowrap;
}

/* show on hover and keyboard focus */
.gygsa-nav li:hover > ul,
.gygsa-nav li:focus-within > ul {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s;
}

.gygsa-nav ul ul a:hover,
.gygsa-nav ul ul a:focus {
  background: rgba(11, 31, 59, 0.06);
  text-decoration: none;
}

/* Mobile: hide the menu for now (we can add a burger later) */
@media (max-width: 768px) {
  .gygsa-nav { display: none; }
  .gygsa-header__row {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
}
.gygsa-nav-toggle {
  display: none;
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(11, 31, 59, 0.08);
  color: #0b1f3b;
}

@media (max-width: 768px) {
  .gygsa-nav-toggle { display: inline-block; }

  .gygsa-nav { display: none; width: 100%; }
  body.gygsa-nav-open .gygsa-nav { display: block; }

  .gygsa-header__row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .gygsa-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
  }
  /* Mobile: show submenus nested */
  .gygsa-nav ul ul {
    display: block;
    position: static;
    min-width: 0;
    padding: 6px 0 0 0;
    margin: 6px 0 0 0;

    /* override desktop dropdown hiding/animation */
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Mobile: remove desktop hover bridge spacing */
  .gygsa-nav ul ul::before {
    display: none;
  }

  .gygsa-nav ul ul a {
    padding: 8px 0 8px 16px;
    white-space: normal;
  }
}

/* =========================================================
   HERO SLIDER (multi-slide)
   ========================================================= */

.gygsa-hero__slides {
  position: relative;
  min-height: 420px;
}

.gygsa-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}

.gygsa-hero__slide[data-active] {
  opacity: 1;
  pointer-events: auto;
}

.gygsa-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 30px;
  line-height: 42px;
  cursor: pointer;
}

.gygsa-hero__nav:hover {
  background: rgba(255,255,255,0.28);
}

.gygsa-hero__nav--prev { left: 14px; }
.gygsa-hero__nav--next { right: 14px; }

.gygsa-hero__dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 6;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
}

.gygsa-hero__dot {
  appearance: none;
  border: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
}

.gygsa-hero__dot[aria-selected="true"] {
  background: rgba(255,255,255,0.95);
}

/* =========================================================
   FACEBOOK SECTION
   ========================================================= */

.gygsa-facebook__embed {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11,31,59,.10);
  background: #fff;
}

.gygsa-facebook__embed iframe {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* =========================================================
   FULL-BLEED PAGE HERO
   ========================================================= */

.gygsa-page-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 320px;
  overflow: hidden;
}

.gygsa-page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.gygsa-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11,31,59,0.85) 0%,
    rgba(11,31,59,0.45) 60%,
    rgba(11,31,59,0.15) 100%
  );
}

.gygsa-page-hero__inner {
  position: relative;
  z-index: 2;
  padding: 72px 24px;
}

.gygsa-page-hero__title {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 4vw, 52px);
}

.gygsa-page-content {
  padding-top: 26px;
  padding-bottom: 60px;
}

/* =========================================================
   Calendar Fixes
   ========================================================= */
/* === Calendar page: fix misaligned toolbar buttons === */

/* Keep the FullCalendar header in a row and vertically aligned */
.fc .fc-header-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap; /* allows wrapping on small screens without breaking layout */
}

/* Each chunk (left/center/right) should align nicely */
.fc .fc-toolbar-chunk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Make button groups stay together */
.fc .fc-button-group {
  display: inline-flex;
  align-items: center;
}

/* Normalize button sizing so nothing "floats" weirdly */
.fc .fc-button {
  line-height: 1;
  padding: 10px 14px;
  border-radius: 10px;
}

/* Prevent the title from adding weird vertical spacing */
.fc .fc-toolbar-title {
  margin: 0;
  line-height: 1.1;
}

/* Mobile: stack chunks neatly instead of the broken left-column */
@media (max-width: 768px) {
  .fc .fc-header-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .fc .fc-toolbar-chunk {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
/* === Events Calendar toolbar alignment fix (aggressive, scoped) === */
.events-calendar-page .fc .fc-header-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.events-calendar-page .fc .fc-toolbar-chunk {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.events-calendar-page .fc .fc-button-group {
  display: inline-flex !important;
  align-items: center !important;
}

.events-calendar-page .fc .fc-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  line-height: 1 !important;
}

.events-calendar-page .fc .fc-toolbar-title {
  margin: 0 !important;
  line-height: 1.1 !important;
}

@media (max-width: 768px) {
  .events-calendar-page .fc .fc-header-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .events-calendar-page .fc .fc-toolbar-chunk {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}