/*====Every Home Africa East Theme colors====*/
/*Css by Trifold Solutions
Website: www.trifold.co.za*/
@import url('https://cdn.soarise.co.za/css/ehcsa.min.css');
  :root {
    --accentOrange: #F68644; /*everyhome accent orange*/
    --dark: #333333; /*everyhome dark grey*/
    --darkGrey: #666261; /*everyhome dark grey*/
    --primary: #315449; /*everyhome green*/
    --secondary: #5FBF7F; /*everyhome light green*/
    --lgreen: #49a486; /*lime green*/
     --leafgreen: #1e5c4f; /*leaf green*/
    --light: #F5EBDE; /*everyhome cream*/
     --grey: #A5A1A1; /*everyhome grey medium*/
    --body: #516171;
    --mustard: #caa15a; /*everyhome green*/
    --border: rgba(0,0,0,0.08);
    --shadow: 0px 6px 30px rgba(0, 0, 0, 0.08);
    --white: #ffffff;
    
}
body {
    font-family: "Helvetica Now", sans-serif;
    color: var(--body);
    line-height: 1.7;
}
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Override Bootstrap display classes with XBold */
.display-1, .display-2, .display-3, .display-4 {
  font-family: 'Helvetica Now Display', sans-serif;
  font-weight: 800;  /* XBold */
  font-style: normal;
}
/* Apply Helvetica Now Display globally */
h1, h2, h3, h4, h5, h6, p, a {
    font-family: 'Helvetica Now Display', sans-serif !important;
    font-weight: 400;   /* normal weight for paragraphs and headings by default */
    font-style: normal; /* normal style unless italic specified */
}

/* Make all headings use XBold by default */
h1, h2, h3 {
    font-weight: 800;  /* XBold */
    font-style: normal;
}
/* Optionally, links can inherit normal weight */
a {
    font-weight: 400;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
	.spinner-icon {
    font-size: 60px;
    color: var(--lgreen);
    animation: spinGlow 1.8s linear infinite;
    filter: drop-shadow(0 0 12px rgba(21,128,61,0.4));
}

@keyframes spinGlow {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-dark,
.btn.btn-outline-dark:hover {
    color: var(--white);
    font-weight: 500;
}

.btn-lgreen{
    background: var(--lgreen);
    border-color: var(--lgreen);
    color: var(--light);
}

.btn-lgreen:hover {
    background: var(--light);
    border-color: var(--lgreen);
    color: var(--lgreen);
}

.btn-primary {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color:  var(--secondary);
    color: #fff;
}
.btn-light {
    border-color: var(--light);
    background-color: var(--light);
    color: #fff;
}

.btn-light:hover {
    background-color: var(--mustard);
    border-color:  var(--mustard);
    color: #fff;
}
.btn-mustard {
    border-color: var(--mustard);
    background-color: var(--mustard);
    color: #fff;
}

.btn-mustard:hover {
    background-color: var(--light);
    border-color:  var(--light);
    color: #fff;
}
.btn-leafgreen {
    border-color: var(--leafgreen );
    background-color: var(--leafgreen );
    color: #fff;
}

.btn-leafgreen:hover {
    background-color: var(--light);
    border-color:  var(--leafgreen);
    color: var(--leafgreen);
}
.btn-secondary {
    border-color: var(--secondary);
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    border-color:  var(--primary);
    color: #fff;
}
.text-primary{
     color: var(--primary) !important;
}
/*text colors-css by trifold solutions www.trifold.co.za*/
 .text-lgreen{
    color: var(--lgreen)!important;
 }
 .text-leafgreen{
    color: var(--leafgreen)!important;
 }
 .text-light{
    color: var(--light)!important;
 }
 .text-secondary{
    color: var(--secondary)!important;
 }
  .text-mustard{
    color: var(--mustard)!important;
 }
/* background colors*/
.bg-light{
    background: var(--light)!important;
 }
 .bg-lgreen{
    background: var(--lgreen)!important;
 }
 .bg-leafgreen{
    background: var(--leafgreen)!important;
 }
 .bg-dark{
    background: var(--dark)!important;
 }
  .bg-darkGrey{
    background: var(--darkGrey)!important;
 }
  .bg-primary{
    background: var(--primary)!important;
 }
  .bg-secondary{
    background: var(--secondary)!important;
 }
  .bg-mustard{
    background: var(--mustard)!important;
 }
/* borders colors*/
.border-success{
  border-color: var(--secondary)!important;  
}
.border-primary{
  border-color: var(--primary)!important;  
}
.btn-outline-secondary{
    border-color:  var(--peach) !important;
    color: var(--peach) !important;
}
.btn-outline-secondary:hover{
    background-color: var(--peach) !important;
    color: #fff !important;
     border-color:  var(--peach) !important;
}
.btn-outline-primary{
    border-color:  var(--primary) !important;
    color: var(--primary) !important;
}
.btn-outline-primary:hover{
    background-color: var(--primary) !important;
    color: #fff !important;
     border-color:  var(--primary) !important;
}



.btn-primary {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color:  var(--secondary);
    color: #fff;
}
.btn-secondary {
    border-color: var(--secondary);
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    border-color:  var(--primary);
    color: #fff;
}
.text-primary{
     color: var(--primary) !important;
}
/*text colors-css by trifold solutions www.trifold.co.za*/
 .text-light{
    color: var(--light)!important;
 }
 .text-secondary{
    color: var(--secondary)!important;
 }
  .text-mustard{
    color: var(--mustard)!important;
 }
/* background colors*/
 .bg-dark{
    background: var(--dark)!important;
 }
  .bg-darkGrey{
    background: var(--darkGrey)!important;
 }
  .bg-primary{
    background: var(--primary)!important;
 }
  .bg-secondary{
    background: var(--secondary)!important;
 }
  .bg-mustard{
    background: var(--mustard)!important;
 }
/* borders colors*/
.border-success{
  border-color: var(--secondary)!important;  
}
.border-primary{
  border-color: var(--primary)!important;  
}
.btn-outline-secondary{
    border-color:  var(--peach);
    color: var(--peach) !important;
}
.btn-outline-secondary:hover{
    background-color: var(--peach);
    color: #fff !important;
     border-color:  var(--peach);
}
.btn-outline-primary{
    border-color:  var(--primary);
    color: var(--primary) !important;
}
.btn-outline-primary:hover{
    background-color: var(--primary);
    color: #fff !important;
     border-color:  var(--primary);
}
.btn-outline-leafgreen{
    border-color:  var(--leafgreen);
    color: var(--leafgreen) !important;
}
.btn-outline-leafgreen:hover{
    background-color: var(--leafgreen);
    color: #fff !important;
     border-color:  var(--leafgreen);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* Make the button visible and styleable */
/* Checked state */
.btn-check:checked + .btn {
    background-color: var(--leafgreen);
    color: var(--light) !important;
    border-color: var(--leafgreen);
}

/*** Navbar Fancy Hover & Active ***/
/* ====================== PREMIUM NAVBAR by trifold solutions (www.trifold.co.za) ====================== */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo */
.navbar-logo {
    max-height: 58px;
    transition: transform 0.4s ease;
}
@media (max-width: 1470px) {
	.navbar-logo {
    max-width: 150px;
}
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.06);
}

/* Nav Links */
.navbar .nav-link {
    color: #2c3e50;
    font-weight: 500;
    font-size: 16.5px;
    padding: 12px 18px !important;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--secondary);
    background: rgba(30, 92, 79, 0.08);
}

/* Underline effect */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: 18px;
    width: 0;
    height: 2.5px;
    background: linear-gradient(to right, var(--secondary), var(--leafgreen));
    transition: width 0.4s ease;
    border-radius: 3px;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: calc(100% - 36px);
}

