/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Nunito:wght@300;400;600&display=swap');

/* Base styles */
:root {
    --primary-color: #007A87;       /* Teal-blue from text */
    --secondary-color: #F15A24;     /* Orange accent from the bird's beak */
    --accent-color: #FFB347;        /* Soft orange from the wing area */
    --bg-light: #F4FAFB;            /* Very light background matching the bird's white/light blue */
    --bg-dark: #003D4C;             /* Dark navy tone for contrast */
    --text-dark: #2C3E50;           /* Used in "Fun Raising" text */
    --text-light: #5D7C88;          /* Lighter grey-blue for muted text */
    --header-height: 80px;
    --white: #ffffff;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--white);
    padding-top: var(--header-height); /* Account for fixed header */
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #219653;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#main {
    background-color: var(--white);
}
.text-center{
    text-align: center;
}
/* Header and Navigation */
.main-header {
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid #eee;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Logo styling */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo-container img {
    height: 40px;
    margin-right: 10px;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 22px;
    line-height: 1;
    margin: 0;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
}

.logo-tagline {
    font-size: 12px;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    margin: 0 auto;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin: 0 15px;
}

.main-menu a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    height: var(--header-height);
    line-height: var(--header-height);
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--primary-color);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.donate-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.donate-button:hover {
    background-color: #219653;
    color: var(--white);
}

