
/* ------------------------------

HOME PAGE

 * EAR Butare Diocese – INDEX PAGE CSS ONLY
 * Covers: General, Back-to-top, Header & Navbar, Hero, Features (Our Church with extras),
 * Values (services/#contentful-values), Footer, Section wrappers, and responsive tweaks.

--------------------------------*/

/* ------------------------------
   General (shared basics)
--------------------------------*/
body { font-family: "Open Sans", sans-serif; color: #444; }
a { color: #ffffff; text-decoration: none; }
a:hover { color: #45beff; text-decoration: none; }
h1, h2, h3, h4, h5, h6, .font-primary { font-family: "Roboto", sans-serif; }
#main { margin-top: 80px; } /* space below fixed header */

/* Section wrappers */
section { padding: 60px 0; }
.section-bg { background-color: #f3f8fa; }
.section-title { text-align: center; padding-bottom: 30px; }
.section-title h2 {
  font-size: 28px; font-weight: 400; margin-bottom: 20px; padding-bottom: 20px; position: relative;
}
.section-title h2::before {
  content: ""; position: absolute; width: 120px; height: 1px; background: #ddd; bottom: 1px; left: calc(50% - 60px);
}
.section-title h2::after {
  content: ""; position: absolute; width: 40px; height: 3px; background: #68A4C4; bottom: 0; left: calc(50% - 20px);
}
.section-title p { margin-bottom: 0; }

/* ------------------------------
   Back to top button
--------------------------------*/
.back-to-top {
  position: fixed; visibility: hidden; opacity: 0; right: 15px; bottom: 15px; z-index: 99999;
  background: #8e0204; width: 40px; height: 40px; border-radius: 4px; transition: all 0.4s;
}
.back-to-top i { font-size: 24px; color: #fff; line-height: 0; }
.back-to-top:hover { background: #85b6cf; color: #fff; }
.back-to-top.active { visibility: visible; opacity: 1; }

/* ------------------------------
   Header + Navbar
--------------------------------*/
#header {
  height: 80px; background: #1e4356; z-index: 997; transition: all 0.5s;
  box-shadow: 0 2px 0 rgba(0,0,0,0.03);
}
#header.header-transparent { background: #8e0204; }
#header.header-scrolled { background: #8e0204; height: 60px; box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
#header .logo img { max-height: 40px; }

/* Desktop nav */
.navbar { padding: 0; }
.navbar ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
.navbar li { position: relative; }
.navbar a, .navbar a:focus {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 10px 30px; font-size: 14px; color: #fff; white-space: nowrap; transition: 0.3s;
  position: relative; /* underline effect */
}
.navbar a i { font-size: 12px; line-height: 0; margin-left: 5px; }

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a { color: #a2cce3; }

/* underline hover/active */
.navbar a::after {
  content: ""; position: absolute; left: 30px; right: 0; bottom: 6px; height: 2px; background: currentColor;
  opacity: 0; transform: scaleX(0); transform-origin: left; transition: transform .25s ease, opacity .25s ease;
}
.navbar a:hover::after, .navbar .active::after { opacity: .6; transform: scaleX(1); }

/* Dropdown */
.navbar .dropdown ul {
  display: block; position: absolute; left: 14px; top: calc(100% + 30px);
  margin: 0; padding: 10px 0; z-index: 99; opacity: 0; visibility: hidden;
  background: #fff; box-shadow: 0 0 30px rgba(127,137,161,0.25); transition: 0.3s;
}
.navbar .dropdown ul li { min-width: 200px; }
.navbar .dropdown ul a { padding: 10px 20px; font-size: 14px; text-transform: none; color: #045c88; }
.navbar .dropdown ul a:hover, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a { color: #68A4C4; }
.navbar .dropdown:hover > ul { opacity: 1; top: 100%; visibility: visible; }

/* Mobile nav */
.mobile-nav-toggle { color: #fff; font-size: 28px; cursor: pointer; display: none; line-height: 0; transition: 0.5s; }
@media (max-width: 991px) { .mobile-nav-toggle { display: block; } .navbar ul { display: none; } }
.navbar-mobile {
  position: fixed; inset: 0; overflow: hidden; background: rgba(17,38,48,0.9); transition: 0.3s;
}
.navbar-mobile .mobile-nav-toggle { position: absolute; top: 15px; right: 15px; }
.navbar-mobile ul {
  display: block; position: absolute; top: 55px; right: 15px; bottom: 15px; left: 15px;
  padding: 10px 0; background-color: #fff; overflow-y: auto; transition: 0.3s;
}
.navbar-mobile a, .navbar-mobile a:focus { padding: 10px 20px; font-size: 15px; color: #1e4356; }
.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a { color: #68A4C4; }
.navbar-mobile .dropdown ul {
  position: static; display: none; margin: 10px 20px; padding: 10px 0;
  z-index: 99; opacity: 1; visibility: visible; background: #fff;
  box-shadow: 0 0 30px rgba(127,137,161,0.25);
}
.navbar-mobile .dropdown > .dropdown-active { display: block; }

/* ------------------------------
   Hero
--------------------------------*/
#hero {
  width: 100%; height: 90vh; overflow: hidden; position: relative;
  background-color: #8e0204; /* fallback if image fails */
}
#hero::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 130%; height: 95%;
  background:
    linear-gradient(to right, rgba(34, 5, 133, 0.8), rgba(203, 143, 59, 0.6)),
    url("../img/usable/thechurch1.jpg") center 30% no-repeat;
  background-size: cover; z-index: 0; border-radius: 0 0 50% 50%;
  transform: translateX(-50%) rotate(0deg);
}
#hero::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 130%; height: 96%;
  background: #8e0204; opacity: 0.4; z-index: 0; border-radius: 0 0 50% 50%;
  transform: translateX(-50%) translateY(18px) rotate(2deg);
}
#hero .carousel-container {
  display: flex; justify-content: center; align-items: center; flex-direction: column;
  text-align: center; position: relative; z-index: 1; inset: 0;
}
#hero h2 {
  color: #fff; margin-bottom: 30px; font-size: 48px; font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
#hero p {
  width: 80%; margin: 0 auto 30px auto; color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#hero .btn-get-started {
  font-family: "Roboto", sans-serif; font-weight: 500; font-size: 14px; letter-spacing: 1px;
  padding: 12px 32px; border-radius: 50px; transition: 0.5s; line-height: 1; margin: 10px;
  color: #fff; border: 2px solid #68A4C4; background: transparent;
}
#hero .btn-get-started:hover { background: #68A4C4; text-decoration: none; }
#hero .carousel-control-prev, #hero .carousel-control-next { width: 10%; z-index: 1; }
#hero .carousel-control-next-icon, #hero .carousel-control-prev-icon {
  background: none; font-size: 48px; color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Hero responsiveness */
@media (min-width: 1024px) { #hero p { width: 60%; } #hero .carousel-control-prev, #hero .carousel-control-next { width: 5%; } }
@media (max-width: 768px) {
  #hero::after {
    width: 180%;
    background:
      linear-gradient(to right, rgba(34, 5, 133, 0.8), rgba(203, 143, 59, 0.6)),
      url("../img/usable/thechurch1.jpg") center 30% no-repeat;
    background-size: cover;
  }
  #hero::before { width: 180%; transform: translateX(-50%) translateY(20px) rotate(4deg); }
}
@media (max-width: 575px) {
  #hero { height: 80vh; }
  #hero h2 { font-size: 30px; }
  #hero::after, #hero::before { width: 200%; left: 50%; }
}
/* High-resolution screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  #hero::after {
    background-image:
      linear-gradient(to right, rgba(34, 5, 133, 0.8), rgba(203, 143, 59, 0.6)),
      url("../img/usable/thechurch1.jpg");
  }
}

/* ------------------------------
   Features – “Our Church” block
--------------------------------*/
.features {
  position: relative;                 /* for wave connector */
  padding: 64px 0 80px;               /* tighter top, comfy bottom */
  background: #f8fbfd;                /* gentle tint */
}

/* Wave connector above the section (Hero -> Features) */
.features::before {
  content: "";
  position: absolute;
  top: -48px; left: 0; width: 100%; height: 48px;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1440 48' xmlns='http://www.w3.org/2000/svg'><path fill='%23f8fbfd' d='M0,32 C240,0 480,64 720,32 C960,0 1200,64 1440,32 L1440,48 L0,48 Z'/></svg>")
             center / cover no-repeat;
  pointer-events: none;
  z-index: 1;
}

.features .row {
  position: relative;                 /* for dashed divider */
  align-items: center; row-gap: 2rem; margin-bottom: 56px;
}
.features .row:last-of-type { margin-bottom: 0; }

/* Dashed divider before the second row */
.features .row + .row::before {
  content: "";
  position: absolute;
  top: -28px; left: 50%; transform: translateX(-50%);
  width: 140px; height: 2px; opacity: .35;
  background-image: linear-gradient(to right, #68A4C4 33%, rgba(0,0,0,0) 0);
  background-size: 14px 2px;
  background-repeat: repeat-x;
}

/* Image style */
.features .col-md-5 { position: relative; }
.features .col-md-5 img {
  display: block; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

/* Badge on the first image only */
.features .row:first-of-type .col-md-5::after {
  content: "Since 1975";
  position: absolute; left: 12px; top: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  background: rgba(14,47,64,.85);
  color: #fff; padding: 6px 10px; border-radius: 999px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}

/* Text column */
.features .col-md-7 { padding-top: 0 !important; }
.features .col-md-7 p { max-width: 65ch; line-height: 1.7; }

/* Accent left line on text block (tablet/desktop) */
@media (min-width: 768px){
  .features .col-md-7 {
    border-left: 3px solid rgba(104,164,196,.45); /* #68A4C4 */
    padding-left: 22px;
  }
}

/* Headings polish */
.features h3 {
  font-size: 28px; font-weight: 700; color: #0f2f40; margin-bottom: 12px; position: relative;
}
.features h3::after {
  content: ""; display: block; width: 64px; height: 3px; background: #68A4C4; margin-top: 10px; border-radius: 2px;
}

/* Section title within features */
.features .section-title h2 { font-size: 30px; font-weight: 700; color: #0f2f40; }
.features .section-title p { color: #4a5d66; }

/* Responsive */
@media (max-width: 991.98px) {
  .features { padding: 56px 0 72px; }
  .features .col-md-7 { text-align: left; border-left: 0; padding-left: 0; }
}
@media (max-width: 767.98px) {
  .features { padding: 48px 0 64px; }
  .features .col-md-7 { text-align: center; }
  .features h3 { font-size: 24px; }
  .features .col-md-7 p { margin-left: auto; margin-right: auto; }
  .features .col-md-5 img { aspect-ratio: 16 / 10; }
}

/* ------------------------------
   Values – services / #contentful-values
--------------------------------*/
/* ================================
   VALUES (Contentful) — FIXED LAYOUT
   Drop-in replacement for the values grid
================================== */
.services { padding: 72px 0 40px; background: #ffffff; }

/* Use a flexible, non-collapsing layout */
#contentful-values{
  display: flex !important;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0; /* neutralize .row gutters if present */
}

/* Each Contentful item/card wrapper */
#contentful-values > *{
  flex: 1 1 320px;   /* target 3 per row on desktop */
  min-width: 280px;  /* prevents ultra-thin columns */
  max-width: 100%;
}

/* Actual card (works whether Contentful outputs .icon-box or plain divs) */
#contentful-values .icon-box,
#contentful-values > *:not(.icon-box){
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  background: #fff;
  border: 1px solid #eef3f6;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  overflow: visible; /* remove inner scrollbars */
}

/* Accent bar on top of each card */
#contentful-values .icon-box::before,
#contentful-values > *:not(.icon-box)::before{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 4px;
  background: #68A4C4;
  border-radius: 16px 16px 0 0;
  opacity: .9;
}

/* Optional icon bubble – hidden if your entries don’t include icons */
#contentful-values .icon{ display: none; }

/* Title + body */
#contentful-values .title{
  font-size: 18px;
  font-weight: 700;
  color: #0f2f40;
  margin: 0 0 8px;
}
#contentful-values .description,
#contentful-values p{
  margin: 0;
  line-height: 1.75;
  color: #3f5560;
  overflow: visible;
  max-height: none;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Section header */
.services .section-title h3{ font-size: 30px; font-weight: 700; color: #0f2f40; margin-bottom: 10px; }
.services .section-title p{ color: #4a5d66; }

/* Hover state */
#contentful-values .icon-box:hover,
#contentful-values > *:not(.icon-box):hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
  border-color: #dbe7ef;
}

/* Responsive */
@media (max-width: 991.98px){
  #contentful-values{ gap: 22px; }
  #contentful-values > *{ flex-basis: 48%; min-width: 260px; }
}
@media (max-width: 575.98px){
  #contentful-values{ gap: 18px; }
  #contentful-values > *{ flex-basis: 100%; min-width: 0; }
}




/* ------------------------------
   Footer
--------------------------------*/
#footer { background: none; color: #fff; font-size: 14px; }

/* Top area */
#footer .footer-top {
  background: #8e0204; border-top: 1px solid #17455e; border-bottom: 1px solid #123649; padding: 64px 0 36px;
}
#footer .footer-top h4,
#footer .footer-top .footer-info h3 { color: #a2cce3; font-weight: 700; letter-spacing: .2px; margin-bottom: 14px; }
#footer .footer-top .footer-info p { color: #fff; line-height: 1.8; margin-top: 8px; max-width: 60ch; }

/* Links list */
#footer .footer-top .footer-links ul { list-style: none; padding: 0; margin: 0; }
#footer .footer-top .footer-links ul li {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}
#footer .footer-top .footer-links ul li:last-child { border-bottom: 0; }
#footer .footer-top .footer-links a {
  color: #ffffff; text-decoration: none; transition: color .18s ease, opacity .18s ease;
}
#footer .footer-top .footer-links a:hover { color: #a2cce3; text-decoration: underline; }

/* Contact */
#footer .footer-top .footer-contact p { color: #fff; line-height: 1.8; margin: 0; }
#footer .footer-top .footer-contact strong { color: #a2cce3; font-weight: 700; }

/* Social icons */
#footer .footer-top .social-links { display: flex; gap: 10px; margin-top: 12px; }
#footer .footer-top .social-links a {
  width: 40px; height: 40px; border-radius: 50%; background: #1e4356;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
#footer .footer-top .social-links a:hover {
  background: #68A4C4; transform: translateY(-2px); box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

/* “Find us on Maps” helper */
#footer .footer-top a[target="_blank"] { color: #a2cce3; text-decoration: underline; }
#footer .footer-top a[target="_blank"]:hover { color: #ffffff; }

/* Bottom bar */
.footer-bottom-bar {
  background: #0b212d; border-top: 1px solid rgba(255,255,255,.08);
  color: #fff; font-size: 14px; padding: 14px 0;
}
.footer-bottom-bar .container {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.footer-bottom-bar .copyright { opacity: .95; }
.footer-bottom-bar .footer-mini-links { list-style: none; display: flex; gap: 12px; padding: 0; margin: 0; }
.footer-bottom-bar .footer-mini-links a { color: #a2cce3; text-decoration: none; }
.footer-bottom-bar .footer-mini-links a:hover { color: #fff; text-decoration: underline; }

/* Responsive footer tidy-ups */
@media (max-width: 991.98px){ #footer .footer-top { padding: 56px 0 28px; } }
@media (max-width: 767.98px){
  #footer .footer-top .footer-info,
  #footer .footer-top .footer-links,
  #footer .footer-top .footer-contact { text-align: center; }
  #footer .footer-top .social-links { justify-content: center; }
  .footer-bottom-bar .container { justify-content: center; text-align: center; gap: 8px; }
}

/* ------------------------------
   Optional sticky footer (uncomment to use site-wide)
--------------------------------*/
/*
html, body { height: 100%; }
body { display: flex; flex-direction: column; }
#main { flex: 1 0 auto; }
#footer { flex-shrink: 0; }
*/



/*

ABOUT US

*/


/**
 * ABOUT PAGE — page-only styles
 * Sections: Breadcrumbs, About (image + text), Vision & Mission (cards), Team (grid/cards)
 * Brand accent used: #68A4C4
 */

/* =============== Breadcrumbs =============== */
.breadcrumbs {
  padding: 28px 0;
  background: linear-gradient(180deg, #f7fbfe 0%, #f3f8fa 100%);
  border-bottom: 1px solid #e9f1f6;
}
.breadcrumbs .d-flex {
  background: #ffffff;
  border: 1px solid #eef3f6;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}
.breadcrumbs h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700 !important;
  color: #0f2f40;
}
.breadcrumbs ol {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0;
}
.breadcrumbs ol li { color: #607583; font-weight: 500; }
.breadcrumbs ol li a { color: #256784; text-decoration: none; }
.breadcrumbs ol li a:hover { color: #68A4C4; text-decoration: underline; }
.breadcrumbs ol li + li { padding-left: 10px; }
.breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: #9ab3c0;
}
@media (max-width: 768px) {
  .breadcrumbs { padding: 20px 0; }
  .breadcrumbs .d-flex { flex-direction: column; gap: 8px; }
}

/* =============== About (image + text) =============== */
.about {
  padding: 64px 0;
  background: #fff;
}
.about .row {
  align-items: center;
  row-gap: 24px;
}
/* image */
.about .col-lg-6:first-child { position: relative; }
.about .col-lg-6:first-child::before {
  content: "";
  position: absolute;
  left: -14px; top: -14px;
  width: 46%; height: 46%;
  background: rgba(104,164,196,.14);
  border-radius: 16px;
  z-index: 0;
}
.about img.img-fluid {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
/* text */
.about h3 {
  font-size: 28px;
  font-weight: 800;
  color: #0f2f40;
  margin-bottom: 12px;
}
.about h3::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: #68A4C4;
  border-radius: 2px;
  margin-top: 10px;
}
.about p {
  font-size: 1rem;
  line-height: 1.85;
  color: #3c5160;
  margin-bottom: 0;
  max-width: 72ch;
}
/* stack spacing */
.about + .about { padding-top: 32px; }

/* responsive */
@media (max-width: 991.98px) { .about { padding: 56px 0; } }
@media (max-width: 767.98px) {
  .about { padding: 48px 0; }
  .about img.img-fluid { aspect-ratio: 16 / 10; }
  .about h3 { font-size: 24px; }
}

/* =============== Vision & Mission cards =============== */
.about .section-title {
  background: #ffffff;
  border: 1px solid #eef3f6;
  border-radius: 16px;
  padding: 22px 22px 18px;
  margin: 0 auto 18px;
  max-width: 960px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.about .section-title h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f2f40;
  padding-bottom: 8px;
  margin-bottom: 10px;
  position: relative;
}
.about .section-title h2::before,
.about .section-title h2::after { display: none; }
.about .section-title p {
  margin: 0;
  color: #3c5160;
  line-height: 1.85;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   ABOUT US > TEAM SECTION — centered, responsive cards
================================== */
#team.team.section{
  padding: 64px 0 56px;
  background: #f8fbfd;
}

#team .section-title{ margin-bottom: 18px; text-align: center; }
#team .section-title h2{
  font-size: 28px; font-weight: 800; color: #0f2f40;
  padding-bottom: 10px; margin-bottom: 8px; position: relative; display: inline-block;
}
#team .section-title h2::after{
  content:""; position:absolute; left:50%; transform:translateX(-50%);
  bottom:0; width:72px; height:3px; background:#68A4C4; border-radius:2px;
}
#team .section-title p{ color:#4a5d66; margin:0; }

/* --- Grid wrapper (Contentful injects children into this element) --- */
#contentful-teamMemberss{
  display:flex !important;
  flex-wrap:wrap;
  gap:24px;
  justify-content:center;     /* centers when few items */
  margin-left:0; margin-right:0;  /* neutralize any .row gutters */
}

/* Each injected item becomes a card */
#contentful-teamMemberss > *{
  flex:1 1 300px;             /* ~3 per row on desktop */
  max-width:360px;            /* keeps cards tidy */
  min-width:260px;
  background:#fff;
  border:1px solid #eaf1f6;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex; flex-direction:column;
}
#contentful-teamMemberss > *:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(0,0,0,.10);
  border-color:#dbe7ef;
}

/* Image (works for plain <img> or .member-img img) */
#contentful-teamMemberss img,
#contentful-teamMemberss .member-img img{
  width:100%;
  height:320px;               /* consistent look */
  object-fit:cover;
  display:block;
}

/* Headings coming from Contentful (.h3/.h4…) */
#contentful-teamMemberss h3,
#contentful-teamMemberss h4{
  font-size:18px; font-weight:800; color:#0f2f40;
  margin:14px 16px 4px;
}

/* Role / subtitle (handles span/small/em) */
#contentful-teamMemberss span,
#contentful-teamMemberss small,
#contentful-teamMemberss em{
  display:block;
  font-size:13px;
  text-transform:uppercase;
  color:#68A4C4;
  margin:0 16px 10px;
}

/* Bio/description text */
#contentful-teamMemberss p{
  font-size:14px; line-height:1.7; color:#5a6d78; margin:0 16px 16px;
}

/* Optional: social row if Contentful adds links */
#contentful-teamMemberss .social{
  display:flex; gap:12px; padding:10px 16px 16px; margin-top:auto;
}
#contentful-teamMemberss .social a{ color:#1e4356; }
#contentful-teamMemberss .social a:hover{ color:#68A4C4; }

/* Responsive tweaks */
@media (max-width: 991.98px){
  #contentful-teamMemberss{ gap:22px; }
  #contentful-teamMemberss > *{ flex:1 1 46%; max-width:420px; }
}
@media (max-width: 575.98px){
  #team.team.section{ padding:52px 0 44px; }
  #contentful-teamMemberss{ gap:18px; }
  #contentful-teamMemberss > *{ flex:1 1 100%; max-width:100%; }
  #contentful-teamMemberss img,
  #contentful-teamMemberss .member-img img{ height:240px; }
}

















/*

THE CODE BELOW WILL BE REFACTORED TOO

*/






/**
* Template Name: Moderna
* Template URL: https://bootstrapmade.com/free-bootstrap-template-corporate-moderna/
* Updated: May 7 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #444;
}

a {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  color: #45beff;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-primary {
  font-family: "Roboto", sans-serif;
}



/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #8e0204;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #85b6cf;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  height: 80px;
  transition: all 0.5s;
  z-index: 997;
  transition: all 0.5s;
  background: #1e4356;
}

#header.header-transparent {
  background: #8e0204;
}

#header.header-scrolled {
  background: #8e0204;
  height: 60px;
}

#header .logo h1 {
  font-size: 28px;
  margin: 0;
  padding: 4px 0;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 40px;
}

#main {
  margin-top: 80px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #a2cce3;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  color: #045c88;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #68A4C4;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(17, 38, 48, 0.9);
  transition: 0.3s;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #1e4356;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: #68A4C4;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
  color: #68A4C4;
}

.navbar-mobile .dropdown>.dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 90vh;
  overflow: hidden;
  position: relative;
  background-color: #8e0204; /* Fallback if image fails to load */
}

#hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 130%;
  height: 95%;
  background: linear-gradient(to right, rgba(34, 5, 133, 0.8), rgba(203, 143, 59, 0.6)), 
              url("../img/usable/thechurch1.jpg") center 30% no-repeat;
  background-size: cover;
  z-index: 0;
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%) rotate(0deg);
}

#hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 130%;
  height: 96%;
  background: #8e0204;
  opacity: 0.4;
  z-index: 0;
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%) translateY(18px) rotate(2deg);
}

#hero .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  z-index: 1;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

#hero h2 {
  color: #fff;
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Better readability */
}

#hero p {
  width: 80%;
  margin: 0 auto 30px auto;
  color: #fff;
  animation-delay: 0.4s;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#hero .btn-get-started {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 12px 32px;
  border-radius: 50px;
  transition: 0.5s;
  line-height: 1;
  margin: 10px;
  color: #fff;
  border: 2px solid #68A4C4;
  background: transparent;
  animation-delay: 0.8s;
}

#hero .btn-get-started:hover {
  background: #68A4C4;
  text-decoration: none;
}

/* Carousel Controls (if used) */
#hero .carousel-control-prev,
#hero .carousel-control-next {
  width: 10%;
  z-index: 1;
}

#hero .carousel-control-next-icon,
#hero .carousel-control-prev-icon {
  background: none;
  font-size: 48px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Adjustments */
@media (min-width: 1024px) {
  #hero p {
    width: 60%;
  }
  #hero .carousel-control-prev,
  #hero .carousel-control-next {
    width: 5%;
  }
}

@media (max-width: 768px) {
  #hero::after {
    width: 180%;
    background: linear-gradient(to right, rgba(34, 5, 133, 0.8), rgba(203, 143, 59, 0.6)), 
                url("../img/usable/thechurch1.jpg") center 30% no-repeat;
  }
  #hero::before {
    width: 180%;
    transform: translateX(-50%) translateY(20px) rotate(4deg);
  }
}

