:root {
  --black: #000000;
  --blue: #1e4792;
  --text-color: #333;
  --text-light: #676b6e;
  --roboto: "Roboto", sans-serif;
  --oswald: "Oswald", sans-serif;
  --inter: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

a {
  cursor: pointer;
}

h1 {
  font-size: 36px;
  letter-spacing: 0.1em;
}

@media (min-width: 1650px) {
  h1 {
    font-size: 48px;
  }
}

h2 {
  font-size: 24px;
}

@media (min-width: 1650px) {
  h2 {
    font-size: 28px;
  }
}

h3 {
  font-size: 24px;
  font-family: var(--roboto);
  font-weight: 400;
  color: var(--black);
}

h4 {
  font-size: 20px;
  font-family: var(--roboto);
  color: var(--black);
}

p {
  font-size: 16px;
}

@media (min-width: 1650px) {
  p {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 20px;
  }

  p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 25px;
  }
}

.container {
  padding-left: 12vw;
  padding-right: 12vw;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .container {
    padding-left: 8vw;
    padding-right: 8vw;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 50px;
  background-color: var(--black);
  height: 95px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  nav {
    flex-direction: column;
    padding: 30px;
    height: auto;
    gap: 20px;
    align-items: center;
    justify-content: center;
  }
}

.logo {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 182px;
  height: auto;
}

.contact {
  display: flex;
  align-items: stretch;
}

.contact-btn {
  font-family: var(--roboto);
  letter-spacing: 2px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue);
  color: white;
  padding: 0 20px;
  height: 100%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: rgba(30, 71, 146, 0.85);
}

@media (max-width: 900px) {
  .contact-btn {
    padding: 10px 20px;
    height: auto;
  }
}

.hero {
  background-image: url("./assets/home-img.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  aspect-ratio: 1140/550;
}

@media (max-width: 1000px) {
  .hero {
    height: 680px;
    aspect-ratio: unset;
  }
}
@media (max-width: 450px) {
  .hero {
    height: 750px;
    aspect-ratio: unset;
  }
}

.hero-content {
  text-align: center;
  padding-top: 8vw;
  width: 70vw;
  margin: 0 auto;
}

@media (max-width: 1150px) {
  .hero-content {
    width: 90vw;
  }
}

.hero .small-title h4 {
  font-family: var(--oswald);
  font-size: 20px;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}

.hero h1 {
  font-family: var(--inter);
  text-transform: uppercase;
}

.hero p {
  color: white;
  font-family: var(--roboto);
  line-height: 1.65;
  width: 55vw;
  margin: auto;
  margin-bottom: 60px;
}
@media (max-width: 1150px) {
  .hero p {
    width: 88vw;
  }
}

.hero .white-btn {
  font-family: var(--roboto);
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  color: var(--black);
  padding: 10px 10px;
  width: 135px;
  text-decoration: none;
  margin: 40px auto 0 auto;
  transition: all 0.3s ease;
}

a.blue-btn.top {
  width: 135px;
}

.features {
  padding: 80px 0;
}
.diagram img {
  width: 100%;
}
.diagram {
  margin: 60px auto;
  text-align: center;
  border-bottom: 1px solid var(--black);
  padding-bottom: 40px;
}
.mdiagram {
  display: none;
}
@media (max-width: 900px) {
  .diagram {
    text-align: unset;
  }
  .diagram img {
    display: none;
  }
  .mdiagram {
    display: block;
    width: 100%;
    margin: 0 auto;
  }
  .mdiagram img {
    margin: 0 auto;
    display: block;
    aspect-ratio: 300/550;
  }
}

@media (max-width: 900px) {
  .features {
    padding: 50px 0 0 0;
  }
}

details {
  border-bottom: 1px solid #ccc;
  padding: 12px 0;
  font-family: sans-serif;
}

details:first-of-type {
  margin-top: 30px;
  border-top: 1px solid #ccc;
}

details summary {
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  color: var(--blue);
  font-weight: bold;
  display: flex;
  gap: 8px;
  position: relative;
}

details summary span {
  color: var(--black);
  font-weight: 400;
}

details summary::-webkit-details-marker,
details summary::marker {
  display: none;
}

details summary::after {
  content: url("./assets/icons/chevron.svg");
  margin-left: auto;
  transition: transform 0.3s ease;
  position: absolute;
  right: 0;
}
details[open] summary::after {
  transform: rotate(180deg);
}

details summary::marker {
  display: none;
}

details summary span {
  color: black;
}

details p {
  margin: 8px 0 0 0;
  color: black;
  line-height: 1.5;
}
.mobile-detail {
  max-width: 166px;
  width: 100%;
  margin: 20px 0 !important;
  aspect-ratio: unset !important;
}
.features h2 {
  font-family: var(--inter);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  text-align: center;
  font-weight: 600;
  margin: 0;
}

.features h3 {
  margin: 0;
}

.features p {
  color: var(--text-color);
  font-family: var(--roboto);
  margin-top: 8px;
}

.icons {
  margin-top: 60px;
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 60px;
}

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

.icon {
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-auto-rows: auto;
  align-items: start;
  margin-bottom: 40px;
}

.div1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.div2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  margin: 0;
}

