/*
* DonateAlfa - Charity & Donation Template
* Main Stylesheet
*/

/* ===== CSS RESET & BASE STYLES ===== */
:root {
    /* Color Variables */
    --primary-color: #f7941d;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e1e1e1;

    /* Typography */
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Montserrat', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 20px;
    color: var(--text-light);
}

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

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.image-error {
    min-height: 150px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-error::before {
    content: '\f03e';
    font-family: 'Font Awesome 5 Free';
    font-size: 48px;
    color: #ccc;
}

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

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

.mt-5 {
    margin-top: 50px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

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

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

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

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

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 50px;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 15px;
}

.nav-item a {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 700px;
    background-color: var(--light-bg);
    overflow: hidden;
    margin-top: 80px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

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

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    background-color: var(--light-bg);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-description {
    margin-bottom: 20px;
}

.feature-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.feature-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

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

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 20px;
}

.about-description {
    margin-bottom: 30px;
}

.about-features {
    margin-bottom: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.about-feature-icon {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
}

.about-feature-text {
    font-weight: 500;
}

/* ===== CAUSES SECTION ===== */
.causes-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-description {
    font-size: 18px;
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cause-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.cause-image {
    position: relative;
    height: 200px;
}

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

.cause-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.cause-content {
    padding: 30px;
    background-color: var(--white);
}

.cause-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.cause-description {
    margin-bottom: 20px;
}

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

.progress-bar {
    height: 10px;
    background-color: var(--light-bg);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.raised, .goal {
    color: var(--text-light);
}

.raised span, .goal span {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===== IMPACT SECTION ===== */
.impact-section {
    padding: var(--section-padding);
    background-color: var(--secondary-color);
    color: var(--white);
}

.impact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.impact-content .section-subtitle,
.impact-content .section-title {
    color: var(--white);
}

.impact-description {
    color: rgba(255, 255, 255, 0.8);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

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

.stat-label {
    font-size: 18px;
    font-weight: 500;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    padding: 20px;
}

.testimonial-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-quote {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.author-name {
    font-size: 18px;
    margin-bottom: 5px;
}

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

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===== EVENTS SECTION ===== */
.events-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    display: flex;
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 80px;
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.date-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-content {
    padding: 20px;
    flex-grow: 1;
}

.event-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.event-time i,
.event-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

.event-description {
    margin-bottom: 15px;
    font-size: 15px;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.newsletter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.newsletter-content {
    flex: 1;
}

.newsletter-title {
    color: var(--white);
    margin-bottom: 10px;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.newsletter-form {
    flex: 1;
}

.form-group {
    display: flex;
    gap: 10px;
}

.form-control {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-about {
    margin-bottom: 20px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.widget-title {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

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

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

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

.contact-info p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.copyright {
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

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

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    padding: 80px 0;
    background-color: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 150px;
    border: 1px solid var(--border-color);
}

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

.partner-logo img {
    max-width: 100%;
    max-height: 110px;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
    object-fit: contain;
}

.partner-logo:hover img {
    transform: scale(1.05);
}

/* Responsive styles for partners section */
@media (max-width: 991.98px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .partner-logo {
        height: 130px;
    }

    .partner-logo img {
        max-height: 90px;
    }
}

@media (max-width: 767.98px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-logo {
        height: 120px;
    }
}
