body {
  font-weight: var(--font-weight-body);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
}

/* NAVIGATION - v0.1 */

.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
  color: var(--color-text);
}

.nav-brand a {
  text-decoration: none;
  color: inherit;
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
}

.nav-brand-link {
  display: flex;
  align-items: center;
  vertical-align: center;
  gap: var(--space-2);
  color: inherit;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: var(--space-4);
  display: none; /* hidden on mobile */
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  flex-direction: column;
  z-index: 99;
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.nav-links-footer {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  right: auto !important;
  top: auto !important;
  flex-direction: column !important;
}

.nav-links li {
  display: block;
  margin: 0;
  padding: var(--space-2) 0;
  border-bottom: 1px solid #e0e0e0;
}

.nav-links li:first-child {
  padding-top: var(--space-8);
}

.nav-links.nav-links-footer li {
  display: block !important;
  margin: var(--space-1) 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: var(--font-size-body);
  color: inherit;
}

/* hamburger icon block */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: block;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  padding-top: 0.75rem;
  z-index: 100;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: currentColor;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  top: -6px;
}

.nav-toggle-label span::after {
  top: 6px;
}

/* show menu when checked */
.nav-toggle:checked ~ .nav-links {
  display: flex;
  right: 0;
}

/* optional: add overlay when menu is open */
.nav-toggle:checked ~ .nav-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 98;
}

.nav-overlay {
  display: none;
}

h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-heading);
  margin-bottom: var(--space-2);
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-heading);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-heading);
  margin-bottom: var(--space-2);
}

p {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  text-align: justify;
}

.hero h1.hero-title {
  color: var(--color-text);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-h1);
  margin: 0;
}

.hero p.hero-subtitle {
  color: var(--color-font-text);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-body);
  text-align-last: center;
}

/* HERO SECTION */

.row.hero {
  position: relative;
  min-height: calc(100vh) /* - 190px */;
  display: flex;
  overflow: hidden;
  color: white; /* safe default, can be overridden */
}

.row.hero.hero-small {
  min-height: 80vh;
}

.pad-0 {
  padding: var(--space-0) !important;
}
.pad-1 {
  padding: var(--space-1) !important;
}
.pad-2 {
  padding: var(--space-2) !important;
}
.pad-3 {
  padding: var(--space-3) !important;
}
.pad-4 {
  padding: var(--space-4) !important;
}
.pad-8 {
  padding: var(--space-8) !important;
}

.pad-t-8 {
  padding-top: var(--space-8) !important;
}

/* background image wrapper */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

/* content layer */
.hero-contents {
  position: absolute;
  top: 200px;
  z-index: 50;
  max-width: 900px;
  padding: var(--space-4);
}

.hero-contents.hero-contents-wide {
  max-width: 1200px;
  width: 100%;
}

/* CTA button (very minimal) */
.btn {
  display: inline-block;
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  border-radius: 8px;
  font-size: var(--font-size-body-highlight);
  cursor: pointer;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
  border: none;
}

.dark {
  background-color: var(--color-accent);
  color: var(--color-font-accent);
}

.dark,
.dark p,
.dark a {
  color: var(--color-font-accent);
}

.dark .btn {
  background: #ffffff;
  color: var(--color-accent);
}

.dark .btn:hover {
  opacity: 0.9;
}

/* optional overlays */

/* static overlay that spans 100% of its parent regardless of its size and doesn't rearrange other elements*/
.overlay-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  pointer-events: none; /* allows clicks to pass through */
  background: transparent;
}

