/*
 * Ogheneyole Charity Foundation
 * Main Stylesheet
 */

:root {
    --primary-color: #103E7A;
    --secondary-color: #6EB01C;
    --success-color: #6EB01C;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #103E7A;
    --dark-color: #585857;
    --light-color: #FEFEFE;
    --grey-light: #EBECEC;
    --grey-medium: #828383;
    --grey-dark: #585857;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Container fix for responsive */
.container,
.container-fluid {
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-3, .display-4, .display-5 {
    font-family: 'Raleway', 'Open Sans', sans-serif;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Raleway', 'Open Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: normal;
    word-wrap: break-word;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg') no-repeat center;
    background-size: cover;
    opacity: 0.1;
}

.min-vh-75 {
    min-height: 75vh;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 700;
}

/* Campaign Cards */
.campaign-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.campaign-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.campaign-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.campaign-card:hover .campaign-image img {
    transform: scale(1.1);
}

.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--warning-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.badge-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    color: white;
}

.badge-completed {
    background: var(--success-color);
}

.campaign-content {
    padding: 1.5rem;
}

.campaign-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.campaign-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.campaign-title a:hover {
    color: var(--primary-color);
}

.campaign-description {
    color: #666;
    margin-bottom: 1rem;
}

/* Progress Bars */
.progress {
    background-color: #e5e7eb;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Live Event Banner */
.live-event-banner {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--warning-color) 100%);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Mission Section */
.mission-section img {
    border-radius: 15px;
}

.mission-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0C3060;
    border-color: #0C3060;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 62, 122, 0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
}

.hover-link:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 2rem 0;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .stat-item h2 {
        font-size: 2rem;
    }
    
    .campaign-image {
        height: 200px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
        max-width: 70%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons .me-3 {
        margin-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .display-3 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* About Page Styles */
.page-hero {
    padding: 4rem 0;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.icon-box i {
    font-size: 3rem;
}

.impact-stat {
    padding: 1.5rem;
    transition: transform 0.3s;
}

.impact-stat:hover {
    transform: translateY(-5px);
}

.stat-icon i {
    font-size: 2.5rem;
}

.value-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s;
}

.value-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.value-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.cta-box {
    background: linear-gradient(135deg, rgba(16, 62, 122, 0.1) 0%, rgba(110, 176, 28, 0.1) 100%);
    padding: 3rem;
    border-radius: 20px;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Contact Page Styles */
.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-card {
    display: flex;
    align-items-start;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.contact-details a {
    color: #555;
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.map-placeholder {
    background: white;
    padding: 4rem;
    border-radius: 15px;
}

/* Volunteer Page Styles */
.feature-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
}

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

.feature-icon i {
    font-size: 3rem;
}

.volunteer-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Events Page Styles */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.event-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.live-event {
    border: 3px solid var(--danger-color);
}

.event-header {
    padding: 1.5rem;
    background: var(--light-color);
}

.live-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
}

.event-badge {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
}

.event-content {
    padding: 2rem;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.event-meta {
    color: #666;
    font-size: 0.95rem;
}

.event-description {
    color: #555;
    line-height: 1.6;
}

.event-stream {
    border-radius: 10px;
    overflow: hidden;
}

.donation-progress {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 10px;
}

.past-event-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.past-event-badge {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Gallery Page Styles */
.gallery-event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
}

.gallery-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--light-color);
}

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

.gallery-event-card:hover .gallery-cover img {
    transform: scale(1.1);
}

.video-placeholder,
.no-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-color);
    color: white;
    font-size: 4rem;
}

.no-media {
    background: var(--light-color);
    color: #ccc;
}

.gallery-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    color: white;
    font-size: 0.85rem;
}

.media-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.gallery-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.gallery-description {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Single Campaign Page Styles */
.campaign-hero {
    background: var(--light-color);
    padding: 1.5rem 0 0.5rem;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--primary-color);
}

.campaign-detail-image {
    border-radius: 15px;
    overflow: hidden;
}

.campaign-detail-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.campaign-meta {
    color: #666;
    font-size: 0.95rem;
}

.campaign-sidebar {
    position: sticky;
    top: 100px;
}

.donation-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.raised-amount h2 {
    font-size: 2.5rem;
}

.campaign-stats {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.share-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.donations-list {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
}

.donation-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.donor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.donor-info {
    flex: 1;
}

.donor-info h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.donation-amount {
    margin-left: 1rem;
}
