/*
Theme Name: Sigma College Child Theme
Template: wp-theme-sigma
Version: 1.0.1
*/

/* =============================================================================
   LAYOUT & NAVIGATION
   ============================================================================= */
*{
  font-family: 'Inter', sans-serif !important;
}

/* Mobile overflow fix: WP's block-supports CSS applies `flex-wrap: nowrap`
   to this shared Columns layout class with no responsive breakpoint at all
   (see the inline #core-block-supports-inline-css block WP prints in <head>).
   It's reused across most sections site-wide (hero, "Why study with us",
   verticals, etc.), so on narrow viewports those rows can't stack and any
   wide/unbreakable descendant forces the whole row — and the page — to
   overflow horizontally. Restoring wrap below WP's own column-stacking
   breakpoint (782px) matches how Columns blocks behave by default. */
@media (max-width: 782px) {
  .wp-container-core-columns-is-layout-8f761849 {
    flex-wrap: wrap !important;
  }
}

/* Flex items default to `min-width: auto`, which lets a wide/unbreakable
   descendant hold its column open at more than 100% of viewport width even
   after the row wraps. Letting columns shrink normally prevents that. */
.wp-container-core-columns-is-layout-8f761849 > .wp-block-column {
  min-width: 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

.main-nav-desktop {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 0 !important;
}

.main-nav-desktop ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-footer a {
  color: var(--wp--preset--color--brand-300) !important;
  font-weight: 200 !important;
}

/* Figma match: the global `p { color: sigma-text }` rule overrides this
   section's intended brand-300 footer text color (dark gray is unreadable
   on the dark navy footer background). */
.footer-bottom p {
  color: var(--wp--preset--color--brand-300);
}

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

.hero-overlay-background {
  background-color: var(--wp--preset--color--brand-900) !important;
}

.hero-video-slider {
  height: 472px !important;
}

.hero-video-slider .hero-content-wrap {
  padding: 0 !important;
}

.hero-video-slider .hero-title {
  margin-bottom: 24px;
  color: var(--wp--preset--color--white) !important;
  font-size: 40px;
  font-weight: 600;
  line-height: 52px;
  text-align: center;
}

.hero-video-slider .hero-subtitle {
  margin-bottom: 36px;
  color: var(--wp--preset--color--white) !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

.hero-video-slider .buy-tickets-button {
  display: flex;
  justify-content: center;
  width: 200px !important;
  height: 56px !important;
  padding: 12px;
  margin-bottom: 32px;
  gap: 8px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: var(--wp--preset--color--brand-600) !important;
}

.hero-bottom-cta-inner {
  max-width: max-content !important;
}

.hero-bottom-cta-heading {
  color: var(--wp--preset--color--white) !important;
}

.hero-bottom-cta-description {
  color: var(--wp--preset--color--white) !important;
}

.hero-bottom-pills-description {
  color: var(--wp--preset--color--white) !important;
}

.hero-container a.hero-bottom-cta-btn {
  background: var(--wp--preset--color--brand-600) !important;
}

/* =============================================================================
   VERTICALS SECTION
   ============================================================================= */

section.ags-verticals {
  padding: 64px 0;
}

section.ags-verticals p{
  color: var(--wp--preset--color--white);
}

section.ags-verticals h2 {
  color: var(--wp--preset--color--white);
  text-align: center;
  font-size: 40px;
  font-style: normal;
  font-weight: 600;
  line-height: 52px;
}

section.ags-verticals p:first-child {
  color: var(--wp--preset--color--white);
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 32px;
}

.ags-verticals__eyebrow {
  display: block;
  color: var(--wp--preset--color--brand-400);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  text-transform: uppercase;
}

.ags-vertical-card {
  height: 232px;
  padding: 16px;
  border-radius: 16px;
  background-color: transparent;
}

/* Figma match: the card border/fill is subtle in the design (a faint tint on
   the dark section background), not the bright brand-600 border Tailwind's
   .border-brand-600 utility renders by default. */
.ags-vertical-card.border-brand-600 {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.ags-vertical-card img {
  width: 24px;
  height: 28px;
}

.ags-vertical-card h3 {
  margin-top: 0 !important;
}

.college-verticals .bg-white {
  background-color: var(--wp--preset--color--brand-950) !important;
}

a.ags-verticals__button.btn.btn-primary {
  padding: 12px 24px;
  border-radius: 24px;
  background-color: var(--wp--preset--color--brand-600);
}

/* =============================================================================
   EVENTS SECTION
   ============================================================================= */

.college-events .row {
  justify-content: center;
}

/* Figma match: this heading sits on a light background, so it should use the
   dark text color instead of the site-wide brand-purple heading default. */
.college-events h2 {
  color: var(--wp--preset--color--gray-900) !important;
}

.college-events .text-gray-600 {
  text-align: center;
}

.college-events .content {
  width: 950px;
  color: var(--wp--preset--color--gray-900);
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding-bottom: 64px;
  margin-bottom: 0;
}

.college-events .swiper-upcoming-events .swiper-slide {
  width: 31% !important;
  margin: 0 auto;
}

.college-swiper .swiper-backface-hidden .swiper-slide {
  width: 30% !important;
  margin: 0 auto;
}

.college-swiper .swiper-upcoming-events .swiper-wrapper {
  height: auto !important;
}

.swiper.swiper-upcoming-events p {
  color: var(--wp--preset--color--gray-600);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}

.swiper.swiper-upcoming-events p:first-child {
  color: var(--wp--preset--color--gray-900);
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}
/* =============================================================================
   FLY-IN SECTION
   ============================================================================= */

.fly-in-container {
  padding: 64px;
}

.fly-in-container h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 52px;
  letter-spacing: 0;
}

.fly-in-container p {
  margin-bottom: 8px;
}

.fly-in-container a.wp-block-button__link.wp-element-button {
  padding: 12px 24px;
  border-radius: 24px;
  background-color: var(--wp--preset--color--brand-600);
  gap: 8px;
  opacity: 1;
}

.fly-in-container-top-text {
  color: var(--wp--preset--color--brand-400);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

/* =============================================================================
   COURSE CARDS
   ============================================================================= */

.course-card {
  padding: 24px;
}

h3.course-card__heading {
  color: var(--wp--preset--color--brand-950);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  margin: 0 0 8px;
}

p.course-card__description,
div.course-card__description {
  padding-top: 16px;
  padding-bottom: 16px;
}

div.course-card__description p {
  margin: 0 0 8px;
}

div.course-card__description ul {
  margin: 0;
  padding-left: 20px;
  text-align: left;
}

div.course-card__description li {
  margin-bottom: 4px;
}

/* Disabled / non-clickable pill (e.g. a "Coming Soon" card button) */
.course-card__btn--disabled {
  background-color: var(--wp--preset--color--gray-300) !important;
  color: var(--wp--preset--color--gray-500) !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* Outline variant — used by Course Category Grid's custom cards */
.course-card__btn--outline {
  background-color: transparent !important;
  color: var(--wp--preset--color--brand-600) !important;
  border: 1px solid var(--wp--preset--color--brand-600) !important;
  border-radius: 24px !important;
  padding: 12px 24px !important;
  gap: 8px;
}

.course-card__btn--outline:hover {
  background-color: var(--wp--preset--color--brand-600) !important;
  color: var(--wp--preset--color--white) !important;
}

/* Course Category Grid — section heading/description */
.course-cards-block__heading {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--wp--preset--color--brand-950, #1a1a2e);
  margin: 0 0 12px;
}

.course-cards-block__description {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--wp--preset--color--gray-600);
  font-size: 15px;
  line-height: 1.7;
}

/* =============================================================================
   PRODUCT CATEGORY ARCHIVE (taxonomy-product_cat.php)
   ============================================================================= */
.sca-category-header {
  background-color: #2d2f6b;
  padding: 56px 24px;
}

.sca-category-header__container {
  margin: 0 auto;
  text-align: center;
}

.sca-category-header__title {
  color: var(--wp--preset--color--white);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 12px;
}

.sca-category-header__description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.sca-category-courses {
  padding: 64px 24px;
}

.sca-category-courses__container {
  margin: 0 auto;
}

/* Result count + sorting dropdown above the course grid */
.sca-category-courses .woocommerce-notices-wrapper:empty {
  display: none;
}

.sca-category-courses .woocommerce-result-count,
.sca-category-courses .woocommerce-ordering {
  display: inline-block;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--wp--preset--color--gray-500);
}

.sca-category-courses .woocommerce-ordering {
  float: right;
}

.sca-category-courses .woocommerce-ordering select {
  border: 1px solid var(--wp--preset--color--gray-300);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--wp--preset--color--gray-700);
  background-color: var(--wp--preset--color--white);
}

.sca-category-courses .course-cards-grid {
  clear: both;
}

/* Pagination */
.sca-category-courses .woocommerce-pagination {
  margin-top: 48px;
}

.sca-category-courses .woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sca-category-courses .woocommerce-pagination .page-numbers li {
  list-style: none;
}

.sca-category-courses .woocommerce-pagination .page-numbers a,
.sca-category-courses .woocommerce-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wp--preset--color--gray-700);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sca-category-courses .woocommerce-pagination .page-numbers a:hover {
  background-color: var(--wp--preset--color--brand-50);
}

