:root{
  --primary:#4f777b;
  --primary-dark:#3f6366;
  --background:#f4f7f7;
  --white:#ffffff;
  --text-dark:#2e3b3d;
  --text-muted:#5f7476;
  --accent:#c7bba4;
  --radius:18px;
  --shadow:0 20px 45px rgba(0,0,0,0.06);
}

/* =========================
   GLOBAL
========================= */
*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:'Open Sans', sans-serif;
  background:var(--background);
  color:var(--text-dark);
  line-height:1.7;
  animation: fadeInPage 0.4s ease-in;
}

@keyframes fadeInPage{
  from{ opacity:0; }
  to{ opacity:1; }
}

/* Global image safety */
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* Links */
a{
  color:var(--primary-dark);
  text-decoration:none;
}

a:hover{
  color:var(--primary);
}

/* =========================
   NAVIGATION
========================= */
nav{
  position:fixed;
  top:0;
  width:100%;
  z-index:1000;
  background:var(--primary-dark);
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

nav ul{
  list-style:none;
  display:flex;
  justify-content:center;
  gap:1.5rem;
  padding:0.9rem 0;
  margin:0;
}

nav a{
  position:relative;
  padding:0.5rem 1rem;
  border-radius:999px;
  font-weight:600;
  color:#fff;
  transition:all 0.25s ease;
}

nav a:hover{
  background:rgba(255,255,255,0.15);
}

/* Active page bubble */
nav a[aria-current="page"]{
  background:linear-gradient(135deg, var(--primary-dark), var(--primary));
  color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,0.15);
}

/* =========================
   HEADER / HERO
========================= */
header{
  background:linear-gradient(135deg,#5f8e92,#4f777b);
  color:#fff;
  text-align:center;
  padding:140px 20px 70px 20px;
}

header img{
  max-width:220px;
  margin:0 auto 18px auto;
}

header h1{
  font-size:2.25rem;
  max-width:900px;
  margin:0 auto 12px auto;
  font-weight:700;
}

header p{
  margin:0 auto;
  max-width:800px;
  font-size:1.05rem;
  opacity:0.92;
}

/* =========================
   MAIN LAYOUT
========================= */
main{
  max-width:1150px;
  margin:70px auto 80px auto;
  padding:0 20px;
}

/* =========================
   MODULE CARDS
========================= */
.module{
  background:var(--white);
  border-radius:var(--radius);
  padding:64px;
  margin-bottom:70px;
  box-shadow:var(--shadow);
}

.module-header{
  max-width:900px;
  margin-bottom:36px;
}

.module-header h2{
  font-size:2rem;
  margin:0 0 10px 0;
}

.module-header p{
  margin:0;
  color:var(--text-muted);
  font-size:1.05rem;
}

/* Grid inside module */
.module-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:56px;
  align-items:start;
  margin-bottom:30px;
}

.module-text h3{
  margin:22px 0 10px 0;
  font-size:1.15rem;
}

.module-text p{
  margin:0 0 14px 0;
  color:var(--text-muted);
}

.module-text ul{
  margin:10px 0 18px 0;
  padding-left:22px;
}

.module-text li{
  margin-bottom:10px;
}

/* =========================
   IMAGES
========================= */
.module-image{
  display:flex;
  justify-content:center;
}

.module-image img{
  max-width:460px;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

/* Profile image (About page) */
.profile-card{
  width:100%;
  max-width:460px;
  margin:0 auto;
}

.profile-photo{
  width:100%;
  height:auto;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

/* Deep content divider */
.module-deep{
  margin-top:34px;
  padding-top:22px;
  border-top:1px solid #e4ecec;
}

/* =========================
   CTA BUTTON
========================= */
.cta-button{
  display:inline-block;
  margin-top:14px;
  padding:12px 20px;
  background:var(--primary);
  color:#fff;
  border-radius:999px;
  font-weight:700;
  transition:background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover{
  background:var(--primary-dark);
  transform:translateY(-1px);
}

/* =========================
   FOOTER
========================= */
footer{
  background:var(--primary);
  color:#fff;
  text-align:center;
  padding:42px 20px;
  font-size:0.95rem;
}

/* =========================
   UTILITIES
========================= */
.page-header{
  padding-top:90px; /* fixed nav offset */
  text-align:center;
  margin-bottom:2rem;
}

.note{
  font-size:0.95rem;
  opacity:0.9;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.25rem;
  margin:1.25rem 0;
}

.callout{
  background:rgba(0,0,0,0.03);
  border-left:4px solid rgba(0,0,0,0.15);
  padding:1rem 1.25rem;
  border-radius:8px;
  margin:1.25rem 0;
}

.resource-list{
  list-style:none;
  padding-left:0;
}

.resource-list li{
  margin-bottom:0.9rem;
}

.resource-note{
  display:block;
  font-size:0.95rem;
  opacity:0.85;
  margin-top:0.2rem;
}

.outlink{
  font-weight:600;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 950px){

  nav ul{
    flex-wrap:wrap;
  }

  header{
    padding:125px 18px 58px 18px;
  }

  header h1{
    font-size:1.9rem;
  }

  .module{
    padding:44px;
  }

  .module-grid{
    grid-template-columns:1fr;
    gap:34px;
  }

  .module-image img{
    max-width:100%;
  }

  .profile-card{
    max-width:320px;
  }
}

@media (max-width: 900px){
  .grid-2{
    grid-template-columns:1fr;
  }
}