/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    background-color: #f0f0f0;
    color: #333;
}

/* Header Styles */
header {
    background-color: #2563eb;
    padding: 20px 0;
    color: white;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    font-size: 2.5rem;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: #f1f5f9; /* light gray fallback */
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.7s;
}

.hero-background:hover {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 1rem;
  color: white;
}

.top-hero {
            position: relative;
            min-height: 460px;
            display: flex;
            align-items: center;
            overflow: hidden;
            padding-top: 72px;
            padding-bottom: 72px;
        }
.about-bg{
    background:
                linear-gradient(90deg, rgba(20, 16, 37, 0.82) 0%, rgba(42, 28, 82, 0.74) 48%, rgba(19, 18, 30, 0.58) 100%),
                url('../img/home_img_4.jpg') center 35% / cover no-repeat;
}

.contacts-bg{
    background:
                linear-gradient(90deg, rgba(20, 16, 37, 0.82) 0%, rgba(42, 28, 82, 0.74) 48%, rgba(19, 18, 30, 0.58) 100%),
                url('../img/home_img_3.jpg') center 35% / cover no-repeat;
}

.sermons-bg{
    background:
                linear-gradient(90deg, rgba(20, 16, 37, 0.82) 0%, rgba(42, 28, 82, 0.74) 48%, rgba(19, 18, 30, 0.58) 100%),
                url('../img/home_img.jpg') center 35% / cover no-repeat;
}
        .top-hero-content {
            max-width: 820px;
        }
        .top-hero h1 {
            line-height: 1.08;
            letter-spacing: 0;
        }
        .about-story-grid {
            display: grid;
            gap: 2rem;
            align-items: start;
        }
        .about-story-image {
            width: 100%;
            min-height: 320px;
            height: 100%;
            object-fit: cover;
            object-position: center;
            border-radius: 0.75rem;
            box-shadow: 0 20px 45px rgba(17, 24, 39, 0.16);
        }
        .about-leader-card {
            display: flex;
            gap: 1rem;
            align-items: center;
            margin-top: 1.5rem;
            padding: 1rem;
            border-radius: 0.75rem;
            background: #f9fafb;
        }
        .dark .about-leader-card {
            background: rgba(31, 41, 55, 0.7);
        }
        .about-leader-card img {
            width: 112px;
            height: 88px;
            flex: 0 0 88px;
            border-radius: 0.5rem;
            object-fit: cover;
        }
        .about-leader-photo {
            flex: 0 0 112px;
            text-align: center;
        }
        .about-leader-photo img {
            margin: 0 auto;
        }
        .about-leader-caption {
            margin-top: 0.5rem;
            font-size: 0.75rem;
            line-height: 1rem;
            font-weight: 600;
            color: #6f42c1;
        }
        @media (min-width: 768px) {
            .about-story-grid {
                grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
                gap: 3rem;
            }
        }
        @media (max-width: 767px) {
            .top-hero {
                min-height: 420px;
                padding-top: 72px;
                padding-bottom: 56px;
                background-position: center top;
            }
            .about-leader-card {
                align-items: flex-start;
            }
        }
        .value-card {
            transition: all 0.3s ease;
        }
        .value-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

.text-box {
  max-width: 600px;
}

.text-box h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.text-box p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-button {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-button:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


header nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ffeb3b;
}