@media (max-width: 575px) {
  #hero {
    height: 80vh; /* Slightly shorter on mobile */
  }
  #hero h2 {
    font-size: 30px;
  }
  #hero::after {
    width: 200%;
    left: 50%;
  }
  #hero::before {
    width: 200%;
  }
}

/* High-resolution screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  #hero::after {
    background-image: linear-gradient(to right, rgba(34, 5, 133, 0.8), rgba(203, 143, 59, 0.6)), 
                     url("../img/usable/thechurch1.jpg");
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
}

.section-bg {
  background-color: #f3f8fa;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #68A4C4;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 15px 0;
  background-color: #f3f8fa;
  min-height: 40px;
}

.breadcrumbs h2 {
  font-size: 28px;
  font-weight: 300;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: #6c757d;
  content: "/";
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }

  .breadcrumbs ol {
    display: block;
  }

  .breadcrumbs ol li {
    display: inline-block;
  }
}

/*--------------------------------------------------------------
# Our Services
--------------------------------------------------------------*/
.services {
  padding-bottom: 20px;
}

.services .icon-box {
  padding: 30px;
  position: relative;
  overflow: hidden;
  margin: 0 0 40px 0;
  background: #fff;
  box-shadow: 0 5px 26px 0 rgba(68, 88, 144, 0.14);
  transition: all 0.3s ease-in-out;
  text-align: center;
  border: 1px solid #fff;
}

