/* css/main.css */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* ── FIXED HEADER ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Top row: Logo left + Contact right */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 750px;
    margin: 0 auto;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    max-height: 80px;           /* Adjust based on your logo size */
    width: auto;
}

.contact-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.church-info {
    margin: 0;
    font-size: 0.6rem;
    color: #555;
    font-style: italic;
    text-align: left;
    max-width: 340px;
}

.contact-button {
    display: inline-block;
    background-color: #003366;
    color: white;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.5rem;
    transition: background-color 0.2s;
}

.contact-button:hover {
    background-color: #660000;
}

/* ── MENU BAR with background color ── */
nav.main-nav {
    background-color: #e9e8ef;          /* ← MENU BACKGROUND COLOR HERE */
    /* You can change it to: */
    /* #e8ecef     → light cool gray */
    /* #f8f1e9     → warm beige */
    /* #003366     → dark blue */
    /* #8B0000     → dark red (very bold) */
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 1px 0;
}

/* Horizontal menu – this is the critical part */
.main-menu {
    list-style: none;                /* removes bullets */
    margin: 0 auto;
    padding: 0;
    display: flex;                   /* makes items horizontal */
    flex-wrap: wrap;                 /* allows wrapping on small screens */
    justify-content: center;         /* centers the whole menu */
    gap: 2rem;                       /* space between items */
    max-width: 1200px;
}

/* Individual menu items */
.main-menu > li {
    position: relative;              /* needed for dropdown positioning */
}

.main-menu > li > a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 5px 5px;
    display: block;
    white-space: nowrap;
    transition: color 0.2s;
}

.main-menu > li > a:hover {
    color: #8B0000;
}

/* Submenu (dropdown) */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 5px;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 10;
    list-style: none;
}

.main-menu > li:hover > .submenu,
.main-menu > li:focus-within > .submenu {
    display: block;
}

.submenu h3 {
    font-size: 0.8em;
    margin-left: 5px;
}

.main-nav .submenu ul,
.visit-left ul {
    list-style: none;          /* removes bullets / numbers */
    padding-left: 0;           /* removes default left indentation */
    margin-left: 0;
}

.submenu li a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.8em;
}

.submenu li a:hover {
    background-color: #f8f8f8;
    color: #003366;
}

.view-all {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #003366;
    font-weight: bold;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* Hero section – smaller height, full image visible */
.hero-section {
    display: flex;
    margin-top: 120px;              /* space for fixed header – adjust if needed */
    height: 300px;                  /* ← smaller than before (was 500px or more) */
    min-height: 300px;              /* prevents it from becoming too small on narrow screens */
    background-color: #f8f8f8;      /* fallback color if image fails */
}

.blue-left,
.blue-right {
    flex: 1;
    background-color: #003366;      /* your blue side color */
}

.slideshow-wrapper {
    flex: 0 0 1200px;
    max-width: 750px;
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;      /* light background for letterboxing */
}

.hero-slideshow {
    width: 100%;
    height: 100%;
}

.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;            /* ← key change: shows FULL image, no cropping */
    object-position: center;
    background-color: transparent;  /* or #f8f8f8 to match wrapper */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Fade animation example for 4 images */
.hero-slideshow img:nth-child(1) { animation: fade 24s infinite; }
.hero-slideshow img:nth-child(2) { animation: fade 24s infinite 6s; }
.hero-slideshow img:nth-child(3) { animation: fade 24s infinite 12s; }
.hero-slideshow img:nth-child(4) { animation: fade 24s infinite 18s; }

@keyframes fade {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    25%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
}

/* ── MAIN CONTENT – same width as slideshow ── */
.homepage-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 40px 20px;
}

.two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.left-column h1 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.left-column h3 {
    font-size: 1.0rem;
    margin-bottom: 0.4rem;
}

.left-column p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #444;
}

.right-column {
    flex: 1;                /* ~30–35% width */
    min-width: 280px;
}
.links-list {
    list-style: none;
    padding: 0;
}

.links-list li {
    margin: 0.5rem 0;
}

.links-list a {
    color: #003366;          /* example: dark blue */
    /* or #006600 for green, #000000 for black, etc. */
    
    font-size: 0.9rem;       /* make bigger */
    /* or 1.5rem, 1.8rem, 2rem, etc. */
    
    /*font-weight: bold;       /* keep or remove */
    text-decoration: none;
}

.links-list a:hover {
    text-decoration: underline;
}

/* Events box */
.events-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.events-box h3 {
    margin: 0 0 1.2rem;
    font-size: 1.2rem;
    color: #333;
    text-align: center;
}

.event-item {
    display: flex;
    color: #333;
    /*padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;*/
    min-width: 70px;
    text-align: center;
    font-size: 0.70rem;
    gap: 40px;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.event-date {
    display: flex;              /* Enable Flexbox for centering */
    justify-content: center;    /* Horizontal center */
    align-items: center;        /* Vertical center */
    background-color: #003366;  /* Keep your dark blue */
    color: white;
    padding: 8px 12px;          /* Even padding around text */
    border-radius: 5px;
    font-weight: bold;
    min-width: 80px;            /* Keep min-width */
    text-align: center;         /* Fallback for older browsers */
    font-size: 0.70rem;
    height: 100%;               /* Optional: make it stretch to match event text height if needed */
}

/*.event-item p {
    margin: 0;
    flex: 1;
}*/

.view-all {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #003366;
    font-weight: bold;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* ── FOOTER ── */

/* Footer with three columns */
footer {
    background-color: #000; /* dark black background */
    color: #fff;
    padding: 15px 15px;
    text-align: center;
    font-size: 0.70rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 750px;
    margin: 0 auto 10px;
    gap: 20px;
}

.footer-column {
    flex: 1;
    text-align: left;
}

.footer-column h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ccc; /* light gray for headers */
}

.service-times {
    list-style: none;
    padding: 0;
}

.service-times li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time {
    background-color: #003366; /* dark red badge */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.footer-column p {
    margin-bottom: 10px;
}

.directions-link,
.email-link {
    color: #8B0000; /* red links */
    text-decoration: none;
}

.directions-link:hover,
.email-link:hover {
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #999;
}

/* Responsive – stack columns on smaller screens */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
    
    .service-times li {
        justify-content: center;
    }
    
    .footer-column p {
        text-align: center;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .contact-area {
        align-items: flex-start;
        margin-top: 10px;
    }

    .main-menu {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .hero-section {
        flex-direction: column;
        height: auto;
    }

    .blue-left, .blue-right {
        height: 60px;
    }

  .slideshow-wrapper {
        flex: none;
        height: 300px;
    }
}
