/* assets/css/style.css */

/* Core Typography & Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #0d5c3a;      /* Dark teal/green */
    --primary-light: #167e51;
    --primary-dark: #073a24;
    --secondary-color: #e07a5f;    /* Warm orange/gold */
    --secondary-hover: #cb654b;
    --accent-color: #f4a261;       /* Accent Gold */
    --text-dark: #2f3e46;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Colors Utilities */
.text-primary-color { color: var(--primary-color) !important; }
.text-secondary-color { color: var(--secondary-color) !important; }
.bg-primary-color { background-color: var(--primary-color) !important; }
.bg-secondary-color { background-color: var(--secondary-color) !important; }
.bg-light-grey { background-color: var(--bg-light) !important; }

/* Custom Buttons */
.btn-primary-ngo {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-primary-ngo:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-ngo {
    background-color: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-secondary-ngo:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-ngo {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-outline-ngo:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    padding: 8px 0;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--accent-color);
}

.navbar {
    padding: 15px 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar-brand img {
    max-height: 45px;
}

.navbar-brand span {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 1.4rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 5px;
    transition: var(--transition);
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 8px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: calc(100% - 16px);
}

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

/* Hero Carousel / Banner */
.hero-slider .carousel-item {
    height: 650px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 700px;
    z-index: 10;
}

.hero-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-caption p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease forwards;
}

/* Page Headers */
.page-header {
    background: linear-gradient(rgba(13, 92, 58, 0.9), rgba(7, 58, 36, 0.9)), url('../images/banner2.jpg') center/cover no-repeat;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

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

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

.breadcrumb-item.active {
    color: var(--accent-color);
}

/* Causes & Campaigns Cards */
.card-ngo {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.card-ngo:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-ngo .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.card-ngo .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-ngo:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.progress-ngo {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: visible;
}

.progress-bar-ngo {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

/* Impact Statistics */
.stat-section {
    background: linear-gradient(rgba(13, 92, 58, 0.95), rgba(13, 92, 58, 0.95)), url('../images/banner1.jpg') center/cover attachment-fixed;
    color: #fff;
    padding: 80px 0;
}

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

.stat-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-card .counter {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.stat-card p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Footer styling */
.footer-ngo {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 80px 0 20px;
}

.footer-ngo h5 {
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-ngo h5::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-ngo a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-ngo a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-ngo .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    margin-right: 8px;
    transition: var(--transition);
}

.footer-ngo .social-icons a:hover {
    background-color: var(--secondary-color);
    color: #fff;
    padding-left: 0;
}

/* Lightbox Simple Style */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
    position: relative;
}

.lightbox-modal .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    filter: invert(1);
    opacity: 1;
}

/* Testimonial slider custom styling */
.testimonial-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 3rem;
    color: rgba(13, 92, 58, 0.06);
}

.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

/* Document Cards */
.doc-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doc-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.doc-info {
    display: flex;
    align-items: center;
}

.doc-icon {
    font-size: 2.5rem;
    color: #dc2626;
    margin-right: 15px;
}

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