body, html {
    margin: 0;
    padding: 0;
    font-family: "Merriweather", serif;
    background-color: #f0f2f5;
    color: #2c3e50;
}

.header {
    background: #4a6572;
    padding: 15px 0;
    text-align: center;
}

.header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header nav ul li {
    display: inline;
    margin: 0 20px;
}

.header nav ul li a {
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth transition for color change */
}

.header nav ul li a:hover {
    color: #ffa726; /* Gold color on hover */
}

.header nav ul li a:not(.no-link):hover {
    color: #ffa726; /* Your existing hover color */
}

.header nav ul li a.no-link {
    cursor: default;
    /* Optionally, you can add a different style for these items */
    color: #999; /* A muted color for inactive links */
}

.hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero .small-text {
    position: absolute;
    bottom: 5%;
    right: 5%;
    font-size: 1.2rem;
    color: #ffffff;
    background: rgba(74, 101, 114, 0.7);
    padding: 15px 20px;
    border-radius: 5px;
}

.content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.calendar-section, .sermons-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-section {
    flex: 1;
    margin-right: 20px;
}

.sermons-section {
    flex: 2;
}

h2 {
    color: #4a6572;
    border-bottom: 2px solid #ffa726;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.event-day {
    margin-bottom: 20px;
}

.date {
    font-weight: bold;
    color: #0066cc;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.event {
    margin-bottom: 8px;
}

.event-main {
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place {
    font-weight: bold;
}

.time {
    color: #0066cc;
}

.notes, .subnotes {
    text-align: right;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes {
    font-size: 0.9em;
}

.subnotes {
    font-style: italic;
    font-size: 0.85em;
    max-height: 2.4em;
}

.sermon-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.sermon-item:last-child {
    border-bottom: none;
}

.book-recommendation, .video-item {
    display: flex;
    align-items: flex-start;
}

.video-item {
    gap: 20px;
}

.video-item .content {
    flex: 1;
}

.book-recommendation img {
    width: 150px;
    margin-right: 20px;
}

.book-recommendation .content, .video-item .content {
    flex: 1;
}

.sermon-item h3 {
    margin-bottom: 10px;
}

.sermon-item p {
    margin-bottom: 10px;
}

a {
    color: #4a6572; /* This will make links use the color of their parent element */
    text-decoration: none; /* Removes the underline */
}

a:hover {
    color: #ffa726; /* Changes color on hover */
}

.link {
    color: #0066cc; /* Sets a specific color for these links */
}

.link:hover {
    color: #ffa726; /* Changes color on hover */
}

.footer {
    background-color: #4a6572;
    padding: 20px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer img {
    height: 60px;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .calendar-section, .sermons-section {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .book-recommendation, .video-item {
        flex-direction: column;
    }
    
    .book-recommendation img {
        width: 100%;
        max-width: 150px;
        margin-right: 0;
        margin-bottom: 10px;
    }
}