/* ------------------- */
/* Global Styles       */
/* ------------------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    position: relative;
}

body main.container {
    padding-top: 70px; /* reserve space for fixed navbar */
}

/* ------------------- */
/* Header & Navbar     */
/* ------------------- */
header {
    background: #a1a1a1;
    color: #000;
    box-shadow: #a1a1a1 0px 4px 6px -1px, #a1a1a1 0px 2px 4px -1px;
}

header h1 {
    margin: 0;
    color: #af082c;
}
.container h2 {
    color: #af082c;
}
nav a {
    color: #af082c;
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
}

/* Navbar container */
.navbar {
    position: absolute;              /* stay on top of hero section */
    top: 0;
    width: 100%;
    background: rgba(216,216,216,0.5); /* semi-transparent */
    backdrop-filter: blur(6px);     /* optional blur for modern look */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;                   /* ensure navbar is above everything */
}

/* Navbar links */
.navbar .nav-link {
    color: #000;                     /* default link color */
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #af082c !important;       /* hover color */
}

/* ------------------- */
/* Containers          */
/* ------------------- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
}

/* ------------------- */
/* Main & Footer       */
/* ------------------- */
main {
    background: #fff;
    padding-top: 20px;
    min-height: 70vh;
}

footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 15px 0;
}

/* ------------------- */
/* Cards Layout        */
/* ------------------- */
.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #e9e9e9;
    padding: 15px;
    flex: 1;
    min-width: 200px;
    border-radius: 5px;
}

/* ------------------- */
/* Hero Section        */
/* ------------------- */
.hero-section {
    min-height: 60vh;      /* Default height: 60% of screen */
    max-height: 80vh;      /* Never exceed 80% of screen */
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
}

.hero-overlay {
    width: 100%;
    background: rgba(0,0,0,0.4); /* Optional dark overlay */
}


/* Hero background image */
.hero-image {
    position: absolute;              /* position behind hero content */
    top: 0;
    left: 0;
    width: 100%;                     /* full width */
    height: 100%;                    /* full height of hero section */
    background: url("images/hero.png") center center / cover no-repeat;
    filter: brightness(0.6);         /* darken for better text visibility */
    z-index: 1;                      /* behind heading */
}

/* Hero text/content */
.hero-heading {
    position: relative;
    z-index: 5;                      /* above background image */
    padding: 0 20px;                 /* spacing for smaller screens */
    text-align: center;               /* center heading and paragraph */
}

footer a {
    color: #ddd;
    text-decoration: none;
}

footer li a:hover {
    color: #af082c;
}

.footer-links li {
    margin-bottom: 8px;
    text-align: left;
}
.footer-links li a {
    color: #ddd;
    text-decoration: none;
}

.sermon-slider-container {
    position: relative;
}

.sermon-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.sermon-slider {
    display: flex;
    gap: 20px;
    animation: scrollSermons 30s linear infinite;
}

/* Pause on hover */
.sermon-slider-wrapper:hover .sermon-slider {
    animation-play-state: paused;
}

.sermon-card {
    min-width: 250px;
    max-width: 250px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
    border-top: 4px solid #af082c; /* Theme color */
}

.sermon-card img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* All images same size */
    display: block;
}

.sermon-info {
    padding: 15px;
    text-align: center;
}

.sermon-info h5 {
    color: #af082c;
    margin-bottom: 8px;
}

/* Arrows */
.sermon-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #af082c;
    color: #fff;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.sermon-arrow.left {
    left: -20px;
}

.sermon-arrow.right {
    right: -20px;
}

.sermon-arrow:hover {
    background: #8c0622;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Auto scroll animation */
@keyframes scrollSermons {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
        max-height: 50vh;
    }
}
@media (max-width: 600px) {
    .cards {
        flex-direction: column;
    }
    .sermon-arrow.left {
        left: 5px;
    }
    .sermon-arrow.right {
        right: 5px;
    }
}
/* Shake animation */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Apply to images */
.shake-on-hover:hover {
    animation: shake 0.4s;
}
/* ------------------- */
/* End of File         */