.div3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  margin: 0;
}

.icon img {
  display: block;
  width: 30px;
  padding-top: 5px;
}

.resources {
  background-color: var(--black);
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-top: 80px;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .resources {
    margin-top: 40px;
    padding-top: 65px;
  }
}

.resources h2 {
  font-family: var(--inter);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  text-align: center;
  font-weight: 500;
  margin: 0;
}

.res-cards-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 0.33fr);
  column-gap: 30px;
  row-gap: 30px;
  justify-content: center;
}

@media (max-width: 900px) {
  .res-cards-grid {
    grid-template-columns: 1fr;
  }
}

.resource-card {
  background-color: white;
  color: var(--text-color);
  text-align: center;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-card img {
  width: 100%;
  height: auto;
}

.blue-btn {
  font-family: var(--roboto);
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue);
  color: white;
  padding: 10px 10px;
  width: 115px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 auto 20px auto;
}

.blue-btn:hover {
  background-color: rgba(30, 71, 146, 0.85);
}

.partnership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .partnership-grid {
    grid-template-columns: 1fr;
    padding-bottom: 0;
    padding-top: 50px;
  }
}

.partnerships h2 {
  font-family: var(--inter);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  font-weight: 600;
  margin: 0 0 50px 0;
}

.partnerships p {
  color: var(--text-color);
  font-family: var(--roboto);

  margin: 0 0 30px 0;
  line-height: 1.65;
}

.partnerships ul {
  color: var(--text-color);
  font-family: var(--roboto);
  margin: 0 0 30px 0;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .partnerships p {
    max-width: unset;
  }
}

.partnerships .top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
}

.partnerships .bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.partnerships img {
  width: 100%;
}

.dates-resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 70px;
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .dates-resources-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.dates-resources h2 {
  font-family: var(--roboto);
  color: var(--black);
  font-weight: 400;
  margin: 0 0 50px 0;
}

.dates-resources p a,
.dates-resources p {
  color: var(--text-light);
  font-family: var(--roboto);
  max-width: 500px;
  margin: 0;
  line-height: 1.65;
  font-weight: bold;
  text-decoration: none;
}

.dates-resources a {
  font-family: var(--roboto);
  font-size: 16px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: all 0.3s ease;
}

.dates-resources a:hover {
  color: #2460c1;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.flex-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: var(--black) 1px solid;
}

footer {
  background-color: var(--black);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  font-family: var(--roboto);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.socials {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-contact {
  color: white;
  text-decoration: none;
  font-family: var(--roboto);
  font-size: 18px;
  border: 1px solid white;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.footer-contact:hover {
  background-color: rgb(255, 255, 255, 0.09);
}

@media (max-width: 900px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .year_copy {
    order: 3;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}

/* modal */

.modal-overlay {
  position: fixed;
  top: clamp(99px, 12vh, 150px);
  left: 50px;
  right: 50px;
  bottom: 50px;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: auto;
  height: fit-content;
  max-height: calc(100vh - 100px);
  scrollbar-width: thin;
  scrollbar-color: rgba(50, 50, 50, 0.7) #000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  padding: 70px 0;
  width: 60vw;
  max-height: calc(100% - 120px);

  display: block;
}

.modal-header {
  text-align: center;
  position: relative;
}

.modal-title {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 28px;
  font-weight: normal;
  text-transform: uppercase;
  color: white;
  margin: 0 0 40px;
  letter-spacing: 3px;
}

.close-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 25px;
  cursor: pointer;
}

.close-btn:hover {
  color: #666;
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 30px;
  overflow: hidden;
}

.form-label {
  display: block;
  padding-bottom: 5px;
  font-family: var(--roboto);
  font-weight: bold;
  margin-bottom: 5px;
  color: white;
  font-size: 16px;
}

.form-label .required {
  font-size: 12px;
  color: #a8a8a8;
  display: inline-block;
  padding-left: 9px;
  font-weight: normal;
  font-family: var(--roboto);
}
input[type="text"],
input[type="email"],
textarea,
.form-input,
.form-textarea {
  font-size: 16px !important;
  font-family: var(--roboto);
  width: 100%;
  padding: 20px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #007bff;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.submit-btn {
  font-family: var(--roboto);
  font-size: 18px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue);
  color: white;
  padding: 10px 10px;
  width: 115px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 auto 20px auto;
}

.submit-btn:hover {
  background-color: rgba(30, 71, 146, 0.85);
}

#successMessage {
  display: block;
  margin: 0 auto;
  text-align: center;
  color: white;
  font-family: "Roboto";
  margin-top: 60px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal {
    width: 95%;
  }

  .modal-body {
    padding: 20px;
  }
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
  }
  .form-input,
  .form-textarea {
    padding: 15px 10px;
  }
  .form-group {
    margin-bottom: 15px;
  }
  .form-row {
    gap: 0;
  }
  .modal-title {
    margin-bottom: 20px;
  }
  .close-btn {
    top: 20px;
    right: 20px;
    width: 20px;
  }
}
