 
@import url('https://fonts.googleapis.com/css2?family=Baloo2:wght@600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --blue: #0e97e6;
  --yellow: #f4be00;
  --green: #5aa21f;
  --ink: #1f232b;
  --paper: #ffffff;
  --bg: #f7f8fa;
  --muted: #5f6674;
}

/* Footer styles */
.site-footer {
  background: #071827;
  color: #e6f7ff;
  padding: 2.25rem 0 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  padding: 1.1rem 0 1.6rem;
  align-items: start;
}

.footer-column h4 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: 1rem;
}

.footer-column p,
.footer-column a,
.footer-column li {
  color: rgba(230, 247, 255, 0.95);
  font-size: 0.95rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0.35rem 0;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.95;
}

.footer-links a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.footer-brand .brand-mark {
  box-shadow: none;
  border-color: transparent;
}

.footer-brand .brand-text small {
  color: rgba(230, 247, 255, 0.8);
}

.social-icons {
  display: flex;
  gap: 0.6rem;
  margin: 0.4rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e6f7ff;
  text-decoration: none;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.map-placeholder {
  margin-top: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.04);
  padding: 0.6rem;
  border-radius: 0.45rem;
  font-size: 0.9rem;
  color: rgba(230, 247, 255, 0.75);
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.9rem 0;
  margin-top: 1.2rem;
  background: transparent;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-bottom-row p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(230, 247, 255, 0.75);
}

.muted {
  color: rgba(230, 247, 255, 0.75);
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .social-icons {
    gap: 0.5rem;
  }
  .footer-column {
    padding-bottom: 0.6rem;
  }
}

/* Topbar styles */
.topbar {
  background: linear-gradient(90deg, rgba(6,55,86,0.98), rgba(10,105,160,0.98));
  color: #fff;
  font-size: 0.92rem;
}

.topbar-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.topbar-left {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.topbar-left,
.topbar-right {
  flex-shrink: 0;
}

.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.topbar-social:hover { background: rgba(255,255,255,0.12); }

.topbar-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.topbar-right { white-space: nowrap; }

.topbar-contact {
  color: #e9f8ff;
  text-decoration: none;
  font-weight: 600;
}

.topbar-contact:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .topbar-grid { flex-direction: column; align-items: center; gap: 0.45rem; }
  .topbar-right { gap: 0.6rem; }
}

@media (max-width: 420px) {
  .topbar-contact { font-size: 0.88rem; }
}

/* Masthead (topbar + header) sticky behavior */
.masthead {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(31, 35, 43, 0.08);
}

/* Reduce header rounded corners while in masthead so it meets the page edge */
.masthead .nav-wrap {
  margin-top: 0.6rem;
}

/* Compact masthead state (shrinks header on scroll) */
.masthead .nav-wrap {
  transition: padding 220ms ease, margin-top 220ms ease, box-shadow 220ms ease;
}
.masthead .brand-mark {
  transition: width 220ms ease, height 220ms ease, transform 220ms ease;
}
.masthead.compact .nav-wrap {
  padding: 0.45rem 1rem;
  margin-top: 0.35rem;
  box-shadow: 0 6px 12px rgba(31, 35, 43, 0.06);
}
.masthead.compact .brand-mark {
  width: 40px;
  height: 40px;
}
.masthead.compact .brand-text strong { font-size: 1rem; }


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(180deg, #f5f8fd 0%, #eef3fb 100%);
  border-bottom: 3px solid #e5e9ef;
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid #dde5f0;
  border-radius: 0.9rem;
  margin-top: 0.8rem;
  box-shadow: 0 6px 18px rgba(27, 44, 71, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--blue) 0 33%, var(--yellow) 33% 66%, var(--green) 66% 100%);
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.menu-toggle {
  display: none;
  border: 1px solid #cad5e5;
  border-radius: 0.45rem;
  background: #fff;
  padding: 0.35rem 0.6rem;
  font-size: 1.2rem;
}

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  font-weight: 600;
}

.menu a:hover,
.menu a:focus-visible {
  background: #e7f3ff;
  color: #0a67a0;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  position: absolute;
  top: calc(100%  0.25rem);
  left: 0;
  min-width: 170px;
  border-radius: 0.5rem;
  background: var(--paper);
  border: 1px solid #d8dee9;
  box-shadow: 0 8px 18px rgba(24, 36, 56, 0.14);
  display: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.language-switcher {
  display: inline-flex;
  gap: 0.4rem;
}

.lang-btn {
  border: 1px solid #c8d4e3;
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 0.32rem 0.65rem;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
}

.lang-btn:hover {
  background: #f5f8ff;
}

.lang-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 160px;
  border-radius: 0.5rem;
  background: var(--paper);
  border: 1px solid #d8dee9;
  box-shadow: 0 8px 18px rgba(24, 36, 56, 0.14);
  display: none;
  z-index: 1000;
}