.sca-category-courses .woocommerce-pagination .page-numbers .current {
  background-color: var(--wp--preset--color--brand-600);
  color: var(--wp--preset--color--white);
}

.sca-category-courses .woocommerce-pagination .page-numbers .dots {
  background: none;
}

@media (max-width: 560px) {
  .sca-category-courses .woocommerce-ordering {
    float: none;
    display: block;
    margin-bottom: 24px;
  }
}

/* =============================================================================
   SIGMA SQUAD BLOCK
   ============================================================================= */

.wp-block-sigma-squad h3 {
  font-size: 20px;
  line-height: 26px;
}

/* =============================================================================
   NEWSLETTER / HUBSPOT FORM
   ============================================================================= */

.hs-main-font-element,
.hs-error-msg.hs-main-font-element {
  color: var(--wp--preset--color--red-600);
}

#newsletter_form .hs_error_rollup {
  display: none;
}

#newsletter_form .hs-button {
  cursor: pointer;
}

#newsletter_form .submitted-message {
  color: green;
}

.newsletter_form .hs-submit input {
  background-color: var(--wp--preset--color--brand-600) !important;
  border-radius: 24px !important;
}

.newsletter_form #email-86db62c8-a1db-4867-a526-6942224f0ca5 {
  background: transparent;
  border: 1px solid var(--wp--preset--color--white);
  border-radius: 30px;
  padding: 12px 24px !important;
  color: var(--wp--preset--color--white);
}

