@import url("https://fonts.googleapis.com/css2?family=Lato:wght@100;400;700&display=swap");

:root {
  --dx-primary: #327179;
  --dx-mint: #e6f4f1; /* icy mint-blue */
}

*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
  font-weight: 400;
}

svg,
img {
  height: 100%;
  width: 100%;
}

a {
  -webkit-tap-highlight-color: transparent; /* For iOS and older Android browsers */
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  overflow-x: hidden;
  line-height: 1.6;
  word-spacing: 0.6px;
}

.facebook-link {
  height: 6rem;
  border-radius: 3rem;
}

/* HEADER START  -----------------------------------------------------------------------------------------------*/

header {
  height: 7.5rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.25px inset;
}

.primary-navigation {
  list-style: none;
  font-size: 15px;
  margin-right: 3rem;
  margin-left: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 4.5rem;
  gap: var(--gap, 10px);
}

.primary-navigation a {
  text-decoration: none;
  color: black;
}

/* LOGO START  -----------------------------------------------------------------------------------------------*/

.logo-wrapper {
  max-height: 123px;
}

.svg-logo {
  max-height: 115px;
  min-width: 200px;
  width: 100%;
  height: 100%;
}

/* Default circle color */
.svg-logo .st0 {
  fill: #327179; /* Original blue */
  transition: fill 0.2s ease-in-out;
}

/* Hover color change */
.svg-logo:hover .st0 {
  fill: #f8f8f8 !important; /* New color on hover */
}

/* Hover color change */
.svg-logo:hover .st1 {
  fill: #327179 !important; /* New color on hover */
}

/* LOGO END  -----------------------------------------------------------------------------------------------*/

.header-separator {
  color: black;
}

header .primary-navigation a {
  position: relative;
}
header .primary-navigation a:after {
  content: "";
  position: absolute;
  background-color: black;
  height: 1px;
  width: 100%;
  left: 0;
  bottom: -1px;
  background-color: black;
  opacity: 0;
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}

header .primary-navigation a:hover:after {
  opacity: 1;
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 1017px) {
  .primary-navigation {
    font-size: 11px;
  }

  .svg-logo {
    max-height: 95px;
  }
}

@media (max-width: 845px) {
  .header-separator {
    display: none;
  }

  /* Body locked when nav is open */
  body.nav-open {
    overflow: hidden;
  }

  /* Off-canvas navigation, sliding panel (right side) */
  .primary-navigation {
    position: fixed;
    inset: 0 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.2rem;

    padding: 6rem 2rem 2rem; /* space for header / logo */
    margin: 0;

    background: var(--dx-primary);
    backdrop-filter: blur(1rem);

    transform: translateX(100%);
    transition: transform 2s ease-out;

    z-index: 1001;
  }

  .primary-navigation li {
    list-style: none;
  }

  .primary-navigation a {
    text-decoration: none;
    color: #111827;
    font-size: 0.95rem;
  }

  .primary-navigation[data-visible="false"] {
    display: none;
  }

  .primary-navigation[data-visible="true"] {
    display: flex;
    transform: translateX(0);
  }

  .svg-logo {
    max-height: 95px;
  }

  /* Mobile toggle button – same vibe as admin one */
  .mobile-nav-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1102;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 244, 241, 0.7);
    background: var(--dx-primary);
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 20px rgba(5, 28, 31, 0.35);
    transition: background 0.18s ease, box-shadow 0.18s ease,
      transform 0.1s ease;
  }

  .mobile-nav-toggle:hover {
    background: #27565c;
    box-shadow: 0 0 0 1px rgba(230, 244, 241, 0.35),
      0 12px 24px rgba(5, 28, 31, 0.45);
  }

  .mobile-nav-toggle:active {
    transform: scale(0.95);
    box-shadow: none;
  }

  /* Hide contact icon in very small header */
  .mail-icon {
    display: none;
  }

  /* Hide toggle when menu is open (like admin) */
  body.nav-open .mobile-nav-toggle {
    display: none;
  }
}

/* Overlay for landing nav */
.nav-overlay {
  display: none;
}

@media (max-width: 845px) {
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.nav-open .nav-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

/* HEADER ENDS  -----------------------------------------------------------------------------------------------*/

/* FOOTER START  -----------------------------------------------------------------------------------------------*/

footer {
  margin-top: auto;
  margin-bottom: 0;
  background: #ebeced;
  font-family: "Poppins", sans-serif;
}

footer .secondary-navigation a {
  position: relative;
}
footer .secondary-navigation a:after {
  content: "";
  position: absolute;
  background-color: black;
  height: 1px;
  width: 100%;
  left: 0;
  bottom: -1px;
  opacity: 0;
  background-color: black;
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}

footer .secondary-navigation a:hover:after {
  opacity: 1;
}

.footer-titles {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: black;
}

.footer-nav {
  margin-top: 1rem;
  margin-left: 1.5rem;
  margin-right: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 14px;
}

.secondary-navigation {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap, 1rem);
}

#secondary-navigation-first-column {
  margin-left: 3rem;
}

.follow-us {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-right: 2rem;
}

.follow-us-svg {
  text-decoration: none;
  height: 20px;
  margin-top: 1rem;
}

