:root {
  --color-primary: #004da9;
  --color-secondary-1: #acd18d;
  --color-secondary-2: #f3a8c1;
  --color-secondary-3: #f8ac1a;
  --color-secondary-4: #febbbb;
  --color-text-light: #ffffff;
  --font-main: 'Quicksand', sans-serif;
  --font-display: 'BebasNeueRounded', 'Bebas Neue', sans-serif;
}

@font-face {
  font-family: "BebasNeueRounded";
  font-weight: 700;
  src: url(../../../assets/fonts/BebasNeueRounded-Regular.woff) format("woff");
}

a {
  text-decoration: none;
}

main {
    background: rgba(0, 76, 168, 1) url('./images/bg-gradient.png') no-repeat center center;
    background-size: cover;
    min-height: 90vh;
    padding-top: 1px;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: #041129;
  color: var(--color-text-light);
  overflow-x: hidden;
}

.main-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  gap: 40px;
}

.content-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 56px;
  padding: 80px 180px 120px;
  box-sizing: border-box;
}

.section-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.section-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -3.84px;
  margin: 0;
}

.section-subtitle {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 64px;
  line-height: 54px;
  letter-spacing: -3.84px;
  margin: 0;
}

.section-description {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  max-width: 920px;
  margin: 0;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 768px) {
  .cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-card {
  position: relative;
  width: 302px;
  height: 400px;
  border-radius: 40px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 20px;
  box-sizing: border-box;
  color: var(--color-text-light);
  overflow: hidden;
  text-decoration: none;
  &:hover {
    color: var(--color-text-light);
  }
}

@media (max-width: 768px) {
  .article-card {
    height: 13rem;
  }
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(7, 29, 76, 0) 0%, rgba(7, 29, 76, 0.64) 84.02%);
  z-index: 1;
}

.article-card__content {
  position: relative;
  z-index: 2;
}

.article-card__title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -1.92px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 3px;
}

@media (max-width: 768px) {
  .article-card__title {
    font-size: 1rem;
    letter-spacing: -0.06rem;
    padding: 0;
  }
}

.article-card__icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 58px;
  height: 61px;
  z-index: 2;
}

.article-card__status {
  position: absolute;
  top: 2rem;
  right: 1.25rem;
  border-radius: 62.5rem;
  border: 2px solid var(--color-primary);
  background: var(--color-text-light);
  color: var(--color-primary);
  text-transform: uppercase;
  padding: .45rem .75rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.045rem;
}

@media (max-width: 1200px) {
  .content-section {
    padding: 60px 40px 100px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .content-section {
    padding: 40px 20px 80px;
    gap: 32px;
  }

  .section-title,
  .section-subtitle {
    font-size: 48px;
    line-height: 1.1;
  }

  .section-description {
    font-size: 18px;
  }

  .article-card {
    width: 100%;
    max-width: 340px;
  }
  .article-card__status {
    font-size: .75rem;
  }
}


.header-section {
  max-width: 3080px;
  box-sizing: border-box;
}

.logo-container {
  position: relative;
  width: 556px;
  height: 288px;
  margin: 0 auto 40px;
}

.logo-container img {
  position: absolute;
}

.logo-img-1 {
  top: 32.89px;
  left: 29.57px;
  width: 209.79px;
  height: 222px;
}

.logo-img-2 {
  top: 0px;
  left: -16.28px;
  width: 298.73px;
  height: 288px;
}

.logo-img-3 {
  top: 45.69px;
  left: 41.86px;
  width: 186.63px;
  height: 197.49px;
}

.logo-img-4 {
  top: 87.19px;
  left: 67.13px;
  width: 155.36px;
  height: 122.41px;
}

.logo-img-5 {
  top: 92.11px;
  left: 254.36px;
  width: 271.43px;
  height: 123.88px;
}

.info-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.floating {
    background: #fff;
    position: fixed;
    z-index: 4;
    bottom: -112px;
    left: 0;
    right: 0;
    margin: auto;
    transition: .5s bottom;
    a {
      text-decoration: none;
    }
}

.floating {
  height: 112px;
  display: flex;
  width: 1062px;
  max-width: 100%;
  border-radius: 40px 40px 0px 0px;
  padding: 24px 102px;
  background: #fff;
  position: fixed;
  z-index: 4;
  bottom: -112px;
  left: 0;
  right: 0;
  margin: auto;
  transition: .5s bottom;
  
  a {
    text-decoration: none;
  }
}

.floating .title .text-top-title {
  margin-bottom: 8px;
  color: #004DA9;
  font-size: 16px;
  font-weight: 500;
  line-height: 19.2px;
  letter-spacing: 0.32px;
}

@media screen and (max-width: 512px) {
  .floating {
    padding: 24px;
  }

  .floating .title .text-top-title {
    margin: 0;
  }
}

.floating h3 {
  color: var(--Lactogen---Blue, #004DA9);
  font-family: "Quicksand-Bold";
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -1.92px;
  max-width: 511px;
}

.floating .explore:hover {
  background-color: #FFFFFC;
  color: #004DA9;
}

.explore {
  background-color: #003DA6;
  color: #FFFFFC;
  border: 2px solid #004DA9;
  width: 327px;
  font-family: "Quicksand";
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.06em;
  text-align: center;
  display: flex;
  width: 327px;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  flex-shrink: 0;
}

.tagline {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -1.92px;
  color: var(--color-text-light);
  max-width: 628px;
  margin: 0;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.category-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 200px;
  height: 105px;
  padding: 16px;
  border-radius: 24px;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--color-primary);
  &:hover {
    color: var(--color-primary);
  }
}

.category-card--awal {
  background-color: var(--color-secondary-1);
}

.category-card--eksplorasi {
  background-color: var(--color-secondary-2);
}

.category-card--petualangan {
  background-color: var(--color-secondary-3);
}

.category-card--keajaiban {
  background-color: var(--color-secondary-4);
}

.category-card__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 768px) {
  .category-card__details {
    align-items: flex-start;
  }
}

.category-card__age {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -1.44px;
  strong {
    display: block;
    font-size: 2.25rem;
  }
}


@media (max-width: 768px) {
  .category-card__age {
    font-size: 1.25rem;
    text-align: left;
    strong {
      display: inline;
      font-size: 1.25rem;
    }
  }
}

.category-card__period {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.84px;
}

.category-card__number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 6rem;
  line-height: 0.75;
  letter-spacing: -5.76px;
}

@media (max-width: 1024px) {
  .info-section {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .logo-container {
    transform: scale(0.8);
    margin-bottom: 20px;
  }

  .tagline {
    font-size: 24px;
  }

  .category-nav {
    a {
      overflow: hidden;
    }
    .category-card__period {
      text-align: left;
      width: 94px;
    }
  }

  .category-card {
    align-items: center;
    height: auto;
    width: 44vw;
    .category-card__number {
      margin-top: .5rem;
      margin-bottom: -.5rem;
    }
  }
}

/* periode-awal */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#periode-awal {
  z-index: 1;
}

/* periode-eksplorasi */
#periode-eksplorasi {
  z-index: 2;
}

/* periode-petualangan */
#periode-petualangan {
  z-index: 3;
}

/* periode-keajaiban */
#periode-keajaiban {
  z-index: 4;
}

.content-section {
  border-radius: 2.5rem 2.5rem 0 0;
}

@media (min-width: 768px) {
    .content-section {
        border-radius: 5rem 5rem 0 0;
    }
}