/* ── IMPORT FONTS ── */
/* @import url("font.css"); */

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-regular);
  color: var(--al-black);
  max-width: 100%;
  overflow-x: hidden !important;
}

/* ── ROOT VARIABLES ── */
:root {
  --container-width: 88.889%;
  /* 1280÷1440×100 */
  --max-container: 1440px;
  --extra-container-width: 90%;

  /* Font Families */
  --font-heading-bold: recoleta-bold;
  /* --font-heading-black: recoleta-black;
  --font-heading-semi-bold: recoleta-semi-bold;
  --font-heading-medium: recoleta-medium; */
  --font-heading-black: recoleta-bold;
  --font-heading-semi-bold: recoleta-bold;
  --font-heading-medium: recoleta-bold;
  --font-bold: worksans-bold;
  --font-medium: worksans-medium;
  --font-regular: worksans-regular;

  /* ── DESKTOP Font Sizes ── */

  --font-size-h1: 6.4rem;
  --font-size-h2: 4rem;
  --font-size-h3: 3.2rem;
  --font-size-large: 2rem;
  --font-size-medium: 1.8rem;
  --font-size-main: 1.6rem;
  --font-size-small: 1.4rem;
  --font-size-tiny: 1.2rem;

  /* ── DESKTOP Line Heights ── */

  --line-height-h1: 7.4rem;
  --line-height-h2: 5rem;
  --line-height-h3: 4.2rem;
  --line-height-large: 2.8rem;
  --line-height-medium: 2.4rem;
  --line-height-main: 2.2rem;
  --line-height-small: 2rem;
  --line-height-tiny: 1.8rem;

  /* ──  COLORS ── */
  --al-black: #121212;
  --al-white: #ffffff;
  --al-dark-grey: #848484;
  --al-light-grey: #EFEFEF;
  --al-red: #f30044;
  --al-pink: #f9088b;
  --al-blue: #00b2b9;
  --al-green: #025d5e;
  --al-yellow: #e9c107;
  --al-lime: #bfc10a;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-container);
  width: var(--container-width);
  margin: 0 auto;
}

.extra-container {
  max-width: var(--max-container);
  width: var(--extra-container-width);
  margin: 0 auto;
}

/* ── HEADINGS ── */
h1, .h1Heading {
  font-family: var(--font-heading-bold);
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  font-weight: 700;
  margin: 0;
}

h2 {
  font-family: var(--font-heading-black);
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  font-weight: 900;
  margin: 0;
}

h3 {
  font-family: var(--font-heading-bold);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  font-weight: 700;
  margin: 0;
}

/* ── BODY TEXT ── */
p {
  margin: 0;
}

/* a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    display: block;
} */

/* ── TEXT SIZE UTILITY CLASSES ── */
.text-large {
  font-size: var(--font-size-large);
  line-height: var(--line-height-large);
}

.text-medium {
  font-size: var(--font-size-medium);
  line-height: var(--line-height-medium);
}

.text-small {
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
}

.text-tiny {
  font-size: var(--font-size-tiny);
  line-height: var(--line-height-tiny);
}

.text-main {
  font-size: var(--font-size-main);
  line-height: var(--line-height-main);
}

/* ── TEXT WEIGHT UTILITY CLASSES ── */
.font-bold {
  font-family: var(--font-bold);
}

.font-medium {
  font-family: var(--font-medium);
}

.font-regular {
  font-family: var(--font-regular);
}

/* -- COLOR UTILITIES -- */
.bg-black {
  background-color: var(--al-black);
}

.bg-white {
  background-color: var(--al-white);
}

.bg-dark-grey {
  background-color: var(--al-dark-grey);
}

.bg-light-grey {
  background-color: var(--al-light-grey);
}

.bg-red {
  background-color: var(--al-red);
}

.bg-pink {
  background-color: var(--al-pink);
}

.bg-blue {
  background-color: var(--al-blue);
}

.bg-green {
  background-color: var(--al-green);
}

.bg-yellow {
  background-color: var(--al-yellow);
}

.bg-lime {
  background-color: var(--al-lime);
}

.text-black {
  color: var(--al-black);
}

.text-white {
  color: var(--al-white);
}

