/* static/css/about.css - AMENDED FOR IMMERSION & THEME CONSISTENCY */

/* --- Base Section Styling --- */
.section-padding {
    padding: 100px 0; /* More generous padding for distinct sections */
}

/* New: Reusable hover effect for cards */
.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color-light); /* Subtle border change on hover */
}


/* --- Hero About Section --- */
#about-page-hero {
    background: none;
    padding: 0; /* Removed padding to let flexbox center content vertically */
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally as well */
}

/* NEW: Canvas for background animation */
#hero-animation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#about-page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darker overlay for better text contrast */
    z-index: 2;
}

#about-page-hero .container {
    position: relative;
    z-index: 3;
}

#about-page-hero h1 {
    color: var(--light-color);
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.2rem); /* Responsive fluid typography */
    line-height: 1.15;
    letter-spacing: -1px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

#about-page-hero .lead {
    font-size: clamp(1rem, 2.5vw, 1.45rem); /* Responsive fluid typography */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.98);
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

#about-page-hero .btn-cta {
    background-color: var(--warning-color);
    color: var(--light-color);
    border: none;
    font-weight: 700;
    padding: 16px 45px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#about-page-hero .btn-cta:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-5px); /* Slightly less aggressive hover for elegance */
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.6);
}

#about-page-hero .scroll-down {
    animation: bounce 2s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 4;
    bottom: 20px; /* Use 'bottom' instead of 'padding-bottom' for absolute positioning */
}


/* ===============================
   Vision & Mission Section (Blue Cards)
   =============================== */


#vision {
  padding: 80px 0;
  background-color: var(--light-color);
  position: relative;
  z-index: 1;
}

#vision h2 {
  font-weight: 700;
  color: var(--primary-color);
}

#vision p.lead {
  color: var(--secondary-color-dark);
  max-width: 700px;
  margin: 0 auto;
}

/* Shared card styles */
#vision .card {
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff; /* Default text inside cards is white */
}

#vision .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.2);
}

/* Vision card: blue gradient */
#vision .col-lg-6:first-child .card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
}

/* Mission card: green/teal gradient */
#vision .col-lg-6:last-child .card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
}

/* Heading inside cards */
#vision .card h3 {
  font-weight: 700;
  margin: 0;
  background: none;
  -webkit-text-fill-color: #fff; /* force headings white */
}

/* Icon sizes and coloring */
#vision .icon-lg {
  font-size: 2.5rem;
  stroke-width: 1.8;
  color: #fff !important;
}

/* Paragraphs inside cards */
#vision .card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

/* Responsive tweaks */
@media (max-width: 767px) {
  #vision {
    padding: 60px 1rem;
  }
  #vision h2 {
    font-size: 2rem;
  }
  #vision .card {
    padding: 2rem 1.25rem;
  }
}

/* ===============================
   Guiding Ethos Section
   =============================== */

.ethos-section h2 {
  color: var(--primary-color)!important;
}
#ethos, .section-padding.ethos-section {
  padding: 80px 0;
  background-color: var(--light-color);
  position: relative;
  z-index: 1;
}

#ethos h2,
.ethos-section h2 {
  font-weight: 700;
  color: var(--secondary-color);
}

#ethos p.lead,
.ethos-section p.lead {
  color: var(--secondary-color-dark);
  max-width: 750px;
  margin: 0 auto 2rem;
}

/* Ethos cards */
.ethos-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ethos-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Icons */
.ethos-card .icon-xl {
  font-size: 3rem;
  stroke-width: 2;
  color: #fff !important;
}

/* Headings inside cards */
.ethos-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* Paragraphs */
.ethos-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

/* Responsive tweaks */
@media (max-width: 767px) {
  #ethos, .section-padding.ethos-section {
    padding: 60px 1rem;
  }
  .ethos-card {
    padding: 2rem 1.25rem;
  }
  .ethos-card .icon-xl {
    font-size: 2.5rem;
  }
}