/* ==================== DROPDOWN STYLES ==================== */
.navbar .dropdown-menu {
    border: none;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    padding: 14px 0;
    margin-top: 12px;
    background: white;
    min-width: 220px;
}

.navbar .dropdown-item {
    padding: 12px 26px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background: #f8fafc;
    color: var(--secondary);
    padding-left: 32px;
}

/* Fixed Dropdown Toggle with Arrow */
.navbar .dropdown-toggle {
    position: relative;
    padding-right: 40px !important;
    white-space: nowrap;
}

/* .navbar .dropdown-toggle .fa-chevron-down, */
.navbar .dropdown-toggle::before {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: transform 0.3s ease;
    color: inherit;
}

/* Arrow rotation */
.navbar .nav-item:hover .dropdown-toggle::after,
.navbar .dropdown.show .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.sidebar-nav ul .sidebar-item.selected > .sidebar-link,
.sidebar-nav ul .sidebar-item > .sidebar-link.active {
    background: var(--leafgreen) !important;
    color: var(--light) !important;
    border-left: 4px solid var(--secondary) !important;
}

/* Premium CTA Button */
.btn-premium {
    background: linear-gradient(90deg, var(--secondary), var(--leafgreen));
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 28px;
    box-shadow: 0 8px 25px rgba(21, 128, 61, 0.32);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15.5px;
}

.btn-premium:hover {
	color: var(--light);
    transform: translateY(-4px);
    box-shadow: 0 15px 38px rgba(21, 128, 61, 0.45);
    background: linear-gradient(90deg, var(--leafgreen), var(--secondary));
}

/* ====================== MOBILE FIXES ====================== */
@media (max-width: 991.98px) {
    .navbar {
        padding: 16px 20px !important;
    }

    .navbar .navbar-nav {
        padding: 20px 10px;
        background: rgba(255,255,255,0.98);
        border-radius: 12px;
        margin-top: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .navbar .nav-link {
        padding: 14px 20px !important;
    }

    .navbar .dropdown-menu {
        box-shadow: none;
        margin-top: 8px;
        border-radius: 10px;
        background: #f8fafc;
    }

    .navbar .dropdown-item {
        padding: 13px 26px;
    }

    .btn-premium {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }
}


/*** Hero ***/
.hero-header {
    height: 100vh;
    min-height: 650px;
    position: relative;
    overflow: hidden;
}

/* ================= BACKGROUND ================= */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: subtlePan 30s ease-in-out infinite alternate;
}

@keyframes subtlePan {
    0% { background-position: center; }
    100% { background-position: 55% 45%; }
}

/* ================= OVERLAY ================= */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.65) 45%,
        rgba(0,0,0,0.35) 75%,
        rgba(0,0,0,0.20) 100%
    );
    z-index: 2;
}

/* ================= CONTENT ================= */
.hero-header .container {
    position: relative;
    z-index: 3;
}

/* ================= TITLE ================= */
.hero-title {
    font-size: clamp(2.6rem, 7vw, 5.3rem);
    line-height: 1.05;
    text-shadow: 0 8px 30px rgba(0,0,0,0.85);
    position: relative;
}

