/* Base styling */
:root {
  --bg: #f5f7fb;
  --text: #1a2236;
  --muted: #5f6f8a;
  --primary: #0D2C54;
  --primary-2: #0A1F3C;
  --white: #ffffff;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
  padding: 2rem 0;
}

.site-header {
  background: var(--primary);
  border-bottom: 1px solid #0A1F3C;
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
}

.site-nav a {
  margin-left: 1.2rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: #B0BEC5;
}

.hero {
  background: linear-gradient(135deg, #0D2C54 0%, #0A1F3C 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  border-radius: 14px;
  margin: 2rem auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero p {
  margin: 1rem 0 1.8rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  transition: transform 120ms ease, background-color 120ms ease;
}

.btn:hover,
.btn:focus {
  background: #0A1F3C;
  transform: translateY(-1px);
}

.highlight-grid,
.services-grid,
.contact-grid,
.mission-grid {
  display: grid;
  gap: 1.25rem;
}

.highlight-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.core-values {
  margin: 3rem auto;
  max-width: 1100px;
}

.core-values h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.values-grid article {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.values-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.values-grid h3 {
  margin: 0.5rem 0 0.75rem;
  color: var(--primary);
}

.values-grid p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.mission-vision {
  width: 100%;
  background: #fff;
  padding: 3rem 0;
  margin: 2.25rem 0;
}

.mission-wrapper {
  width: min(1100px, 96vw);
  margin: 0 auto;
}

.mission-vision h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.mission-grid {
  grid-template-rows: auto;
  gap: 1.5rem;
}

.mission-grid article {
  background: #f9fcff;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  align-items: stretch;
  min-height: 280px;
}

.mission-grid article.reverse {
  direction: rtl;
}

.mission-grid article.reverse .image-half,
.mission-grid article.reverse .text-half {
  direction: ltr;
}

.image-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.text-half {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-half h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.text-half p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .mission-grid article {
    grid-template-columns: 1fr;
  }

  .mission-grid article.reverse {
    direction: ltr;
  }

  .text-half {
    padding: 1.25rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}


.highlight-grid article,
.services-grid article,
.contact-grid > div {
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.page-title h1,
.intro-section h2,
.testimonials h2 {
  margin-top: 0;
}

.intro-section {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.testimonials blockquote {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--primary);
  background: #f1f6fd;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.resource-grid {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.resource-card h3 {
  margin-top: 0;
  color: var(--primary);
}

.resource-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.resource-card li {
  margin-bottom: 0.65rem;
}

.resource-card a {
  color: var(--primary);
  text-decoration: none;
}

.resource-card a:hover {
  text-decoration: underline;
}

.team-section {
  margin: 3rem 0;
}

.team-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 120ms ease, box-shadow 120ms ease;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f9fcff;
}

.team-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.team-info {
  flex: 1;
}

.team-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: var(--primary);
}

.team-info .role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.expand-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 120ms ease;
}

.expand-btn:hover {
  background: #0A1F3C;
}

.team-bio-hidden {
  display: none;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.modal-content {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 120ms ease;
}

.modal-close:hover {
  background: #0A1F3C;
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 2rem;
  background: #f9fcff;
  gap: 1.5rem;
}

.modal-header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.modal-info h2 {
  margin: 0 0 0.5rem 0;
  color: var(--primary);
}

.modal-info .role {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.modal-body {
  padding: 2rem;
  line-height: 1.8;
  color: var(--text);
}

.modal-body p {
  margin: 0;
}

@media (max-width: 600px) {
  .modal-header {
    flex-direction: column;
    text-align: center;
  }

  .modal-header img {
    width: 80px;
    height: 80px;
  }

  .modal-content {
    max-width: 95vw;
  }
}


input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #c6d0e1;
  border-radius: 8px;
  font: inherit;
}

label {
  font-weight: 600;
}

.site-footer {
  background: #0D2C54;
  color: white;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.footer-address {
  font-size: 0.7rem;
  color: #B0BEC5;
  line-height: 1.4;
}

.footer-address p {
  margin: 0;
}

.footer-nav a {
  color: #B0BEC5;
  margin-left: 1rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: white;
}

@media (max-width: 830px) {
  .site-header .container,
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
  .site-nav a {
    margin: 0.5rem;
    display: inline-block;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
