/* ========================================= */
/* 1. GLOBAL RESETS & VARIABLES             */
/* ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

:root {
    /* BRAND COLORS */
    --primary-color: #662D91; /* Deep Purple */
    --accent-color: #F6921E;  /* Golden Orange */
    --text-dark: #333;
    --bg-light: #F9F3FC;
}

body { line-height: 1.6; color: var(--text-dark); display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ========================================= */
/* 2. NAVBAR                                */
/* ========================================= */
.navbar { background: #fff; box-shadow: 0 2px 10px rgba(102, 45, 145, 0.1); padding: 0.5rem 0; position: sticky; top: 0; z-index: 1000; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

/* LOGO SIZING */
.nav-logo-img { 
    height: 55px; 
    width: auto; 
    object-fit: contain;
}

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: #444; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); border-bottom: 2px solid var(--accent-color); }

.btn-donate { 
    background: var(--primary-color); color: #fff !important; 
    padding: 12px 25px; border-radius: 30px; font-weight: bold;
    box-shadow: 0 4px 6px rgba(102, 45, 145, 0.3); border-bottom: none !important;
}
.btn-donate:hover { background: var(--accent-color); transform: translateY(-2px); }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }

/* ========================================= */
/* 3. HERO SECTION                          */
/* ========================================= */
.hero { position: relative; height: 90vh; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44, 14, 58, 0.5); z-index: 2; }

.hero-content { position: relative; z-index: 3; text-align: center; color: #fff; padding: 0 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); font-weight: 800; }
.hero p { font-size: 1.3rem; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }

.cta-button { 
    background: var(--accent-color); color: #fff; padding: 15px 40px; 
    border-radius: 50px; font-weight: bold; font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(246, 146, 30, 0.4);
}
.cta-button:hover { background: #fff; color: var(--primary-color); transform: scale(1.05); }

/* ========================================= */
/* 4. PAGE HEADERS & SECTIONS               */
/* ========================================= */
.page-header {
    background: linear-gradient(rgba(102, 45, 145, 0.9), rgba(102, 45, 145, 0.8)), url('Images/purple heart 1.jpg');
    background-size: cover; background-position: center; padding: 80px 0;
    text-align: center; color: #fff;
}
.breadcrumb { margin-top: 10px; font-size: 0.9rem; opacity: 0.9; }
.breadcrumb a { color: var(--accent-color); font-weight: bold; }
.section-padding { padding: 80px 0; }

/* ========================================= */
/* 5. CAUSES GRID                           */
/* ========================================= */
.causes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.cause-card { 
    background: #fff; border-radius: 15px; overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s; 
    display: flex; flex-direction: column; border: 1px solid #eee;
}
.cause-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(102, 45, 145, 0.15); border-color: var(--primary-color); }
.cause-img-box { height: 220px; overflow: hidden; }
.cause-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.cause-card:hover .cause-img-box img { transform: scale(1.1); }
.cause-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.cause-info h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.4rem; }
.cause-btn { margin-top: auto; color: var(--accent-color); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }

/* ========================================= */
/* 6. FORMS (CONTACT & DONATE)              */
/* ========================================= */
.contact-form label, #paymentForm label { font-weight: 700; margin-bottom: 8px; display: block; color: var(--primary-color); font-size: 0.95rem; }
.contact-form input, .contact-form select, .contact-form textarea, #paymentForm input, #paymentForm select {
    width: 100%; padding: 15px; margin-bottom: 25px; border: 2px solid #eee;
    border-radius: 10px; font-size: 1rem; background: #fbfbfb; transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); background: #fff; }

.submit-btn, .pay-btn {
    background: linear-gradient(45deg, var(--primary-color), #8E44AD); 
    color: white; padding: 16px; border: none;
    border-radius: 10px; cursor: pointer; font-size: 1.1rem; width: 100%; transition: 0.3s; font-weight: bold;
    box-shadow: 0 4px 10px rgba(102, 45, 145, 0.3);
}
.submit-btn:hover, .pay-btn:hover { background: linear-gradient(45deg, #8E44AD, var(--primary-color)); transform: translateY(-2px); }

#formStatus { margin-top: 15px; text-align: center; font-weight: bold; padding: 10px; border-radius: 5px; }
.status-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.status-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.status-loading { color: var(--primary-color); }

/* ========================================= */
/* 7. FOOTER & EXTRAS                       */
/* ========================================= */
.account-box { background: #fff; padding: 25px; border-radius: 12px; border-left: 5px solid var(--accent-color); margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.clickable-acct { font-weight: 800; font-size: 1.4rem; color: var(--primary-color); cursor: pointer; border-bottom: 2px dashed var(--primary-color); }

footer { background: #1a0b2e; color: #fff; text-align: center; padding: 40px 0; margin-top: auto; border-top: 5px solid var(--accent-color); }
.socials a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; color: white; margin: 0 8px; font-size: 1.2rem; transition: 0.3s; }
.socials a:hover { background: var(--accent-color); transform: rotate(360deg); }

/* MOBILE */
@media(max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; right: 0; background: #fff; width: 100%; padding: 20px 0; box-shadow: 0 5px 5px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .nav-logo-img { height: 45px; } 
}