/* ================= AFRICA MAP SWEEP (SYNCED) ================= */
.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%; /* Original starting position */
   width: 220px;  /* Adjust size of the map */
    height: 220px;
    top: -10%;   /* Centering the taller map vertically */
    
    /* Pathing: Step out of /css, into /img/icons */
    background-image: url('../img/icons/africa-map.svg'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    /* Visuals */
    opacity: 0.25; 
    filter: brightness(0) invert(1); /* Makes the map white */
    pointer-events: none;
    
    /* SYNCED SPEED: Matches your original 7s duration */
    animation: shine 7s ease-in-out infinite;
}
@media (max-width: 768px) {

    .hero-title::after {
        width: 170px;   /* smaller map */
        height: 170px;
    }

}
/* We use your original 'shine' keyframes so the 
   distance and stop-point are identical.
*/
@keyframes shine {
    0% { transform: translateX(0); }
    100% { transform: translateX(250%); }
}

/* gradient text */
.christ-carriers {
    background: linear-gradient(90deg, #22c55e, #86efac, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    background-size: 200% 100%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ================= SUBTITLE ================= */
.hero-subtitle {
    max-width: 520px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.65);
    opacity: 0.95;
}

/* ================= CTA BUTTON ================= */
.ehcae-btn-readmore {
    background: linear-gradient(135deg, var(--lgreen), #86efac);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
	transition: all 0.3s ease;
}

/* hover effect */
.ehcae-btn-readmore:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
    color: #fff;
}

/* icon animation */
.ehcae-btn-readmore i {
    transition: transform 0.3s ease;
}

.ehcae-btn-readmore:hover i {
    transform: translateY(3px);
}
/* ================= VIDEO BUTTON ================= */
.video-btn {
    width: 56px;
    height: 56px;

    border-radius: 50%;
    border: 1px solid var(--lgreen);
    background: rgba(255,255,255,0.12);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: relative;
    cursor: pointer;

    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255,255,255,0.12);

    transition: all 0.3s ease;

    flex-shrink: 0;
}

.video-btn:hover {
    transform: scale(1.08);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 35px rgba(74,222,128,0.35);
}

/* icon smaller */
.video-btn i {
    font-size: 18px;
    color: white;
}

/* pulse ring reduced to match size */
.video-btn::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ================= SHINING SVG ICON ================= */
.shine-icon {
    position: absolute;
    top: 10%;
    left: -50px;
    width: 38px;
    height: 38px;
    animation: iconSlide 6s ease-in-out infinite;
    opacity: 0;
}

.shine-icon svg {
    width: 100%;
    height: 100%;
    fill: rgba(255,255,255,0.35);
}

@keyframes iconSlide {
    0%   { transform: translateX(0); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateX(450px); opacity: 0; }
}

/* ================= SCROLL ================= */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 1.6rem;
    animation: bounce 2s infinite;
    z-index: 5;
}

@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* ================= MOBILE ================= */
@media (max-width:768px){
    .hero-header { min-height: 600px; }
    .hero-title { font-size: 3rem; }
    .video-btn { width: 65px; height: 65px; }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--white);
    background: #000000;
    opacity: 1;
}
/*All EHC_AE page header*/
.page-header {
    background: url(../img/hero.jpg) center right no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondery)
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--primary);
}

/*Contacts Page Header*/
.contact-page-header {
    background: url(../img/map-af-bg.jpg) center right no-repeat;
    background-size: cover;
}

.contact-page-header .breadcrumb-item,
.contact-page-header .breadcrumb-item a {
    font-weight: 500;
}

.contact-page-header .breadcrumb-item a,
.contact-page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondery)
}

.contact-page-header .breadcrumb-item a:hover,
.contact-page-header .breadcrumb-item.active {
    color: var(--primary);
}

/*** ehcae-convictions ***/
@media (min-width: 992px) {
    .container.ehcae-convictions {
        max-width: 100% !important;
    }

    .container.ehcae-convictions .ehcae-convictions-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.ehcae-convictions .ehcae-convictions-form {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .container.ehcae-convictions .ehcae-convictions-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .container.ehcae-convictions .ehcae-convictions-form  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .container.ehcae-convictions .ehcae-convictions-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .container.ehcae-convictions .ehcae-convictions-form  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.container.ehcae-convictions .ehcae-convictions-text {
    background: linear-gradient(rgba(73, 164, 134, .95), rgba(73, 164, 134, .95)), url(../img/un-convictions.jpeg) center center no-repeat;
    background-size: cover;
}

.container.ehcae-convictions .ehcae-convictions-form {
    background: linear-gradient(rgba(30, 92, 79, .95), rgba(30, 92, 79, .95)), url(../img/zamdrc.jpeg) center center no-repeat;
    background-size: cover;
}

.container.ehcae-convictions .ehcae-convictions-text .h-100,
.container.ehcae-convictions .ehcae-convictions-form .h-100 {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*=====Page Back end Header breadcrumb-items*/
.ehc_be_header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../img/map-af-bg.jpg);
  background-size: cover;
  position: relative;
  border-radius: 0;
  color: #fff; 
}
@media screen and (min-width: 990px){
    .ehc_be_header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../img/map-af-bg.jpg);
  background-size: cover;
  position: relative;
  border-radius: 0;
  color: #fff; 
  background-repeat: no-repeat;
}
}
.ehc_be_header:before {
  content: "";
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;}
  .ehc_be_header .page-block {
    padding: 25px 30px; 
  }
  .ehc_be_header .page-block .breadcrumb-title {
    float: right; 
  }
  .ehc_be_header .page-block .breadcrumb-title a {
    font-size: 14px;
    color: #fff; 
  }
  .ehc_be_header .page-block .breadcrumb-title .breadcrumb-item + .breadcrumb-item::before {
    content: "\f105";
    font-family: FontAwesome;
    padding-right: 5px;
    font-size: 12px;
    color: #fff; 
  }
  @media only screen and (max-width: 768px) {
    .ehc_be_header .page-block .breadcrumb-title {
      float: left;
    } 
  }
  .ehc_be_header-title h5 {
    color: #fff; 
  }


        .ehc-title::after {
  content: '';
  margin-top: 0.08em;
  position: relative;
  display: block;
  width: 45px;
  height: 3px;
  background: var(--secondary);
  bottom: 0;
/*  left: calc(50% - 20px);*/
}
.ehc-title-long::after {
  content: '';
  margin-top: 0.08em;
  position: relative;
  display: block;
  width: 115px;
  height: 3px;
  background: var(--secondary);
  bottom: 0;
/*  left: calc(50% - 20px);*/
}

