/* ──────────────── GLOBAL STYLES ──────────────── */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f5f8fa;
  color: #002b5b;
  overflow-x: hidden;
}

:root {
  --primary-color: #002b5b;
  --accent-color: #00a86b;
  --background-light: #f5f8fa;
  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

/* ──────────────── GLOBAL STYLES ──────────────── */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--background-light);
  color: var(--primary-color);
  overflow-x: hidden;
}

/* ──────────────── HEADER & NAVIGATION ──────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 43, 91, 0.1);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate hamburger into X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation menu */
.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  padding: 8px 12px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--accent-color);
}

/* ──────────────── HERO SECTION ──────────────── */
.hero {
  width: 100vw;
  height: 100vh;
  background-image: url('images/Earth_night.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 43, 91, 0.35);
  z-index: 1;
}

.hero-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.2;
  margin: 0;
}

.hero-text p {
  margin-top: 12px;
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  line-height: 1.4;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeInUp 1.4s ease-out;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.primary {
  background-color: #0077cc;
  color: #fff;
}

.secondary {
  background-color: #00aa88;
  color: #fff;
}

.btn:hover {
  opacity: 0.9;
}

/* ──────────────── MOBILE STYLES ──────────────── */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #222;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease forwards;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu a {
    color: #fff;
    padding: 12px 20px;
    border-bottom: 1px solid #444;
    text-align: left;
    white-space: normal;
  }

  .nav-menu a:hover {
    background-color: #111;
    color: var(--accent-color);
  }
}

/* Dropdown animation */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ──────────────── SECTION STYLING ──────────────── */
section:not(.hero):not(.services-section) {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

section p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 20px;
}

/* ──────────────── LEADERSHIP SECTION ──────────────── */
/* Leadership Section Styles */
#leadership .container {
  padding: 40px 20px;
}

#leadership h2 {
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
}

.leadership-section {
  margin-top: 20px;
}

.leadership-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

/* Leader Card Layout */
.leader-image,
.leader-text {
  min-width: 280px;
}

.leader-image {
  flex: 1;
  text-align: center;
}

.leader-text {
  flex: 2;
}

/* Leader Photo Styling */
.leader-image img,
.leader-card img {
  width: 100%;
  max-width: 300px;
  max-height: 300px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leader-image img:hover {
  transform: scale(1.05);
}

/* Caption Text */
.caption {
  font-size: 0.95rem;
  color: #555;
  margin-top: 10px;
}

/* ──────────────── SERVICES SECTION ──────────────── */
.services-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #0a0f2c, #000);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.services-section .container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

/* Tablet view: 2x2 */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile view: 1x4 */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────── FOOTER ──────────────── */
footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #002b5b;
  color: #fff;
}

/* ──────────────── CONTACT SECTION ──────────────── */
#contact {
  background-color: #f5f5f5;
  padding: 100px 20px;
}

#contact h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #002b5b;
}

.contact-form {
  background: #fff;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 43, 91, 0.08);
  margin: 0 auto;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #002b5b;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0077ff;
  box-shadow: 0 0 6px rgba(0, 119, 255, 0.2);
  outline: none;
}

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

/* Captcha group */
.form-group.captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

/* Submit button */
.submit-btn {
  padding: 15px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, #00f0ff, #0077ff);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 119, 255, 0.3);
}

/* Disclaimer text */
.form-disclaimer {
  margin-top: 25px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-form {
    padding: 30px 20px;
  }

  #contact h2 {
    font-size: 1.8rem;
  }
}

/* ──────────────── BLOG POST LIST STYLES ──────────────── */
#post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ──────────────── INDIVIDUAL POST PREVIEW ──────────────── */
.post-preview {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1rem;
}

.post-preview h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-preview p {
  font-size: 1rem;
  color: #555;
}

/* ──────────────── BLOG CONTENT AREA ──────────────── */
#content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 2rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* ──────────────── BLOG POST TITLE ──────────────── */
#content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* ──────────────── BLOG POST METADATA ──────────────── */
.post-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 2rem;
}

/* ──────────────── BLOG POST BODY ──────────────── */
.post-body p {
  margin-bottom: 1.5rem;
}

.post-body img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 6px;
}

/* ──────────────── BLOG POST LINKS ──────────────── */
.post-body a {
  color: #0077cc;
  text-decoration: underline;
}

.post-body a:hover {
  color: #005fa3;
}