.auth-link {
    margin-left: 15px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

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

.auth-link.sign-in {
    color: var(--text-dark);
}

.auth-link.sign-up {
    color: var(--primary-color);
}

/* Mobile Navigation */
@media (min-width: 1025px) {
    .mobile-nav-button {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
}

/* Mobile Menu Styles */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        transition: transform 0.3s ease;
        transform: translateX(100%);
        padding: 0;
    }
    
    .mobile-menu.show {
        display: block;
        transform: translateX(0);
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu-header .logo-container {
        display: flex;
        align-items: center;
        margin-right: 0;
    }
    
    .mobile-menu-header .logo-container img {
        height: 30px;
    }
    
    .mobile-close-btn {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666;
    }
    
    .mobile-donate-btn {
        display: block;
        margin: 20px;
        text-align: center;
        background-color: var(--primary-color);
        color: white;
        padding: 10px 15px;
        border-radius: 5px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
    }
    
    .mobile-menu-items {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
        list-style: none;
        margin: 0;
    }
    
    .mobile-menu-items li {
        border-bottom: 1px solid #eee;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-items li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-items a {
        display: block;
        padding: 15px 0;
        color: #333;
        font-weight: 500;
        text-decoration: none;
    }
    
    .mobile-auth-links {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        border-top: 1px solid #eee;
    }
    
    .mobile-auth-links a {
        display: block;
        padding: 10px 0;
        color: #555;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 5px;
        text-decoration: none;
    }
    
    .mobile-auth-links a.mobile-signup {
        background-color: #f5f5f5;
    }
    
    .nav-wrapper {
        justify-content: space-between;
    }
    
    .mobile-nav-button {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
        margin-left: auto;
    }
    
    .mobile-nav-button span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-button.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-button.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-button.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Adjust main header for mobile */
@media (max-width: 768px) {
    .main-header {
        padding: 20px 15px;
    }
    
    .logo-container img {
        height: 35px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-tagline {
        font-size: 10px;
    }
    
    .user-actions {
        display: none;
    }
}

/* Hero Section */
.hero-section-ngo {
    height: 500px;
    background: linear-gradient(rgba(51, 51, 51, 0.85), rgba(51, 51, 51, 0.85)), url('/images/hero-banner-min.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    color: var(--white);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--white);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.6;
}

.donate-btn-hero {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.donate-btn-hero:hover {
    background-color: #219653;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* NGOs Section */
.ngos-container {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-filter-button {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    margin: 0 5px 10px 5px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.category-filter-button:hover,
.category-filter-button.active {
    background-color: var(--primary-color);
    color: white;
}

.ngo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.ngo-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ngo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ngo-image {
    height: 200px;
    overflow: hidden;
}

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

.ngo-card:hover .ngo-image img {
    transform: scale(1.05);
}

.ngo-content {
    padding: 20px;
}

.ngo-category {
    display: inline-block;
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.ngo-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.ngo-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.progress-bar {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
    width: 100%; /* Ensure full width */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.progress-stats .raised,
.progress-stats .target {
    margin-bottom: 5px; /* Add some spacing between wrapped items */
}

.progress-stats .raised span,
.progress-stats .target span {
    color: var(--primary-color);
    font-weight: 600;
}

.ngo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ngo-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

.ngo-btn:hover {
    background-color: #219653;
    color: white;
}

.ngo-favorite {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

.ngo-favorite:hover {
    background-color: #ffe9e9;
}

.ngo-favorite i {
    color: #ccc;
    font-size: 16px;
    transition: all 0.3s;
}

.ngo-favorite:hover i {
    color: #e74c3c;
}

.ngo-favorite.active i {
    color: #e74c3c;
}

.view-all-btn {
    text-align: center;
    margin-top: 30px;
}

.view-all-btn a {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

.view-all-btn a:hover {
    background-color: #219653;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Donation Ready Section */
.donation-ready-section {
    background: linear-gradient(135deg, var(--primary-color), #219653);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.donation-ready-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.donation-ready-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.donation-amount-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.amount-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 30px;
    margin: 0 10px 10px 0;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.custom-amount {
    margin: 0 10px 10px 0;
}

.custom-amount input {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    width: 155px;
    outline: none;
    text-align: center;
}

.custom-amount input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.donate-now-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.donate-now-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Grid System - Updated for better spacing */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -20px;
    margin-left: -20px;
}

.row.align-items-center {
    align-items: center;
}

.col-md-4, .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 0;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0;
    }
}

/* Impact Section */
.impact-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.impact-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    text-align: center;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.impact-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(39, 174, 96, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.impact-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.impact-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.impact-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer-container {
    background-color: var(--bg-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-column p {
    margin-bottom: 20px;
    color: #ECF0F1;
    line-height: 1.6;
}

.social-links {
    display: flex;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: all 0.3s;
}

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

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ECF0F1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.copyright {
    color: #ECF0F1;
}

.footer-bottom-links a {
    color: #ECF0F1;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* About Page Styles */
.hero-section-about {
    height: 400px;
    background: linear-gradient(rgba(51, 51, 51, 0.85), rgba(51, 51, 51, 0.85)), url('/images/about/about-hero-min.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-section-about .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section-about .hero-title {
    color: var(--white);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section-about .hero-subtitle {
    color: var(--white);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.6;
    opacity: 0.9;
}

.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content h2 {
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 700;
    text-align: left;
    font-size: 36px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 16px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Founders Section */
.founders-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.founders-section .section-title {
    margin-bottom: 50px;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
}

.founder-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.founder-image {
    height: 300px;
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-content {
    padding: 30px;
}

.founder-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.founder-role {
    display: block;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.founder-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Mission Section */
.mission-section {
    padding: 100px 0;
    background-color: var(--white);
}

.mission-content h2 {
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 700;
    text-align: left;
    font-size: 36px;
}

.mission-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

.mission-content h3 {
    font-size: 22px;
    margin: 40px 0 20px;
    color: var(--text-dark);
}

.mission-list {
    padding-left: 20px;
    margin-bottom: 30px;
}

.mission-list li {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    padding-left: 10px;
}

.mission-list li strong {
    color: var(--text-dark);
}

.mission-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.values-section .section-title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 122, 135, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

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

.value-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Join Section */
.join-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), #219653);
    color: white;
}

.join-content h2 {
    font-size: 42px;
    margin-bottom: 25px;
    font-weight: 700;
    color: white;
}

.join-content p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.join-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles for About Page */
@media (max-width: 991px) {
    .about-section, .founders-section, .mission-section, .values-section, .join-section {
        padding: 80px 0;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-section, .founders-section, .mission-section, .values-section, .join-section {
        padding: 60px 0;
    }
    
    .hero-section-about {
        height: 350px;
    }
    
    .hero-section-about .hero-title {
        font-size: 36px;
    }
    
    .hero-section-about .hero-subtitle {
        font-size: 18px;
    }
    
    .about-content h2, 
    .mission-content h2,
    .founders-section .section-title,
    .values-section .section-title {
        font-size: 30px;
        margin-bottom: 25px;
    }
    
    .about-image, .mission-image {
        height: 350px;
    }
    
    .founder-image {
        height: 250px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .join-content h2 {
        font-size: 32px;
    }
    
    .join-content p {
        font-size: 16px;
    }
    
    .join-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        padding: 12px 30px;
    }
}

@media (max-width: 576px) {
    .hero-section-about {
        height: 300px;
    }
    
    .hero-section-about .hero-title {
        font-size: 30px;
    }
    
    .hero-section-about .hero-subtitle {
        font-size: 16px;
    }
    
    .about-content h2, 
    .mission-content h2,
    .founders-section .section-title,
    .values-section .section-title {
        font-size: 26px;
    }
    
    .founder-image {
        height: 200px;
    }
    
    .founder-content {
        padding: 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    .join-content h2 {
        font-size: 28px;
    }
}

/* NGO List Page Styles */
.hero-section-ngos {
    height: 400px;
    background: linear-gradient(rgba(51, 51, 51, 0.85), rgba(51, 51, 51, 0.85)), url('/images/ngos/ngo-list-header-min.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-section-ngos .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section-ngos .hero-title {
    color: var(--white);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section-ngos .hero-subtitle {
    color: var(--white);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* NGO Filter Section */
.ngo-filter-section {
    padding: 50px 0 30px;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 135, 0.1);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.search-btn:hover {
    color: var(--primary-color);
}

.category-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 10px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-dark);
}

.filter-btn:hover {
    background: #e9e9e9;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* NGO Card Grid */
.ngo-grid-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.ngo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.ngo-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.ngo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.ngo-card-link {
    text-decoration: none;
    color: var(--text-dark);
    display: block; /* Change from flex to block to fix display issues */
    height: 100%;
}

.ngo-profile-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Square aspect ratio */
    position: relative;
    overflow: hidden;
}

.ngo-profile-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ngo-card:hover .ngo-profile-image img {
    transform: scale(1.05);
}

.ngo-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ngo-name {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
}

.ngo-category {
    display: inline-block;
    background-color: rgba(0, 122, 135, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.ngo-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ngo-card-action {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.view-profile {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.view-profile i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.ngo-card:hover .view-profile i {
    transform: translateX(5px);
}

/* Join as NGO Section */
.join-ngo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #219653);
    color: white;
    text-align: center;
}

.join-ngo-content {
    max-width: 800px;
    margin: 0 auto;
}

.join-ngo-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.join-ngo-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Responsive Styles for NGO List */
@media (max-width: 991px) {
    .ngo-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .join-ngo-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-section-ngos {
        height: 350px;
    }
    
    .hero-section-ngos .hero-title {
        font-size: 36px;
    }
    
    .hero-section-ngos .hero-subtitle {
        font-size: 18px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .ngo-grid-section {
        padding: 40px 0;
    }
    
    .ngo-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .join-ngo-section {
        padding: 60px 0;
    }
    
    .join-ngo-content h2 {
        font-size: 28px;
    }
    
    .join-ngo-content p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-section-ngos {
        height: 300px;
    }
    
    .hero-section-ngos .hero-title {
        font-size: 30px;
    }
    
    .hero-section-ngos .hero-subtitle {
        font-size: 16px;
    }
    
    .ngo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .ngo-content {
        padding: 15px;
    }
    
    .ngo-name {
        font-size: 18px;
    }
    
    .join-ngo-content h2 {
        font-size: 24px;
    }
}

/* NGO Detail Page Styles */
.ngo-detail-header {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.ngo-header-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.ngo-header-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.ngo-logo {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ngo-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ngo-header-info {
    flex: 1;
}

.ngo-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.ngo-header-info .ngo-category {
    display: inline-block;
    background-color: rgba(0, 122, 135, 0.1);
    color: var(--primary-color);
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.ngo-brief {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.ngo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ngo-meta-item {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    font-size: 14px;
}

.ngo-meta-item i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 16px;
}

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

.ngo-meta-item a:hover {
    text-decoration: underline;
}

.ngo-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.donate-btn-large {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.donate-btn-large:hover {
    background-color: #219653;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ngo-social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ngo-social-share span {
    font-size: 14px;
    color: var(--text-light);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-dark);
    transition: all 0.3s;
}

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

/* NGO Gallery Section */
.ngo-gallery-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.gallery-slider {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 500px;
}

.gallery-item {
    display: none;
    position: relative;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
}

.gallery-caption p {
    margin: 0;
    font-size: 14px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumb {
    width: 120px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NGO Tabs Section */
.ngo-tabs-section {
    padding: 60px 0;
    background-color: var(--white);
}

.tabs-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tabs-header {
    display: flex;
    background-color: var(--primary-color);
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-btn.active {
    background-color: white;
    color: var(--primary-color);
}

.tab-content {
    background-color: white;
    padding: 40px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* About Tab Content */
.mission-vision {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.mission-box, .vision-box {
    flex: 1;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.mission-box h3, .vision-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.mission-box p, .vision-box p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

.ngo-description {
    margin-bottom: 40px;
}

.ngo-description h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.ngo-description p {
    color: var(--text-light);
    line-height: 1.7;
}

.team-section {
    margin-bottom: 40px;
}

.team-section h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-photo {
    height: 200px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 20px;
}

.team-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
}

.team-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.contact-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 122, 135, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 18px;
}

.contact-item span {
    color: var(--text-dark);
}

/* Projects Tab Content */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status.ongoing {
    background-color: rgba(52, 168, 83, 0.2);
    color: #34a853;
}

.project-status.completed {
    background-color: rgba(66, 133, 244, 0.2);
    color: #4285f4;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.project-progress {
    margin-top: 20px;
}

.project-progress .progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.project-progress .progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
}

.progress-percentage {
    text-align: right;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.no-content-message {
    padding: 40px;
    text-align: center;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.no-content-message p {
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
}

/* Impact Tab Content */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.impact-stat-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.impact-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.impact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 122, 135, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.impact-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.impact-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.impact-description {
    color: var(--text-light);
    margin: 0;
}

.impact-testimonials {
    margin-top: 40px;
}

.impact-testimonials h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.testimonial {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

.testimonial:before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(0, 122, 135, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    padding-left: 40px;
}

.testimonial-content p {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.7;
    margin: 0;
}

.testimonial-author {
    margin-top: 20px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

/* Donation Form Styles */
.ngo-donation-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.donation-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.donation-form-header {
    background: linear-gradient(135deg, var(--primary-color), #219653);
    color: white;
    padding: 30px;
    text-align: center;
}

.donation-form-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}

.donation-form-subtitle {
    opacity: 0.9;
    margin: 0;
}

.donation-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 135, 0.1);
    outline: none;
}

.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.select-wrapper {
    position: relative;
}

.select-wrapper:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    appearance: none;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 135, 0.1);
    outline: none;
}

.amount-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.amount-btn {
    background-color: #f5f5f5;
    border: none;
    color: var(--text-dark);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 135, 0.1);
    outline: none;
}

.form-control.readonly {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.donation-submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.donation-submit-btn:hover {
    background-color: #219653;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Similar NGOs Section */
.similar-ngos-section {
    padding: 60px 0;
    background-color: var(--white);
}

.similar-ngos-section .section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.similar-ngos-section .section-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.similar-ngos-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 5px 5px 20px;
}

.similar-ngo-card {
    flex: 0 0 280px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.similar-ngo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.similar-ngo-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.similar-ngo-image {
    height: 180px;
    overflow: hidden;
}

.similar-ngo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.similar-ngo-card:hover .similar-ngo-image img {
    transform: scale(1.05);
}

.similar-ngo-content {
    padding: 20px;
}

.similar-ngo-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.similar-ngo-content .ngo-category {
    display: inline-block;
    background-color: rgba(0, 122, 135, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive Styles for NGO Detail Page */
@media (max-width: 992px) {
    .ngo-header-content {
        flex-direction: column;
    }
    
    .ngo-header-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .gallery-slider {
        height: 400px;
    }
    
    .mission-vision {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 30px;
    }
    
    .team-grid,
    .projects-grid,
    .impact-stats {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .ngo-detail-header {
        padding: 40px 0;
    }
    
    .ngo-header-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ngo-logo {
        width: 100px;
        height: 100px;
    }
    
    .ngo-header-info {
        text-align: center;
    }
    
    .ngo-title {
        font-size: 28px;
    }
    
    .ngo-meta {
        justify-content: center;
    }
    
    .ngo-header-right {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-slider {
        height: 350px;
    }
    
    .gallery-thumb {
        width: 80px;
        height: 60px;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .team-grid,
    .projects-grid,
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .donation-form {
        padding: 30px;
    }
    
    .similar-ngo-card {
        flex: 0 0 240px;
    }
    
    .similar-ngo-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .ngo-detail-header {
        padding: 30px 0;
    }
    
    .ngo-logo {
        width: 80px;
        height: 80px;
    }
    
    .ngo-title {
        font-size: 24px;
    }
    
    .ngo-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-slider {
        height: 300px;
    }
    
    .donation-form-title {
        font-size: 24px;
    }
    
    .donation-form {
        padding: 20px;
    }
    
    .amount-buttons {
        gap: 5px;
    }
    
    .amount-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Thank You Page Styles */
.thank-you-container {
    padding: 80px 0;
    background-color: var(--bg-light);
    min-height: 80vh;
}

.thank-you-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.thank-you-header {
    background: linear-gradient(135deg, var(--primary-color), #219653);
    color: white;
    padding: 40px;
    text-align: center;
}

.thank-you-header i {
    font-size: 60px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.thank-you-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: white;
}

.thank-you-header p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

.donation-confirmation {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.confirmation-message {
    margin-bottom: 30px;
    text-align: center;
}

.confirmation-message p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.donation-details {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.donation-details h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.donation-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.donation-details li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
    color: var(--text-dark);
}

.donation-details li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-light);
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

.receipt-note {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.receipt-note i {
    color: var(--primary-color);
    margin-right: 5px;
}

.next-steps {
    padding: 40px;
    text-align: center;
}

.next-steps h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.next-step-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.next-step-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.next-step-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.next-step-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    transition: transform 0.3s, opacity 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

.social-btn.linkedin {
    background-color: #0077b5;
}

.social-btn.whatsapp {
    background-color: #25d366;
}

.btn-secondary {
    display: inline-block;
    background-color: #f5f5f5;
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.return-home {
    text-align: center;
    padding: 0 40px 40px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #219653;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary i {
    margin-right: 8px;
}

/* Responsive styles for Thank You page */
@media (max-width: 768px) {
    .thank-you-container {
        padding: 60px 0;
    }
    
    .thank-you-header {
        padding: 30px;
    }
    
    .thank-you-header i {
        font-size: 50px;
    }
    
    .thank-you-header h1 {
        font-size: 28px;
    }
    
    .donation-confirmation,
    .next-steps,
    .return-home {
        padding: 30px;
    }
    
    .confirmation-message p {
        font-size: 16px;
    }
    
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .thank-you-container {
        padding: 40px 0;
    }
    
    .thank-you-header {
        padding: 25px;
    }
    
    .thank-you-header i {
        font-size: 40px;
    }
    
    .thank-you-header h1 {
        font-size: 24px;
    }
    
    .donation-confirmation,
    .next-steps,
    .return-home {
        padding: 20px;
    }
    
    .donation-details {
        padding: 20px;
    }
    
    .donation-details li {
        flex-direction: column;
    }
    
    .detail-label {
        margin-bottom: 5px;
    }
}

/* Campaigns Page Styles */
.hero-section-campaigns {
    height: 400px;
    background: linear-gradient(rgba(51, 51, 51, 0.85), rgba(51, 51, 51, 0.85)), url('/images/campaigns/campaigns-header-min.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-section-campaigns .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section-campaigns .hero-title {
    color: var(--white);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section-campaigns .hero-subtitle {
    color: var(--white);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* Campaign Filter Section */
.campaign-filter-section {
    padding: 50px 0 30px;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

/* Campaign Card Grid */
.campaign-grid-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.campaign-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: auto !important; /* Force auto height */
    display: flex !important; /* Force flex display */
    flex-direction: column !important; /* Force column direction */
    max-height: none !important; /* Ensure no max-height is applied */
    position: relative; /* For positioning the overlay link */
    cursor: pointer; /* Indicate the card is clickable */
}

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

.campaign-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1; /* Ensure content is above the overlay link */
    position: relative;
}

.campaign-card-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Below all content */
}

.ngo-link {
    position: relative;
    z-index: 10; /* Higher z-index to ensure it's clickable */
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.ngo-link:hover {
    text-decoration: underline;
}

.view-campaign {
    position: relative;
    z-index: 10; /* Higher z-index to ensure it's clickable */
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    text-decoration: none;
}

.campaign-urgency {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.campaign-content {
    padding: 20px;
    flex-grow: 1;
    display: flex !important; /* Force flex display */
    flex-direction: column !important; /* Force column direction */
    min-height: 200px; /* Add min-height to ensure content has space */
    overflow: visible !important; /* Ensure content is not cut off */
}

.campaign-category {
    display: inline-block;
    background-color: rgba(0, 122, 135, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.campaign-name {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.3;
}

.campaign-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.campaign-progress {
    margin-bottom: 20px;
}

.campaign-progress .progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.campaign-progress .progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
    width: 100%; /* Ensure full width */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.progress-stats .raised,
.progress-stats .target {
    margin-bottom: 5px; /* Add some spacing between wrapped items */
}

.progress-stats .raised span,
.progress-stats .target span {
    color: var(--primary-color);
    font-weight: 600;
}

.campaign-by {
    margin-top: auto;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.campaign-by a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.campaign-by a:hover {
    text-decoration: underline;
}

.campaign-card-action {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto; /* Push to bottom of flex container */
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-link, 
.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: white;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-link:hover, 
.pagination-arrow:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
}

.pagination-arrow.disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.pagination-ellipsis {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Start a Campaign Section */
.start-campaign-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #219653);
    color: white;
    text-align: center;
}

.start-campaign-content {
    max-width: 800px;
    margin: 0 auto;
}

.start-campaign-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.start-campaign-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Responsive Styles for Campaigns Page */
@media (max-width: 991px) {
    .campaign-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .start-campaign-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-section-campaigns {
        height: 350px;
    }
    
    .hero-section-campaigns .hero-title {
        font-size: 36px;
    }
    
    .hero-section-campaigns .hero-subtitle {
        font-size: 18px;
    }
    
    .campaign-grid-section {
        padding: 40px 0;
    }
    
    .campaign-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .start-campaign-section {
        padding: 60px 0;
    }
    
    .start-campaign-content h2 {
        font-size: 28px;
    }
    
    .start-campaign-content p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-section-campaigns {
        height: 300px;
    }
    
    .hero-section-campaigns .hero-title {
        font-size: 30px;
    }
    
    .hero-section-campaigns .hero-subtitle {
        font-size: 16px;
    }
    
    .campaign-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .campaign-image {
        height: 180px;
    }
    
    .campaign-content {
        padding: 15px;
    }
    
    .campaign-name {
        font-size: 18px;
    }
    
    .start-campaign-content h2 {
        font-size: 24px;
    }
    
    .pagination-link, 
    .pagination-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Fix webkit-specific visibility issues */
.campaign-card {
    /* Existing properties */
    -webkit-transform: translateZ(0); /* Fix Safari rendering issues */
    -webkit-backface-visibility: hidden; /* Fix Safari rendering issues */
    -webkit-perspective: 1000; /* Fix Safari rendering issues */
    backface-visibility: hidden;
    perspective: 1000;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    /* Safari/Chrome-specific fixes */
    .campaign-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }
    
    .campaign-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }
    
    .campaign-card-action {
        position: relative !important;
        bottom: 0 !important;
    }
}

@media (max-width: 576px) {
    /* Existing properties */
    
    .campaign-grid {
        grid-template-columns: 1fr;
        gap: 30px; /* Increase gap for better separation */
    }
    
    .campaign-card {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .campaign-image {
        height: 180px;
    }
    
    .campaign-content {
        padding: 15px;
        min-height: 180px; /* Adjust for mobile */
        display: flex !important;
        flex-direction: column !important;
    }
    
    .campaign-name {
        font-size: 18px;
    }
    
    .campaign-card-action {
        padding: 12px 15px;
        position: relative !important;
        bottom: 0 !important;
    }
}

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

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

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

.view-campaign i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.campaign-card:hover .view-campaign i {
    transform: translateX(5px);
}

/* Campaign Detail Styles */
.campaign-detail-header {
    background-color: #f8f9fa;
    padding: 60px 0;
    border-bottom: 1px solid #e9ecef;
}

.campaign-header-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.campaign-header-left {
    flex: 1;
    min-width: 300px;
}

.campaign-info {
    max-width: 600px;
}

.campaign-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.campaign-category {
    display: inline-block;
    background-color: rgba(0, 122, 135, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.campaign-brief {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 30px;
}

.campaign-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.campaign-meta-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
}

.campaign-meta-item i {
    font-size: 16px;
    color: var(--primary-color);
    margin-right: 8px;
}

.campaign-meta-item a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.campaign-meta-item a:hover {
    text-decoration: underline;
}

.campaign-header-right {
    flex: 0 0 350px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.campaign-progress-summary {
    margin-bottom: 20px;
}

.campaign-funds {
    margin-bottom: 15px;
}

.raised-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.target-amount {
    font-size: 14px;
    color: var(--text-light);
}

.campaign-progress-bar {
    margin-bottom: 20px;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 5px;
    text-align: right;
}

.campaign-time-left {
    padding: 10px 0;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.campaign-time-left i {
    margin-right: 8px;
}

.campaign-social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.campaign-social-share span {
    font-size: 14px;
    color: var(--text-light);
    margin-right: 10px;
}

/* Campaign Gallery Section */
.campaign-gallery-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Campaign Tabs Section */
.campaign-tabs-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Campaign Milestones */
.campaign-milestones {
    margin-top: 30px;
}

.milestones-timeline {
    margin-top: 30px;
}

.milestone-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.milestone-item:last-child {
    margin-bottom: 0;
}

.milestone-item::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 15px;
    height: calc(100% + 30px);
    width: 1px;
    background-color: #e9ecef;
    z-index: 0;
}

.milestone-item:last-child::before {
    display: none;
}

.milestone-icon {
    flex: 0 0 30px;
    height: 30px;
    width: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    margin-right: 20px;
    z-index: 1;
}

.milestone-content {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.milestone-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.milestone-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.milestone-target {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.milestone-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.milestone-status.completed {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.milestone-status.pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

/* Campaign Updates */
.campaign-updates {
    margin-top: 30px;
}

.updates-timeline {
    margin-top: 30px;
}

.update-item {
    display: flex;
    margin-bottom: 30px;
}

.update-date {
    flex: 0 0 80px;
    text-align: center;
    margin-right: 20px;
}

.update-date .date {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
}

.update-date .year {
    font-size: 14px;
    color: var(--text-light);
}

.update-content {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.update-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.update-image {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.update-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

/* Campaign Donation Section */
.campaign-donation-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Campaign NGO Info */
.campaign-ngo-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.campaign-ngo-box {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.ngo-logo-small {
    flex: 0 0 80px;
    margin-right: 20px;
}

.ngo-logo-small img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background-color: white;
    padding: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.ngo-brief-info {
    flex: 1;
}

.ngo-brief-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 15px;
}

.btn-text-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-text-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-text-link:hover i {
    transform: translateX(5px);
}

/* Similar Campaigns Section */
.similar-campaigns-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.similar-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.similar-campaign-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.similar-campaign-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.similar-campaign-link {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

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

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

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

.similar-campaign-content {
    padding: 20px;
}

.similar-campaign-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.3;
}

.campaign-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
}

.campaign-stats .raised {
    font-weight: 600;
    color: var(--primary-color);
}

.campaign-stats .days-left {
    color: #e74c3c;
}

/* Responsive Styles for Campaign Detail */
@media (max-width: 992px) {
    .campaign-header-content {
        flex-direction: column;
    }
    
    .campaign-header-right {
        width: 100%;
        max-width: 500px;
        align-self: center;
    }
    
    .milestones-timeline,
    .updates-timeline {
        padding-left: 10px;
    }
    
    .similar-campaigns-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .campaign-detail-header {
        padding: 40px 0;
    }
    
    .campaign-title {
        font-size: 30px;
    }
    
    .campaign-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .update-item {
        flex-direction: column;
    }
    
    .update-date {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .update-date .date {
        margin-right: 10px;
    }
    
    .similar-campaigns-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .campaign-detail-header {
        padding: 30px 0;
    }
    
    .campaign-title {
        font-size: 24px;
    }
    
    .campaign-brief {
        font-size: 14px;
    }
    
    .milestone-item {
        flex-direction: column;
    }
    
    .milestone-icon {
        margin-bottom: 15px;
    }
    
    .milestone-item::before {
        display: none;
    }
}

/* Contact Page Styles */
.hero-section-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/contact/contact-hero-min.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section-contact .hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section-contact .hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section-contact .hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

/* Contact Info Section */
.contact-info-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-info-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: rgba(0, 122, 135, 0.1);
    color: var(--primary-color);
    font-size: 28px;
    margin: 0 auto 20px;
    transition: background-color 0.3s, color 0.3s;
}

.contact-info-card:hover .contact-icon {
    background-color: var(--primary-color);
    color: white;
}

.contact-info-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-social {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.contact-social a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    font-size: 16px;
    margin: 0 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, color 0.3s;
}

.contact-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-form-container {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-content {
    padding: 40px;
}

.contact-form-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-form-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-highlights {
    margin-top: 40px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.highlight-icon {
    flex: 0 0 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 122, 135, 0.1);
    color: var(--primary-color);
    font-size: 20px;
    text-align: center;
    margin-right: 20px;
}

.highlight-text {
    flex: 1;
}

.highlight-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.highlight-text p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.form-container {
    padding: 40px;
    background-color: white;
}

.submit-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-color-dark, #005e6a);
}

.form-success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 20px;
}

.form-success-message h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.form-success-message p {
    color: var(--text-light);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-container {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #edf0f2;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.faq-toggle {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.faq-question:hover .faq-toggle {
    background-color: var(--primary-color);
    color: white;
}

.faq-answer {
    padding: 0 25px 20px;
    display: none;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Map Section */
.map-section {
    height: 450px;
}

.map-container {
    height: 100%;
    width: 100%;
}

.map-container iframe {
    height: 100%;
    width: 100%;
    border: none;
}

@media (max-width: 768px) {
    .hero-section-contact {
        height: 300px;
    }
    
    .hero-section-contact .hero-title {
        font-size: 36px;
    }
    
    .hero-section-contact .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .contact-form-container {
        flex-direction: column;
    }
    
    .contact-form-content, 
    .contact-form-form {
        width: 100%;
        padding: 30px 20px;
    }
    
    .contact-form-content {
        margin-bottom: 20px;
    }
    
    .highlight-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .contact-form-section {
        padding: 40px 15px;
    }
    
    .contact-form-content, 
    .contact-form-form {
        padding: 20px 15px;
    }
    
    .contact-form-title {
        font-size: 24px;
    }
    
    .highlight-item i {
        font-size: 24px;
        margin-right: 15px;
    }
    
    .faq-section {
        padding: 40px 15px;
    }
    
    .faq-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 12px 40px 12px 15px;
    }
    
    .faq-answer {
        padding: 0 15px 15px;
    }
}

/* FAQ Hero Section */
.hero-section-faq {
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/faq/faq-hero-min.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-section-faq .hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-section-faq .hero-subtitle {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section on FAQ Page */
.contact-section {
    padding: 60px 40px;;
    background-color: #f8f9fa;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.contact-content p {
    margin-bottom: 30px;
    color: #666;
    font-size: 18px;
}

/* Success Stories Page Styles */
.hero-section-success {
    height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/success-stories/success-hero-min.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-section-success .hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section-success .hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

/* Coming Soon Section */
.coming-soon-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.coming-soon-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.coming-soon-icon {
    font-size: 60px;
    color: #4e9525;
    margin-bottom: 20px;
}

.coming-soon-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.coming-soon-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.coming-soon-actions {
    margin: 40px 0;
}

.coming-soon-actions .btn {
    margin: 0 10px;
}

.coming-soon-subscribe {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.coming-soon-subscribe h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.subscribe-form {
    max-width: 500px;
    margin: 20px auto 0;
}

.subscribe-form .form-group {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.subscribe-form input {
    flex: 1;
    height: 50px;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
}

.subscribe-form button {
    background-color: #4e9525;
    color: #fff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.subscribe-form button:hover {
    background-color: #3d7d1e;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section-success {
        height: 300px;
    }
    
    .hero-section-success .hero-title {
        font-size: 36px;
    }
    
    .hero-section-success .hero-subtitle {
        font-size: 18px;
    }
    
    .coming-soon-content {
        padding: 30px 20px;
    }
    
    .coming-soon-content h2 {
        font-size: 28px;
    }
    
    .coming-soon-actions .btn {
        margin: 10px;
        display: block;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section-success {
        height: 250px;
    }
    
    .hero-section-success .hero-title {
        font-size: 28px;
    }
    
    .hero-section-success .hero-subtitle {
        font-size: 16px;
    }
    
    .coming-soon-icon {
        font-size: 50px;
    }
    
    .coming-soon-content h2 {
        font-size: 24px;
    }
    
    .coming-soon-content p {
        font-size: 16px;
    }
    
    .subscribe-form .form-group {
        flex-direction: column;
    }
    
    .subscribe-form button {
        width: 100%;
        height: 45px;
        margin-top: 10px;
    }
}

/* Legal Pages Styles (Privacy Policy, Terms of Service) */
.hero-section-legal {
    height: 250px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/legal/privacy-policy-min.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-section-legal .hero-title {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-section-legal .hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.8;
}

.legal-content-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.legal-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.legal-navigation {
    flex: 0 0 250px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    padding-right: 20px;
    border-right: 1px solid #e5e5e5;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.legal-navigation h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.legal-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-navigation li {
    margin-bottom: 10px;
}

.legal-navigation a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}

.legal-navigation a:hover {
    color: #4e9525;
}

.legal-text {
    flex: 1;
    min-width: 0;
}

.legal-text section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.legal-text section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-text h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.legal-text h3 {
    font-size: 22px;
    color: #444;
    margin: 25px 0 15px;
    font-weight: 600;
}

.legal-text p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

.legal-text ul, .legal-text ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.legal-text li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

.contact-details {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

/* Responsive styles for legal pages */
@media (max-width: 992px) {
    .legal-content {
        flex-direction: column;
    }
    
    .legal-navigation {
        flex: 0 0 100%;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .hero-section-legal {
        height: 200px;
    }
    
    .hero-section-legal .hero-title {
        font-size: 32px;
    }
    
    .legal-content-section {
        padding: 40px 15px;
    }
    
    .legal-content {
        padding: 20px;
    }
    
    .legal-text h2 {
        font-size: 24px;
    }
    
    .legal-text h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section-legal {
        height: 180px;
    }
    
    .hero-section-legal .hero-title {
        font-size: 28px;
    }
    
    .legal-content {
        padding: 15px;
    }
    
    .legal-text h2 {
        font-size: 22px;
    }
    
    .legal-text h3 {
        font-size: 18px;
    }
}

.legal-navigation a.active {
    color: #4e9525;
    font-weight: 600;
    border-left: 3px solid #4e9525;
    padding-left: 10px;
    margin-left: -13px;
}


/* Contact Form Styles */
.form-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.submit-btn {
    position: relative;
    min-width: 140px;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form validation styles */
.form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-control:valid:not(:focus):not(:placeholder-shown) {
    border-color: #28a745;
}