/* ===============================
   Modern Team Section - 2025 Design
   =============================== */

.team-section {
  background: linear-gradient(
    to bottom,
    #010080 0px,      /* navy at very top */
    #010080 20px,     /* 20px tall strip */
    #ffffff 20px,     /* switch to white */
    #ffffff calc(100% - 20px), /* white until 20px from bottom */
    #010080 calc(100% - 20px), /* bottom navy strip starts */
    #010080 100%      /* navy to the bottom */
  );
  position: relative;
  overflow: hidden;
}

/* Section headings */
.team-section .section-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #010080;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.team-section .section-lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

/* Team Cards */
.team-card {
  background: #ffffff;
  border: 2px solid #010080;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(1, 0, 128, 0.1);
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 0, 128, 0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.team-card > * {
  position: relative;
  z-index: 2;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: #2F55D4;
  box-shadow: 0 20px 40px rgba(1, 0, 128, 0.2);
}

.team-card:hover::before {
  opacity: 1;
}

/* Avatar */
.team-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.team-avatar-wrapper:hover {
  transform: translateY(-8px) scale(1.05);
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #010080;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.team-avatar-wrapper:hover .team-avatar {
  border-color: #2F55D4;
  box-shadow: 0 8px 24px rgba(1, 0, 128, 0.3);
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(1, 0, 128, 0.2), rgba(47, 85, 212, 0.2));
  z-index: 1;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.4;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.2;
  }
}

/* Name & Title */
.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.team-name:hover {
  transform: translateX(5px);
}

.team-name-link {
  color: #010080;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.team-name-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #010080;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.team-name-link:hover {
  color: #2F55D4;
}

.team-name-link:hover::after {
  transform: scaleX(1);
  background: #2F55D4;
}