.services .icon {
  margin: 0 auto 20px auto;
  padding-top: 17px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  width: 72px;
  height: 72px;
}

.services .icon i {
  font-size: 36px;
  line-height: 1;
}

.services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .title a {
  color: #111;
}

.services .description {
  font-size: 15px;
  line-height: 28px;
  margin-bottom: 0;
}

.services .icon-box-pink .icon {
  background: #fceef3;
}

.services .icon-box-pink .icon i {
  color: #ff689b;
}

.services .icon-box-pink:hover {
  border-color: #ff689b;
}

.services .icon-box-cyan .icon {
  background: #e6fdfc;
}

.services .icon-box-cyan .icon i {
  color: #3fcdc7;
}

.services .icon-box-cyan:hover {
  border-color: #3fcdc7;
}

.services .icon-box-green .icon {
  background: #eafde7;
}

.services .icon-box-green .icon i {
  color: #41cf2e;
}

.services .icon-box-green:hover {
  border-color: #41cf2e;
}

.services .icon-box-blue .icon {
  background: #e1eeff;
}

.services .icon-box-blue .icon i {
  color: #2282ff;
}

.services .icon-box-blue:hover {
  border-color: #2282ff;
}

/*--------------------------------------------------------------
# Why Us
--------------------------------------------------------------*/
.why-us .container {
  box-shadow: 0 5px 25px 0 rgba(214, 215, 216, 0.6);
  background: #fff;
}

