@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Quicksand", serif;
}

:root {
  --orange: rgb(254, 163, 1);
  --skyblue: rgb(1, 172, 253);
  --fade_blue: rgb(5, 212, 223);
  --purple: rgb(135, 0, 255);
  --btn_story_blue: rgb(60, 216, 232);
  --btn_story_green: rgb(149, 178, 38);
  --btn_story_purple: rgb(93, 88, 240);
}

.container {
  width: 90%;
  margin: auto;
}

/* Navigation */

.hamburger {
  visibility: hidden;
}

#hr {
  display: none;
}

.side_nav {
  display: none;
}

.left_nav {
  display: flex;
  align-items: center;
  cursor: pointer;
}

nav .left_nav img {
  width: 62px;
  height: 62px;
}

.nav_bar {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .school {
  font-weight: 700;
  font-size: 32px;
}

nav .middle_nav ul {
  display: flex;
  gap: 30px;
}

nav .middle_nav ul li {
  list-style: none;
}

nav .middle_nav ul li a {
  font-size: 20px;
  font-weight: 500;
  color: black;
  text-decoration: none;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

nav .middle_nav ul li:nth-child(1) a {
  color: var(--orange);
}
nav .middle_nav ul li:nth-child(2) a {
  color: var(--skyblue);
}
nav .middle_nav ul li:nth-child(3) a {
  color: var(--fade_blue);
}
nav .middle_nav ul li:nth-child(4) a {
  color: var(--purple);
}

nav .middle_nav ul li a:hover {
  background-color: rgb(255, 255, 176);
  color: black;
}

.button_nav button {
  padding: 10px;
  width: 197px;
  height: 50px;
  background-color: var(--orange);
  border-radius: 12px;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
}

.button_nav button:hover {
  background-color: rgb(181, 224, 255);
  color: var(--purple);
}

/* Hero Section */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  gap: 50px;
}

.hero_text_big {
  width: 640px;
  font-size: 56px;
  font-weight: 700;
  line-height: 61px;
}

.hero .first {
  color: var(--orange);
}

.hero .hero_blue {
  color: var(--skyblue);
}

.hero .small_text p {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 400;
}

.hero .hero_button button {
  margin: 30px 0;
  width: 197px;
  height: 50px;
  font-size: 20px;
  font-weight: 700;
  background-color: black;
  color: white;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.hero .hero_button button:hover {
  background-color: rgb(203, 233, 255);
  color: var(--skyblue);
}

/* Classes Section */

#classes {
  background-image: url(./assets/bg.png);
  background-repeat: no-repeat;
  width: 100%;
  margin: 80px 0;
}

.standard {
  font-size: 46px;
  font-weight: 700;
  text-align: center;
}

.class_cards {
  display: flex;
  justify-content: space-evenly;
  margin: 60px 0;
}

.cards {
  position: relative;
  width: 370px;
  height: 480px;
  border-radius: 18.86px;
  cursor: pointer;
  padding-top: 53px;
  text-align: center;
}

.cards img {
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.cards .big {
  font-size: 24.52px;
  font-weight: 700;
  margin-top: 20px;
}

.cards .small {
  font-size: 15.09px;
  font-weight: 500;
  color: #808080;
  margin: 15px auto;
  max-width: 280px;
}

.read_more a {
  display: inline-block;
  margin-top: 20px;
  padding: 5px;
  border-radius: 7px;
  text-decoration: none;
}

.read_more a:hover {
  background-color: beige;
}

.class_button {
  text-align: center;
  margin: 80px 0 60px;
}

.class_button button {
  width: 60px;
  height: 60px;
  color: white;
  background-color: var(--orange);
  border: none;
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
  border-radius: 50%;
}

/* Stories Section */

#stories {
  background: url(./assets/bg.png),
    linear-gradient(0deg, rgba(254, 163, 1, 0.3), rgba(255, 255, 255, 0.3));
  background-repeat: no-repeat;
  width: 100%;
}

.our_stories {
  font-size: 46px;
  font-weight: 700;
  text-align: center;
  margin: 40px 0;
}

.gallery_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.box {
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.floating_button p {
  margin: 0;
  padding: 0.5rem 1rem;
  color: white;
  font-size: 0.9rem;
  background-color: #999;
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 4px;
}

.floating_button.green p {
  background-color: var(--btn_story_green);
}

.floating_button.purple p {
  background-color: var(--btn_story_purple);
}

.floating_button.skyblue p {
  background-color: var(--skyblue);
}

.story_words,
.small_story_bold {
  padding: 1rem;
}

.story_words .bold {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.story_words .normal {
  font-size: 0.95rem;
  color: #555;
}

.small_story_bold {
  font-weight: 600;
}

#view_all {
  text-align: center;
  margin-top: 2rem;
}

#view_all button,
.stories button {
  width: 197px;
  height: 50px;
  padding: 10px;
  background-color: black;
  color: white;
  font-size: 20px;
  font-weight: 500;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin: 50px auto;
}

.stories button:hover,
#view_all button:hover {
  background-color: white;
  color: black;
}

/* .box_1 customization */
@media (min-width: 768px) {
  .box_1 {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* Responsive: 2-column layout on small screens */
@media (max-width: 767px) {
  .gallery_cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .box_1 {
    width: 100%;
    height: auto;
  }

  .box_1 img {
    height: auto;
    position: static;
  }

  .story_words .bold,
  .box_1 .normal {
    position: static;
    padding: 1rem;
  }

  .box .small_story_bold {
    position: static;
    padding: 1rem;
  }

  .box .floating_button p {
    position: static;
    margin: 1rem;
    width: auto;
  }
}

/* Footer Section */

footer .footer_container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--skyblue);
  width: 100%;
  height: 500px;
}

footer .footer {
  background-color: var(--skyblue);
  width: 1100px;
  height: 300px;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer_big_word {
  font-size: 42.14px;
  font-weight: 700;
  color: white;
}

.footer_left_words {
  color: rgb(249, 229, 229);
  font-size: 18px;
  font-weight: 400;
}

.footer_mid ul,
.footer_right ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer_mid ul li a,
.footer_right ul li a {
  text-decoration: none;
  color: rgb(249, 229, 229);
}

.footer_right ul {
  margin-top: 15px;
}