.text-dark-grey {
  color: var(--al-dark-grey);
}

.text-light-grey {
  color: var(--al-light-grey);
}

.text-red {
  color: var(--al-red);
}

.text-pink {
  color: var(--al-pink);
}

.text-blue {
  color: var(--al-blue);
}

.text-green {
  color: var(--al-green);
}

.text-yellow {
  color: var(--al-yellow);
}

.text-lime {
  color: var(--al-lime);
}

/* ── TABLET Font Sizes & Line Heights (768px – 991px) ── */
/* @media (max-width: 991.98px) {
  :root {
    --font-size-h1: 5.2rem;
    --font-size-h2: 3.4rem;
    --font-size-h3: 2.8rem;

    --line-height-h1: 6.2rem;
    --line-height-h2: 4.4rem;
    --line-height-h3: 3.6rem;
  }
} */



/* ── REUSABLE TAG STYLE ── */
.card-tag {
  color: var(--al-white);
  font-family: var(--font-bold);
  font-size: var(--font-size-tiny);
  line-height: var(--line-height-tiny);
  text-transform: uppercase;
  padding: 8px 12px;
  display: inline-block;
  letter-spacing: 1px;
}

/* .green-card-tag {
  background-color: var(--al-green);
} */

  /* Original Flexbox Implementation (Temporarily Commented Out) */
  /*
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  */
/* ── CONTENT FLEX (GRID VERSION) ── */
.content-flex {
  /* Grid Implementation */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

@media (max-width: 991.98px) {
  .content-flex {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 767.98px) {
  /* Original Flexbox Mobile (Temporarily Commented Out) */
  /*
    flex-direction: column;
    gap: 32px;
    */
  .content-flex {
    /* Grid Mobile */
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── CONTENT CARD ── */
  /* Original Flexbox (Temporarily Commented Out) */
  /*
  flex: 0 0 calc(33.333% - 32px);
  min-width: 0;
  */
.content-card {
  /* Grid Child Width */
  width: 100%;
  display: flex;
  flex-direction: column;
}

.content-card__image {
  width: 100%;
  margin-bottom: 16px;
  aspect-ratio: 394.67 / 282.37;
  overflow: hidden;
  position: relative;
}

.content-card__image img {
  width: 100%;
  height: 100%;
  /* aspect-ratio: 4/3; */
  /* object-fit: cover; */
  object-fit: contain;
  display: block;
}

.content-card__meta {
  display: flex;
  justify-content: space-between;
  /* justify-content: flex-start; */
  align-items: center;
  margin-bottom: 16px;
  /* flex-wrap: wrap; */
  /* gap: 12px; */
}

.content-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.content-card__date {
  /* margin-left: auto; Ensures date stays on the right even if tags are missing */
  font-family: var(--font-medium);
  font-size: var(--font-size-tiny);
  line-height: var(--line-height-tiny);
  color: var(--al-black);
  white-space: nowrap;
  flex: 1;
  text-align: right;
}

.content-card__title {
  font-family: var(--font-heading-bold);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  color: var(--al-black);
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.content-card__title a {
  text-decoration: none;
  color: inherit;
}

.content-card__desc {
  font-family: var(--font-regular);
  font-size: var(--font-size-main);
  line-height: var(--line-height-main);
  color: var(--al-black);
  margin-bottom: 24px;
  flex-grow: 1;
}

.content-card__link {
  font-family: var(--font-heading-semi-bold);
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0.02rem;
  display: inline-block;
  color: var(--al-black);
  transition:
    color 0.3s ease,
    text-decoration 0.3s ease;
  position: relative;
  width: max-content;
}

.content-card__link::after {
  background: none repeat scroll 0 0 transparent;
  bottom: 0;
  content: "";
  display: block;
  height: 1px;
  left: 0;
  position: absolute;
  background: currentColor;
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 100%;
}

.content-card:hover .content-card__link::after,
.ae-featured-event:hover .content-card__link::after,
.content-card__link:hover::after {
  width: 0;
  left: 50%;
}

/* ── SPLIT LAYOUT (IMAGE/TEXT) ── */
.split-layout {
  display: flex;
  gap: 48px;
  align-items: start;
}

.split-layout--reverse {
  flex-direction: row-reverse;
}

.split-layout--center {
  align-items: center;
}

.split-layout__image {
  flex: 1;
  min-width: 0;
  aspect-ratio: 837/553;
  overflow: hidden;  
}

.split-layout__image img {
  width: 100%;
  height: 100%;
  display: block;
  /* object-fit: cover; */
  object-fit: contain;
  /* aspect-ratio: 4 / 3; */
}

.split-layout__details {
  width: 395px;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .split-layout,
  .split-layout--reverse {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  /* .split-layout__image, */
  .split-layout__details {
    width: 100%;
  }

  .split-layout--mobile-reverse {
    flex-direction: column-reverse;
  }
  .split-layout__image {
    aspect-ratio: 327/216.05;
  }
}

/* ── BUTTONS ── */
.btn-brand {
  background-color: var(--al-red);
  color: var(--al-white);
  font-size: 20px;
  font-family: var(--font-heading-semi-bold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0%;
  cursor: pointer;
  /* transition: background-color 0.3s ease; */
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  padding: 16px 32px;
  line-height: 1;
  letter-spacing: 3%;
}

.btn-brand:hover {
  /* filter: brightness(0.9); */
  transform: translateY(-2px);
  /* box-shadow: 0 6px 18px rgba(0,0,0,0.28); */
  color: var(--al-white) !important;
  background-color: var(--al-black);

}

.btn-dark {
  background-color: var(--al-black);
  color: var(--al-white);
  padding: 15.5px 24px;
  font-family: var(--font-heading-bold);
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 2%;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  /* transition: background-color 0.3s ease; */
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  border-radius: 0;
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  color: var(--al-white) !important;
}
/* .btn-dark:hover {
  filter: brightness(0.8);
} */



/* ── SLIDER BUTTONS ── */
.slider-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-btn.swiper-button-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* .slider-btn img,
.slider-btn svg {
  width: 12px;
  height: 12px;
} */

.slider-arrows {
  display: flex;
  gap: 16px;
}

/* ── META UTILITIES ── */
.card-date {
  font-family: var(--font-medium);
  font-size: var(--font-size-tiny);
  line-height: 1.2;
}

/* ── RESPONSIVE MOBILE (max 767px) ── */
@media (max-width: 767.98px) {
  :root {
    /* --container-width: 91.47%; */
    --container-width: 87.21%;
    /* (327/375)*100 */
    --extra-container-width: 87.21%;
    --max-container: 100%;

    /* ── Mobile Font Sizes ── */

    /* --font-size-h1: 40px;
        --font-size-h2: 28px;
        --font-size-h3: 22px;
        --font-size-large: 20px;
        --font-size-medium: 18px;
        --font-size-main: 16px;
        --font-size-small: 14px;
        --font-size-tiny: 12px; */

    --font-size-h1: 4rem;
    --font-size-h2: 2.8rem;
    --font-size-h3: 2.2rem;
    /* --font-size-large: 2rem;
    --font-size-medium: 1.8rem;
    --font-size-main: 1.6rem;
    --font-size-small: 1.4rem;
    --font-size-tiny: 1.2rem; */

    /* ── Mobile Line Heights ── */
    --line-height-h1: 5rem;
    --line-height-h2: 3.8rem;
    --line-height-h3: 3rem;
    /* --line-height-large: 2.8rem;
    --line-height-medium: 2.4rem;
    --line-height-main: 2.2rem;
    --line-height-small: 2rem;
    --line-height-tiny: 1.8rem; */
  }

  .container {
    max-width: var(--max-container);
    width: var(--container-width);
    margin: 0 auto;
  }

  /* Standardized Card Scaling for Mobile */
  .content-card h3 {
    font-family: var(--font-heading-black);
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
  }
  .btn-brand{
    letter-spacing: 2%;
  }
  .btn-dark{
    letter-spacing: 3%;
  }
}

/* ── VISIBILITY UTILITIES ── */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

.mobile-btn {
  display: none;
}

@media (max-width: 1023.98px) {
  .mobile-only {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .mobile-btn {
    display: inline-block;
  }
}
