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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Top Header */
.top-header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon svg {
    display: block;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: #4a9fd8;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    font-weight: 400;
    color: #4a9fd8;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
}

.top-nav a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #666;
    text-transform: uppercase;
}

.top-nav a:hover {
    color: #4a9fd8;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #333;
    color: white;
}

/* Main Navigation */
.main-navigation {
    background-color: #1a1a1a;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 18px 25px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover {
    background-color: #2a2a2a;
}

.home-icon {
    font-size: 16px;
    margin-right: 5px;
}

.giving-icon {
    font-size: 14px;
    margin-right: 5px;
}

.dropdown-arrow {
    font-size: 8px;
    margin-left: 5px;
}

/* Dropdown Menus */
.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.dropdown a:hover {
    background-color: #f5f5f5;
    color: #4a9fd8;
    padding-left: 25px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.slide-content h4 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-style: italic;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background-color: #4a9fd8;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: #3a8fc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 159, 216, 0.4);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-arrow span {
    font-size: 36px;
    line-height: 1;
    font-weight: 300;
}

.slider-arrow-left {
    left: 0;
}

.slider-arrow-right {
    right: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .top-nav ul {
        gap: 15px;
    }

    .top-nav a {
        font-size: 10px;
    }

    .nav-menu > li > a {
        padding: 15px 18px;
        font-size: 12px;
    }

    .slide-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .top-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .top-nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu > li > a {
        padding: 12px 15px;
        font-size: 11px;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h4 {
        font-size: 18px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow span {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text p {
        font-size: 9px;
    }

    .slide-content h2 {
        font-size: 22px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 12px;
    }
}

/* Learn More Section */
.learn-more {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #4a9fd8;
    margin-bottom: 50px;
    font-weight: 400;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
}

.card-overlay h3 {
    color: white;
    font-size: 18px;
    margin: 0;
    font-weight: 400;
}

/* Latest Sermon Section */
.latest-sermon {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bible.jpg') center/cover;
    text-align: center;
    color: white;
}

.section-title-white {
    font-size: 36px;
    color: white;
    margin-bottom: 30px;
    font-weight: 400;
}

.sermon-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.sermon-meta {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.sermon-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.sermon-btn {
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.3s ease;
}

.sermon-btn:hover {
    opacity: 0.7;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 35px;
    background-color: #4a4a4a;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #333;
}

/* Upcoming Events Section */
.upcoming-events {
    padding: 80px 0;
    background-color: white;
}

.events-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.calendar-widget h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
}

.calendar th {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.calendar td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar td:hover {
    background-color: #f5f5f5;
}

.calendar td.inactive {
    color: #ccc;
}

.calendar td.today {
    background-color: #4a9fd8;
    color: white;
    font-weight: 700;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

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

.event-item h4 {
    color: #4a9fd8;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.event-time {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.event-location {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

/* Small Groups Section */
.small-groups {
    background-color: #4a9fd8;
    padding: 0;
}

.small-groups-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.small-groups-slider {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.slider-images {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.sg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sg-slide.active {
    opacity: 1;
}

.slider-arrow-left-sg,
.slider-arrow-right-sg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-arrow-left-sg {
    left: 20px;
}

.slider-arrow-right-sg {
    right: 20px;
}

.slider-arrow-left-sg:hover,
.slider-arrow-right-sg:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

.small-groups-text {
    padding: 80px 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-groups-text h2 {
    font-size: 42px;
    margin-bottom: 25px;
    font-weight: 400;
}

.small-groups-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-secondary-dark {
    display: inline-block;
    padding: 12px 35px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.btn-secondary-dark:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: #4a9fd8;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
}

.footer-logo-text p {
    font-size: 10px;
    font-weight: 400;
    color: #4a9fd8;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
}

.footer-mission {
    font-size: 14px;
    line-height: 1.8;
    color: #bbb;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    color: #bbb;
    margin: 5px 0;
}

.footer-column a {
    color: #4a9fd8;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #3a4f63;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.powered-by {
    margin-top: 10px;
}

.powered-by a {
    color: #4a9fd8;
}

/* Responsive adjustments for new sections */
@media (max-width: 968px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .small-groups-content {
        grid-template-columns: 1fr;
    }

    .small-groups-text {
        padding: 60px 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-title,
    .section-title-white {
        font-size: 28px;
    }

    .sermon-title {
        font-size: 22px;
    }

    .small-groups-text h2 {
        font-size: 32px;
    }

    .small-groups-text {
        padding: 40px 30px;
    }
}