.follow-us-svg:hover {
  fill: #cedff0;
}

.secondary-navigation a {
  text-decoration: none;
  color: black;
}

.copyright-container {
  border-top: 0.25px inset #ebeced;
  margin-top: 1rem;
}

.copyright {
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: 10rem;
}

@media (max-width: 50em) {
  .footer-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .copyright {
    margin-left: 2.5rem;
  }
  #secondary-navigation-first-column {
    margin-left: 0;
  }
  .follow-us {
    margin-right: 0;
  }
}

/* Safari-specific SVG width adjustment */
body.safari .follow-us img {
  width: auto; /* Adjust as needed for Safari */
}

body.safari .primary-header {
  border-bottom: 0.25px inset black;
}

@media (max-width: 845px) {
  .header-separator {
    display: none;
  }

  /* Lock body scroll when nav is open */
  body.nav-open {
    overflow: hidden;
  }

  /* Off-canvas navigation – same feel as admin sidebar */
  .primary-navigation {
    position: fixed;
    inset: 0 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.2rem;

    padding: 6rem 2rem 2rem; /* space for header / logo */
    margin: 0;

    /* SAME STYLE AS ADMIN SIDEBAR */
    background: linear-gradient(
      160deg,
      var(--dx-primary) 0%,
      rgba(50, 113, 121, 0.96) 40%,
      rgba(50, 113, 121, 0.85) 100%
    );
    color: #ffffff;
    backdrop-filter: blur(1rem);

    transform: translateX(100%);
    transition: transform 0.25s ease-out;

    z-index: 1001;
  }

  .primary-navigation li {
    list-style: none;
  }

  .primary-navigation a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.95rem;
  }

  /* Use transform only – no display: none so it can animate smoothly */
  .primary-navigation[data-visible="false"] {
    transform: translateX(100%);
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0);
  }

  .svg-logo {
    max-height: 95px;
  }

  /* Mobile toggle button – mirror admin button style */
  .mobile-nav-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1102;

    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 244, 241, 0.7);
    background: var(--dx-primary);
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 20px rgba(5, 28, 31, 0.35);
    transition: background 0.18s ease, box-shadow 0.18s ease,
      transform 0.1s ease;
  }

  .mobile-nav-toggle:hover {
    background: #27565c;
    box-shadow: 0 0 0 1px rgba(230, 244, 241, 0.35),
      0 12px 24px rgba(5, 28, 31, 0.45);
  }

  .mobile-nav-toggle:active {
    transform: scale(0.95);
    box-shadow: none;
  }

  /* Hide contact icon in very small header */
  .mail-icon {
    display: none;
  }

  /* Hide toggle when menu is open (like admin) */
  body.nav-open .mobile-nav-toggle {
    display: none;
  }

  /* Overlay for landing nav */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* Safari: ensure same style, not #ebeced */
  body.safari .primary-navigation {
    background: linear-gradient(
      160deg,
      var(--dx-primary) 0%,
      rgba(50, 113, 121, 0.96) 40%,
      rgba(50, 113, 121, 0.85) 100%
    );
  }
}

/* FOOTER ENDS  -----------------------------------------------------------------------------------------------*/

main {
  background: white;
}

/* ALL PAGE TITLES  -----------------------------------------------------------------------------------------------*/

/* ==== PAGE WRAPPER ==== */

.page-title {
  position: relative;
  max-width: 1200px;
  margin: 2.5rem auto 3rem;
  padding: 2rem 2rem 3rem;
  border-radius: var(--dt-radius-lg);
  overflow: hidden;
  color: white;
  box-shadow: var(--dt-shadow-soft);

  background-color: var(--dx-primary);
  /* background-image:
    radial-gradient(
      circle at 0% 0%,
      rgba(230, 244, 241, 0.8) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(62, 140, 120, 0.6) 0%,
      transparent 60%
    ),
    linear-gradient(135deg, rgba(50, 113, 121, 0.95), rgba(62, 140, 120, 0.9));
  background-blend-mode: screen, soft-light, normal; */
}

/* animated glow ring around the hero card */
/* .page-title::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(
    from 200deg,
    rgba(230, 244, 241, 0.4),
    rgba(62, 140, 120, 0.1),
    transparent,
    rgba(50, 113, 121, 0.35),
    rgba(230, 244, 241, 0.4)
  );
  opacity: 0.7;
  mix-blend-mode: soft-light;
  animation: dt-orbit 16s linear infinite;
  pointer-events: none;
} */

/* hero title */
.page-title-text {
  font-family: "Lato", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 1470px) {
  .page-title-text {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 900px) {
  .page-title-text {
    padding: 0.1rem 0.1rem 0.1rem;
    font-size: 1rem;
  }
}

/* ALL PAGE TITLE ENDS  -----------------------------------------------------------------------------------------------*/

/* BUTTONS GENERIC STARTS -----------------------------------------------------------------------------------------------*/

/* ========== Button ========== */
.button-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.button-content {
  background-color: var(--dx-primary);
  border: none;
  color: white;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 2rem;
  margin-left: 0.15rem;
  transition: background 0.3 ease;
}

.button-full {
  min-width: 100%;
}

/* BUTTONS GENERIC ENDS -----------------------------------------------------------------------------------------------*/
