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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

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

/* Top Toolbar Styles */
.custom-toolbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    font-size: 14px;
}

.toolbar-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-item {
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #219897;
}

.social-text {
    font-size: 13px;
}

/* Main Navigation Styles */
.main-navigation {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    padding: 15px 0;
}

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

.navbar-brand .logo {
    max-height: 54px;
    width: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item a:hover,
.nav-item.active a {
    color: #219897;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: #219897;
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul {
    list-style: none;
    padding: 10px 0;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #219897;
}

/* Hero Banner Styles */
.hero-section {
    background: linear-gradient(135deg, #219897 0%, #1a7676 100%);
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('test/images/hero-bg.jpg') center center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #fff;
    color: #219897;
    border-color: #fff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

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

/* Main Content */
.main-content {
    padding: 60px 0;
}

.main-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.main-content p {
    font-size: 1.125rem;
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Times Footer */
.service-times-footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.service-times-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-times-content h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 600;
}

.service-schedule {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 20px;
}

.service-item {
    text-align: center;
    min-width: 200px;
}

.service-item .time {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
}

.service-item .description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.special-note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.4;
}

.weekly-meetings {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.meeting-item {
    text-align: center;
    margin-bottom: 10px;
}

.meeting-item .meeting-name {
    font-weight: 600;
    color: #2c3e50;
}

.meeting-item .meeting-time {
    color: #666;
    margin-left: 10px;
}

/* Main Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

.site-footer p {
    margin: 0;
    opacity: 0.8;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .toolbar-grid {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-item {
        font-size: 13px;
    }
    
    .social-text {
        display: none;
    }
    
    .navbar-brand .logo {
        max-height: 40px;
        width: auto;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 0;
        padding: 0;
        z-index: 1001;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-item a {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        border: none;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin: 0;
        border-radius: 0;
    }
    
    .dropdown-menu a {
        padding: 12px 40px;
        font-size: 14px;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    /* Service Times Footer Responsive */
    .service-schedule {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .service-times-content h3 {
        font-size: 20px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar-brand .logo {
        max-height: 35px;
    }
    
    .navbar-container {
        padding: 10px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .main-content h2 {
        font-size: 2rem;
    }
}

/* Sticky Navigation Animation */
.main-navigation.sticky {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Link Colors */
a {
    color: #219897;
    text-decoration: none;
}

a:hover {
    color: #1a7676;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.dualcolumn {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
    text-align: left;
}

.dualcolumn p {
    text-align: left;
    margin: 0;    
    max-width: none;
    margin-bottom: 1rem;
}

.dualcolumn-image {
    flex: none;
    width: 100%;
    max-width: 400px;
    order: -1; /* Places image first on mobile */
}

/* Desktop layout for dualcolumn */
@media (min-width: 769px) {
    .dualcolumn {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }
    
    .dualcolumn-image {
        flex: 1;
        order: 0; /* Reset order for desktop */
        max-width: 400px;
    }
}

/* Belief Statement Styles */
.belief-statement {
    max-width: 900px;
    margin: 20px auto 0;
    text-align: left;
}

.belief-statement h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #219897;
    padding-bottom: 0.25rem;
}

.belief-statement p {
    text-align: left;
    max-width: none;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.belief-statement .scripture-refs {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #e0e0e0;
}

/* Missions Page Styles */
.main-content .missions-intro {
    text-align: left !important;
    max-width: none;
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}
.missions-intro p {
    text-align: left;
}
.missionaries-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.missionary-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.missionary-info {
    flex: 1;
}

.missionary-info h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #219897;
    padding-bottom: 0.25rem;
    display: inline-block;
}

.missionary-info p {
    text-align: left;
    max-width: none;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.missionary-info a {
    color: #219897;
    text-decoration: none;
    font-weight: 500;
}

.missionary-info a:hover {
    text-decoration: underline;
    color: #1a7777;
}

.missionary-photo {
    flex: 0 0 180px;
    text-align: center;
}

.missionary-photo img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #219897;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Message Audio Page Styles */
.message-audio {
    max-width: 900px;
    margin: 0 auto;
}

.message-audio p {
    text-align: left;
}

.media-content {
    text-align: center;
    margin: 2rem 0;
}

.media-container {
    display: inline-block;
    max-width: 100%;
    width: 100%;
}

.media-container iframe {
    width: 560px;
    height: 315px;
    max-width: 100%;
}

/* Responsive adjustments for YouTube embed */
@media (max-width: 768px) {
    .media-container iframe {
        width: 100%;
        height: 315px;
    }
}

@media (max-width: 600px) {
    .media-container iframe {
        width: 100%;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .media-container iframe {
        width: 100%;
        height: 250px;
    }
}

/* Responsive Design for Missions */
@media (max-width: 768px) {
    .missionary-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .missionary-photo {
        flex: none;
        align-self: center;
    }
    
    .missionary-photo img {
        width: 150px;
        height: 150px;
    }
}