.why-us .icon-box+.icon-box {
  margin-top: 50px;
}

.why-us .icon-box .icon {
  float: left;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: #f3f8fa;
  border-radius: 6px;
  transition: 0.5s;
}

.why-us .icon-box .icon i {
  color: #68A4C4;
  font-size: 32px;
}

.why-us .icon-box:hover .icon {
  background: #68A4C4;
}

.why-us .icon-box:hover .icon i {
  color: #fff;
}

.why-us .icon-box .title {
  margin-left: 95px;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
  text-transform: uppercase;
}

.why-us .icon-box .title a {
  color: #343a40;
  transition: 0.3s;
}

.why-us .icon-box .title a:hover {
  color: #68A4C4;
}

.why-us .icon-box .description {
  margin-left: 95px;
  line-height: 24px;
  font-size: 14px;
}

.why-us .video-box {
  position: relative;
}

.why-us .video-box img {
  padding-top: 15px;
  padding-bottom: 15px;
}

.why-us .play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(#68A4C4 50%, rgba(104, 164, 196, 0.4) 52%);
  border-radius: 50%;
  display: block;
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
  overflow: hidden;
}

.why-us .play-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.why-us .play-btn::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid rgba(104, 164, 196, 0.7);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.why-us .play-btn:hover::after {
  border-left: 15px solid #68A4C4;
  transform: scale(20);
}

.why-us .play-btn:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

@keyframes pulsate-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Features
--------------------------------------------------------------*/
.features .row+.row {
  margin-top: 100px;
}

.features h3 {
  font-weight: 400;
  font-size: 24px;
}

.features ul {
  list-style: none;
  padding: 0;
}

.features ul li {
  padding-bottom: 10px;
}

.features ul i {
  font-size: 20px;
  padding-right: 4px;
  color: #68A4C4;
}

.features p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about h3 {
  font-weight: 400;
  font-size: 26px;
}

.about ul {
  list-style: none;
  padding: 0;
}

.about ul li {
  padding-bottom: 10px;
}

.about ul i {
  font-size: 20px;
  padding-right: 4px;
  color: #68A4C4;
}

.about p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts .counters span {
  font-size: 48px;
  display: block;
  color: #68A4C4;
}

.facts .counters p {
  padding: 0;
  margin: 0 0 20px 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Clients
--------------------------------------------------------------*/
.clients .swiper-wrapper {
  height: auto;
}

.clients .swiper-pagination {
  margin-top: 30px;
  position: relative;
}

.clients .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.2);
}

.clients .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #68A4C4;
}