.ehc-long-tC::after {
  content: '';
  position: relative;
  display: block;
  width: 115px;
  height: 3px;
  background: var(--secondary);
  bottom: 0;
  left: calc(42% - 20px);
}


/*** Service ***/
.service-item {
    position: relative;
    overflow: hidden;
}

.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}

.service-item .service-text {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.service-item .service-img {
    transition: .5s;
}

.service-item:hover .service-img {
    transform: scale(1.2) rotate(7deg);
}


.pull-right {
  float: right;
  right: 0;
  left: auto
}
.pull-left {
  float: left;
  left: 0;
  right: auto
}

 .small_logo{
    width: 50px;
  }
   .small_logo_text{
    width: 100px;
  }

/*** Team ***/
.team {
    position: relative;
}

.team::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 110px;
    left: 0;
    bottom: 3rem;
    background: var(--light);
    z-index: -1;
}

.team .team-item {
    position: relative;
    overflow: hidden;
}

.team .team-item img {
    position: relative;
    transform: scale(1.1);
    transition: .5s;
}

.team .team-item:hover img {
    margin-top: -30px;
    padding-bottom: 30px;
}

.team .team-text {
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team .team-text-overflow {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-text-overflow {
    bottom: 0;
    opacity: 1;
}



/*** Testimonial ***/
.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    animation: pulse-img 5s ease-out infinite;
}

@keyframes pulse-img {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0;
    }

    50% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0;
    }
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--primary);
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer {
    color: rgba(256, 256, 256, .6);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(256, 256, 256, .6);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(256, 256, 256, .6);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(256, 256, 256, .6);
    border: 1px solid rgba(256, 256, 256, .6);
}

.footer .btn.btn-square:hover {
    color: var(--white);
    border-color: var(--primary);
    background: var(--primary);
}

.footer .form-control {
    color: var(--light);
    border-color: rgba(256, 256, 256, .6);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}
/* ---------============Every Home Icons created by Trifold Solutions ============-- */
.stat-number {
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    font-size: clamp(1.1rem, 2.2vw, 2.1rem);
    flex-shrink: 1;
    min-width: 0;
}
/* --------===========Add custom Input radio and check using EHC logo=========--------- */
.required:before{
  content:"*";
  font-weight:bold;
  color: red;
}

.custom-control-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

label.radio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

