/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; }

/* Colors */
:root {
    --dark-blue: #003366;
    --off-white: #f4f4f4;
    --white: #ffffff;
    --blue-gradient: linear-gradient(135deg, var(--dark-blue) 0%, #001c3a 100%);
}



/* Sticky Navbar */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: var(--blue-gradient); color: var(--white);
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-links { display: flex; list-style: none; }
.nav-links li a { color: var(--white); text-decoration: none; margin-left: 20px; font-weight: 500; }
.accent-link { background: var(--white); color: var(--dark-blue) !important; padding: 5px 15px; border-radius: 5px; }

/* Hero Section */
.hero {
    height: 80vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    background: var(--white); 
    border-bottom: 5px solid var(--dark-blue);
    background-image: linear-gradient(rgba(242, 242, 242, 0.3), rgba(245, 243, 243, 0.3)), 
                      url('bible-on-desk.jpg'); /* Replace with your image URL */
    background-size: cover;      /* Scales image to fill container */
    background-position: center;  /* Centers image so it crops evenly */
    background-repeat: no-repeat; /* Prevents tiling */
    color: var(--white);          /* Sets hero text to white for contrast */
}
/*.hero-content-back {
    background-color: rgba(255, 255, 255, 0.623);
    border-radius: 10px;
    padding: 25px;
}*/
.hero-h2 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}
.hero-h3 {
    
    font-size: 1.5rem;
    color: rgba(31, 0, 71, 0.799);
    margin-bottom: 20px;
}

.event-row {
    display: flex;
    justify-content: space-between; /* This pushes them to the far left and right */
    align-items: center;
    width: 100%;
    margin-bottom: 5px; /* Optional: space between this and the next line */
    margin-left: 0px;
    margin-right: 0px;
}

.service{
    font-weight: bold;
    color: var(--white);
}
.time {
    color: var(--off-white);
}

.hero h1 { font-size: 3rem; color: var(--dark-blue); margin-bottom: 5px; }
.hero p {
    color: darkblue;
    margin-bottom: 10px;
}
.btn { 
    display: inline-block; padding: 12px 25px; text-decoration: none; 
    border-radius: 5px; margin: 10px; font-weight: bold; transition: 0.3s;
}
.btn.primary { background: var(--dark-blue); color: var(--white); }
.btn.secondary { border: 2px solid var(--dark-blue); color: var(--dark-blue); }

button:hover { 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
 }

/* Content Sections */
.content-section { 
    display: flex;
    justify-content: space-around;
    padding: 80px 10%; 
    align-items: center;
    text-align: left;
    
}
 
.content-section div {
    min-height: 30vh;
    
}
.about-us {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-image img {
    width: 100%;
    width: 400px;
    border-radius: 15px;
    margin-bottom: 20px;
}
.about-text {
    margin: 10px;
    padding: 20px;
    text-align: left;
    max-width: 700px;
    min-width: 300px;
}
    
.white { background: var(--white); }
.off-white { background: var(--off-white); }
.footer-accent { background: var(--blue-gradient); color: var(--white); }


.event-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /*Allows cards to wrap to next line if space is tight */
    padding: 20px 0;
    
}

/* Individual Card Style */
.event-card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 325px; /* fixed width, no shrinking */
    width: 325px;
    
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
}

/* Placeholder for card images */
.card-image {
    height: 180px;
  
    background-color: var(--off-white); /* Accent with off-white */
    border-bottom: 3px solid var(--dark-blue); /* Dark blue accent line */
}
.card-image img { height: 100%; overflow: hidden; object-fit: cover; width: 100%; }
.card-content { padding: 20px; }
.card-content h3 { color: var(--dark-blue); margin-bottom: 5px; }
.event-date { font-weight: bold; color: #666; font-size: 0.9rem; margin-bottom: 10px; }
.contact-info { margin-top: 50px; }

/* Small Button Styling */
.btn-sm {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: var(--dark-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
}
.contact-info {
    margin: 50px 0;
    justify-content: center;
    align-items: center;
    
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Simplified for framework; usually use a hamburger menu */
    .hero h1 { font-size: 2rem; }
    .hero-btns { display: flex; flex-direction: column; align-items: center; }
    .content-section { display: flex; flex-direction: column; align-items: center;}
    .about-us { width: 300px; }
    .event-grid {
        display:block;
    } 
    /*.event-card {
        height: 200px;  
        width: 100%;
        max-width: 400px;  
    }*/
   
    .event-card {
        flex: none;      /* Overrides the 325px fixed basis */
        width: 100%;     /* Lets the card fill the container width */
        height: auto;    /* Ensures the card grows with its content */
        max-width: 325px; 
    }
    
    .card-image {
        height: 300px;   /* Explicitly set image height so it doesn't collapse */
    }

}
