:root {
  --primary: rgb(142, 156, 158);
  --accent: rgb(40 56 145);
  --accent-dark: #0c1b6f;
  --accent-light: rgba(12, 27, 111, 0.051);
  --secondary-logo: rgb(237 27 36);
  --secondary-logo-opacity: rgba(237, 27, 38, 0.057);
  /* logo color*/
  --text: #333;
  --background: #ffffff;
  --font: "Quicksand", sans-serif;
  --base-layer-index: 1;
  --overlay-layer-index: 998;
  --mobile-menu-layer-index: 999;
  --section-box-shadow-color: rgba(12, 27, 111, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  scroll-padding-top: 80px;
}

main {
  padding: 0 1rem 1rem;
}

.main-header {
  position: sticky;
  top: 0;
  display: flex;
  background: var(--background);
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: var(--base-layer-index);
  box-shadow: 0px -1px 3px 0px var(--section-box-shadow-color);
}

.header-content {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
}

.header-content-mobile {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 1rem;
}

.hamburger-menu-button {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background-color: var(--background);
  border: none;
  padding: 0.5rem;
  border-radius: initial;
  border: var(--accent-dark) 1px solid;
}

.header-content-mobile.hidden {
  display: none;
}

.main-logo {
  width: 6rem;
  height: 6rem;
  background-color: var(--background);
}

/* Mobile menu overlay */
.menu-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
}

.menu-backdrop.visible {
  display: block;
  z-index: var(--base-layer-index);
  -webkit-backdrop-filter: blur(2px);
  /* Safari/iOS support */
  backdrop-filter: blur(2px);
}

/* Mobile menu panel */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80vw;
  max-width: 300px;
  height: 100vh;
  background: var(--background);
  z-index: var(--mobile-menu-layer-index);
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  border-radius: 1rem 0 0 1rem;
  box-shadow: 0px -1px 3px 0px var(--section-box-shadow-color);
  max-height: 100dvh;
}

.mobile-menu-panel.open {
  right: 0;
}

/* Header section with close button aligned with logo */
.menu-panel-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-panel-logo {
  width: 48px;
  height: 48px;
}

.menu-close-button {
  background: var(--background);
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation section */
.menu-navigation {
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  gap: 1rem;
  flex-grow: 1;
}

.menu-navigation a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 1rem;
  background-color: var(--background);
  border-radius: 0.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-navigation a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: underline;
  transform: none;
  color: var(--accent);
}

.hamburger-bar {
  width: 25px;
  height: 3px;
  background-color: var(--accent);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}


.hero {
  background: white;
  border-radius: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  object-position: center;
}

.hero-image {
  width: 100%;
  /* height: 200px; */
  border-radius: 1rem;
  box-shadow: 2px 2px 8px var(--section-box-shadow-color);
}

.section {
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 2px 2px 8px var(--section-box-shadow-color);
  align-items: center;
}

form {
  display: flex;
  flex-direction: column;
}

input,
textarea,
select {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

button {
  background: var(--accent);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 1rem;
  font-weight: 600;
  cursor: pointer;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
  color: #888;
}

textarea {
  resize: vertical;
}

.form-container .form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-container .form-group label {
  display: block;
  margin-bottom: 5px;
  color: #717171;
  font-weight: 600;
  font-size: 12px;
}

.form-container .form-group select {
  display: block;
  margin-bottom: 5px;
  color: #717171;
  font-weight: 600;
  font-size: 12px;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schools-we-service-section {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

#schools-we-service-header {
  text-align: center;
}

#schools-we-service-list {
  display: flex;
  flex-wrap: wrap;
}

#schools-we-service-list>ul {
  padding-inline: 2.5rem;
}

#schools-we-service-list-ul {
  display: flex;
  row-gap: 1rem;
  flex-direction: column;
}

#schools-we-service-list-ul>li {
  border-left: 4px solid var(--secondary-logo);
  background-color: var(--secondary-logo-opacity);
  border-radius: 4px;
  flex: 0 1 calc(33.333% - 1rem);
  min-width: 200px;
  padding: 10px;
  box-sizing: border-box;
  list-style: none;
}

