/* Northview SDA Church - Custom Styles */

/* Base Styles */
* {
    box-sizing: border-box;
}

:root {
    --primary-color: #c09d03;
    --secondary-color: #00A79D;
    --accent-color: #ffdd57;
    --hover-teal: #007f73;
    --hover-teal-alt: #00917a;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --muted-text: #6c757d;
    --font-family: 'Afacad Flux', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-text);
}

/* Ensure images are visible by default */
img {
    display: block !important;
}

/* Hide images only when explicitly toggled */
body.hide-images img {
    display: none !important;
}

/* Hide only images within carousel items */
body.hide-images .carousel-item img {
    display: none !important;
}

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

.btn-give {
    background-color: var(--secondary-color) !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
}

.btn-give:hover {
    background-color: var(--hover-teal) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 167, 157, 0.3);
}

/* Dropdown Styles */
.dropdown-menu {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--dark-text);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Hero Carousel */
.hero-carousel {
    height: 75vh;
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 75vh;
}

.hero-carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(192, 157, 3, 0.8), rgba(0, 167, 157, 0.6));
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.carousel-caption p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.25rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #a08602;
    border-color: #a08602;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 157, 3, 0.4);
}

.btn-reach-out {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reach-out:hover {
    background-color: var(--hover-teal);
    border-color: var(--hover-teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 167, 157, 0.4);
}

.btn-contact {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--dark-text);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-line {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 100%;
}

.service-card, .decision-card, .connect-card, .event-card, .department-card, .prayer-cell-card {
    position: relative;
}

.service-card .card-body, .connect-card .card-body {
    padding: 2rem;
}

.decision-card .card-body {
    padding: 1.5rem;
}

/* Gallery Styles */
.gallery-container {
    position: relative;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h5 {
    margin-bottom: 0.5rem;
}

/* Leadership Card Styles */
.leadership-card {
    text-align: center;
    transition: all 0.3s ease;
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.leadership-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Prayer Cell Styles */
.prayer-cell-card {
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.prayer-cell-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-left-color: var(--secondary-color);
}

/* Pastor Section Styles */
.pastor-image {
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.pastor-image:hover {
    transform: translateY(-5px);
}

/* Sections */
section {
    position: relative;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Live Stream */
.live-stream-container iframe {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background-color: #1a1a1a !important;
}

footer h5, footer h6 {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Accessibility Button */
.accessibility-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 167, 157, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.accessibility-btn:hover {
    background-color: var(--hover-teal);
    transform: scale(1.1);
}

/* Accessibility Menu */
.accessibility-menu {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 250px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.accessibility-header h6 {
    margin: 0;
    color: var(--dark-text);
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted-text);
    cursor: pointer;
}

.accessibility-options {
    padding: 0.5rem;
}

.accessibility-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem;
    background: none;
    border: none;
    text-align: left;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--dark-text);
    font-weight: 500;
}

.accessibility-option:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.accessibility-option i {
    margin-right: 0.75rem;
    width: 20px;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh;
    }
    
    .hero-carousel .carousel-item {
        height: 60vh;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
    
    .whatsapp-float, .accessibility-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .accessibility-menu {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }

    .gallery-caption {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.8);
        margin-top: -50px;
        border-radius: 0 0 12px 12px;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        height: 50vh;
    }
    
    .hero-carousel .carousel-item {
        height: 50vh;
    }
    
    .carousel-caption {
        width: 95%;
    }
    
    .carousel-caption h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* High Contrast Mode */
.high-contrast {
    filter: contrast(150%) brightness(120%);
}

.high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast .navbar, .high-contrast .card, .high-contrast .btn {
    border: 2px solid #fff !important;
}

/* Large Text Mode */
.large-text {
    font-size: 1.2em !important;
}

.large-text h1, .large-text h2, .large-text h3, .large-text h4, .large-text h5, .large-text h6 {
    font-size: 1.3em !important;
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    margin-bottom: 0;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(192, 157, 3, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-header {
    background: var(--secondary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.calendar-nav button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e9ecef;
}

.calendar-day {
    background: white;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background-color: var(--light-bg);
}

.calendar-day.has-event {
    background-color: rgba(192, 157, 3, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
}

/* Event Badge */
.event-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* Resource Card */
.resource-card {
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    padding-left: 3rem;
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-text);
}

/* Donation Form */
.donation-amount {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 1rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover, .amount-btn.selected {
    background-color: var(--primary-color);
    color: white;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover, .payment-method.selected {
    border-color: var(--secondary-color);
    background-color: rgba(0, 167, 157, 0.1);
}

.payment-method img {
    height: 40px;
    margin-bottom: 0.5rem;
}