.overlay-gradient-bottom {
  /* gradient from the bottom from colour 00003b to transparent over 100 px*/
  background: linear-gradient(to top, #00003b, #00000005 200px) !important;
}

.overlay-gradient-bottom-medium {
  /* gradient from the bottom from colour 00003b to transparent over 100 px*/
  background: linear-gradient(to top, #00003b, #00000005 200px) !important;
}

.overlay-gradient-bottom-small {
  /* gradient from the bottom from colour 00003b to transparent over 100 px*/
  background: linear-gradient(to top, #00003b, #00000005 125px) !important;
}

.overlay-gradient-top {
  /* gradient from the top from colour 00003b to transparent over 100 px*/
  background: linear-gradient(to bottom, #00003b, #00000005 200px) !important;
}

.section-contents.has-overlay {
  position: relative;
  z-index: 2;
}

.tiles-img {
  width: 100%;
  max-height: 300px;
  min-height: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
}

.tiles-meta {
  font-size: var(--font-size-small);
  margin: 0;
  color: #666666;
}

.tiles-title {
  margin-bottom: 0;
}

.tiles-title.tiles-title-twoline {
  min-height: 3em; /* ensures at least 2 lines of text */
}

.tiles-text {
  text-align: justify !important;
  word-wrap: break-word;
  word-break: normal;
}

.footer-link {
  text-decoration: none;
  color: inherit;
}

.footer p,
.footer h3 {
  font-family: var(--font-heading);
  margin: var(--space-1) 0;
}

.footer p,
.footer li,
.footer a {
  color: var(--color-text-footer);
}

/* CONTACT FORM - v0.1 */

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-2);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

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

.form-group select {
  background-color: #ffffff;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/csvg%3e");
  background-repeat: no-repeat;
  background-position: right var(--space-2) center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-group select option {
  background-color: #ffffff;
  color: var(--color-text);
  padding: var(--space-2);
}

.form-group select option:checked {
  background-color: #e8e8e8;
  background-image: linear-gradient(#e8e8e8, #e8e8e8);
}

/* Days Selector - Checkbox based */
.days-selector {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}

.days-selector input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.days-selector label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--color-accent);
  background-color: #ffffff;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: var(--font-size-body-highlight);
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  user-select: none;
}

.days-selector label:hover {
  opacity: 0.8;
}

.days-selector input[type="checkbox"]:checked + label {
  background-color: var(--color-accent);
  color: #ffffff;
}

.days-selector input[type="checkbox"]:focus + label {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.days-selector input[type="checkbox"]:disabled + label {
  background-color: #f5f5f5;
  color: #cccccc;
  border-color: #e0e0e0;
  cursor: not-allowed;
  opacity: 0.6;
}

.days-selector input[type="checkbox"]:disabled:checked + label {
  background-color: #e0e0e0;
  color: #aaaaaa;
  border-color: #cccccc;
}

/* ALERTS - v0.1 */

.alert {
  padding: var(--space-3);
  border-radius: 8px;
  margin-bottom: var(--space-4);
  border: 1px solid;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.alert p {
  margin: 0;
}

/* CONTACT INFO - v0.1 */

.contact-info {
  text-align: left;
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin: var(--space-2) 0;
  font-size: var(--font-size-body-highlight);
}

.contact-info li a {
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* MAP CONTAINER - v0.1 */

.col-map {
  min-height: 400px;
}

.col-footer {
  margin-bottom: var(--space-2);
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 600px;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* HERO SIMPLE VARIANT - v0.1 */

.hero-simple {
  min-height: 300px;
  background-color: var(--color-bg);
  padding: var(--space-3) var(--space-3);
}

.hero-simple .hero-contents {
  max-width: 800px;
  margin: 0 auto;
}

.hero-simple h1 {
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.hero-simple p {
  font-size: var(--font-size-h3);
  color: var(--color-text);
}

.hero-logo {
  margin-top: -4rem;
  margin-bottom: var(--space-2);
}

/* FAQ - v0.1 */

.faq-item {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.faq-item p {
  margin-bottom: 0;
  color: var(--color-text);
}

/* EDUCATION GRID - v0.1 */

.section-intro {
  text-align: center;
  font-size: var(--font-size-body-highlight);
  max-width: 700px;
  margin: 0 auto var(--space-5);
  color: inherit;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 1200px;
  margin: 0 auto;
}

.education-card {
  background: #1a1a4fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: var(--space-4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.education-card-featured {
  background: #1a1a4fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.education-card h3 {
  font-size: var(--font-size-h3);
  margin-bottom: var(--space-2);
  color: #fff;
  line-height: 1.4;
}

.education-card .institution {
  font-family: var(--font-heading);
  font-size: var(--font-size-body);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-1);
}

.education-card .institution a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.education-card .institution a:hover {
  color: #fff;
}

.education-card .instructor {
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin: 0;
}

/* Responsive grid */
@media (min-width: 600px) {
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .education-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links li {
    display: inline-block;
    margin: 0 0 0 var(--space-3);
    padding: 0;
    border-bottom: none;
  }

  .nav-links li:first-child {
    padding-top: 0;
  }

  .nav-overlay {
    display: none !important;
  }

  .education-card-featured {
    grid-column: 1 / -1;
  }
}

/* DESKTOP >=800px */
@media (min-width: 800px) {
  .nav-toggle-label {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    transition: none;
    color: inherit;
    right: auto;
    top: auto;
  }

  .nav-links li {
    display: inline-block;
    margin: 0 0 0 var(--space-3);
    padding: 0;
    border-bottom: none;
  }

  .nav-links li:first-child {
    padding-top: 0;
  }

  .nav-links-footer {
    display: block;
  }

  .nav-links-footer li {
    display: block;
    margin: var(--space-1) 0 !important;
    padding: 0 !important;
    border-bottom: none;
  }

  .nav-overlay {
    display: none !important;
  }

  .pad-md-2 {
    padding: var(--space-2) !important;
  }

  .pad-md-4 {
    padding: var(--space-4) !important;
  }

  .pad-md-8 {
    padding: var(--space-8) !important;
  }
}

.google-map-iframe {
  border: 0;
}

@media screen and (max-width: 800px) {
  .google-map-iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 600px;
  }

  p,
  p.align-center {
    text-align: justify;
  }

  .tiles-img {
    height: unset;
    min-height: unset;
  }

  .days-selector label {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

.tiles-img.img-obj-pos-bottom {
  object-position: bottom;
}

.font-force-light {
  color: var(--color-font-accent) !important;
}
