/* PEPNET Website Styles */

:root {
    --primary-color: #1D79A0;
    --secondary-color: #B57F2D;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color) !important;
    font-size: 0.9rem;
}

.top-bar i {
    margin-right: 5px;
}

.social-links a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--secondary-color) !important;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn-donate {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    margin-left: 1rem;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 121, 160, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(29, 121, 160, 0.9), rgba(181, 127, 45, 0.8)), url('../img/hero.jpg') center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #155a7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 121, 160, 0.4);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: #9a6a25;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(181, 127, 45, 0.4);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), #155a7a);
    color: white;
    padding: 4rem 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styling */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: 'Playfair Display', serif;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-role {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Vision Mission Section */
.vision-mission-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 5rem 0;
}

.vm-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.vm-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.vm-card.secondary {
    border-top-color: var(--secondary-color);
}

.vm-card.secondary h3 {
    color: var(--secondary-color);
}

/* Approaches Section */
.approach-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.approach-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.approach-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Team Section */
.team-card {
    text-align: center;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(29, 121, 160, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Donation Form */
.donation-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.amount-btn {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.amount-btn:hover,
.amount-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* News Cards */
.news-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Programs Section */
.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.program-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.program-content {
    padding: 2rem;
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--dark-color) !important;
    padding: 3rem 0 1rem;
}

.footer-widget h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--secondary-color) !important;
}

/* Mobile Navbar Slide Animation */
.navbar-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    padding: 0.5rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1051;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.navbar-close:hover {
    color: var(--secondary-color);
    background: rgba(29, 121, 160, 0.1);
    transform: rotate(90deg);
}

@media (max-width: 991px) {
    /* Mobile Menu Overlay - Behind menu only */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1049;
        pointer-events: none;
    }
    
    .mobile-nav-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Mobile Menu Container */
    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: #ffffff !important;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3) !important;
        transition: left 0.3s ease-in-out !important;
        z-index: 1050 !important;
        padding: 3.5rem 1.5rem 1.5rem !important;
        overflow-y: auto !important;
        margin: 0 !important;
        border: none !important;
    }
    
    .navbar-collapse.show {
        left: 0 !important;
    }
    
    /* Navigation Links Container */
    .navbar-nav {
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 0 !important;
        position: relative !important;
        z-index: 10 !important;
        padding: 0 !important;
    }
    
    .navbar-nav .nav-item {
        width: 100% !important;
        margin: 0.25rem 0 !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.875rem 1rem !important;
        margin: 0 !important;
        width: 100% !important;
        border-radius: 6px !important;
        color: #333 !important;
        font-weight: 500 !important;
        display: block !important;
        text-decoration: none !important;
        position: relative !important;
        z-index: 10 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(29, 121, 160, 0.15) !important;
        color: var(--primary-color) !important;
        transform: translateX(5px);
    }
    
    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
        background: rgba(29, 121, 160, 0.15) !important;
        font-weight: 600 !important;
    }
    
    .navbar-nav .nav-link.active::after {
        display: none !important;
    }
    
    /* Donate Button in Mobile Menu */
    .navbar-nav .btn-donate {
        margin-left: 0 !important;
        margin-top: 1rem !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0.875rem 1.5rem !important;
        position: relative !important;
        z-index: 10 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* Close Button */
    .navbar-close {
        display: block !important;
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 20 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* Toggler Button */
    .navbar-toggler {
        z-index: 1052 !important;
        position: relative !important;
    }
    
    /* Ensure no interference */
    .navbar-collapse * {
        pointer-events: auto !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stats-section {
        margin-top: 0;
        border-radius: 0;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(29, 121, 160, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(29, 121, 160, 0.6);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}