.team-title {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1rem;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.team-title:hover {
  transform: translateX(5px);
}

/* Meta badges */
.team-meta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.meta-badge:hover {
  background: #e2e8f0;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px rgba(1, 0, 128, 0.1);
}

.meta-badge i {
  width: 14px;
  height: 14px;
  color: #010080;
  transition: transform 0.3s ease;
}

.meta-badge:hover i {
  transform: rotate(12deg);
}

/* Quote & Bio */
.team-quote,
.team-bio {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
  min-height: 3em;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.team-quote:hover,
.team-bio:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  color: #475569;
}

.team-quote {
  position: relative;
  padding: 0.5rem 1rem;
}

/* Specialty tags */
.team-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.specialty-tag {
  padding: 0.4rem 0.9rem;
  background: #f1f5f9;
  border: 1px solid #010080;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #010080;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.specialty-tag:hover {
  background: #010080;
  color: #ffffff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 12px rgba(1, 0, 128, 0.3);
}

/* Social icons */
.team-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 10;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.social-icon:hover {
  background: #010080;
  border-color: #010080;
  color: #ffffff;
  transform: translateY(-6px) rotate(5deg) scale(1.15);
  box-shadow: 0 8px 16px rgba(1, 0, 128, 0.3);
}

.social-icon i {
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.social-icon:hover i {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991px) {
  .team-section .section-heading {
    font-size: 2rem;
  }
  
  .team-section .section-lead {
    font-size: 1.1rem;
  }
  
  .team-card {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 767px) {
  .team-avatar {
    width: 120px;
    height: 120px;
  }
  
  .team-name {
    font-size: 1.3rem;
  }
  
  .team-card {
    padding: 1.5rem 1rem;
  }
  
  .team-quote,
  .team-bio {
    font-size: 0.9rem;
    min-height: auto;
  }
}

@media (max-width: 575px) {
  .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .meta-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }
  
  .specialty-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card:hover,
  .team-avatar,
  .avatar-ring,
  .social-icon,
  .specialty-tag {
    animation: none;
    transition: none;
    transform: none;
  }
}
/* ===============================
   Strategic Goals Section
   =============================== */

.goals-section {
  background-color: #fff; /* clean white background */
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* Section Heading */
.goals-section h2 {
  font-weight: 700;
  color: var(--primary-color); /* navy blue */
}

.goals-section p.lead {
  color: #444; /* softer dark gray */
  max-width: 750px;
  margin: 0 auto 2rem;
}

/* Goal Cards */
.goal-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.goal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Icons */
.goal-card .icon-lg {
  font-size: 2.5rem;
  stroke-width: 2;
  margin-bottom: 1rem;
}

/* Different icon colours per card */
.goals-section .col:nth-child(1) .icon-lg { color: #fbbf24; } /* gold */
.goals-section .col:nth-child(2) .icon-lg { color: #2563eb; } /* blue */
.goals-section .col:nth-child(3) .icon-lg { color: #16a34a; } /* green */
.goals-section .col:nth-child(4) .icon-lg { color: #dc2626; } /* red */
.goals-section .col:nth-child(5) .icon-lg { color: #0ea5e9; } /* teal */
.goals-section .col:nth-child(6) .icon-lg { color: #6b7280; } /* gray */

/* Card Headings */
.goal-card h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #283b7d; /* navy blue */
}

/* Card Paragraphs */
.goal-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444; /* readable dark gray */
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .goals-section {
    padding: 60px 1rem;
  }
  .goal-card {
    padding: 2rem 1.25rem;
  }
}


/* ===============================
   Partners Section
   =============================== */

.section-padding.bg-light {
  background-color: #f8f9fa; /* soft grey */
  padding: 80px 0;
}

/* Title */
.section-padding.bg-light h2 {
  font-weight: 700;
  color: #283b7d; /* navy blue for brand consistency */
}

/* Subtitle */
.section-padding.bg-light p.lead {
  color: #555; /* darker grey for contrast */
  max-width: 750px;
  margin: 0 auto 2rem;
}

/* Partner Logos */
.partner-logo {
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8); /* muted by default */
  transition: all 0.3s ease;
  opacity: 0.8;
}

.partner-logo:hover {
  filter: none; /* show full color on hover */
  opacity: 1;
  transform: scale(1.05); /* subtle zoom */
}



/* ===============================
   Testimonials Section 
   =============================== */

.testimonials-section {
  background: linear-gradient(90deg, #0200ff 0%, #010080 30%, #010080 70%, #0200ff 100%); 
  padding: 100px 0;
  color: #fff;
  position: relative;
}

/* Section Heading */
.testimonials-section h2 {
  font-weight: 700;
  color: #fff;
}

.testimonials-section p.lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 750px;
  margin: 0 auto 3rem;
}

/* Testimonial Card */
.testimonial-card {
  background: rgba(255, 255, 255, 0.08); /* glass look */
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  padding: 2.5rem 2rem;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border-color: #fff;
}

/* Large Quote Icon */
.quote-icon {
  font-size: 3rem;
  font-weight: bold;
  color: #ffffff; /* gold accent */
  line-height: 1;
  margin-bottom: 1rem;
}

/* Testimonial Text */
.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

/* Author Info */
.author-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.author-role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 767px) {
  .testimonials-section {
    padding: 70px 1rem;
  }
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  .quote-icon {
    font-size: 2.5rem;
  }
}


/* ===============================
   CTA Section (White Background)
   =============================== */

/* ===============================
   CTA Section (Final Cleaned)
   =============================== */

.cta-section {
  background: #fff; /* white background */
  padding: 100px 0;
  text-align: center;
}

/* Heading */
.cta-section h2 {
  font-weight: 700;
  color: #283b7d; /* navy blue brand color */
}

/* Subheading */
.cta-section p {
  color: #444; /* dark gray for readability */
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* CTA Button */
.btn-cta {
  background: linear-gradient(90deg, #0200ff, #010080);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
  background: linear-gradient(90deg, #010080, #0200ff);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Force CTA text colors */
.cta-section p,
.cta-section .lead {
  color: #444 !important; /* dark gray */
}
