/* =====================
    GLOBAL RESET & VARIABLES
    ===================== */
:root {
  --primary:#0b3f2e;        /* KCYA deep civic green */
  --secondary:#f2f7f5;     /* soft institutional background */
  --accent:#1fa67a;       /* youth energy green */
  --gold:#f5c76b;         /* leadership, impact, credibility */
  --text-dark:#0f172a;    /* authority */
  --text-light:#475569;   /* professional reading tone */
  --max-width:1200px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* =====================
    LAYOUT UTILITIES
    ===================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 3rem 0;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2{grid-template-columns:1fr}
.grid-3{grid-template-columns:1fr}
.grid-5{grid-template-columns:1fr 1fr}

@media(min-width:640px){
    h1{font-size:2.5rem}
    h2{font-size:2rem}
    .section{padding:4rem 0}
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* =====================
    TYPOGRAPHY
    ===================== */
h1, h2, h3 {
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Responsive text sizes for leader names and roles on smaller screens */
@media (max-width: 767px) {
    .leader-card h3 { font-size: 1.125rem; }
    .leader-card h4 { font-size: 1rem; }
    .leader-card span { font-size: 0.8rem; }
}

@media (max-width: 639px) {
    .leader-card h3 { font-size: 1rem; }
    .leader-card h4 { font-size: 0.875rem; }
    .leader-card span { font-size: 0.75rem; }
}

/* =====================
    BUTTONS
    ===================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: #0b2e23;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* =====================
    HEADER
    ===================== */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 100px;
    width: auto;
    /* width: 2.5rem;
    height: 2.5rem; */
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    /* leading-tight: 1.25; */
}

.logo-title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    /* tracking-tight: -0.025em; */
    color: var(--primary);
}

.logo-subtitle {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.nav-links {
    display: none;
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
}

.nav-links a {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.nav-links.open {
    display: flex;
}

.nav-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links a,
.btn {
  min-height: 44px;
  display: flex;
  align-items: center;
}


/* @media(min-width:768px){
    .nav-links{display:flex;position:static;flex-direction:row;gap:2rem}.nav-toggle{display:none}
} */


.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav {
    position: static;
    }

    .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: auto;
    border: none;
    }

    .nav-links a {
    border: none;
    padding: 0;
    }

    .nav-toggle {
    display: none;
    }

    .header-cta {
    display: inline-block;
    }
}

/* =====================
    HERO SECTION
    ===================== */
.hero {
    background: var(--secondary);
    padding: 3rem 0;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -10;
    opacity: 0.1;
    pointer-events: none;
}

.hero-bg img {
    width: 300px;
    height: auto;
    transform: rotate(12deg);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero .grid {
  align-items: center;
}

@media (max-width: 767px) {
  .hero .grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 639px) {
  .grid-5 {
    grid-template-columns: 1fr;
  }
}



/* =====================
    CARD COMPONENT
    ===================== */
.card {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #ffffff;
}

/* =====================
    VISION MISSION SECTION
    ===================== */
.vision-mission {
    padding: 3rem 0;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.vm-card {
    padding: 1.5rem;
    border-radius: 24px;
    color: white;
}

.vm-card h3,
.vm-card p {
    color: white;
}

.vision {
    background-color: rgb(217, 119, 6);
}

.mission {
    background-color: #064E3B;
}

.vm-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vm-header h3 {
  margin-bottom: 0;
}

.vm-icon {
    font-size: 1.5rem;
}

@media (max-width: 767px) {
    .vm-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================
    CTA BANNER
    ===================== */
.cta {
    background: var(--primary);
    color: #ffffff;
    text-align: center;
}

.cta p {
    color: #d1fae5;
}

/* =========================
   ABOUT US SECTION
========================= */

.about-section {
  /* background: #ffffff; */
  background: linear-gradient(to bottom, #ffffff, var(--secondary));
}

.about-header {
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.about-header h2 {
  margin-bottom: 0.75rem;
  font-size: 2.5rem;
}

.about-intro {
  color: var(--text-light);
  font-size: 1.05rem;
}

.about-values h3,
.about-geo h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}
.about-mvv > div {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  border: #0b2e23 0.5px solid;
}


/* Core Values Section */

.core-values-section {
  padding: 4rem 0;
}

.core-values-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.core-values-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.core-values-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.underline {
  width: 4rem;
  height: 0.25rem;
  background-color: var(--accent);
  border-radius: 0.25rem;
  margin: 0 auto;
}

.core-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.core-value-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  transition: border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.core-value-card:nth-child(odd):hover {
  border-color: #064E3B;
}

.core-value-card:nth-child(even):hover {
  border-color: rgb(217, 119, 6);
}

.value-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  background-color: #fef3c7;
}

.core-value-card:nth-child(odd):hover .value-icon {
  background-color: #fde68a;
}

.core-value-card:nth-child(even):hover .value-icon {
  background-color: rgba(217, 119, 6, 0.2);
}

.value-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.core-value-card:hover .value-content h3 {
  color: var(--gold);
}

.value-content p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .core-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Geographical Focus */

.about-geo {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.about-geo p {
  max-width: 700px;
  color: var(--text-light);
}

/* Pathway to Impact Section */

.pathway-section {
  background-color: #0b2e23;
  color: #ffffff;
  padding: 4rem 0;
  overflow: hidden;
  border-radius: 1rem;
}

.pathway-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pathway-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.pathway-header p {
  color: #d1fae5;
  font-size: 0.875rem;
}

.pathway-cards {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 0 1.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pathway-cards::-webkit-scrollbar {
  display: none;
}

.pathway-card {
  flex-shrink: 0;
  width: 18rem;
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pathway-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.pathway-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.pathway-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.step-number {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #10b981;
}

.pathway-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 1rem;
  color: #0f172a;
}

.pathway-card p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 1rem 1rem;
  line-height: 1.5;
}

/* Enhanced Core Values */

.core-value-card {
  transition: border-color 0.3s ease, color 0.3s ease;
}

.core-value-card:hover {
  border-color: var(--gold);
}

.value-icon {
  transition: background-color 0.3s ease;
}

.icon-amber {
  background-color: #fef3c7;
}

.icon-emerald {
  background-color: #d1fae5;
}

.icon-red {
  background-color: #fee2e2;
}

.icon-sky {
  background-color: #dbeafe;
}

.core-value-card:hover .icon-amber {
  background-color: #fde68a;
}

.core-value-card:hover .icon-emerald {
  background-color: #a7f3d0;
}

.core-value-card:hover .icon-red {
  background-color: #fecaca;
}

.core-value-card:hover .icon-sky {
  background-color: #bfdbfe;
}

.value-content h3 {
  transition: color 0.3s ease;
}

.group-hover-text-secondary:hover {
  color: var(--secondary);
}

.group-hover-text-primary:hover {
  color: var(--primary);
}

.group-hover-text-accent:hover {
  color: var(--accent);
}

.group-hover-text-sky:hover {
  color: #0ea5e9;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .about-header {
    text-align: left;
  }
}

/* Story full width */
.about-story-full {
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.about-story-full h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.about-story-full p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Mission & Vision layout */
.about-mvv {
  margin-top: 1rem;
}

.about-mvv h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-mvv p {
  color: var(--text-light);
}

/* =====================
    FOCUS AREAS SECTION
    ===================== */
.focus-areas-section {
    padding: 4rem 0;
}

.focus-areas-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.focus-areas-list {
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.focus-area-item {
    background-color: #ffffff;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.focus-area-item:hover {
    border-color: var(--primary);
}

.focus-area-text {
    font-weight: 600;
    color: var(--text-dark);
}

.focus-area-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

/* =====================
    FOOTER
    ===================== */
footer {
    background: #0b2e23;
    color: #ffffff;
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-section p {
    color: #d1fae5;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-wrapper img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo-wrapper h3 {
  margin-bottom: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1fae5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1fae5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    /* color: var(--accent); */
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    background-color: rgb(217, 119, 6);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    color: #d1fae5;
    margin: 0;
    font-size: 0.875rem;
}

.back-to-top {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Footer responsive */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .footer-content {
        text-align: center;
    }

    .footer-logo-wrapper {
        justify-content: center;
    }

    .footer-links ul {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .social-link {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ================================
   LEADERSHIP
================================ */

.leadership-preview h2,
.leadership-page h1 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.leadership-intro,
.leadership-page-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  color: var(--text-light);
}

/* Leader Cards */
.leader-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #a2b8e4;
}

.leader-card img {
  width: 120px;
  height: 120px;
  /* border-radius: 20%; */
  object-fit: cover;
  object-position: center;
  background-color: #e5e7eb;
  display: block;
  margin: 0 auto 1rem;
}



.leader-card h3,
.leader-card h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.leader-card span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Senior Leaders */
.leader-card.senior {
  background: var(--secondary);
  padding: 2rem;
  border: 1px solid #e5e7eb;
}

.leader-card.senior img {
  width: 200px;
  height: auto;
}

.testimonial {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
}

/* CTA */
.leadership-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-outline {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
}

/* Partnerships */
.partnerships-header {
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.partner-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .partner-card {
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
  }
}

/* Logo */
.partner-logo {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
}

.partner-logo img {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  /* filter: grayscale(100%); */
}

/* Image */
.partner-image img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.parter-actions {
  margin-top: 1rem;
}

/* //Desktop positioning */
@media (min-width: 768px) {
  .partner-actions {
    align-self: end;
    justify-self: end;
    margin-top: 0;
  }
}


.image-caption {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Learn more button */
.learn-more-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  position: end;

}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  /* background-color: rgb(255, 255, 255); */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
  border-radius: 0.75rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: rgb(255, 255, 255, 0.65);
  /* background-image: url(./images/IEBCLogo.png); */
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  border: 1px solid var(--primary);
  border-radius: 0.75rem;
  position: relative;
}

.modal-content h3 {
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--text-dark);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