/* Hero Section Styles */
.hero {
    background: url('https://via.placeholder.com/1500x600') center/cover no-repeat;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero button {
    padding: 10px 20px;
    font-size: 1.1rem;
    background-color: #ffeb3b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero button:hover {
    background-color: #fbc02d;
}

/* Features Section */
.features {
    background-color: white;
    padding: 50px 0;
}

.features .container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature p {
    font-size: 1rem;
    color: #666;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
}

footer p {
    font-size: 1rem;
}

.cart-count-hidden {
  display: none !important;
}

.cart-count[data-count="0"], 
.cart-count:empty {
  background-color: transparent !important;
}

.cart-count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #f59e0b; /* yellow-400 */
  color: #111827; /* gray-900 */
  border-radius: 9999px;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

.cart-count-hidden {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  background-color: transparent !important;
}


        
        /* Header Styles */
        header {
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
            width: 100%;
            padding: 0;
            --tw-text-opacity: 1;
            border-bottom: 1px solid rgba(255, 255, 255, 0.18);
            background: rgb(111 66 193 / var(--tw-text-opacity, 1));
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .header-topbar {
            background: #2f195f;
            color: #fff;
            font-size: 0.8125rem;
        }

        .header-topbar-inner {
            max-width: 1200px;
            margin: 0 auto;
            min-height: 34px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.35rem 1rem;
        }

        .radio-notice,
        .header-contact-details a,
        .mobile-nav-info a {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            color: #fff;
            text-decoration: none;
        }

        .radio-notice {
            font-weight: 700;
        }

        .radio-notice:hover,
        .header-contact-details a:hover,
        .mobile-nav-info a:hover {
            color: #f3e8ff;
        }

        .header-contact-details {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 1rem;
            text-align: right;
        }
        
        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            height: 64px;
            align-items: center;
            justify-content: space-between;
            padding: 0 1rem;
        }
        
        .logo {
            flex-shrink: 0;
        }

        .header-brand a {
            gap: 0.75rem;
            text-decoration: none;
        }

        .ministry-name {
            color: #fff;
            font-weight: 800;
            font-size: 1rem;
            line-height: 1.15rem;
            letter-spacing: 0;
            max-width: 210px;
        }

        .header-container > .flex-shrink-0 a {
            border-radius: 0.75rem;
            overflow: hidden;
        }
        
        .logo img {
            height: 60px;
            width: auto;
            object-fit: contain;
        }

        .header-container > .flex-shrink-0 img {
            height: 52px !important;
            width: auto;
            border-radius: 0.75rem;
        }
        
        /* Desktop Navigation */
        .desktop-nav {
            display: none;
        }
        
        @media (min-width: 768px) {
            .desktop-nav {
                display: flex;
                align-items: center;
                gap: 1.25rem;
            }
            
            .nav-link {
                font-size: 0.875rem;
                font-weight: 500;
                color: rgba(255, 255, 255, 0.88);
                text-decoration: none;
                transition: color 0.3s ease;
            }
            
            .nav-link:hover, .nav-link.active {
                color: #fff;
            }
            
            .nav-link.active {
                font-weight: 600;
            }
        }
        
        /* Mobile Menu Button */
        .mobile-menu-btn {
            display: flex;
            padding: 0.5rem;
            border-radius: 0.375rem;
            color: #fff;
            transition: all 0.3s ease;
        }
        
        @media (min-width: 768px) {
            .mobile-menu-btn {
                display: none;
            }
        }
        
        .mobile-menu-btn:hover {
            color: #f3e8ff;
        }
        
        .mobile-menu-btn:focus {
            outline: 2px solid #fff;
            outline-offset: 2px;
        }
        
        .mobile-menu-btn svg {
            height: 1.5rem;
            width: 1.5rem;
        }
        
        /* Mobile Menu */
        .mobile-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            height: 0;
            overflow: hidden;
            background: rgb(111 66 193 / 0.98);
            box-shadow: 0 12px 30px rgba(30, 18, 58, 0.28);
            transition: height 0.3s ease;
            z-index: 40;
        }
        
        .mobile-menu.open {
            height: calc(100vh - 64px);
            overflow-y: auto;
        }
        
        .mobile-nav {
            display: flex;
            flex-direction: column;
            padding: 1rem;
        }

        .mobile-nav-info {
            display: grid;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            padding: 1rem;
            border-radius: 0.5rem;
            background: rgba(255,255,255,0.12);
        }
        
        .mobile-nav-link {
            padding: 0.75rem 1rem;
            font-size: 1rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.88);
            text-decoration: none;
            border-radius: 0.375rem;
            transition: all 0.3s ease;
        }
        
        .mobile-nav-link:hover, .mobile-nav-link.active {
            color: #fff;
            background-color: rgba(255, 255, 255, 0.12);
        }

        @media (max-width: 767px) {
            .header-topbar-inner {
                align-items: flex-start;
                flex-direction: column;
                gap: 0.25rem;
            }

            .header-contact-details {
                align-items: flex-start;
                flex-direction: column;
                gap: 0.35rem;
                text-align: left;
            }

            .header-container {
                height: 62px;
            }

            .ministry-name {
                font-size: 0.875rem;
                line-height: 1rem;
                max-width: 170px;
            }

            .header-container > .flex-shrink-0 img {
                height: 48px !important;
            }
        }
        
        /* Content Styles */
        .content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1rem;
            text-align: center;
        }
        
        .content h1 {
            color: #6f42c1;
            margin-bottom: 1.5rem;
            font-size: 2.25rem;
        }
        
        @media (min-width: 768px) {
            .content h1 {
                font-size: 3rem;
            }
        }
        
        .content p {
            font-size: 1.125rem;
            line-height: 1.7;
            color: #4b5563;
            max-width: 800px;
            margin: 0 auto 2rem;
        }
        
        .content-image {
            width: 100%;
            max-width: 600px;
            height: auto;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            margin: 2rem auto;
        }
        
        /* Footer Styles */
        footer {
            width: 100%;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            background: #2f195f;
            margin-top: 4rem;
            color: #fff;
        }
        
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 3rem 1rem;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        @media (min-width: 640px) {
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (min-width: 1024px) {
            .footer-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        .footer-section {
            display: flex;
            flex-direction: column;
        }
        
        .footer-logo {
            margin-bottom: 1rem;
        }
        
        .footer-logo img {
            height: 50px;
            width: auto;
        }
        
        .footer-description {
            color: rgba(255, 255, 255, 0.76);
            font-size: 0.875rem;
            margin-bottom: 1.5rem;
            line-height: 1.5;
        }
        
        .social-icons {
            display: flex;
            gap: 1rem;
        }
        
        .social-icon {
            color: rgba(255, 255, 255, 0.72);
            transition: color 0.3s ease;
        }
        
        .social-icon:hover {
            color: #fff;
        }
        
        .footer-heading {
            font-size: 1.125rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #fff;
        }
        
        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .footer-link a {
            color: rgba(255, 255, 255, 0.76);
            text-decoration: none;
            font-size: 0.875rem;
            transition: color 0.3s ease;
        }
        
        .footer-link a:hover {
            color: #fff;
        }
        
        .contact-info {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }
        
        .contact-icon {
            color: rgba(255, 255, 255, 0.72);
            margin-top: 0.125rem;
            flex-shrink: 0;
        }
        
        .contact-text {
            color: rgba(255, 255, 255, 0.76);
            font-size: 0.875rem;
        }
        
        .service-times {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .service-time {
            color: rgba(255, 255, 255, 0.76);
            font-size: 0.875rem;
        }
        
        .service-time span {
            font-weight: 500;
            color: #fff;
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.14);
            margin-top: 3rem;
            padding-top: 1.5rem;
            text-align: center;
        }
        
        .copyright {
            color: rgba(255, 255, 255, 0.68);
            font-size: 0.875rem;
        }

        .foundation-card {
            position: relative;
            min-height: 280px;
            overflow: hidden;
            color: #fff;
            box-shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
        }
        .foundation-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: var(--foundation-image);
            background-size: cover;
            background-position: center;
            opacity: 0.24;
            mix-blend-mode: screen;
        }
        .foundation-card::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.36));
        }
        .foundation-card-content {
            position: relative;
            z-index: 1;
            display: flex;
            height: 100%;
            flex-direction: column;
            justify-content: flex-start;
        }
        .foundation-card-title {
            background: rgb(111 66 193 / 1);
            color: #fff;
            font-size: 1.75rem;
            line-height: 2.1rem;
            font-weight: 800;
            letter-spacing: 0;
            padding: 0.5rem 1.5rem;
        }
        .foundation-card-description {
            padding: 1.5rem;
            font-size: 1rem;
            line-height: 1.7rem;
            color: rgba(255,255,255,0.9);
        }
        .foundation-card--mission {
            --foundation-image: url('../img/gallery/Church Service Activities/pic_1.jpg');
            background: #444;
        }
        .foundation-card--vision {
            --foundation-image: url('../img/gallery/Kenyan Conference/pic_1.jpeg');
            background: #444;
        }
        .foundation-card--values {
            --foundation-image: url('../img/gallery/South Sudan mission from 26th to 30th March 2026/pic_1.jpeg');
            background: #444;
        }
        @media (max-width: 767px) {
            .foundation-card {
                min-height: 240px;
            }
            .foundation-card-title,
            .foundation-card-description {
                padding-left: 1.25rem;
                padding-right: 1.25rem;
            }
        }
  
    .about-cta {
            position: relative;
            overflow: hidden;
            background:
                linear-gradient(90deg, rgba(20, 16, 37, 0.82) 0%, rgba(42, 28, 82, 0.76) 48%, rgba(19, 18, 30, 0.66) 100%),
                url('img/home_img_4.jpg') center 35% / cover no-repeat;
        }