/* =========================================================
   GLOBAL RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}


/* =========================================================
   HEADER AND NAVIGATION
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.nav,
.nav-container {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}


/* Logo link containers */

.brand,
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}


/* Important logo-size correction */

.brand img,
.logo img,
.site-header .brand img,
.site-header .logo img,
.site-header img.logo {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
  object-fit: contain;
  display: block;
}


/* Navigation used on Home and Articles pages */

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  position: relative;
  padding: 9px 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0d6f73;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #0d6f73;
}


/* Navigation used on the existing About page */

.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  position: relative;
  padding: 9px 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #0d6f73;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #0d6f73;
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
  padding: 70px 0;
  text-align: center;
  background:
    linear-gradient(
      135deg,
      #e8f5f4,
      #ffffff
    );
}

.page-hero h1 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.15;
}

.page-hero p {
  max-width: 850px;
  margin: 0 auto;
  color: #475569;
  font-size: 18px;
  line-height: 1.7;
}


/* =========================================================
   STANDARD SECTIONS
========================================================= */

.section {
  padding: 75px 0;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1.25;
}

.section-heading p {
  margin-bottom: 15px;
  color: #475569;
  font-size: 17px;
  line-height: 1.8;
}

.eyebrow,
.small-label {
  display: block;
  margin-bottom: 15px;
  color: #0d6f73;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* =========================================================
   STANDARD CARDS
========================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.card {
  min-width: 0;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #dce9e7;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(20, 67, 73, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(20, 67, 73, 0.12);
}

.card h3 {
  margin-bottom: 10px;
  color: #0f172a;
}

.card p {
  margin-bottom: 10px;
  color: #475569;
  line-height: 1.7;
}


/* =========================================================
   ARTICLE IMAGES
========================================================= */

.article-image {
  width: 100%;
  height: 190px;
  margin-bottom: 18px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  background: #eef7ff;
}

.article-card-title {
  color: #00796b !important;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: #0d6f73;
}

.btn-primary:hover {
  background: #084e56;
}

.btn-secondary {
  color: #0d6f73;
  background: #ffffff;
  border: 1px solid #0d6f73;
}

.btn-secondary:hover {
  color: #ffffff;
  background: #0d6f73;
}


/* =========================================================
   ABOUT PAGE
========================================================= */

.about-page {
  background: #f7faf9;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 55px;
  align-items: center;
}

.about-photo {
  width: 100%;
}

.about-photo img {
  width: 100%;
  max-width: 360px;
  height: 450px;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(20, 67, 73, 0.15);
}

.about-text {
  max-width: 900px;
}

.about-text h2 {
  margin-bottom: 20px;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.25;
}

.about-text p {
  margin-bottom: 20px;
  color: #475569;
  font-size: 17px;
  line-height: 1.85;
}

.mission-section {
  background: #f2f8f7;
}

.mission-box {
  max-width: 900px;
  padding: 45px;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #0b5f66,
      #0f807e
    );
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(20, 67, 73, 0.14);
}

.mission-box h2 {
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 2.2rem;
}

.mission-box p {
  color: #e5f6f5;
  font-size: 1.08rem;
  line-height: 1.8;
}


/* =========================================================
   ARTICLE HERO BANNER
========================================================= */

.page-hero-banner {
  width: 100%;
  margin: 0 auto 40px;
}

.hero-banner {
  width: 100%;
  max-width: 1200px;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 35px 0;
  color: #ffffff;
  background: #0f172a;
}

.footer-content {
  text-align: center;
}

.footer-content h3 {
  margin-bottom: 6px;
}

.footer-content p {
  margin: 5px 0;
  color: #e2e8f0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    max-width: 330px;
    height: 400px;
  }
}


/* =========================================================
   MOBILE NAVIGATION AND LAYOUT
========================================================= */

@media (max-width: 900px) {
  .nav,
  .nav-container {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .brand img,
  .logo img,
  .site-header .brand img,
  .site-header .logo img,
  .site-header img.logo {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
  }

  .nav-links,
  .main-nav ul {
    justify-content: center;
    gap: 10px 16px;
  }

  .nav-links a,
  .main-nav a {
    font-size: 14px;
  }

  .page-hero {
    padding: 55px 0;
  }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 650px) {
  .container {
    width: 92%;
  }

  .section {
    padding: 55px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .page-hero p {
    font-size: 16px;
  }

  .about-photo img {
    height: 360px;
  }

  .mission-box {
    padding: 35px 22px;
  }

  .mission-box h2 {
    font-size: 1.9rem;
  }
}