#about-us-section-header,
#schools-we-service-header,
#application-form-header {
  color: var(--accent);
}

#about-us-section-why-choose-use-header {
  color: var(--accent);
}

#footer-socials a {
  color: var(--primary);
}

#footer-socials a:hover {
  color: var(--background);
}

.icons-and-details-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icons-and-details-section-details {
  color: inherit;
  text-decoration: inherit;
}

.icons-and-details-section-details:hover {
  color: var(--background);
}

footer {
  display: flex;
  flex-direction: column;
  background-color: var(--accent-dark);
  color: var(--primary);
  padding: 1rem;
  margin-top: 1rem;
}

.footer-contact-details-section-header {
  text-align: center;
}

#footer-contact-details-address {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

#menu-header-company-name-text {
  color: var(--accent-dark);
}

#menu-header-company-name {
  text-align: center;
}

.clear-default-anchor-properties {
  text-decoration: none;
}

#contact-information {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-dark);
  color: var(--background);
  font-size: small;
  position: relative;
}

.contact-information-details {
  color: inherit;
  text-decoration: inherit;
}

.apply-form-section {
  display: flex;
  flex-direction: center;
}

#application-form-header {
  text-align: center;
}

#about-us-section-why-choose-use-header {
  text-align: center;
}


.spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1em;
}

.confirmation {
  padding: 1em;
  background: #e6ffe6;
  border: 1px solid #0c0;
  border-radius: 4px;
  margin-top: 1em;
  text-align: center;
}

.error {
  text-align: center;
}

[x-cloak] {
  display: none !important;
}

.call-to-action-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
}

/* Desktop view */
@media (min-width: 768px) {
  body {
    scroll-padding-top: 100px;
  }

  .mobile-menu-panel.open {
    right: 0;
  }

  .hero {
    display: flex;
    align-items: center;
    height: initial;
    margin-top: 1rem;
  }

  .hero-image {
    /* height: 300px; */
  }

  .schools-we-service-section {
    display: flex;
    flex-direction: column;
    justify-items: center;
  }

  #schools-we-service-header {
    text-align: center;
  }

  #schools-we-service-list {
    margin-bottom: 5px;
    break-inside: avoid-column;
  }

  #schools-we-service-list-ul {
    flex-direction: row;
    padding: 0;
    margin: 0;
    column-count: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 1rem;
  }

  #schools-we-service-list-ul li {
    border-left: 4px solid var(--secondary-logo);
    background-color: var(--secondary-logo-opacity);
    border-radius: 4px;
    flex: 0 1 calc(33.333% - 1rem);
    min-width: 200px;
    padding: 10px;
    box-sizing: border-box;
    list-style: none;
    display: flex;
    align-items: center;
  }

  #contact-information {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }

  .contact-information-details {
    font-size: inherit;
  }

  footer {
    display: flex;
    flex-direction: column;
    background-color: var(--accent-dark);
    color: var(--primary);
    padding: 1rem;
    margin-top: 1rem;
  }

  #footer-details-section-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    align-items: flex-start;
  }

  #footer-rights {
    text-align: center;
  }

  #footer-socials {
    display: flex;
    gap: 1rem;
  }

  .footer-contact-details-section {
    max-width: 20rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-block: 1rem;
  }

  .footer-contact-details-section-header {
    text-align: center;
  }

  #footer-contact-details-address {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .icons-and-details-section {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .icons-and-details-section-details {
    color: inherit;
    text-decoration: inherit;
  }

  .icons-and-details-section-details:hover {
    color: var(--background);
  }

  #apply-form-section {
    padding-inline: 15rem;
  }
}

/* Landscape orientation */
@media screen and (orientation: landscape) {
  .menu-navigation {
    padding-bottom: 1rem;
    overflow-y: auto;
    max-height: 100%;
    min-height: 0;
  }
}