.legal-consent-container a {
  color: #ff0478 !important;
}

.legal-consent-container .hs-richtext p {
  color: var(--wp--preset--color--brand-300) !important;
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

html,
body {
  font-family: 'Inter', sans-serif !important;
}

input,
select,
textarea,
button {
  font-family: 'Inter', sans-serif;
}

/* =============================================================================
   COURSE CARDS — DESKTOP PADDING
   ============================================================================= */

@media (min-width: 1024px) {
  .course-cards-block {
    padding: 64px 0;
  }
}

/* =============================================================================
   NEWSLETTER — STACKED LAYOUT (WIDE)
   ============================================================================= */

@media (min-width: 1440px) {
  #newsletter_form .hs-form-private {
    position: relative;
  }

  #newsletter_form .hs_submit {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 999;
  }
}

/* =============================================================================
   NEWSLETTER — NARROW BREAKPOINT
   ============================================================================= */

@media (max-width: 1277px) {
  .newsletter_form {
    display: block !important;
    text-align: center !important;
  }
}

/* =============================================================================
   HOME PAGE OVERRIDES
   ============================================================================= */

.home .hero-video-slider {
  height: 700px !important;
}

/* =============================================================================
   MOBILE — max-width: 767px
   ============================================================================= */

@media (max-width: 767px) {
  .wp-block-sigma-squad.mx-auto.w-full {
    padding: 0;
    margin: 0;
  }

  .wp-block-sigma-squad.mx-auto.w-full .row.flex.items-center {
    padding: 0;
    margin: 0;
  }

  .hero-video-slider .hero-title {
    line-height: 46px !important;
  }

  .hero-content-wrap {
    padding: 10px !important;
  }

  .college-events .content {
    width: 100%;
  }

  .college-events .swiper-upcoming-events .swiper-slide {
    width: 100% !important;
  }

  .slide--events--image img {
    height: 170px !important;
  }
}