:root {
    --primary-color: #004E92;
    /* Darker, richer blue */
    --primary-dark: #000428;
    /* Very dark blue for gradients */
    --secondary-color: #FF9F1C;
    /* Vibrant Orange */
    --accent-color: #2EC4B6;
    /* Teal/Turquoise for variety */
    --light-color: #F0F4F8;
    --dark-color: #0F1C2E;
    --text-color: #333;
    --white: #ffffff;
    --gray: #e0e0e0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Force white text on primary buttons in nav at all times */
.nav-links .btn-primary {
    color: var(--white) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    /* offset for fixed navbar */
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Ensure anchor targets aren't hidden under the fixed nav */
[id] {
    scroll-margin-top: 120px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 3.5rem 0;
}

.bg-light {
    background-color: #F0F4F8;
    /* Slight blue tint */
    position: relative;
    overflow: hidden;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.btn-primary,
.btn-secondary,
.btn-outline-white {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 78, 146, 0.3);
}

.btn-primary:hover {
    background-color: #003d73;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 78, 146, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 159, 28, 0.3);
}

.btn-secondary:hover {
    background-color: #e08e0b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 159, 28, 0.4);
}

.btn-outline-white {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Compact navbar when user scrolls down */
.navbar.scrolled {
    padding: 0.5rem 5%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .logo img {
    height: 55px !important;
    width: 55px !important;
    transition: height 0.3s ease, width 0.3s ease;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 4px;
}

/* Animated underline on hover and active */
.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a.active:not(.btn-primary)::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links .btn-primary {
    padding: 0.4rem 1.2rem;
    color: var(--white);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
    color: var(--white);
}

/* Hero Section */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 4, 40, 0.85), rgba(0, 78, 146, 0.8)), url('https://images.unsplash.com/photo-1531206715517-5c0ba140b2b8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    z-index: -1;
}

/* ... existing code ... */

/* Service Card Hover & Icon Colors */
.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.service-card:nth-child(2n) .icon {
    color: var(--accent-color);
    /* Alternate color for variety */
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* Better readability */
    font-weight: 800;
    /* Bolder */
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Services Section */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 0;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: 350px;
}

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

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.service-content p {
    font-size: 0.95rem;
    color: #4a5568;
}

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

.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* About Section Typography */
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

/* Banner */
.banner {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 5rem 0;
}

.banner h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--primary-color);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 78, 146, 0.2);
}

/* Specific colors for icons */
.social-links a.social-facebook {
    color: #1877F2;
    /* Facebook Blue */
    background: rgba(24, 119, 242, 0.1);
}

.social-links a.social-facebook:hover {
    background: #1877F2;
    color: var(--white);
}

.social-links a.social-instagram {
    color: #E4405F;
    /* Instagram Pink/Red */
    background: rgba(228, 64, 95, 0.1);
}

.social-links a.social-instagram:hover {
    background: #E4405F;
    color: var(--white);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* Global Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Updated Button Colors */
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    /* White text on orange for contrast */
}

.btn-secondary:hover {
    background-color: #e08e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 174, 45, 0.4);
}

/* ── Rich Site Footer ───────────────────────────────── */
.site-footer {
    font-family: var(--font-body);
}

.footer-top {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 3rem;
    border-top: 5px solid var(--secondary-color);
}

/* Search bar */
.footer-search {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin-bottom: 3rem;
}

.footer-search input {
    flex: 1;
    padding: 0.75rem 1.2rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    background: #fff;
    color: var(--dark-color);
}

.footer-search button {
    padding: 0.75rem 1.4rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease;
}

.footer-search button:hover {
    background: #e08e0b;
}

/* Two-column grid */
.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.footer-col-wide {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Individual widget */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-widget ul li {
    padding: 0.3rem 0;
    font-size: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widget ul li a:hover {
    color: var(--secondary-color);
}

/* Comments: bold author name */
.footer-comments li strong {
    color: var(--white);
    font-weight: 700;
}

/* Bottom copyright bar */
.footer-bottom {
    background: #000214;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 1.2rem 0;
    font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}


/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10rem 0 4rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Subtle diagonal shine overlay */
.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.page-header .container,
.page-header>div {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.page-header p {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Process Steps (Onboarding) */
.onboarding-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.onboarding-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--secondary-color);
    position: sticky;
    top: 100px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--secondary-color);
    line-height: 1;
    font-weight: 700;
}

/* ... existing code ... */

.step-content p {
    font-size: 1rem;
    color: #4a5568;
}

/* Donation Options */
.donation-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.donate-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 250px;
    border-top: 5px solid var(--primary-color);
}

.donate-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.donate-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #4a5568;
}

/* ... existing code ... */

/* Donors Grid */
.donors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.donor-item {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px dashed var(--primary-color);
}

/* Kroger Section — Centered Layout */
.kroger-section-centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kroger-section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.kroger-inline-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* Kroger Enrollment Steps — Peek Carousel */
.kroger-carousel {
    width: 100%;
    max-width: 860px;
    margin: 2rem auto 0;
    /* Clip the track but leave horizontal padding so neighbouring slides peek in */
    overflow: hidden;
    /* Expose peeked slides by pulling the wrapper wider than the slide area */
    padding: 0.5rem 0 1rem;
    box-sizing: border-box;
}

/* Sliding track — all slides laid out in a single row */
.kroger-carousel-track {
    display: flex;
    /* JS will set translateX in pixels so the active slide is centered */
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Individual slide — 75% of the carousel wrapper width */
.kroger-carousel-slide {
    flex: 0 0 75%;
    padding: 0 0.6rem;
    box-sizing: border-box;
    opacity: 0.4;
    transform: scale(0.94);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.kroger-carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.kroger-step-card {
    width: 100%;
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
    border-left: 6px solid var(--secondary-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.kroger-step-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    transform: translateY(-3px);
}

/* Final / confirmation step */
.kroger-step-final {
    background: #f0f9ff;
    border-left-color: var(--primary-color);
}

.step-badge {
    background: var(--secondary-color);
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 14px rgba(255, 159, 28, 0.45);
}

.step-badge-final {
    background: var(--primary-color);
    box-shadow: 0 6px 14px rgba(0, 78, 146, 0.45);
}

.kroger-step-card:hover .step-badge {
    transform: scale(1.1) rotate(-4deg);
}

.kroger-step-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.kroger-step-text a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

/* Carousel controls */
.kroger-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 2rem;
}

.kroger-carousel-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 78, 146, 0.35);
}

.kroger-carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.12);
    box-shadow: 0 8px 20px rgba(255, 159, 28, 0.45);
}

.kroger-carousel-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.kroger-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.25s ease;
    border: none;
    padding: 0;
}

.kroger-dot.active {
    background: var(--primary-color);
    transform: scale(1.4);
}

.kroger-dot:hover {
    background: var(--secondary-color);
}

/* ── Partner Cards ───────────────────────────────── */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1rem;
}

.partner-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 360px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.13);
}

.partner-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.partner-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.partner-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--light-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    width: fit-content;
}

.partner-card-body h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0;
}

.partner-card-body p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* ... existing mobile styles ... */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-wrapper,
    .onboarding-layout {
        grid-template-columns: 1fr;
    }

    .about-image,
    .onboarding-image {
        order: -1;
    }

    .onboarding-image img {
        position: static;
        margin-bottom: 2rem;
        box-shadow: 10px 10px 0 var(--secondary-color);
    }
}