/* =====================
   GLOBAL RESET
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =====================
   TOP HEADER
===================== */
.top_header {
    color: #fff;
    width: 100%;
    background-color: #174B1C;
    font-size: 12px;
}

.top_container {
    margin: 0 85px;
}

ul {
    list-style-type: none;
    margin-top: 10px;
}

.top_header li {
    display: inline-block;
    margin: 0 10px;
    font-size: 17px;
}

.top_header .space_bw {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =====================
   NAVIGATION
===================== */
nav ul li {
    margin: 0 20px;
    color: #6f6262 !important;
}

/* =====================
   HERO SECTION
===================== */
.main {
    width: 100%;
    min-height: 60vh;
    background-image: url('img/bg2.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.main h1 {
    font-size: 80px;
    font-weight: bold;
    margin: 25px 0;
}

.main_content {
    padding: 40px 0;
}

/* =====================
   HEADINGS
===================== */
h5 {
    position: relative;
    margin-left: 120px;
    opacity: 0.7;
    color: #174b1c;
}

h5::after {
    position: absolute;
    content: "";
    background-color: #174B1C;
    width: 40px;
    height: 2px;
    top: 12px;
    left: -100px;
}

/* =====================
   BUTTONS
===================== */
.btn_style {
    font-size: 15px;
    border-radius: 0;
    border: none;
    color: #fff;
    padding: 15px 25px;
    font-weight: 600;
    letter-spacing: 2px;
    background-color: #174B1C;
}

.animate_btn {
    position: relative;
    overflow: hidden;
}

.animate_btn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    top: 0;
    left: -100%;
    transition: 0.3s ease;
}

.animate_btn:hover::before {
    left: 0;
    z-index: -1;
}

/* =====================
   SERVICES
===================== */
.services {
    padding: 5rem 0;
}

.services h1 {
    font-size: 50px;
    color: #092c3f;
    font-weight: 900;
}

.services .row {
    margin-top: 40px;
}

.services .card{
	border: none;
	position: relative;	
	overflow: hidden;
	z-index: 1;

}

.services .card::before{
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #174B1C;
	transform: translateY(100%);
	transition: all 0.4s ease-in-out;
	/* z-index: -1; */

}
.services .card:hover::before{
	transform: translateY(0);
	color: #fff;
	z-index: -1;


}
.services .card-body{
	text-align: center;	
	padding: 50px 10px;
	
}
.services .card h4{
	text-transform: capitalize;	

	color: #092c3f;
	font-weight: 600;
	text-align: center;
	margin: 30px 0px;
}
.services .card:hover *{
	
	color: #fff;
	

}
.services .card-body i{
	color: #4282CA;
}

/* =====================
   TOP SERVICES
===================== */
.top_services {
    background-image: url('img/img2.jpeg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
}

.top_services img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
}

/* =====================
   MEMBERS / FEATURED
===================== */
.members img {
    width: 100%;
    height: auto;
}

.featured {
    padding: 6rem 0;
}

/* =====================
   CONTACT
===================== */
.contact-section {
    padding: 4rem 0;
}

.contact-info {
    background: #1c1c1c;
    color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
}

.contact-info h4 {
    color: #4282CA;
    margin-bottom: 20px;
}

/* LOGO DEFAULT (DESKTOP) */
.navbar-brand img {
    max-height: 70px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
}


/* =====================
   MOBILE FIXES
===================== */
@media (max-width: 768px) {

    .top_container {
        margin: 0 15px;
    }

    .top_header .space_bw {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .main {
        text-align: center;
        min-height: 55vh;
        padding: 30px 15px;
    }

    .main h1 {
        font-size: 34px;
    }

    h5 {
        margin-left: 0;
        text-align: center;
    }

    h5::after {
        display: none;
    }

    .services h1 {
        font-size: 32px;
        text-align: center;
    }

    .top_services {
        padding: 3rem 0;
        text-align: center;
    }

    .navbar-brand img {
        max-height: 45px;
    }

    .main {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center top;
        min-height: auto;
        padding-top: 220px; /* space for image */
    }

}

/* =========================
   MODERN FOOTER
========================= */
.site-footer {
    background: #174B1C;
    color: #ddd;
    padding: 60px 0 20px;
    font-size: 15px;
}

.site-footer h4 {
    color: #4282CA;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

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

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-social {
    margin-top: 15px;
}

.footer-social a {
    display: inline-block;
    margin-right: 12px;
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.site-footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0 15px;
}

.footer-bottom {
    font-size: 14px;
    opacity: 0.8;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-col {
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-social {
        justify-content: center;
    }
}


/* =====================
   MAP SECTION
===================== */
.map-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Style headings like the other sections */
.map-section h5 {
    position: relative;
    margin-left: 120px;
    opacity: 0.7;
    color: #174B1C;
    font-weight: 600;
    text-transform: uppercase;
}

.map-section h5::after {
    position: absolute;
    content: "";
    background-color: #174B1C;
    width: 80px;
    height: 2px;
    top: 12px;
    left: -100px;
}

.map-section h1 {
    font-size: 50px;
    color: #092c3f;
    font-weight: 900;
    margin-top: 10px;
}

/* Map container */
.map-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-top: 40px;
}

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

/* East Africa Time Clock */
.eat-clock {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: #ffffff; /* matches your theme */
    font-size: 16px;
    background: #174B1C; /* same as top header */
    padding: 5px 12px;
    border-radius: 5px;
    display: inline-block;
}

/* Trusted & Certified Section */
#trusted {
    text-align: left;
}

#trusted h5 {
    position: relative;
    margin-left: 120px;
    opacity: 0.7;
    color: #174B1C;
}

#trusted h5::after {
    position: absolute;
    content: "";
    background-color: #174B1C;
    width: 80px;
    height: 2px;
    top: 12px;
    left: -100px;
}