/*--------------------------------------------------------------
# Our Skills
--------------------------------------------------------------*/
.skills {
  padding: 60px 0;
}

.skills .progress {
  height: 35px;
  margin-bottom: 10px;
}

.skills .progress .skill {
  line-height: 35px;
  padding: 0;
  margin: 0 0 0 20px;
  text-transform: uppercase;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
  margin: 0 20px 0 0;
}

.skills .progress-bar {
  width: 1px;
  text-align: left;
  transition: 0.9s;
}

/*--------------------------------------------------------------
# Tetstimonials
--------------------------------------------------------------*/
.testimonials {
  padding: 60px 0;
}

.testimonials .section-header {
  margin-bottom: 40px;
}

.testimonials .testimonials-carousel {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
}

.testimonials .testimonial-item .testimonial-img {
  width: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0 0 15px 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #fbfcfd;
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #68A4C4;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #68A4C4;
}

/*--------------------------------------------------------------
# Service Details
--------------------------------------------------------------*/
.service-details {
  padding-bottom: 10px;
}

.service-details .card {
  border: 0;
  padding: 0 30px;
  margin-bottom: 60px;
  position: relative;
}

.service-details .card-img {
  width: calc(100% + 60px);
  margin-left: -30px;
  overflow: hidden;
  z-index: 9;
  border-radius: 0;
}

.service-details .card-img img {
  max-width: 100%;
  transition: all 0.3s ease-in-out;
}

.service-details .card-body {
  z-index: 10;
  background: #fff;
  border-top: 4px solid #fff;
  padding: 30px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  margin-top: -60px;
  transition: 0.3s;
}

.service-details .card-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.service-details .card-title a {
  color: #1e4356;
  transition: 0.3s;
}

.service-details .card-text {
  color: #5e5e5e;
}

.service-details .read-more a {
  color: #777777;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
  transition: 0.3s;
}

.service-details .read-more a:hover {
  color: #68A4C4;
}

.service-details .card:hover img {
  transform: scale(1.1);
}

.service-details .card:hover .card-body {
  border-color: #68A4C4;
}

.service-details .card:hover .card-body .card-title a {
  color: #68A4C4;
}

/*--------------------------------------------------------------
# Pricing
--------------------------------------------------------------*/
.pricing .row {
  padding-top: 40px;
}

.pricing .box {
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0px 0px 30px rgba(73, 78, 92, 0.15);
  background: #fff;
  text-align: center;
}

.pricing h3 {
  font-weight: 300;
  margin-bottom: 15px;
  font-size: 28px;
}

.pricing h4 {
  font-size: 46px;
  color: #68A4C4;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 25px;
}

.pricing h4 span {
  color: #bababa;
  font-size: 18px;
  display: block;
}

.pricing ul {
  padding: 0;
  list-style: none;
  color: #999;
  text-align: left;
  line-height: 20px;
}

.pricing ul li {
  padding-bottom: 12px;
}

.pricing ul i {
  color: #68A4C4;
  font-size: 18px;
  padding-right: 4px;
}

.pricing ul .na {
  color: #ccc;
}

.pricing ul .na i {
  color: #ccc;
}

.pricing ul .na span {
  text-decoration: line-through;
}

.pricing .get-started-btn {
  background: #1e4356;
  display: inline-block;
  padding: 6px 30px;
  border-radius: 20px;
  color: #fff;
  transition: none;
  font-size: 14px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  transition: 0.3s;
}

.pricing .get-started-btn:hover {
  background: #68A4C4;
}

.pricing .featured {
  z-index: 10;
  margin: -30px -5px 0 -5px;
}

.pricing .featured .get-started-btn {
  background: #68A4C4;
}

.pricing .featured .get-started-btn:hover {
  background: #85b6cf;
}

