/* Reset body default margin */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: white;
}

/* Navigation bar */
.navbar {
  width: 100%; 
  background-color: #fce7e7;
}
.topsection {
  background-color: #e0e0e0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 5px 40px;
  gap: 25px;
  font-size: 14px;
}
.topsection .item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}
.topsection img {
  width: 18px;
  height: 18px;
}
.downsection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}
.downsection .logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.downsection ul {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
}
.downsection ul li a {
  text-decoration: none;
  color: #333;
}
.downsection ul li.highlight a {
  font-weight: bold;
  background-color: #a12b2f;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Show nav-links when active */
.nav-links.active {
  display: flex;
}





/* Banner container */
.banner {
  position: relative;
  width: 100%;
  margin-top: -10%;
  height: 110vh; /* full screen height */
  max-height: 100%;
  background: url("/images/jesus.jpg") no-repeat top center;
  background-size: cover; /* keeps image full-width, crops bottom if needed */
  background-attachment: fixed; /* parallax effect on desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif; /* modern clean font */
}

.banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* soft dark overlay for readability */
  z-index: 1;
}

.banner-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 3.5rem; /* default desktop size */
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  padding: 15px 25px;
  border-radius: 8px;
  background: transparent; /* removed shadow box */
  letter-spacing: 0.5px;
}
.content {
  padding: 80px 20px;
  background: #f5f5f5;
  text-align: center;
  min-height: 100vh;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}
.content.dark {
  background: #ffffff;
  color: #333;
}
@media (max-width: 992px) {
  .banner {
    height: 90vh;
    background-attachment: scroll; /* improves mobile performance */
  }
  .banner-text {
    font-size: 2.5rem;
    padding: 12px 20px;
  }
  .content {
    padding: 60px 15px;
  }
}
@media (max-width: 768px) {
  .banner {
    height: 70vh;
  }
  .banner-text {
    font-size: 2rem;
    padding: 10px 15px;
  }
  .content {
    padding: 50px 12px;
  }
}
@media (max-width: 576px) {
  .banner {
    height: 60vh;
    padding: 0 10px;
  }
  .banner-text {
    font-size: 1.6rem;
    line-height: 1.4;
    padding: 8px 12px;
  }
  .content {
    padding: 40px 10px;
  }
}
@media (max-width: 400px) {
  .banner {
    height: 100vh;
  }
  .banner-text {
    font-size: 3rem;
    padding: 6px 10px;
  }
  .content {
    padding: 30px 8px;
  }
}





    /* ================== Mission & Vision Section ================== */
    .mission-vision {
      display: flex;
      justify-content: center;
      align-items: stretch;
      gap: 50px;
      margin: 80px auto;
      flex-wrap: wrap;
      max-width: 1200px;
      padding: 0 20px;
    }
    .mission-vision .card {
      position: relative;
      flex: 1 1 400px;
      background: #ffffff;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      overflow: hidden;
      text-align: center;
      min-height: 250px;
      transform: translateY(50px);
      opacity: 0;
      transition: transform 0.8s ease, opacity 0.8s ease;
    }
    .mission-vision .card.visible {
      transform: translateY(0);
      opacity: 1;
    }
    .mission-vision .card-content {
      position: relative;
      z-index: 2;
      padding: 40px 30px;
      transition: opacity 0.4s ease;
    }
    .mission-vision .card img {
      width: 60px;
      height: 60px;
      margin-bottom: 20px;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
      transition: opacity 0.3s ease;
    }
    .mission-vision .card h2 {
      font-size: 1.8rem;
      font-weight: 700;
      margin: 0;
      color: #ffffff; /* Make heading visible on red sheet */
      letter-spacing: -0.02em;
      position: relative;
      z-index: 3;
      margin-top: -10%;
      transition: color 0.3s ease;
    }
    .mission-vision .card-overlay {
      position: absolute;
      bottom: -100%;
      left: 0;
      width: 100%;
      height: 100%;
      background: #881119; /* red sheet */
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 30px;
      transition: bottom 0.7s ease;
      z-index: 1;
      flex-direction: column;
    }
    .mission-vision .card-overlay p {
      color: #fff;
      font-size: 1.1rem;
      line-height: 1.7;
      font-weight: 400;
      margin: 20px 0 0;
      opacity: 0;
      transition: opacity 0.5s ease 0.3s;
    }
    .mission-vision .card.visible .card-overlay {
      bottom: 0;
    }
    .mission-vision .card.visible .card-content img {
      opacity: 0;
    }
    .mission-vision .card.visible .card-overlay p {
      opacity: 1;
    }

    /* ================== Responsive ================== */
    @media (max-width: 1024px) {
      .mission-vision {
        gap: 40px;
      }
      .mission-vision .card h2 {
        font-size: 1.6rem;
      }
    }
    @media (max-width: 768px) {
      .mission-vision {
        gap: 30px;
      }
      .mission-vision .card {
        flex: 1 1 350px;
      }
      .mission-vision .card h2 {
        font-size: 1.5rem;
      }
    }
    @media (max-width: 480px) {
      .mission-vision {
        gap: 25px;
      }
      .mission-vision .card {
        flex: 1 1 100%;
        border-radius: 16px;
      }
      .mission-vision .card h2 {
        font-size: 1.4rem;
        margin-top: -20%;
      }
      .mission-vision .card-overlay p {
        font-size: 1rem;
      }
    }







