/* -------------------------------
   Base Styles
-------------------------------- */
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #041014; /* dark background */
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: #2596be; /* primary blue */
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #145369; /* darker accent on hover */
}

/* -------------------------------
   Sidebar
-------------------------------- */
#sidebar {
    background-color: #041014;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 220px;
    overflow-y: auto;
    border-right: 1px solid #145369;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar li {
    margin-bottom: 0.8rem;
}

#sidebar a {
    font-weight: bold;
    display: block;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

#sidebar a:hover {
    background-color: #145369;
}

/* -------------------------------
   Main Content
-------------------------------- */
main {
    margin-left: 240px; /* space for sidebar */
    padding: 2rem;
    max-width: 900px;
}

h1, h2, h3 {
    color: #2596be;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

h2 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1rem;
    margin-top: 1rem;
}

/* Homepage logo - smaller and responsive */
#home-logo {
    width: 240px;         /* smaller, less dominant */
    max-width: 50%;       /* never exceed half the viewport width */
    height: auto;         /* keep aspect ratio */
    display: block;
    margin: 0 auto 0.5rem auto; /* centered with spacing below */
}


/* Sidebar logo - small, fits nicely above links */
#sidebar-logo img {
    width: 100px;       /* smaller than homepage logo */
    max-width: 90%;     /* responsive */
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: 4px;
}


/* Optional: reduce sidebar padding above links */
#sidebar ul {
    margin-top: 0.5rem;
}

/* -------------------------------
   Videos
-------------------------------- */
video {
    width: 100%;
    max-width: 100%;
    border: 2px solid #145369;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* Latest sermon section */
#latest-sermon,
#latest-video-container {
    margin-bottom: 2rem;
}

/* -------------------------------
   Lists
-------------------------------- */
ul {
    padding-left: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Bold links for latest sermons in series */
li a strong {
    color: #2596be;
}

/* -------------------------------
   Footer
-------------------------------- */
footer {
    margin-top: 3rem;
    border-top: 1px solid #145369;
    padding-top: 1rem;
    font-size: 0.9rem;
}

footer a {
    color: #2596be;
}

/* -------------------------------
   Responsive Design
-------------------------------- */
@media (max-width: 768px) {
    #sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        box-shadow: none;
        display: flex;
        overflow-x: auto;
    }

    #sidebar ul {
        display: flex;
        gap: 1rem;
    }

    main {
        margin-left: 0;
        padding: 1rem;
    }

    video {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}