@media (max-width: 992px) {
  .pricing .box {
    max-width: 60%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 767px) {
  .pricing .box {
    max-width: 80%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 420px) {
  .pricing .box {
    max-width: 100%;
    margin: 0 auto 30px auto;
  }
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio {
  padding-bottom: 60px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 0 35px 0;
  list-style: none;
  text-align: center;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  margin: 0 12px 5px 12px;
  display: inline-block;
  padding: 0 4px 6px 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #444;
  transition: all 0.3s ease-in-out;
  border-bottom: 2px solid #fff;
  font-family: "Roboto", sans-serif;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  border-color: #68A4C4;
  color: #68A4C4;
}

.portfolio .portfolio-item {
  background: #1e4356;
  overflow: hidden;
  min-height: 200px;
  position: relative;
  border-radius: 4px;
  margin: 0 0 30px 0;
}

.portfolio .portfolio-item img {
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  transition: all 0.3s linear;
  text-align: center;
  top: 10%;
  left: 0;
  right: 0;
}

.portfolio .portfolio-item .portfolio-info h3 {
  font-size: 22px;
  color: #fff;
  font-weight: bold;
}

.portfolio .portfolio-item .portfolio-info a i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  transition: 0.3s;
}

.portfolio .portfolio-item .portfolio-info a i:hover {
  color: white;
}

.portfolio .portfolio-item:hover img {
  opacity: 0.6;
  transform: scale(1.1);
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  top: calc(50% - 30px);
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #68A4C4;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #68A4C4;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(30, 67, 86, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/
.team {
  background: #fff;
  padding-bottom: 30px;
}

.team .member {
  margin-bottom: 20px;
  overflow: hidden;
}

.team .member .member-img {
  position: relative;
  overflow: hidden;
}

.team .member .social {
  position: absolute;
  left: 0;
  bottom: -40px;
  right: 0;
  height: 40px;
  opacity: 0;
  transition: bottom ease-in-out 0.4s;
  text-align: center;
  background: rgba(30, 67, 86, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .member .social a {
  transition: color 0.3s;
  color: #fff;
  margin: 0 12px;
  display: inline-block;
}

.team .member .social a:hover {
  color: #68A4C4;
}

.team .member .social i {
  font-size: 18px;
  margin: 0 2px;
}

.team .member .member-info h4 {
  font-weight: 700;
  margin: 15px 0 5px 0;
  font-size: 18px;
}

.team .member .member-info span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 15px;
  color: #68A4C4;
}

.team .member .member-info p {
  font-style: italic;
  font-size: 14px;
  line-height: 26px;
  color: #666;
}

.team .member:hover .social {
  bottom: 0;
  opacity: 1;
  transition: bottom ease-in-out 0.4s;
}

.team .member:hover .social a,
.team .member:hover .social i {
  line-height: 0;
  font-size: 18px;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding-bottom: 30px;
}

.contact .info-box {
  color: #444;
  text-align: center;
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
  padding: 20px 0 30px 0;
  margin-bottom: 30px;
}

.contact .info-box i {
  font-size: 32px;
  color: #68A4C4;
  border-radius: 50%;
  padding: 8px;
  border: 2px dotted #a2cce3;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #666;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form {
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
  padding: 30px;
  margin-bottom: 30px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input::focus,
.contact .php-email-form textarea::focus {
  background-color: #68A4C4;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #68A4C4;
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
}

.contact .php-email-form button[type=submit]:hover {
  background: #8dbad2;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Map
--------------------------------------------------------------*/
.map {
  padding: 0;
  margin-bottom: -6px;
}

.map iframe {
  width: 100%;
  height: 380px;
}

/*--------------------------------------------------------------
# Blog
--------------------------------------------------------------*/
.blog {
  padding: 40px 0 20px 0;
}

.blog .entry {
  padding: 30px;
  margin-bottom: 60px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog .entry .entry-img {
  max-height: 440px;
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog .entry .entry-title {
  font-size: 28px;
  font-weight: bold;
  padding: 0;
  margin: 0 0 20px 0;
}

.blog .entry .entry-title a {
  color: #1e4356;
  transition: 0.3s;
}

.blog .entry .entry-title a:hover {
  color: #68A4C4;
}

.blog .entry .entry-meta {
  margin-bottom: 15px;
  color: #72afce;
}

.blog .entry .entry-meta ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog .entry .entry-meta ul li+li {
  padding-left: 20px;
}

.blog .entry .entry-meta i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
}

.blog .entry .entry-meta a {
  color: #777777;
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog .entry .entry-content p {
  line-height: 24px;
}

.blog .entry .entry-content .read-more {
  -moz-text-align-last: right;
  text-align-last: right;
}

.blog .entry .entry-content .read-more a {
  display: inline-block;
  background: #68A4C4;
  color: #fff;
  padding: 6px 20px;
  transition: 0.3s;
  font-size: 14px;
}

.blog .entry .entry-content .read-more a:hover {
  background: #7aafcb;
}

.blog .entry .entry-content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog .entry .entry-content blockquote {
  overflow: hidden;
  background-color: #fafafa;
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog .entry .entry-content blockquote p {
  color: #444;
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog .entry .entry-content blockquote::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #1e4356;
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog .entry .entry-footer {
  padding-top: 10px;
  border-top: 1px solid #e6e6e6;
}

.blog .entry .entry-footer i {
  color: #4c99c1;
  display: inline;
}

.blog .entry .entry-footer a {
  color: #255269;
  transition: 0.3s;
}

.blog .entry .entry-footer a:hover {
  color: #68A4C4;
}

.blog .entry .entry-footer .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog .entry .entry-footer .cats li {
  display: inline-block;
}

.blog .entry .entry-footer .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog .entry .entry-footer .tags li {
  display: inline-block;
}

.blog .entry .entry-footer .tags li+li::before {
  padding-right: 6px;
  color: #6c757d;
  content: ",";
}

.blog .entry .entry-footer .share {
  font-size: 16px;
}

.blog .entry .entry-footer .share i {
  padding-left: 5px;
}

.blog .entry-single {
  margin-bottom: 30px;
}

.blog .blog-author {
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog .blog-author img {
  width: 120px;
  margin-right: 20px;
}

.blog .blog-author h4 {
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 0px;
  padding: 0;
  color: #1e4356;
}

.blog .blog-author .social-links {
  margin: 0 10px 10px 0;
}

.blog .blog-author .social-links a {
  color: rgba(30, 67, 86, 0.5);
  margin-right: 5px;
}

.blog .blog-author p {
  font-style: italic;
  color: #b7b7b7;
}

.blog .blog-comments {
  margin-bottom: 30px;
}

.blog .blog-comments .comments-count {
  font-weight: bold;
}

.blog .blog-comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog .blog-comments .comment .comment-img {
  margin-right: 14px;
}

.blog .blog-comments .comment .comment-img img {
  width: 60px;
}

.blog .blog-comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog .blog-comments .comment h5 a {
  font-weight: bold;
  color: #444;
  transition: 0.3s;
}

.blog .blog-comments .comment h5 a:hover {
  color: #68A4C4;
}

.blog .blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: #1e4356;
}

.blog .blog-comments .comment h5 .reply i {
  font-size: 20px;
}

.blog .blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: #2b607c;
  margin-bottom: 5px;
}

.blog .blog-comments .comment.comment-reply {
  padding-left: 40px;
}

.blog .blog-comments .reply-form {
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog .blog-comments .reply-form h4 {
  font-weight: bold;
  font-size: 22px;
}

.blog .blog-comments .reply-form p {
  font-size: 14px;
}

.blog .blog-comments .reply-form input {
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
}

.blog .blog-comments .reply-form input:focus {
  box-shadow: none;
  border-color: #b1d0e1;
}

.blog .blog-comments .reply-form textarea {
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
}

.blog .blog-comments .reply-form textarea:focus {
  box-shadow: none;
  border-color: #b1d0e1;
}

.blog .blog-comments .reply-form .form-group {
  margin-bottom: 25px;
}

.blog .blog-comments .reply-form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: #1e4356;
}

.blog .blog-comments .reply-form .btn-primary:hover {
  background-color: #255269;
}

.blog .blog-pagination {
  color: #387ea2;
}

.blog .blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog .blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.blog .blog-pagination li a {
  color: #1e4356;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog .blog-pagination li.active,
.blog .blog-pagination li:hover {
  background: #68A4C4;
}

.blog .blog-pagination li.active a,
.blog .blog-pagination li:hover a {
  color: #fff;
}

.blog .sidebar {
  padding: 30px;
  margin: 0 0 60px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog .sidebar .sidebar-title {
  font-size: 20px;
  font-weight: 700;
  padding: 0 0 0 0;
  margin: 0 0 15px 0;
  color: #1e4356;
  position: relative;
}

.blog .sidebar .sidebar-item {
  margin-bottom: 30px;
}

.blog .sidebar .search-form form {
  background: #fff;
  border: 1px solid #ddd;
  padding: 3px 10px;
  position: relative;
}

.blog .sidebar .search-form form input[type=text] {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  width: calc(100% - 40px);
}

.blog .sidebar .search-form form button {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 15px;
  margin: -1px;
  background: #68A4C4;
  color: #fff;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  line-height: 0;
}

.blog .sidebar .search-form form button i {
  line-height: 0;
}

.blog .sidebar .search-form form button:hover {
  background: #77adca;
}

.blog .sidebar .categories ul {
  list-style: none;
  padding: 0;
}

.blog .sidebar .categories ul li+li {
  padding-top: 10px;
}

.blog .sidebar .categories ul a {
  color: #1e4356;
  transition: 0.3s;
}

.blog .sidebar .categories ul a:hover {
  color: #68A4C4;
}

.blog .sidebar .categories ul a span {
  padding-left: 5px;
  color: #aaaaaa;
  font-size: 14px;
}

.blog .sidebar .recent-posts .post-item+.post-item {
  margin-top: 15px;
}

.blog .sidebar .recent-posts img {
  width: 80px;
  float: left;
}

.blog .sidebar .recent-posts h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
}

.blog .sidebar .recent-posts h4 a {
  color: #1e4356;
  transition: 0.3s;
}

.blog .sidebar .recent-posts h4 a:hover {
  color: #68A4C4;
}

.blog .sidebar .recent-posts time {
  display: block;
  margin-left: 95px;
  font-style: italic;
  font-size: 14px;
  color: #aaaaaa;
}

.blog .sidebar .tags {
  margin-bottom: -10px;
}

.blog .sidebar .tags ul {
  list-style: none;
  padding: 0;
}

.blog .sidebar .tags ul li {
  display: inline-block;
}

.blog .sidebar .tags ul a {
  color: #3f8db5;
  font-size: 14px;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
  border: 1px solid #e4eff5;
  display: inline-block;
  transition: 0.3s;
}

.blog .sidebar .tags ul a:hover {
  color: #fff;
  border: 1px solid #68A4C4;
  background: #68A4C4;
}

.blog .sidebar .tags ul a span {
  padding-left: 5px;
  color: #bedae8;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: none;
  color: #fff;
  font-size: 14px;
}

#footer .footer-newsletter {
  padding: 50px 0;
  background: #0d2735;
}

#footer .footer-newsletter h4 {
  font-size: 24px;
  margin: 0 0 20px 0;
  padding: 0;
  line-height: 1;
  font-weight: 600;
  color: #a2cce3;
}

#footer .footer-newsletter form {
  margin-top: 30px;
  background: #fff;
  padding: 6px 10px;
  position: relative;
  border-radius: 50px;
}

#footer .footer-newsletter form input[type=email] {
  border: 0;
  padding: 4px;
  width: calc(100% - 100px);
}

#footer .footer-newsletter form input[type=submit] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 20px;
  margin: 3px;
  background: #68A4C4;
  color: #fff;
  transition: 0.3s;
  border-radius: 50px;
}

#footer .footer-newsletter form input[type=submit]:hover {
  background: #468db3;
}

#footer .footer-top {
  background: #8e0204;
  border-top: 1px solid #17455e;
  border-bottom: 1px solid #123649;
  padding: 60px 0 30px 0;
}

#footer .footer-top .footer-info {
  margin-bottom: 30px;
}

#footer .footer-top .footer-info h3 {
  font-size: 18px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  color: #a2cce3;
  font-weight: 600;
}

#footer .footer-top .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: "Roboto", sans-serif;
  color: #fff;
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #1e4356;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #68A4C4;
  color: #fff;
  text-decoration: none;
}