/* About Caritas Section */
.about-caritas {
  position: relative;
  background: url("/images/aboutsec.jpg") no-repeat center center/cover;
  background-attachment: fixed; /* Parallax effect */
  min-height: 100vh; /* Full screen */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
}
.about-caritas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 0;
}
.about-caritas .overlay {
  position: relative;
  color: white;
  max-width: 950px;
  z-index: 1;
  animation: fadeInUp 1.5s ease-in-out;
  padding: 0 15px;
}
.about-caritas h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.about-caritas h3 {
  font-size: 1.6rem;
  margin-bottom: 30px;
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
  color: #f0f0f0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.about-caritas p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 18px;
  color: #e5e5e5;
  text-align: justify;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.3px;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.content {
  padding: 80px 20px;
  background: #f5f5f5;
  text-align: center;
  min-height: 100vh;
}
@media (max-width: 1024px) {
  .about-caritas h2 {
    font-size: 2.5rem;
  }
  .about-caritas h3 {
    font-size: 1.4rem;
  }
  .about-caritas p {
    font-size: 1.05rem;
  }
}
@media (max-width: 768px) {
  .about-caritas {
    padding: 40px 15px;
  }
  .about-caritas h2 {
    font-size: 2.2rem;
  }
  .about-caritas h3 {
    font-size: 1.3rem;
  }
  .about-caritas p {
    font-size: 1rem;
    line-height: 1.7;
  }
}
@media (max-width: 480px) {
  .about-caritas h2 {
    font-size: 1.9rem;
  }
  .about-caritas h3 {
    font-size: 1.15rem;
  }
  .about-caritas p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}







/* LEGAL STATUS SECTION */
.legal-status {
  position: relative;
  min-height: 100vh;
  background: url("/images/legal.jpg") no-repeat center center/cover;
  background-attachment: fixed; /* Keeps image fixed while scrolling */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.legal-status .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* Dark overlay for contrast */
}
.legal-status .legal-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #fff;
  padding: 30px;
}
.legal-status .legal-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.legal-status .legal-text p {
  font-size: 1.2rem;
  line-height: 1.8;
}










/* ================= VARIABLES ================= */
:root {
    --primary: #000000;
    --secondary: #ff6b6b;
    --dark: #0a0a0a;
    --light: #ffffff;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ================= BASE STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ================= TEAM SECTION ================= */
.team-section {
    text-align: center;
    padding: 100px 20px;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.team-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.team-section > p {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 70px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

/* ================= TEAM CONTAINER ================= */
.team-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= TEAM CARD ================= */
.team-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    gap: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    position: relative;
    backdrop-filter: blur(12px);
}

.team-card.reverse {
    flex-direction: row-reverse;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Visible class triggered by JS */
.team-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ================= TEAM IMAGE ================= */
.team-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.team-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 25px rgba(255, 0, 80, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.team-card:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(255, 0, 80, 0.4);
}

.team-image h3 {
    margin-top: 20px;
    color: var(--light);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-image .role {
    display: block;
    margin-top: 8px;
    color: var(--light);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

/* ================= TEAM INFO ================= */
.team-info {
    flex: 1;
    text-align: left;
}

.team-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    text-align: left;
    color: var(--light);
    opacity: 0.9;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .team-section {
        padding: 70px 20px;
    }
    
    .team-section h1 {
        font-size: 2.5rem;
    }
    
    .team-card,
    .team-card.reverse {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .team-info {
        text-align: center;
        margin-top: 20px;
    }
    
    .team-info p {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .team-section h1 {
        font-size: 2rem;
    }
    
    .team-section > p {
        font-size: 1rem;
        margin-bottom: 50px;
    }
    
    .team-card {
        padding: 25px 20px;
    }
    
    .team-card img {
        width: 150px;
        height: 150px;
    }
    
    .team-image h3 {
        font-size: 1.3rem;
    }
    
    .team-info p {
        font-size: 1rem;
    }
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}








/* team section style sheet */
/* ================= VARIABLES ================= */
:root {
    --primary: #000000;
    --secondary: #e63946;
    --dark: #0a0a0a;
    --light: #ffffff;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    --transition: all 0.4s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.staff-section {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}
.staff-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.staff-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.staff-section > p {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 70px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}
.staff-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.staff-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.staff-row.visible {
    opacity: 1;
    transform: translateY(0);
}
.staff-member {
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.staff-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.staff-member:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-lg);
}
.staff-member:hover::before {
    transform: scaleX(1);
}
.image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
}
.image-container .red-border {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}
.staff-member img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.staff-member:hover img {
    transform: scale(1.05);
}
.staff-member h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 15px 0 8px;
    color: var(--light);
    line-height: 1.4;
}
.staff-member span {
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.9rem;
    display: block;
    line-height: 1.5;
}
@media (max-width: 1200px) {
    .staff-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}
@media (max-width: 900px) {
    .staff-section {
        padding: 80px 20px;
    }
    
    .staff-section h2 {
        font-size: 2.2rem;
    }
    
    .staff-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .image-container {
        width: 160px;
        height: 160px;
    }
}
@media (max-width: 768px) {
    .staff-container {
        gap: 40px;
    }
    
    .staff-section > p {
        margin-bottom: 50px;
        font-size: 1.1rem;
    }
}
@media (max-width: 600px) {
    .staff-row {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .image-container {
        width: 150px;
        height: 150px;
    }
    
    .staff-section h2 {
        font-size: 1.8rem;
    }
    
    .staff-section > p {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .staff-section {
        padding: 60px 15px;
    }
    
    .image-container {
        width: 140px;
        height: 140px;
    }
    
    .staff-member h3 {
        font-size: 1rem;
    }
    
    .staff-member span {
        font-size: 0.85rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .staff-row {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .staff-member {
        transition: none;
    }
    .staff-member:hover {
        transform: none;
    }
    .image-container .red-border {
        animation: none;
    }
    .staff-member:hover img {
        transform: none;
    }
}