label.radio-icon svg.icon {
    width: 34px;
    height: 34px;
    fill: transparent;          /* default interior */
    stroke: var(--dark);        /* outline color */
    stroke-width: 2;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.custom-control-input:checked + label.radio-icon svg.icon {
    fill: var(--primary);       /* fill on select */
}
.radio-text {
    line-height: 1.2;
}

/*---------------==========Footer Css==========----------------- */
/*-----footer Icons---*/
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Icon container hover effect */
a.text-decoration-none:hover .brand-icon {
    transform: scale(1.15) rotate(10deg);
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Add small bounce on hover */
a.text-decoration-none:hover h5 {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Smooth transition for all elements */
a.text-decoration-none .brand-icon,
a.text-decoration-none h5 {
    transition: all 0.3s ease;
}

/* Optional: animated glow */
a.text-decoration-none:hover .brand-icon {
    box-shadow: 0 0 10px var(--primary), 0 0 20px rgba(0,0,0,0.2);
}

/* Make the text stand out */
a.text-decoration-none h5 {
    font-weight: 500;
    margin-bottom: 0;
    color: white;
    font-size: 16px;
}

/* Spacing and alignment tweaks */
ul.list-unstyled li {
    margin-bottom: 20px;
}


/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content {
  margin-top: 20px;
}

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

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

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

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

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.blog-details .meta-bottom a:hover {
  color: var(--accent-color);
}

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

.blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog-details .meta-bottom .share i {
  padding-left: 5px;
}

    .blog-card-img-top {
  height: 200px;
  object-fit: cover;
}
.blog-card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments {
  padding: 10px 0;
}

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

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

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

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

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

.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}

.blog-comments .comment h5 a:hover {
  color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

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

.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}

.blog-comments .comment.comment-reply {
  padding-left: 40px;
}
.blog-comments .comment {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.blog-comments .comment:last-child {
  border-bottom: none;
}

.blog-card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}


/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.blog-posts .post-img img {
  transition: 0.5s;
}

.blog-posts .post-date {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  right: 0;
  bottom: 0;
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.blog-posts .post-content {
  padding: 30px;
}

.blog-posts .post-title {
  font-size: 20px;
  color: var(--heading-color);
  font-weight: 700;
  transition: 0.3s;
  margin-bottom: 15px;
}

.blog-posts .meta i {
  font-size: 16px;
  color: var(--accent-color);
}

.blog-posts .meta span {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-posts p {
  margin-top: 20px;
}

.blog-posts hr {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-bottom: 15px;
}

.blog-posts .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
}

.blog-posts .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

.blog-posts article:hover .post-title,
.blog-posts article:hover .readmore {
  color: var(--accent-color);
}

.blog-posts article:hover .post-img img {
  transform: scale(1.1);
}

/* ===== GLOBAL CARD IMPROVEMENT ===== */
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

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

/* ===== SIDEBAR ===== */
.blog-card h6 {
  font-size: 15px;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* Search input */
#searchInput {
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

#searchInput:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}
/*highlight search*/
mark {
    background: #fff3a3;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
}

.category-link {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 6px 0;
}

.category-link:hover,
.category-link.active {
    color: var(--light);
    background-color: var(--lgreen);
    font-weight: 600;
}
/* Categories */
.blog-card ul li a {
  color: #555;
  font-size: 14px;
  transition: 0.2s;
  border-radius: 6px;
  padding-left: 6px;
}

.blog-card ul li a:hover {
  color: var(--accent-color);
  background: rgba(0,0,0,0.03);
  padding-left: 10px;
}

/* Recent posts */
.blog-card img {
  border-radius: 8px;
}

.blog-card small.fw-bold {
  font-size: 13px;
  line-height: 1.3;
}

.blog-card .text-muted {
  font-size: 12px;
}

/* ===== BLOG CARDS (MAIN POSTS) ===== */

.blog-card-img-top {
  height: 200px;
  object-fit: cover;
  transition: 0.4s ease;
}

.blog-card:hover .blog-card-img-top {
  transform: scale(1.05);
}

/* Body spacing */
.blog-card-body {
  padding: 18px;
}

/* Title */
.blog-card-body h6 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* Summary */
.blog-card-body p {
  line-height: 1.5;
}

/* Button */
.blog-card .btn {
  border-radius: 30px;
  font-size: 13px;
  padding: 6px 14px;
  transition: 0.25s;
}

.blog-card .btn:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}
.blog-card form input {
  border-radius: 30px;
  padding: 10px 16px;
  border: 1px solid #ddd;
}

.blog-card form input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.blog-card form button {
  border: none;
  background: transparent;
  font-size: 16px;
  color: #666;
  transition: 0.2s;
}

.blog-card form button:hover {
  color: var(--accent-color);
}

/* ===== GRID SPACING POLISH ===== */
.row.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* ===== RESPONSIVE TOUCH ===== */
@media (max-width: 768px) {
  .blog-card-body {
    padding: 15px;
  }

  .blog-card-img-top {
    height: 180px;
  }
}

.sidebar-thumb-wrapper {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.sidebar-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.recent-item:hover .sidebar-thumb {
    transform: scale(1.05);
}

.article-header {
  display: flex;
  /*justify-content: flex-end; /* moves content to the right */
  align-items: flex-start;   /* keeps it at the top */
  padding: 10px 0;
}

.article-header .title {
  margin: 0;
  font-size: 14px;
  letter-spacing: .3rem;
  font-weight: 400;
  color: var(--leafgreen);
  margin-left: 35px;
}

.hover-card {
  transition: 0.25s ease;
}

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

.zoom-img {
  transition: 0.4s ease;
}

.hover-card:hover .zoom-img {
  transform: scale(1.05);
}

    .instagram img:hover {
  transform: scale(1.05);
  transition: 0.3s;
}
.instagram .d-flex::-webkit-scrollbar {
  display: none;
}
.instagram .d-flex {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/*Ehc AE Gallery Css*/

.gallery-imgblock img {
  width: 350px;
  height: 350px;
  object-fit: cover; /* fills box and crops excess */
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.gallery-imgblock img:hover {
  transform: scale(1.05);
}

.lightbox-modal .btn {
  background: rgba(0,0,0,0.5);
  border: none;
  font-size: 2rem;
}
/*pagination*/
.pagination .page-item .page-link {
  cursor: pointer;
}
/* Bootstrap-style pagination with custom colors */
.pagination .page-link {
    color: var(--leafgreen);            /* Text for normal buttons */
}

.pagination .page-link:hover {
    color: var(--light);                /* Text on hover */
    background-color: var(--leafgreen); /* Hover background */
    border-color: var(--leafgreen);
}

.pagination .page-item.active .page-link {
    background-color: var(--leafgreen); /* Active page background */
    border-color: var(--leafgreen);
    color: var(--light);                 /* Active text */
}

.pagination .page-item.disabled .page-link {
    color: #ccc;                        /* Disabled text */
    background-color: var(--light);     /* Keep light background */
    border-color: #ddd;
}
.lightbox-modal .modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-modal img {
  max-height: 400px; /* limits modal image height */
  max-width: 100%;   /* scales width to fit container */
  object-fit: contain;
}


/*===========Back end Css for EHC Africa East=========*/
/*-----------Select 2 Css--------------*/
.select2-container--bootstrap4 .select2-selection--single {
height: calc(1.5em + 0.75rem + 2px) !important; }
.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
color: #212529;
line-height: calc(1.5em + 0.75rem); }
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
position: absolute;
top: 50%;
right: 3px;
width: 20px; }
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
top: 60%;
border-color: #343a40 transparent transparent transparent;
border-style: solid;
border-width: 5px 4px 0 4px;
width: 0;
height: 0;
left: 50%;
margin-left: -4px;
margin-top: -2px;
position: absolute; }
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
line-height: calc(1.5em + 0.75rem); }

.select2-search--dropdown .select2-search__field {
border: 1px solid #ced4da;
border-radius: 0.25rem;
background: #fff;
color: #212529; }

.select2-results__message {
color: #6c757d; }

.select2-container--bootstrap4 .select2-selection--multiple {
min-height: calc(1.5em + 0.75rem + 2px) !important;
padding-bottom: 5px;
text-overflow: ellipsis;
overflow: hidden; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
box-sizing: border-box;
list-style: none;
margin: 0;
width: 100%; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered .select2-search__field {
width: 100% !important;
background-color: #fff; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
color: #212529;
border: 1px solid #ced4da;
border-radius: 0.2rem;
padding: 0;
padding-right: 5px;
cursor: pointer;
float: left;
margin-top: 3px;
margin-left: 5px; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
color: #212529;
font-weight: 400;
margin-left: 3px;
margin-right: 1px;
padding-right: 3px;
padding-left: 3px;
float: left;
border: none;
background: #fff; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
color: #343a40; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
float: none;
margin-right: 0;
position: absolute !important;
top: 0;
right: 0.7em; }

.select2-container--bootstrap4 .select2-search--inline {
float: left; }
.select2-container--bootstrap4 .select2-search--inline .select2-search__field {
width: 100% !important;
background: none;
color: #212529; }

.select2-container {
display: block; }
.select2-container *:focus {
outline: 0; }

.input-group .select2-container--bootstrap4 {
flex-grow: 1; }

.input-group-prepend ~ .select2-container--bootstrap4 .select2-selection {
border-top-left-radius: 0;
border-bottom-left-radius: 0; }

.input-group > .select2-container--bootstrap4:not(:last-child) .select2-selection {
border-top-right-radius: 0;
border-bottom-right-radius: 0; }

.select2-container--bootstrap4 .select2-selection {
background-color: #fff;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
width: 100%; }
@media (prefers-reduced-motion: reduce) {
.select2-container--bootstrap4 .select2-selection {
transition: none; } }

.select2-container--bootstrap4.select2-container--focus .select2-selection {
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }

.select2-container--bootstrap4.select2-container--focus.select2-container--open .select2-selection {
border-bottom: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0; }

.select2-container--bootstrap4.select2-container--disabled .select2-selection, .select2-container--bootstrap4.select2-container--disabled.select2-container--focus .select2-selection {
background-color: #e9ecef;
cursor: not-allowed;
border-color: #ced4da;
box-shadow: none; }

.select2-container--bootstrap4.select2-container--disabled .select2-search__field, .select2-container--bootstrap4.select2-container--disabled.select2-container--focus .select2-search__field {
background-color: transparent; }

select.is-invalid ~ .select2-container--bootstrap4 .select2-selection,
form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection {
border-color: #dc3545; }

select.is-valid ~ .select2-container--bootstrap4 .select2-selection,
form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection {
border-color: #28a745; }

.select2-container--bootstrap4 .select2-dropdown {
border-color: #ced4da;
border-radius: 0;
background: #fff; }
.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--below {
border-top: none;
border-bottom-right-radius: 0.25rem;
border-bottom-left-radius: 0.25rem; }
.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--above {
border-top: 1px solid #ced4da;
border-top-left-radius: 0.25rem;
border-top-right-radius: 0.25rem; }
.select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected=true] {
background-color: #e9ecef; }

.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected=true] {
background-color: #007bff;
color: #fff; }

.select2-container--bootstrap4 .select2-results__option[role=group] {
padding: 0; }
.select2-container--bootstrap4 .select2-results__option[role=group] .select2-results__options--nested .select2-results__option {
padding-left: 1em; }

.select2-container--bootstrap4 .select2-results > .select2-results__options {
max-height: 15em;
overflow-y: auto; }

.select2-container--bootstrap4 .select2-results__group {
padding: 6px;
display: list-item; }

.select2-container--bootstrap4 .select2-selection__clear {
width: 0.9em;
height: 0.9em;
line-height: 0.75em;
padding-left: 0.15em;
margin-top: 0.7em;
border-radius: 100%;
background-color: #fff;
color: #f8f9fa;
float: right;
margin-right: 0.3em; }
.select2-container--bootstrap4 .select2-selection__clear:hover {
background-color: #e6e6e6; }

/* BAck end Styles ----------------------*/
/**-------Drag and Drop CSS------------*/*/
textarea{
  white-space: pre-line;    
  white-space: pre-wrap;
}
.pre-textarea{
  white-space: pre-line;    
  white-space: pre-wrap;
}
/* ==================== FINAL CSS - BOTH VIDEO & PHOTO UPLOADS ==================== */
/* Clean, modern, and fully fixed dropzone with previews INSIDE the dotted border */

.form__container {
  position: relative;
  width: 100%;
  min-height: 200px;           /* grows nicely when previews are added */
  border: 2px dashed silver;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  color: silver;
  text-align: center;
  padding: 25px 20px;
  margin-bottom: 10px;
  transition: all 0.25s ease;
  overflow: hidden;
}

.form__container.active {
  background-color: rgba(192, 192, 192, 0.15);
  border-color: seagreen;
}

/* File input covers the entire dropzone cleanly */
.form__file {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* ==================== PREVIEW CONTAINERS (works for both uploads) ==================== */
#files-list-container,
#files-list-container-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  z-index: 3;                    /* ensures previews sit above the input */
}

/* Thumbnail wrapper */
.form__image-container {
  position: relative;
  width: 140px;
  height: 105px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.form__image-container:hover {
  transform: scale(1.05);
}

/* Actual thumbnail (image or video preview) */
.form__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Close (delete) button */
.form__image-container:after {
  content: "✕";
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form__image-container:hover:after {
  opacity: 1;
}

/* ==================== OPTIONAL: REMOVE OLD CONFLICTING STYLES ==================== */
/* Delete or comment out any old #upload-files styles you had before */
#upload-files,
#upload-files-photos {
  /* No additional styles needed here */
}

.add_next_of_kin{
  display: none;
}

.field-icon {
  float: right;
  margin-left: -25px;
  margin-top: -25px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
#valid{
  font-size:12px;
  height:15px
}
.valid{
  font-size:12px;
  height:15px
}
#valid-match{
  font-size:12px;
  color:#daa;
  height:15px
}
#rolestrong{
    display: none;
}

#rolevalid{
    display: none;
}
#valid-Rolematch{
    display: none;
}

#notStrong{
  display: none;
}
 .rechs-logo img{
        width: 80px;
      }
         .hm-r-index{
        width: 60px;
    }
          .hm-r-stats{
        width: 33px;
    }

/*-------BE stats------*/
  .bg-red,.callout.callout-danger,.alert-danger,.alert-error,.label-danger,.modal-danger .modal-body{
  background-color:#ac5f42 !important
}
.bg-yellow,.callout.callout-warning,.alert-warning,.label-warning,.modal-warning .modal-body{
  background-color:#f68644 !important
}
.bg-aqua,.callout.callout-info,.alert-info,.label-info,.modal-info .modal-body{
  background-color:#caa15a !important
}
.bg-blue{
  background-color:#566b74 !important
}
.bg-green,.callout.callout-success,.alert-success,.label-success,.modal-success .modal-body{
  background-color:#315449 !important
}
.small-box{
  border-radius:2px;
  position:relative;
  display:block;
  margin-bottom:20px;
  box-shadow:0 1px 1px rgba(0,0,0,0.1)
}
.small-box>.inner{
  padding:10px
}
.small-box>.small-box-footer{
  position:relative;
  text-align:center;
  padding:3px 0;
  color:#fff;
  color:rgba(255,255,255,0.8);
  display:block;
  z-index:10;
  background:rgba(0,0,0,0.1);
  text-decoration:none
}
.small-box>.small-box-footer:hover{
  color:#fff;
  background:rgba(0,0,0,0.15)
}
.small-box h3{
  font-size:38px;
  font-weight:bold;
  margin:0 0 10px 0;
  white-space:nowrap;
  padding:0
}
.small-box p{
  font-size:15px
}
.small-box p>small{
  display:block;
  color:#f9f9f9;
  font-size:13px;
  margin-top:5px
}
.small-box h3,.small-box p{
  z-index:5
}
.small-box .icon{
  -webkit-transition:all .3s linear;
  -o-transition:all .3s linear;
  transition:all .3s linear;
  position:absolute;
  top:-10px;
  right:10px;
  z-index:0;
  font-size:90px;
  color:rgba(0,0,0,0.15)
}
.small-box:hover{
  text-decoration:none;
  color:#f9f9f9
}
.small-box:hover .icon{
  font-size:95px
}
@media (max-width:767px){
  .small-box{
    text-align:center
}
  .small-box .icon{
    display:none
}
  .small-box p{
    font-size:12px
}
}

/* Add custom Input radio and check using EHC logo */
.required:before{
  content:"*";
  font-weight:bold;
  color: red;
}

.custom-control-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

label.radio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

label.radio-icon svg.icon {
    width: 34px;
    height: 34px;
    fill: transparent;          /* default interior */
    stroke: var(--leafgreen);        /* outline color */
    stroke-width: 2;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.custom-control-input:checked + label.radio-icon svg.icon {
    fill: var(--leafgreen);       /* fill on select */
}
.radio-text {
    line-height: 1.2;
}

/* ==================== HEADER BUTTON COLORS fo EHC AE Calendar ==================== */

/* All main buttons (prev, next, today, view buttons) */
.fc .fc-button {
    background-color: var(--leafgreen) !important; 
    color: white !important;
    border-color: var(--leafgreen) !important;
}

/* Hover effect */
.fc .fc-button:hover {
    background-color: var(--mustard) !important;
    border-color: var(--mustard) !important;
}

/* Active / Selected button (e.g. current view) */
.fc .fc-button-active,
.fc .fc-button:focus {
    background-color: var(--lgreen) !important;
    border-color: var(--lgreen) !important;
    color: white !important;
}

/* Disabled buttons */
.fc .fc-button:disabled {
    background-color: var(--lgreen) !important;
    color: var(--light) !important;
}

/* Today button - make it stand out more (optional) */
.fc .fc-today-button {
    background-color: var(--lgreen) !important;   /* Green */
    border-color: var(--lgreen) !important;
}

.fc .fc-today-button:hover {
    background-color: var(--primary) !important;
}

/*-----------Drag and Drop EHC Wordpress style newsletter-------------*/
/* Fix for GrapesJS canvas on mobile */
#gjs-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

#gjs {
  min-height: 650px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--leafgreen) !important;   /* Changed from #fff to your variable */
  width: 100% !important;
}

/* === GrapesJS UI Theming - Background & Hover === */

/* Main UI panels, sidebar, top bar, block manager, etc. */
.gjs-one-bg,
.gjs-cv-canvas,
.gjs-block-manager,
.gjs-layer-manager,
.gjs-trait-manager,
.gjs-style-manager,
.gjs-panel {
  background-color: var(--leafgreen) !important;
}

/* Hover and active states - use mustard */
.gjs-block:hover,
.gjs-three-bg:hover,
.gjs-button:hover,
.gjs-active,
.gjs-selected,
.gjs-placeholder,
.gjs-com-placeholder,
.gjs-layer-active {
  background-color: var(--mustard) !important;
  color: white !important;
  border-color: var(--mustard) !important;
}

/* Accent buttons and selected items */
.gjs-three-bg,
.gjs-btn-prim,
.gjs-pn-btn.gjs-active {
  background-color: var(--mustard) !important;
  color: white !important;
}

/* Text color inside the green UI panels (for good readability) */
.gjs-two-color,
.gjs-four-color,
.gjs-block,
.gjs-layer-name,
.gjs-trait-label {
  color: #ecf0f1 !important;   /* Light gray-white - works well on dark green */
}

/* Canvas / Newsletter content area - keep this white & clean */
#gjs .gjs-frame-wrapper,
.gjs-cv-canvas__frames {
  background-color: #ffffff !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.12) !important;
}

 @media only screen and (max-width: 600px) {
  #gjs .gjs-column,
  #gjs td.gjs-cell,
  #gjs .two-columns > div,
  #gjs table,
  #gjs tr,
  #gjs td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #gjs img {
    width: 100% !important;
    height: auto !important;
  }
}

    /* Force images to be fluid */
    #gjs img {
      width: 100% !important;
      height: auto !important;
      max-width: 100% !important;
    }


    /* Optional: center text and buttons on mobile */
    .gjs-text, p, h1, h2, h3 {
      text-align: center !important;
    }
  }

/* Better mobile experience */
@media (max-width: 768px) {
  #gjs {
    min-height: 500px;
  }
  #gjs .card-body {
    padding: 15px;
  }
}
   .alert-success h5, .alert-success {
    color: var(--light) !important;
   }

  .newsletter-content {
    padding: 0 !important;
}