#trusted h1 {
    font-size: 50px;
    color: #092c3f;
    font-weight: 900;
    margin-bottom: 30px;
}

#trusted .trusted-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
}

#trusted .logo-item {
    width: 120px;
    height: 120px;
    flex: 0 0 120px; /* logo width */
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(50%);
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.8s forwards;
}

#trusted .logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: filter 0.3s ease, transform 0.3s ease;
}

#trusted .logo-item img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Slide-in animation for logos */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add staggered animation delays */
#trusted .logo-item:nth-child(1) { animation-delay: 0s; }
#trusted .logo-item:nth-child(2) { animation-delay: 0.1s; }
#trusted .logo-item:nth-child(3) { animation-delay: 0.2s; }
#trusted .logo-item:nth-child(4) { animation-delay: 0.3s; }
#trusted .logo-item:nth-child(5) { animation-delay: 0.4s; }
#trusted .logo-item:nth-child(6) { animation-delay: 0.5s; }
#trusted .logo-item:nth-child(7) { animation-delay: 0.6s; }
#trusted .logo-item:nth-child(8) { animation-delay: 0.7s; }
#trusted .logo-item:nth-child(9) { animation-delay: 0.8s; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    #trusted h5, #trusted h1 {
        margin-left: 0;
        text-align: center;
    }

    #trusted .trusted-logos {
        justify-content: center;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: 0.3s ease;
    
    /* Pulse animation */
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Pulse keyframes */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =====================
   LEADERSHIP SECTION
===================== */
#leadership {
    background: #f8f9fa;
}

#leadership h5 {
    position: relative;
    margin-left: 120px;
    opacity: 0.7;
    color: #174b1c;
    text-transform: uppercase;
}

#leadership h5::after {
    position: absolute;
    content: "";
    background-color: #174b1c;
    width: 80px;
    height: 2px;
    top: 12px;
    left: -100px;
}

#leadership h1 {
    font-size: 50px;
    color: #092c3f;
    font-weight: 900;
    margin-bottom: 30px;
}

/* Leadership cards */
#leadership .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    height: 100%;
}

#leadership .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.15);
}

/* Profile image */
#leadership .card-img-top {
    width: 100%;
    height: 260px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

#leadership .card:hover .card-img-top {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Card body */
#leadership .card-body {
    padding: 20px;
}

#leadership .card-body p {
    text-align: center;
    margin-left: 0;
}


#leadership .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #092c3f;
    margin-bottom: 5px;
    margin-left: 0 !important;
    text-align: center;
}

#leadership .card-text {
    font-size: 14px;
    margin-bottom: 5px;
}

#leadership .card-text:first-of-type {
    color: #174b1c;
    font-weight: 600;
}

#leadership .card-text:last-of-type {
    color: #6c757d;
    font-size: 13px;
}

/* Button alignment */
#leadership .btn {
    margin-top: 20px;
}

/* =====================
   MOBILE ADJUSTMENTS
===================== */
@media (max-width: 768px) {

    #leadership h5,
    #leadership h1 {
        margin-left: 0;
        text-align: center;
    }

    #leadership h5::after {
        display: none;
    }

    #leadership .card-img-top {
        height: 220px;
    }
}

.leadership-card img {
    height: 260px;
    object-fit: cover;
}

.modal-body img {
    max-height: 280px;
    object-fit: cover;
}

.leadership-card img {
    height: 260px;
    object-fit: cover;
}

.leadership-card .card-title {
    text-align: center;
}

#leaderBio p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* =====================
   MEDIA CENTER
===================== */

.media-section{
    padding:60px 0;
}

.media-card{
    border:none;
    border-radius:12px;
    overflow:hidden;
    transition:all 0.3s ease;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    height:100%;
}

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

.media-card img{
    height:220px;
    object-fit:cover;
}

.media-card .card-body{
    padding:20px;
}

.media-card h4{
    font-size:18px;
    font-weight:700;
    color:#092c3f;
}

.media-card p{
    font-size:14px;
    color:#666;
}

.media-read{
    font-weight:600;
    color:#174B1C;
    text-decoration:none;
}

.media-read:hover{
    text-decoration:underline;
}

/* =====================
   GALLERY GRID
===================== */

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.gallery-item{
    overflow:hidden;
    border-radius:10px;
}

.gallery-item img{
    height:220px;
    width:100%;
    object-fit:cover;
    transition:0.4s;
}

.gallery-item:hover img{
    transform:scale(1.1);
}

/* =====================
   EVENT CARDS
===================== */

.event-card{
    background:#fff;
    padding:20px;
    border-radius:10px;
    margin-bottom:20px;
    box-shadow:0 10px 20px rgba(0,0,0,0.08);
}

.event-card h4{
    font-weight:700;
}

.event-date{
    color:#174B1C;
    font-weight:600;
}

/* =====================
   ARTICLE PAGE
===================== */

.article-container{
    max-width:900px;
    margin:auto;
}

.article-container img{
    border-radius:10px;
    margin:25px 0;
}
/* Patron image fix */
.founding-img {
    height: auto !important;
    max-height: 420px;
    object-fit: contain;
}