/* Main */

/* ===== VARIABLES & RESET ===== */
:root {
  --primary: #2d5a2d;
  --primary-dark: #1a3a1a;
  --secondary: #bf0a30;
  --accent: #6a1b9a;
  --light: #f8f9fa;
  --text: #333;
  --gold: #f9e076;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Source Sans 3", sans-serif;
}

body {
  background: linear-gradient(135deg, #f0f8ff 0%, #f5f5f5 100%);
  color: var(--text);
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
  background-attachment: fixed;
}

/* ===== HEADER & BANNER ===== */
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 15px 40px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--secondary),
    var(--accent)
  );
}

.logo-eve-container {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1;
}

.logo-container,
.Eve-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-container img,
.Eve-container img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.banner-text {
  text-align: center;
  padding: 0 15px;
  z-index: 1;
  flex: 1;
}

.banner-text h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1.5px;
}

.search-container {
  display: flex;
  justify-content: flex-end;
  z-index: 1;
}

.search-container form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 5px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.search-container form:focus-within {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.search-input {
  width: 200px;
  padding: 8px 15px;
  border-radius: 20px;
  border: none;
  background: transparent;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: white;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.search-input:focus {
  outline: none;
  width: 250px;
}

.search-button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background: #8a0620;
}


/* ===== NAVIGATION ===== */
/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(to bottom, var(--primary-dark), #153015);
    padding: 0.8rem 2rem;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a{
  background: #2e5c2e;
  color: #fff;
}

/* Dropdown arrow for parent items */
.nav-menu > li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

/* SUB-MENU DROPDOWN */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
  padding: 12px 0;
}

.nav-menu > li.menu-item-has-children:hover > .sub-menu,
.nav-menu > li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

/* Sub-menu items */
.nav-menu .sub-menu li {
  list-style: none;
  margin: 0;
}

.nav-menu .sub-menu a {
  color: #222;
  padding: 12px 28px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  position: relative;
}

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu .current-menu-item > a {
  background: #f2f7f2;
  color: #1a3a1a;
  padding-left: 38px;
  font-weight: 500;
}

/* Sub-menu left accent bar on hover */
.nav-menu .sub-menu a::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 60%;
  background: #2e5c2e;
  border-radius: 2px;
  transition: transform 0.3s;
}

.nav-menu .sub-menu a:hover::before {
  transform: translateY(-50%) scaleY(1);
}

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-menu .sub-menu {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
  }

  .nav-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
  }
}

/* ===== COMMON CONTENT STYLES ===== */
.main-pass {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.main-pass h1 {
  font-family: "Playfair Display", serif;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.main-pass h2 {
  color: var(--secondary);
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 15px;
}

.main-pass h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--secondary);
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  color: white;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--secondary),
    var(--accent)
  );
}

.page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--gold);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--secondary),
    var(--accent)
  );
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--gold);
  position: relative;
  padding-bottom: 10px;
  font-family: "Playfair Display", serif;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  margin-top: 20px;
}

.footer-partner-logos a {
  display: inline-block;
}

.footer-partner-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(100%) brightness(200%);
}