.gjs-email-wrapper {
    width: 100% !important;
    margin: 0 !important;
}
   /*Newsletter Front end*/
   
.newsletter-content {
    /*background: #fff;*/
    padding: 40px;
    /*border: 1px solid #eee;
    border-radius: 8px;*/
    overflow: hidden;
}

.newsletter-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.book-container {
    text-align: center;
    margin: 0 auto;
    max-width: 700px;
    position: relative;
}

.book-pages-wrapper {
    position: relative;
}

.book-page {
    display: none;
    transition: opacity 0.5s ease;
}

.book-page.active {
    display: block;
}

.book-page img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    display: block;
    margin: auto;
}

.book-nav {
    margin-top: 15px;
}

.book-nav button {
    margin: 0 5px;
}

.pdf-embed {
    width: 100%;
    height: 800px;
    border: 1px solid #ddd;
}

@media screen and (max-width: 769px) {
    #int-office { min-height: 600px; }
    .pdf-embed { height: 600px; }
}

/*codemirror for custom code grapejs*/
 .CodeMirror {
      border: 1px solid #ced4da;
      border-radius: 4px;
      height: 650px !important;
      font-size: 14px;
    }

    /*Gallery View CSS by Trifold Solutions*/
       .gallery-box { width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden; border-radius: 10px; }
    .gallery-img-fixed { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
    .img-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px; font-size: 12px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); }
    .delete-btn { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; background: #fff; color: red; border-radius: 50%; text-align: center; font-weight: bold; text-decoration: none; line-height: 22px; font-size: 16px; }
    .feature-btn, .featured-badge { position: absolute; bottom: 6px; right: 6px; background: #198754; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; text-decoration: none; }
    .featured-gallery-badge { position: absolute; top: 10px; left: 10px; background: #198754; color: white; font-size: 12px; padding: 5px 10px; border-radius: 6px; font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,0.2); z-index: 20; }

    .image-viewer { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 9999; justify-content: center; align-items: center; }
    .image-viewer img { max-width: 92%; max-height: 92%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
    .close-btn { position: absolute; top: 25px; right: 35px; font-size: 50px; color: white; cursor: pointer; z-index: 10000; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
    .close-btn:hover { color: #ff4444; }

    .badge.bg-warning {
    position: absolute;
    top: 39px;
    left: 10px;
    z-index: 15;
    font-size: 11px;
    padding: 4px 9px;
}

/* Approve Button */
.approve-btn {
    position: absolute;
    bottom: 38px;
    left: 8px;
    background: #198754;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 20;
}

.approve-btn:hover {
    background: #146c43;
    color: white;
}

/* Pending Badge */
.pending-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 15;
    font-size: 10.5px;
    padding: 3px 8px;
}
.featured-request-badge {
    position: absolute;
    top: 8px;
    right: 45px;           /* Adjust position as needed */
    background: #0dcaf0;
    color: white;
    font-size: 10.5px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 15;
}
/* Enhanced Birthday Banner */
.ehc-bday-banner {
    background: linear-gradient(135deg, var(--leafgreen), var(--lgreen));
    color: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.15);
}

.ehc-bday-banner::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    filter: blur(8px);
}

.ehc-bday-banner::after {
    content: "🎂";
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 72px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Title */
.ehc-bday-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Individual Birthday Card */
.ehc-bday-card {
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.ehc-bday-card:last-child {
    margin-bottom: 0;
}

.ehc-bday-card:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Flag */
.ehc-flag {
    width: 34px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Name & Country */
.ehc-bday-info {
    flex: 1;
}

.ehc-bday-name {
    font-weight: 700;
    font-size: 16.5px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ehc-bday-country {
    font-size: 13.5px;
    opacity: 0.88;
    font-weight: 500;
}

/* Celebration badge */
.ehc-cake-badge {
    background: rgba(255,255,255,0.25);
    color: white;
    font-size: 13px;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}
/* Language switcher css by trifold solutions www.trifold.co.za */
.language-switcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}