@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");

/* CSS Variables */

:root {
  --color-primary: #01acfd;
  --color-secondary: #fea301;
}

/* CSS Resets */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Page Container */
.container {
  width: min(1160px, 85%);
  margin-inline: auto;
}

/* Typography */

html {
  font-size: 62.5%;
}

body {
  font-family: Quicksand, Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.5;
  color: #111111;
  background: #f7f7f7;
}

h1,
h2,
h3 {
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

h1 {
  font-size: 5.6rem;
}

h2 {
  font-size: 4.6rem;
}

h3 {
  font-size: 2.4rem;
}

img {
  display: block;
  width: 100%;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Buttons */
.btn {
  line-height: 1;
  padding: 1.8rem 6rem;
  width: max-content;
  display: block;
  border-radius: 12px;
  font-weight: 700;
  font-size: 2rem;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-secondary);
  color: #fff;
}

.btn--secondary {
  background: #111;
  color: #fff;
}

/* Primary Navigation */
.nav {
  display: flex;
  gap: 3.2rem;
  margin-block: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-weight: 700;
}

.nav__logo p {
  font-size: 3.2rem;
}

.nav__list {
  list-style-type: none;
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 3.2rem;
  font-weight: 700;
}

.nav__menu {
  display: none;
}

.nav__list li:first-child {
  margin-left: auto;
}

.nav__list li:last-child {
  margin-left: auto;
}

@media (max-width: 1024px) {
  .header {
    border-bottom: 1px solid #fea301;
  }

  .nav__list {
    display: none;
  }

  .nav__logo p {
    display: none;
  }

  .nav__menu {
    display: block;
    margin-left: auto;
    align-self: center;
    padding: 0.8rem;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 0 5px 2px #ccc;
  }
}

/* =================== */
/* Hero Section */
/* =================== */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 5rem;
}

.hero__content {
  display: grid;
  gap: 2.4rem;
}

.hero__heading .first {
  color: var(--color-secondary);
}

.hero__heading .last {
  color: var(--color-primary);
}

.hero img {
  min-width: 390px;
}

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

  .hero__content {
    justify-items: center;
    text-align: center;
  }

  .hero__image {
    grid-row-start: 1;
  }

  .hero img {
    min-width: auto;
  }
}

@media (max-width: 540px) {
  .hero__heading {
    font-size: 3.2rem;
  }

  .hero__description {
    font-size: 1.4rem;
  }

  .hero .btn {
    font-size: 1.6rem;
    padding-inline: 2.4rem;
  }
}

/* ======================= */
/* Curriculum Section */
/* ======================== */

.curriculum {
  position: relative;
  padding-block: 6rem;
  background: url(assets/bg.png);
}

.curriculum__heading {
  text-align: center;
}

.curriculum__body {
  display: grid;
  gap: 2.8rem;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  margin-block: 5rem;
}

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

.curriculum__card {
  padding: 5.2rem 4rem;
  border-radius: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.curriculum__card img {
  max-width: max-content;
  margin-inline: auto;
}

.curriculum__card:nth-child(1) {
  border: 0.943px solid #def5ff;
  background: linear-gradient(180deg, #def5ff 0%, rgba(255, 255, 255, 0) 40%),
    #fff;
  box-shadow: 0px 0px 28.296px 0.943px rgba(0, 0, 0, 0.05) inset;
}

.curriculum__card:nth-child(2) {
  border: 0.943px solid #fff4dc;
  background: linear-gradient(180deg, #fff4dc 0%, rgba(255, 255, 255, 0) 40%),
    #fff;
  box-shadow: 0px 0px 28.296px 0.943px rgba(0, 0, 0, 0.05) inset;
}

.curriculum__card:nth-child(3) {
  border: 0.943px solid #f2e8ff;
  background: linear-gradient(180deg, #eee1ff 0%, rgba(255, 255, 255, 0) 40%),
    #fff;
  box-shadow: 0px 0px 28.296px 0.943px rgba(0, 0, 0, 0.05) inset;
}

.curriculum__card p {
  color: #808080;
  font-size: 1.6rem;
}

/* Link Hover Animation*/
.curriculum__card .link {
  font-weight: 700;
  margin-top: auto;
  position: relative;
  margin-inline: auto;
}

.curriculum__card .link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease, left 0.3s ease;
}

.curriculum__card .link:hover::after {
  width: 100%;
}

/* --------------------------------------------- */

.curriculum__card:nth-child(1) .link {
  color: #64c8ff;
}

.curriculum__card:nth-child(2) .link {
  color: #f0aa00;
}

.curriculum__card:nth-child(3) .link {
  color: #8700ff;
}

.carousel-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.carousel-buttons > * {
  background: #fea301;
  border-radius: 100%;
  display: block;
  width: 6rem;
  height: 6rem;
  text-align: center;
  font-weight: 600;
  color: #fff;
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-buttons > *:hover {
  background: #fff;
  color: #fea301;
  border: 1px solid #fea301;
}

@media (max-width: 500px) {
  .carousel-buttons {
    display: none;
  }
}

/* Marquee Section */
.marquee {
  /* border: 5px solid tomato; */
  padding-block: 2rem;
  color: var(--color-secondary);
  font-weight: 500;
  display: block;
}

/* ================================== */
/* Stories Section */
/* =================================== */
.stories {
  padding-block: 6rem;
  background: url(assets/bg.png),
    /* New image on top */
      linear-gradient(
        0deg,
        rgba(254, 163, 1, 0.3) 0%,
        rgba(255, 255, 255, 0.3) 100%
      ); /* Existing gradient background */
}

.stories__heading {
  text-align: center;
}

.stories .btn {
  margin-inline: auto;
}

.stories__cards {
  margin-block: 6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stories__card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.stories__card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

  .stories__card:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

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

@media (max-width: 500px) {
  .stories__card:first-child {
    display: none;
  }
}

.stories__card-content {
  padding: 3rem;
  position: relative;
}

.stories__card-date {
  padding: 1.5rem 2rem;
  white-space: nowrap;
  border-radius: 45px;
  background: #3cd8e8;
  color: #fff;
  font-weight: 500;
  font-size: 1.5rem;
  position: absolute;
  top: 0;
  transform: translateY(-50%);
}

.stories__card-title {
  font-size: 1.6rem;
  margin-top: 1.8rem;
}

@media (max-width: 600px) {
  .stories__card-date {
    font-size: 1rem;
    padding: 0.6rem 1.1rem;
  }

  .stories__card-title {
    font-size: 1rem;
    margin-top: 1rem;
  }
}

.stories__card:first-child .stories__card-title {
  font-size: 2.4rem;
}

.stories__card-description {
  margin-top: 3rem;
}

/* ================= */
/* Footer Area */
/* ================= */

.footer {
  background: var(--color-primary);
}

.footer h3 {
  color: #fff;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #fff;
  padding-block: 8rem;
  gap: 4rem;
  justify-items: center;
}

@media (max-width: 1160px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: normal;
  }
}

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

.footer__logo img {
  max-width: min(80%, 300px);
}

.footer__logo p {
  margin-top: 3.5rem;
}

.footer__nav h3 {
  margin-bottom: 2.5rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  gap: 2rem;
  font-weight: 500;
}

.footer__social {
  display: flex;
  gap: 1rem;
}
