:root {
    --bg-dark: #0A0B0D;
    --card-bg: #16191E;
    --bethel-yellow: #FFD700;
    --border-color: #31333F;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: white;
}

/* Utility Bar */
.utility-bar {
    background: #000;
    font-size: 11px;
    padding: 5px 5%;
    display: flex;
    justify-content: space-between;
    color: #888;
}

/* Header */
header {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5%;
    border-bottom: 1px solid var(--border-color);
}

.logo img { 
    height: 150px;
    width: auto;
}

.text-italic {
    font-style: italic;
}

.fancy-italic {
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-style: italic;
    font-size: 20px;
    letter-spacing: 0.5px;
    /* Optional: subtle gold tint to match Bethel branding */
    color: rgb(250, 250, 249);
}

.search-container input {
    background: #1E2127;
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    width: 400px;
    border-radius: 4px;
    color: white;
}

nav a {
    color: var(--bethel-yellow);
    text-decoration: none;
    font-weight: bold;
    font-size: 9px;
    margin-left: 20px;
}

/* --- HERO SLIDER & ANIMATIONS --- */
.hero-slider {
    height: 450px;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start; 
    padding-top: 80px; 
    padding-left: 10%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Smoother Staggered Entry */
.slide.active .hero-content h1 {
    animation: fadeInUp 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.4s;
    font-size: 1.3rem;
    line-height: 1.1;
    opacity: 0;
}

.slide.active .hero-content p {
    animation: fadeInUp 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.slide.active .btn-primary {
    animation: fadeInUp 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 1.4s;
    opacity: 0;
}

.bright-text {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8), 0px 0px 20px rgba(0, 0, 0, 0.5);
}

.yellow { color: var(--bethel-yellow); }

.btn-primary {
    background: var(--bethel-yellow);
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Featured Cards */
.featured { padding: 40px 10%; }
.featured h3 { margin-bottom: 20px; font-size: 1.2rem; letter-spacing: 1px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--bethel-yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.card-img {
    height: 120px;
    background-size: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--bethel-yellow);
    color: var(--bethel-yellow);
    padding: 8px 15px;
    margin-top: 5px;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 992px) {
    .search-container input { width: 250px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    header { flex-direction: column; padding: 15px; }
    .logo img { height: 80px; margin-bottom: 5px; }
    .search-container { width: 100%; margin-bottom: 15px; }
    .search-container input { width: 100%; }
    nav a { font-size: 10px; margin: 0 5px; }

    /* Hero Content Shifts & Sizing */
    .hero-slider { height: 400px; }
    
    .slide {
        padding-top: 20px !important;
        padding-left: 5% !important;
        align-items: flex-start !important;
    }

    /* SPECIFICALLY SMALL FONTS FOR MOBILE */
    .hero-slider .slide .hero-content h1.bright-text {
        font-size: 1.0rem !important; 
        line-height: 1.1 !important;
        margin-bottom: 4px !important;
    }

    .hero-slider .slide .hero-content p.bright-text {
        font-size: 0.5em !important; 
        line-height: 1.2 !important;
    }

    /* TRANSPARENT GOLD BUTTON */
    .hero-slider .slide .btn-primary {
        background: transparent !important;
        border: 1px solid var(--bethel-yellow) !important;
        color: var(--bethel-yellow) !important;
        font-size: 0.55rem !important;
        padding: 6px 11px !important;
        margin-top: 10px !important;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2) !important;
    }

    .card-grid { grid-template-columns: 1fr; }

    /* Image Adjustments */
    .slide[style*="Pappi.png"] {
        background-position: 80% 8% !important;
    }
    
    .slide[style*="Boxes.jpg"] {
        background-position: 78% 20% !important;
    }
}

/* Category Specific Filters */
.slide[style*="FrozenProducts.png"] { filter: hue-rotate(5deg) brightness(1.1); }


.card-img {
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
    padding-top: 10px;
    transition: opacity 0.5s ease-in-out; /* Smooth transition */
}