/* ===========================================
   EPSE - style.css
   =========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==========================
   Header
========================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: var(--shadow-sm);
  z-index: 999;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 60px;
}

.logo h2 {
  font-size: 22px;
  color: var(--primary);
}

nav ul {
  display: flex;
  gap: 25px;
}

nav a {
  color: var(--secondary);
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: var(--primary);
}

/* ==========================
Hero
========================== */

.hero {
  margin-top: 85px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("../images/hero.jpg") center/cover no-repeat;
  color: white;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 54px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 35px;
}

/* ==========================
Buttons
========================== */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  margin-left: 15px;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* ==========================
Sections
========================== */

section {
  padding: 30px 0;
}

.section-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 15px;
  color: var(--secondary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 750px;
  margin: auto auto 50px;
}

/* ==========================
Grid
========================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* ==========================
Cards
========================== */

.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

/* ==========================
Messages
========================== */

.message-card {
  background: white;
  border-left: 5px solid var(--primary);
  padding: 35px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.message-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.message-card h5 {
  color: #666;
  margin-bottom: 20px;
}

/* ==========================
Values
========================== */

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.value {
  background: var(--primary);
  color: white;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 600;
}

/* ==========================
Footer
========================== */

footer {
  background: var(--secondary);
  color: white;
  padding: 60px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

footer h3 {
  margin-bottom: 15px;
}

footer p,
footer li {
  color: #ddd;
  margin-bottom: 10px;
}

footer a {
  color: #ddd;
}

footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

/* ==========================
Utilities
========================== */

.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 50px;
}

.mb-5 {
  margin-bottom: 50px;
}

/* ==========================
Responsive
========================== */

@media (max-width: 992px) {
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }

  .hero {
    text-align: center;
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 17px;
  }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }

  .btn-outline {
    margin-left: 0;
  }

  .section-title {
    font-size: 30px;
  }
}

/* ==========================
   Contact Us   
========================== */

.contact-section {
  padding: 70px 20px;
  background: #f4f7fb;
}

.contact-container {
  max-width: 700px;
  margin: auto;
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
  text-align: center;
  color: #8b0000;
  margin-bottom: 10px;
}

.contact-container p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: #8b0000;
}

button {
  width: 100%;
  padding: 14px;
  background: #8b0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #b00020;
}

/* ================= DYNAMIC RESPONSIVE HERO SLIDER ================= */
.hero-slider {
  position: relative;
  width: 100%;
  /* Adapts dynamically to screen aspect ratios */
  height: clamp(500px, 80vh, 850px);
  overflow: hidden;
  background-color: #0b0f17;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* Background Image Handling */
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.slide.active .slide-bg img {
  transform: scale(1);
}

/* Dark Overlay for Text Readability */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 2;
}

/* Content Area */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-content .main-title {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  color: #f1f5f9;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 1.8rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Navigation Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: #a40012;
  border-color: #a40012;
}

.prev-arrow {
  left: 20px;
}
.next-arrow {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border-radius: 20px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  width: 26px;
  border-radius: 8px;
  background: #a40012;
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
  .hero-slider {
    height: 550px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .prev-arrow {
    left: 10px;
  }
  .next-arrow {
    right: 10px;
  }
}

/* ================= Leadership Images ================= */

.message-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.message-card:hover {
    transform: translateY(-5px);
}

.leader-profile {
    text-align: center;
    margin-bottom: 20px;
}

.leader-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #A40012;   /* Change to your theme colour */
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.leader-profile h3 {
    margin: 10px 0 5px;
}

.leader-profile h5 {
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .leader-image {
        width: 130px;
        height: 130px;
    }
}


/* ================= Responsive ================= */