.lang-dropdown.is-open {
  display: block;
}

.lang-option {
  display: block;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.lang-option:hover {
  background: #e7f3ff;
  color: #0a67a0;
}

.hero {
  padding: 2.2rem 1.4rem 2.4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #e8f5ff 0%, #e5f8ef 55%, #def4ec 100%);
  border: 1px solid #d6e9e3;
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(43, 92, 88, 0.08);
  margin-top: 1rem;
}

.hero-content {
  min-width: 0;
}

.hero-image-wrap {
  margin: 0;
  background: #fff;
  border: 1px solid #dbe3f0;
  border-radius: 1rem;
  padding: 0.9rem;
  box-shadow: 0 12px 25px rgba(23, 39, 65, 0.1);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.7rem;
}

.kicker {
  margin: 0;
  color: #0a67a0;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Ensure kicker stays small when promoted to h1 for semantics */
.hero .kicker {
  font-size: 0.86rem;
  margin-bottom: 0.6rem;
}

/* Keep the hero title visually large even when using h4 for semantics */
.hero h4 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.15;
  max-width: 18ch;
  font-family: 'Baloo 2', 'Poppins', 'Segoe UI', sans-serif;
}


h1,
h2,
h3 {
  font-family: 'Baloo 2', 'Poppins', 'Segoe UI', sans-serif;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.15;
  max-width: 18ch;
}

.hero p {
  max-width: 62ch;
  color: #334056;
  font-size: 1.07rem;
}

.btn {
  display: inline-block;
  margin-top: 0.8rem;
  text-decoration: none;
  color: #111;
  font-weight: 700;
  background: linear-gradient(90deg, var(--yellow), #ffc923);
  padding: 0.72rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid #dca600;
}

.section {
  padding: 2rem 0;
}

.about-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.about-visual-card,
.about-introduction-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-visual {
  min-height: 240px;
  border-radius: 0.75rem;
  border: 1px solid #d8e1ee;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 38%),
    linear-gradient(180deg, rgba(14, 151, 230, 0.94) 0 33%, rgba(244, 190, 0, 0.94) 33% 66%, rgba(90, 162, 31, 0.94) 66% 100%);
  position: relative;
  overflow: hidden;
}

.about-visual::before,
.about-visual::after {
  content: '';
  position: absolute;
  bottom: 14%;
  width: 70px;
  height: 120px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 34px 34px 22px 22px;
}

.about-visual::before {
  left: 20%;
  transform: rotate(-5deg);
}

.about-visual::after {
  right: 18%;
  transform: rotate(6deg);
}

.about-caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

h2 {
  margin-top: 0;
  font-size: 1.7rem;
}

.card {
  background: var(--paper);
  border: 1px solid #e2e6ee;
  border-radius: 0.85rem;
  padding: 1.15rem;
}

.service-grid,
.registration-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#services h3,
#registration h3 {
  margin-top: 0;
  color: #0d5d16;
}

#contact p {
  margin: 0.25rem 0;
}

@media (max-width: 920px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }

  nav {
    grid-column: 1 / -1;
  }

  .menu {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .language-switcher {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.35rem 1rem 1.5rem;
  }

  .hero-image-wrap {
    max-width: 560px;
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .menu-toggle {
    display: inline-block;
  }

  nav {
    grid-column: 1 / -1;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 0.5rem;
    padding: 0.4rem;
    margin-top: 0.35rem;
  }

  .menu.is-open {
    display: flex;
  }

  .menu li,
  .menu a {
    width: 100%;
  }

  .dropdown {
    position: static;
    margin-top: 0.2rem;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 0.6rem;
  }

  .language-switcher {
    justify-self: start;
    grid-column: 1 / -1;
    margin-top: 0.4rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   MODAL STYLES
   ===================== */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--paper);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideDown 0.3s ease-out;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
  user-select: none;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 700;
  word-break: break-word;
  padding-right: 2rem;
}

/* =====================
   FORM STYLES
   ===================== */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e3e8;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--paper);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 151, 230, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-group select {
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-primary {
  background-color: var(--blue);
  color: white;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1;
}

.btn-primary:hover {
  background-color: #0c7ec1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 151, 230, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 2px solid #e0e3e8;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--muted);
  background-color: #f7f8fa;
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  animation: slideDown 0.3s ease-out;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* =====================
   RESPONSIVE MODAL
   ===================== */

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
    margin: 1rem;
  }

  .modal-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
