:root {
  --black: #262626;
  --white: #fffcf2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  font-family: "Poppins", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
}

.wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.2);
  z-index: 9999;
  background-color: var(--white);
}

.logo {
  width: 5rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s linear;
  padding: 2.5rem 2.5rem;
  color: var(--black);
}

.menu-toggle {
  background-color: transparent;
  border: 0;
  outline: none;
  font-size: 3rem;
  cursor: pointer;
  font-weight: 200;
  height: min-content;
  transition: color 0.1s linear;
  display: none;
}

.menu-toggle:hover {
  color: #ea6316;
}

.nav-link:hover {
  color: #ea6316;
}

main {
  width: 100%;
  height: calc(100vh);
}

.icon {
  width: 1rem;
  fill: var(--black);
  transition: fill 0.2s linear;
}

.center-section {
  width: 100%;
  min-height: calc(100vh);
  background-color: #ffefe6;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: 6.5rem;
}

.content-container {
  width: 100%;
  min-height: calc(100vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10.5rem 1rem 2rem 1rem;
  gap: 1.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.15rem);
}

.about-text-container {
  max-width: 900px;
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.875rem;
  color: var(--white);
}

.section-title {
  position: relative;
  font-size: 2.25rem;
  display: inline-block;
  color: var(--white);
}

.section-title::after {
  content: "";
  position: absolute;
  width: 110%;
  height: 0.25rem;
  left: -4%;
  bottom: 0.25rem;
  background-color: #ea6316;
}

.heading {
  font-size: 1.5rem;
}

a {
  text-decoration: none;
}

/* hero page styling */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 25vh 0;
  gap: 2rem;
  background-image: url("./hero-bg.jpg");
  background-size: cover;
}

.hero-title {
  font-size: 3rem;
  color: #fff;
  filter: drop-shadow(#000 0px 0px 0.01rem);
  text-align: center;
}

.hero-subtitle {
  text-align: center;
  color: #212529;
}

.hero-date-container {
  color: #212529;
  padding: 1rem 2rem;
  border: 0.1rem solid #212529;
  border-radius: 0.5rem;
  background-color: transparent;
  transition: color 0.2s linear, background-color 0.2s linear;
}

.hero-date-container:hover {
  color: #fff;
  background-color: #212529;
}

.hero-date-container:hover .icon {
  fill: #fff;
}

.text-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 0.1rem solid #ea6316;
  border-radius: 0.5rem;
  background-color: #ea6316;
  color: #fff;
  font-weight: 500;
  transition: border-color 0.2s linear, background-color 0.2s linear;
}

.cta-btn:hover {
  border-color: #fff;
  background-color: #ea641690;
}

.btn {
  width: 13rem;
}

.syllabus-container {
  width: 100%;
  display: grid;
  place-items: center;
}

.subject-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.subject {
  text-align: center;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}

.selected {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: #ea6316;
  font-weight: 500;
}

.sample-paper {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: #ea6316;
  font-weight: 500;
  color: #fff;
}

.syllabus-viewer {
  padding: 1rem;
  border-radius: 1rem;
  margin-top: 2rem;
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  background-color: var(--white);
}

.syllabus-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0.01rem solid var(--black);
  border-radius: 0.5rem;
}
.row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-top: 0.01rem solid var(--black);
}
.row > * {
  padding: 1rem;
}
.row:first-child {
  border-top: none;
}
.topicname {
  border-left: 0.01rem solid var(--black);
  flex: 1;
  font-weight: bold;
  color: #ea6316;
  word-wrap: break-word;
}
.contents {
  border-left: 0.01rem solid var(--black);
  flex: 2;
  line-height: 1rem;
}
.row .topicname:first-child,
.row .contents:first-child {
  border-left: none;
}

@media screen and (max-width: 1000px) {
  html {
    font-size: 14px;
  }
}

@media screen and (max-width: 680px) {
  header {
    padding: 0.5rem 2rem;
  }
  nav {
    position: absolute;
    top: 6.5rem;
    left: 0;
    flex-direction: column;
    width: 100%;
    background-color: var(--white);
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .subject-selector {
    flex-direction: column;
  }
  .syllabus-viewer {
    width: 100%;
    background: transparent;
  }
  .syllabus-table {
    border: 0;
  }
  .row {
    flex-direction: column;
    margin-bottom: 1rem;
    border: 0.01rem solid var(--black);
    border-radius: 0.5rem;
    background-color: var(--white);
  }
  .row:first-child {
    border-top: 0.01rem solid var(--black);
  }
  .topicname {
    border-bottom: 0.01rem solid var(--black);
  }
  .contents {
    border: 0;
  }
}