.footer-partner-logos img:hover {
  transform: scale(1.1);
  filter: grayscale(0) brightness(100%);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .logo-eve-container {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    width: 100%;
    box-shadow: none;
    margin-top: 10px;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    align-items: center;
  }

  .footer-contact p {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .banner-text h1 {
    font-size: 1.5rem;
  }

  .search-input {
    width: 150px;
  }

  .search-input:focus {
    width: 180px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header h2 {
    font-size: 1.5rem;
  }
}

/* Dieupre */

.main-content {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  height: 300px;
}

/* ===== GENERAL STYLES ===== */
.row-present {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-lg-12,
.col-md-12 {
  position: relative;
  width: 100%;
  padding-right: 50px;
  padding-left: 50px;
}

/* ===== SECTION TITLE ===== */
.section-title {
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.sub-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.theme-color {
  color: #c59d5f; /* Gold accent color - adjust as needed */
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

.border-bottom {
  display: block;
  width: 80px;
  height: 3px;
  background: #c59d5f;
  margin: 20px auto 0;
}

/* ===== TEXT STYLES ===== */
.text-uppercase {
  text-transform: uppercase;
}

.text-justify {
  text-align: justify;
}

.margin-top-5 {
  margin-top: 5px;
}

.margin-bottom-15 {
  margin-bottom: 15px;
}

.margin-bottom-30 {
  margin-bottom: 30px;
  padding-left: 60px;
  padding-right: 60px;
}

.margin-top-30 {
  margin-top: 30px;
}

/* ===== IMAGE/GALLERY STYLES ===== */
.single-sermon-wrap {
  margin-top: 30px;
}

.sermons-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.single-sermon-img {
  border-radius: 10px;
  transition: all 0.3s ease;
}

.pro img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top;
}

/* ===== COMPONENT GRID ===== */
.component-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.component-grid div {
  padding: 20px;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.component-grid div:hover {
  transform: translateY(-5px);
}

.component-grid li {
  list-style-type: none;
  font-weight: 700;
  color: #444;
  font-size: 18px;
  margin-bottom: 10px;
}

.component-grid p {
  margin-bottom: 0;
  line-height: 1.6;
}

.fa-star {
  margin-right: 10px;
}

/* ===== SERMON CONTENT ===== */
.sermon-view-wrapper {
  margin-top: -20px;
}

.sermons-title-wrap {
  padding-top: 1rem;
}

.typo-white {
  color: #fff;
}

.sermons-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.sermons-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #c59d5f;
}

.section {
  margin: 40px 0; /* Top and bottom margin */
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.text-center {
  text-align: center;
}
.text-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  background: #fff;
}

.text-containers > div {
  flex: 1 1 250px;
  padding: 2rem;
  background: linear-gradient(135deg, #fff, #e8f5e9);
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.text-containers > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.div1:hover {
  background: linear-gradient(
    135deg,
    #2e7d32,
    #1b5e20
  ); /* dark green gradient */
  color: #fff;
}

.div2:hover {
  background: linear-gradient(
    135deg,
    #1565c0,
    #0d47a1
  ); /* dark blue gradient */
  color: #fff;
}

.div3:hover {
  background: linear-gradient(
    135deg,
    #ef6c00,
    #e65100
  ); /* dark orange gradient */
  color: #fff;
}

/**ACCUEIL**/

/* Flexbox Section */
.gray-bg-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4rem clamp(1rem, 5vw, 4rem); /* fluid horizontal padding */
  background-color: #e0e0e0;
  gap: 2rem;
  margin-top: 0;
  margin-bottom: 3rem;
  height: auto;
  flex-wrap: wrap;
}

.new-flexbox {
  flex: 1.5;
  text-align: left;
  height: 100%;
}

.image-right {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.text-left {
  text-align: justify;
}

.text-left h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.text-left p {
  color: #333;
  margin-bottom: 1rem;
  text-align: justify;
}

.btn-primary {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background-color: var(--dark-color);
}

.read-more-btn,
.image-btn,
.blog-read-more {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9rem;
}

.read-more-btn:hover,
.image-btn:hover,
.blog-read-more:hover {
  background-color: var(--dark-color);
}

.image-frame {
  width: 100%;
  max-width: 400px;
  height: 450px;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-btn {
  text-align: center;
  margin: 1rem auto;
  padding: 0 1rem;
}

.image-btn h2 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.5rem;
}

.image-btn p {
  font-size: 1.1rem;
  color: white;
  font-style: italic;
}

/* If the text is in an image container */
.image-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Cards Section */
.Nkong {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.Nkong {
  gap: 1rem; /* Reduce space between grid items */
}

.Jubilee {
  flex: 1 1 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.Jubilee:hover {
  transform: translateY(-5px);
}

.Jubilee img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.Jubilee-content {
  padding: 1rem;
  color: #444;
}

.container-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.container-evenements {
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-bottom: 2rem;
  text-align: center;
}

.container {
  padding-top: 0.1rem;
  margin-top: 0.1rem;
}

.container {
  padding-bottom: 10px;
}
/* Owl Carousel Container */
.owl-stage-outer {
  position: relative;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.owl-stage {
  position: relative;
  touch-action: pan-Y;
  display: flex;
  align-items: stretch;
}

.owl-item {
  display: flex;
  justify-content: center;
  min-height: 1px;
  float: left;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Ministry Project Card Styling */
.ministries-box-style-2 {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ministries-box-style-2:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ministries-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ministries-thumb {
  position: relative;
  overflow: hidden;
}

.ministries-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.ministries-box-style-2:hover .ministries-thumb img {
  transform: scale(1.03);
}

.ministries-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ministries-title {
  margin-bottom: 15px;
}

.ministries-title h4 {
  font-size: 16px !important;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.ministries-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ministries-title a:hover {
  color: #8e44ad;
  text-decoration: underline;
}

.ministries-desc {
  margin-bottom: 20px;
  flex-grow: 1;
}

.ministries-desc p {
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.projects-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.btn-default {
  display: inline-block;
  background: #2d5a2d;
  color: white !important;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-default:hover {
  background: #732d91;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(142, 68, 173, 0.3);
}

.cath-project img {
  height: 240px;
  object-fit: cover;
  object-position: top;
}
.cath-project h4 {
  font-size: 16px !important;
}

/* Info Boxes Section */
.text-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  background: #fff;
}

.text-containers > div {
  flex: 1 1 250px;
  padding: 2rem;
  background: linear-gradient(135deg, #fff, #e8f5e9);
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.text-containers > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.div1:hover {
  background: linear-gradient(
    135deg,
    #2e7d32,
    #1b5e20
  ); /* dark green gradient */
  color: #fff;
}

.div2:hover {
  background: linear-gradient(
    135deg,
    #1565c0,
    #0d47a1
  ); /* dark blue gradient */
  color: #fff;
}

.div3:hover {
  background: linear-gradient(
    135deg,
    #ef6c00,
    #e65100
  ); /* dark orange gradient */
  color: #fff;
}

/* Image Slider Section */
.slider {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  margin: 0;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide {
  min-width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Location Map Styles */
.location-map {
  padding-top: 1rem; /* Reduced from 2-3rem */
  padding-right: 1rem;
  padding-bottom: 3rem; /* Keep original bottom padding */
  padding-left: 1rem;
  background: #f8f9fa;
  margin: 2rem 0 0;
}

.location-map h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* AUMONERIE-1 */

/* Two-column layout for chaplaincies */
.chaplaincy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.chaplaincy-card {
  background: var(--light);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid var(--primary);
}

.chaplaincy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.chaplaincy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.chaplaincy-title {
  font-family: "Playfair Display", serif;
  color: var(--primary-dark);
  font-size: 1.4rem;
  font-weight: 700;
}

.chaplaincy-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.chaplaincy-content {
  margin-bottom: 15px;
}

.chaplaincy-item {
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.chaplaincy-item:hover {
  border-left-color: var(--secondary);
}

.chaplaincy-item strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 5px;
}

.chaplaincy-item span {
  display: block;
  color: #555;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .chaplaincy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .chaplaincy-card {
    padding: 20px;
  }

  .chaplaincy-title {
    font-size: 1.2rem;
  }
}

/* AUMONERIE-COLLEGE */

/* Two-column layout for chaplaincies */
.chaplaincy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.chaplaincy-card {
  background: var(--light);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid var(--primary);
}

.chaplaincy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.chaplaincy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.chaplaincy-title {
  font-family: "Playfair Display", serif;
  color: var(--primary-dark);
  font-size: 1.4rem;
  font-weight: 700;
}

.chaplaincy-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.chaplaincy-content {
  margin-bottom: 15px;
}

.chaplaincy-item {
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.chaplaincy-item:hover {
  border-left-color: var(--secondary);
}

.chaplaincy-item strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 5px;
}

.chaplaincy-item span {
  display: block;
  color: #555;
  margin-top: 3px;
}

/* CHAP */

.chaplaincy_apostolates {
  table-layout: fixed;
  width: 1200px;
  max-width: 100%;
  margin: 0px auto;
  border: 2px solid #666;
  border-collapse: collapse;
  border-spacing: 1px;
  font-family: Cambria, serif;
  background: white;
}

.chaplaincy_apostolates th {
  background: #e6e6e6;
  color: #bf0a30;
  font-weight: 900;
  text-transform: uppercase;
  padding: 10px;
  text-align: justify;
  vertical-align: top;
  border: 0.5pt solid black;
  width: 50%;
}

.chaplaincy_apostolates td {
  width: 50%;
  padding: 10px;
  vertical-align: top;
  border: 0.5pt solid black;
  text-align: justify;
}

.chaplaincy_apostolates ul {
  margin: 0;
  padding-left: 1em;
  list-style: none;
}

.chaplaincy_apostolates li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.chaplaincy_apostolates li strong {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.chaplaincy_apostolates span {
  font-size: 13pt;
  line-height: 1.4;
}

.chaplaincy_apostolates strong {
  display: block;
  margin: 8px 0 4px;
}

/* Microsoft Office Compatibility */
.chaplaincy_apostolates {
  mso-yfti-tbllook: 1184;
  mso-border-alt: solid black 0.5pt;
  mso-padding-alt: 0in 5.4pt 0in 5.4pt;
  mso-border-insideh: 0.5pt solid black;
  mso-border-insidev: 0.5pt solid black;
}

/* Target-table spacings */
.target-table ul li:nth-of-type(3),
.target-table ul li:nth-of-type(9),
.target-table ul li:nth-of-type(14),

/* Get-table spacings */
.get-table ul li:nth-of-type(1),
.get-table ul li:nth-of-type(6),
.get-table ul li:nth-of-type(7),

/* Edu-table spacings */
.edu-table ul li:nth-of-type(1),
.edu-table ul li:nth-of-type(9),
.edu-table ul li:nth-of-type(10),

/* Cate-table spacings */
.cate-table ul li:nth-of-type(2),
.cate-table ul li:nth-of-type(3),

/* Mme-table spacing */
.mme-table ul li:nth-of-type(1) {
  margin-bottom: 1rem;
}

/* CONGREGATIONS */

/* Content Styles */
.content-section {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.content-body {
  padding: 30px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="white" opacity="0.05"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="%232d5a2d" stroke-width="1" stroke-opacity="0.05"/></svg>');
  background-size: 200px;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary-dark);
  font-size: 1.4rem;
  font-family: "Playfair Display", serif;
}

.section-title i {
  margin-right: 10px;
  color: var(--secondary);
  background: rgba(191, 10, 48, 0.1);
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.media-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.media-container img:hover {
  transform: scale(1.02);
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.component-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--secondary);
}

.component-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.component-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.component-icon {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-right: 15px;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(191, 10, 48, 0.1);
  border-radius: 50%;
}

.component-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
}

.component-content {
  color: #555;
  line-height: 1.6;
}

/* Info Boxes Section */
.text-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  background: #fff;
}

.text-containers > div {
  flex: 1 1 250px;
  padding: 2rem;
  background: linear-gradient(135deg, #fff, #e8f5e9);
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.text-containers > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.div1:hover {
  background: linear-gradient(
    135deg,
    #2e7d32,
    #1b5e20
  ); /* dark green gradient */
  color: #fff;
}

.div2:hover {
  background: linear-gradient(
    135deg,
    #1565c0,
    #0d47a1
  ); /* dark blue gradient */
  color: #fff;
}

.div3:hover {
  background: linear-gradient(
    135deg,
    #ef6c00,
    #e65100
  ); /* dark orange gradient */
  color: #fff;
}

/* CONSEILLE */

.chaplaincy_apostolates {
  table-layout: fixed;
  width: 1200px;
  max-width: 100%;
  margin: 0px auto;
  border: 2px solid #666;
  border-collapse: collapse;
  border-spacing: 1px;
  font-family: Cambria, serif;
  background: white;
}

.chaplaincy_apostolates th {
  background: #e6e6e6;
  color: #bf0a30;
  font-weight: 900;
  text-transform: uppercase;
  padding: 10px;
  text-align: justify;
  vertical-align: top;
  border: 0.5pt solid black;
  width: 50%;
}

.chaplaincy_apostolates td {
  width: 50%;
  padding: 10px;
  vertical-align: top;
  border: 0.5pt solid black;
  text-align: justify;
}

.chaplaincy_apostolates ul {
  margin: 0;
  padding-left: 1em;
  list-style: none;
}

.chaplaincy_apostolates li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.chaplaincy_apostolates li strong {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.chaplaincy_apostolates span {
  font-size: 13pt;
  line-height: 1.4;
}

.chaplaincy_apostolates strong {
  display: block;
  margin: 8px 0 4px;
}

/* Microsoft Office Compatibility */
.chaplaincy_apostolates {
  mso-yfti-tbllook: 1184;
  mso-border-alt: solid black 0.5pt;
  mso-padding-alt: 0in 5.4pt 0in 5.4pt;
  mso-border-insideh: 0.5pt solid black;
  mso-border-insidev: 0.5pt solid black;
}

/* Target-table spacings */
.target-table ul li:nth-of-type(3),
.target-table ul li:nth-of-type(9),
.target-table ul li:nth-of-type(14),

/* Get-table spacings */
.get-table ul li:nth-of-type(1),
.get-table ul li:nth-of-type(6),
.get-table ul li:nth-of-type(7),

/* Edu-table spacings */
.edu-table ul li:nth-of-type(1),
.edu-table ul li:nth-of-type(9),
.edu-table ul li:nth-of-type(10),

/* Cate-table spacings */
.cate-table ul li:nth-of-type(2),
.cate-table ul li:nth-of-type(3),

/* Mme-table spacing */
.mme-table ul li:nth-of-type(1) {
  margin-bottom: 1rem; /* or any value you want */
}

/* CONTACT */

/* Main Content */
.container-pretres {
  padding: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-pass-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.contact-pass-content {
  width: 100%;
  display: block;
  height: 300px;
}

.section-title {
  text-align: center;
  color: var(--dark-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}
.form-control {
  width: 100%;
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: border 0.3s;
}

.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
}

.btn-green {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-green:hover {
  background-color: #218838;
}

/* Mission/Vision Section */
.text-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  background: #fff;
  margin-top: 2rem;
}

.text-containers > div {
  flex: 1 1 250px;
  padding: 2rem;
  background: linear-gradient(135deg, #fff, #e8f5e9);
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.text-containers > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.div1:hover {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
}

.div2:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
}

.div3:hover {
  background: linear-gradient(135deg, #ef6c00, #e65100);
  color: #fff;
}

/* curie */
/* ===== Card Styles ===== */
.main-container {
  display: flex;
  flex-wrap: wrap; /* allows cards to break onto a new line if needed */
  gap: 20px; /* space between cards */
  justify-content: center; /* centers them horizontally */
  margin-top: 20px;
}

.card {
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: auto;
  overflow: hidden;
  min-height: 350px;
}

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

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== Name Button ===== */
.name-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 5px;
  padding: 8px 12px;
  background-color: #005792;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none; /* removes underline from link */
  gap: 4px;
}

.name-button:hover {
  background-color: #003f6b;
}

.icon {
  font-size: 1.2em;
}

/* ===== Mission/Vision Section ===== */
.text-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  background: #fff;
  margin-top: 2rem;
}

.text-containers > div {
  flex: 1 1 250px;
  padding: 2rem;
  background: linear-gradient(135deg, #fff, #e8f5e9);
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.text-containers > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.div1:hover {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
}

.div2:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
}

.div3:hover {
  background: linear-gradient(135deg, #ef6c00, #e65100);
  color: #fff;
}

/* Eveque */

.main-content {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  height: 300px;
}

.bio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.bio-image {
  width: 450px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.bio-text {
  flex: 1;
  min-width: 250px;
  text-align: justify; /* Justifies the text */
}

.section {
  margin: 40px 0; /* Top and bottom margin */
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.text-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  background: #fff;
}

.text-containers > div {
  flex: 1 1 250px;
  padding: 2rem;
  background: linear-gradient(135deg, #fff, #e8f5e9);
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.text-containers > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.div1:hover {
  background: linear-gradient(
    135deg,
    #2e7d32,
    #1b5e20
  ); /* dark green gradient */
  color: #fff;
}

.div2:hover {
  background: linear-gradient(
    135deg,
    #1565c0,
    #0d47a1
  ); /* dark blue gradient */
  color: #fff;
}

.div3:hover {
  background: linear-gradient(
    135deg,
    #ef6c00,
    #e65100
  ); /* dark orange gradient */
  color: #fff;
}

/* History */

/* Main Container */
.row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.full-width-text {
  padding-left: 75px;
  padding-right: 75px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Title Styling */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.sub-title {
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: 600;
  display: block;
  margin-bottom: 15px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.border-bottom {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  margin: 15px auto;
}

/* About Bishop Section */
.about-bishop-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.about-bishop {
  display: flex;
  align-items: center;
}

.about-bishop img {
  width: 100%;
  height: auto;
  max-width: 600px;
  object-fit: contain;
}

/* Text Content Styling */
.title-wrap {
  flex: 1;
  padding-left: 20px;
}

.text-justify {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  text-justify: inter-word;
}

/* Full-width text below */
.full-width-text {
  clear: both;
  width: 100%;
}

.title-wrap p:first-child {
  margin-top: 0;
}

/* Add this for better text wrapping */
.content-wrapper {
  position: relative;
  margin-bottom: 40px;
}

.margin-bottom-20 {
  margin-bottom: 20px;
}

.margin-bottom-50 {
  margin-bottom: 50px;
}

.section {
  margin: 40px 0;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.text-center {
  text-align: center;
}
.text-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  background: #fff;
}

.text-containers > div {
  flex: 1 1 250px;
  padding: 2rem;
  background: linear-gradient(135deg, #fff, #e8f5e9);
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.text-containers > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.div1:hover {
  background: linear-gradient(
    135deg,
    #2e7d32,
    #1b5e20
  ); /* dark green gradient */
  color: #fff;
}

.div2:hover {
  background: linear-gradient(
    135deg,
    #1565c0,
    #0d47a1
  ); /* dark blue gradient */
  color: #fff;
}

.div3:hover {
  background: linear-gradient(
    135deg,
    #ef6c00,
    #e65100
  ); /* dark orange gradient */
  color: #fff;
}

/* New-pariosse */

/* Main Content Styles */
.main-pass-content {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.main-pass-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.paroisse-header {
  max-width: 800px;
  text-align: center;
  margin: 0 auto 40px;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  color: white;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.paroisse-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--secondary),
    var(--accent)
  );
}

.paroisse-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Zone and Parish Styling */
.zone-container {
  margin-bottom: 50px;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.zone-header {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.zone-header h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.zonal-leader {
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--primary-dark);
  font-size: 1.1rem;
  padding-left: 10px;
  border-left: 4px solid var(--secondary);
}

.parishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.parish {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 8px;
  background: var(--light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.parish:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.parish::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

.parish h3 {
  color: var(--primary-dark);
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.address {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.address::before {
  content: "\f3c5";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--secondary);
}

.clergy-info {
  margin-bottom: 12px;
  line-height: 1.5;
}

.clergy-info strong {
  color: var(--primary-dark);
}

.phone {
  color: #666;
  display: block;
  margin-top: 5px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone::before {
  content: "\f095";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--secondary);
}

/* Mission, Vision, Devise Section */
.text-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: var(--shadow);
}

.text-containers > div {
  flex: 1 1 250px;
  padding: 2rem;
  background: linear-gradient(135deg, #fff, #e8f5e9);
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.text-containers > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.div1:hover {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
}

.div2:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
}

.div3:hover {
  background: linear-gradient(135deg, #ef6c00, #e65100);
  color: #fff;
}

.text-containers h3 {
  margin-bottom: 15px;
  color: var(--primary-dark);
  font-family: "Playfair Display", serif;
}

.text-containers p {
  line-height: 1.6;
}

/* Pretres */

/* Main Content */
.pretres-pass-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.pretres-pass-content {
  width: 100%;
  display: block;
  height: 600px;
}
.container-pretres {
  padding: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
  text-align: center;
  color: var(--dark-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img-container {
  padding: 15px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.card-img-container img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
  border-radius: 5px;
}

.card-body {
  padding: 0.5rem;
  flex-grow: 1;
  text-align: center;
}

.card-title {
  color: var(--dark-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-text {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.card-button {
  text-align: center;
  padding: 0 1rem 1rem;
}

.btn-outline-nsk {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline-nsk:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Mission/Vision Section */
.text-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  background: #fff;
  margin-top: 2rem;
}

.text-containers > div {
  flex: 1 1 250px;
  padding: 2rem;
  background: linear-gradient(135deg, #fff, #e8f5e9);
  border: 2px solid #c8e6c9;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.text-containers > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.div1:hover {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
}

.div2:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
}

.div3:hover {
  background: linear-gradient(135deg, #ef6c00, #e65100);
  color: #fff;
}

/* Image Slider Section */
.slider {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  margin: 0;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide {
  min-width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Station */

/* Appointment Section */
.appointment-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.bishop-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: fit-content;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.bishop-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.bishop-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.bishop-details {
  padding: 25px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.bishop-name {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--gold);
}

.bishop-title {
  font-size: 1.2rem;
  font-style: italic;
}

.appointment-form-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 30px;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.appointment-form-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.form-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 25px;
  text-align: center;
  color: var(--primary);
  position: relative;
  padding-bottom: 15px;
}

.form-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--secondary);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}



.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(45, 90, 45, 0.1);
  outline: none;
}

.required {
  color: var(--secondary);
  margin-left: 4px;
}

.submit-button {
  background: linear-gradient(135deg, var(--secondary), #8a0620);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.submit-button:hover {
  background: linear-gradient(135deg, #8a0620, #6a0519);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(191, 10, 48, 0.3);
}

.form-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* Homepage Sections */
.homepage-section {
    padding: 3rem 1rem;
    background: #fff;
}

.homepage-section:nth-child(even) {
    background: #f8f9fa;
}

.homepage-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.image-text-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-image {
    flex: 1;
}

.section-image img {
    width: 100%;
    border-radius: 8px;
}

.section-text {
    flex: 1;
}

/* Projects Grid */
.projects-section {
    padding: 3rem 1rem;
    background: #f8f9fa;
}

.projects-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.progress-bar {
    background: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    position: relative;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    height: 100%;
    transition: width 0.3s;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 0.85rem;
    color: #333;
}

.project-goal {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0;
}

.btn-read-more {
    display: inline-block;
    background: #2d5a2d;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s 
ease;
    align-self: flex-start;
}

.btn-read-more:hover {
    background: #654321;
}

/* Events Grid */
.events-section {
    padding: 3rem 1rem;
    background: white;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    color: #8B4513;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-content h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-text-layout {
        flex-direction: column;
    }
    
    .projects-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Form error styling */
input.error,
textarea.error {
    border-color: #e74c3c !important;
    background-color: #fee;
}
.congregations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.congregation-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    padding: 24px;
    max-width: 455px;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.congregation-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.congregation-icon {
    font-size: 2.5rem;
    color: #2e5c2e;
}

.congregation-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.congregation-thumb {
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.info-section {
    font-size: 0.98rem;
    margin-bottom: 10px;
}

.congregation-desc {
    font-size: 0.95rem;
    color: #333;
}