/* ==================== GENERAL STYLES ==================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 56px; /* Account for fixed navbar */
}

section {
    scroll-margin-top: 70px; /* Account for fixed navbar */
}

html {
    scroll-behavior: smooth;
}

/* ==================== HEADER & NAVIGATION ==================== */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(80, 70, 70, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: white;
    transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    font-weight: bold;
}

.transparent-header {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
}

/* Dropdown menu styling */
.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.9);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}

/* Mobile menu adjustments */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.85);
        padding: 15px;
        border-radius: 5px;
    }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ==================== MISSION/VISION SECTION ==================== */
#mission {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 5rem 0;
}

.mission-box, .vision-box {
    background-color: rgba(0, 45, 114, 0.85);
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
    visibility: hidden;
}

.mission-title, .vision-title {
    color: #fdda24;
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-bottom: 1.5rem;
}

.mission-text, .vision-text {
    font-size: 1.05rem;
    line-height: 1.6;
    font-family: 'Arial', Times, serif;
    flex-grow: 1;
    color: white;
    padding: 0 1rem;
}

.mission-text p, .vision-text p {
    margin-bottom: 0.5rem;
    text-align: center;
}

.logo-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

/* Animation Styles */
.vision-box {
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.mission-box {
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.logo-box {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-in {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Mobile adjustments for mission/vision */
@media (max-width: 360px) {
    #mission {
        padding-top: 70px;
        margin-top: 0;
    }
    
    .vision-box,
    .mission-box,
    .logo-box {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
        visibility: visible;
    }
    
    .mission-box, .vision-box {
        width: 100%;
        max-width: 360px;
        margin: 10px auto;
    }
    
    .mission-title, .vision-title {
        font-size: 1.6rem;
    }
    
    .mission-text, .vision-text {
        font-size: 1rem;
    }
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    color: #34495e;
    padding: 5rem 0;
}

.about-heading {
    color: #2c3e50;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.about-lead {
    font-size: 1.25rem;
    color: #34495e;
}

.about-text {
    color: #7f8c8d;
}

.about-img {
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Learn More Button - From Uiverse.io */
button.learn-more {
    width: 12rem;
    height: auto;
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

button.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #282936;
    border-radius: 1.625rem;
}

button.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}

button.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

button.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}

button.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: #282936;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
}

button:hover .circle {
    width: 100%;
}

button:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(1rem, 0);
}

button:hover .button-text {
    color: #fff;
}

/* ==================== EVENTS SECTION ==================== */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-date {
    background-color: #6c757d;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    border-radius: 5px;
    padding: 0.5rem;
    color: white;
    text-align: center;
}

.event-img {
    height: 200px;
    object-fit: cover;
}

.event-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ==================== OUTREACH SECTION ==================== */
.outreach-location {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.outreach-location.animate {
    opacity: 1;
    transform: translateY(0);
}

.outreach-location:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.location-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin: -1rem -1rem 1rem -1rem;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.location-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.outreach-location h3 {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.outreach-location .btn {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.outreach-location .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .location-image {
        height: 150px;
    }
}

/* ==================== PRAYER SECTION ==================== */
.prayer-section {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), 
                url('../assets/images/bg3.jpg') no-repeat center center;
    background-size: cover;
    font-family: 'Merriweather', 'Times New Roman', serif;
    padding: 5rem 0;
}

.section-header {
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.divider {
    width: 80px;
    height: 3px;
    background: #fff;
    margin: 1.5rem auto;
    opacity: 0.7;
}

.prayer-form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 2rem;
}

.form-title {
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1.5rem;
}

.form-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
}

.form-control {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.submit-btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    background: #3498db;
    border: none;
    border-radius: 5px;
    color: white;
    padding: 0.75rem 1.5rem;
    width: 100%;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.prayer-wall-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.prayer-wall-header {
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.wall-title {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.refresh-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 4px;
}

.prayer-wall-body {
    height: 610px;
    overflow-y: auto;
    padding: 20px;
}

.prayer-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.prayer-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.prayer-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    white-space: pre-line;
}

.prayer-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #7f8c8d;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.prayer-name {
    font-weight: 600;
    color: #2c3e50;
}

.prayer-date {
    font-style: italic;
}

@media (max-width: 992px) {
    .prayer-wall-body {
        height: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .prayer-form-container {
        margin-bottom: 2rem;
    }
}

/* ==================== SUPPORT SECTION ==================== */
#support {
    position: relative;
    color: white;
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/images/bg3.jpg') no-repeat center center;
    background-size: cover;
}

.giving-option {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.giving-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.giving-icon {
    color: white;
    margin-bottom: 1.5rem;
}

.giving-option h3 {
    color: white;
    margin-bottom: 1rem;
}

.giving-option p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.giving-options-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

.giving-options-info h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.giving-options-info li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.giving-options-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: white;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: #343a40;
    color: white;
    padding: 3rem 0;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
    margin-right: 10px;
}

.social-icons a:hover {
    background: #007bff;
    transform: translateY(-3px);
    color: white;
}

/* ==================== UTILITY CLASSES ==================== */
.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.object-cover {
    object-fit: cover;
}

/* ==================== ANIMATIONS ==================== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: bounce 2s infinite;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        min-height: 60vh;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-date {
        left: -30px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}


/* Uniform
 image sizing with aspect ratio */
.card-img-top {
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (adjust as needed) */
  position: relative;
  overflow: hidden;
}

.card-img-top img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images cover the area without stretching */
}

/* Make all cards the same height */
.activity-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-card .card-body {
  flex-grow: 1;
}