#footer .footer-top h4 {
  font-size: 18px;
  font-weight: 600;
  color: #a2cce3;
  position: relative;
  padding-bottom: 12px;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul i {
  padding-right: 2px;
  color: #a2cce3;
  font-size: 18px;
  line-height: 1;
}

#footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: #fff;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-top .footer-links ul a:hover {
  color: #a2cce3;
}

#footer .footer-top .footer-contact {
  margin-bottom: 30px;
}

#footer .footer-top .footer-contact p {
  line-height: 26px;
}

#footer .copyright {
  text-align: center;
  padding-top: 30px;
}

#footer .credits {
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #fff;
}

#footer .credits a {
  color: #a2cce3;
}


.card-img img{
  max-height: 300px !important;
  object-fit: cover !important;
  width: 100%;
}



/* ==== Header polish (keeps your colors) ==== */
#header {
  /* Subtle shadow so the header separates from content */
  box-shadow: 0 2px 0 rgba(0,0,0,0.03);
}
#header.header-scrolled {
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Link underline hover (uses current link color) */
.navbar a {
  position: relative;
}
.navbar a::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease, opacity .25s ease;
}
.navbar a:hover::after,
.navbar .active::after {
  opacity: .6;
  transform: scaleX(1);
}

/* ==== Footer enhancements (color scheme stays the same) ==== */

/* Spacing & layout */
#footer .footer-top { padding: 60px 0 36px 0; }
#footer .footer-top .footer-info p { margin-top: .5rem; }
#footer .footer-top .social-links { margin-top: 12px; }

/* Social icons: lift-on-hover */
#footer .footer-top .social-links a {
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
}
#footer .footer-top .social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* Bottom bar */
.footer-bottom-bar {
  background: #0b212d;      /* same family as your footer */
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1px 0;
  color: #fff;
  font-size: 14px;
}
.footer-bottom-bar .footer-mini-links {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.footer-bottom-bar .footer-mini-links a {
  color: #a2cce3;           /* matches your existing accents */
  text-decoration: none;
}
.footer-bottom-bar .footer-mini-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Small screens: tidy up spacing */
@media (max-width: 575px){
  .footer-bottom-bar { text-align: center; }
  .footer-bottom-bar .footer-mini-links { justify-content: center; flex-wrap: wrap; }
}
