/*
================================================
|   GLOBAL STYLES & VARIABLES                  |
================================================
*/
:root {
    --primary-color: #1e40af; /* A deep blue */
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6; /* A brighter blue for accents */
    --secondary-color: #1f2937; /* Dark gray for text */
    --accent-color: #60a5fa; /* Light blue for highlights */
    --text-dark: #1f2937;
    --text-medium: #6b7280;
    --text-light: #f8fafc; /* For use on dark backgrounds */
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #16a34a;
    --error-color: #dc2626;
    --warning-color: #f59e0b;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-medium);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/*
================================================
|   BUTTONS & FORMS                            |
================================================
*/
.btn {
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--background-white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/*
================================================
|   HEADER                                     |
================================================
*/
.header {
    background: var(--background-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-top-bar {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 1.5rem;
}
.contact-info i {
    margin-right: 8px;
    color: var(--accent-color);
}

.social-links a {
    color: var(--text-light);
    margin-left: 1rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-color);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.logo-text h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.logo-text span {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: color 0.3s, background-color 0.3s;
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
    background-color: #eef2ff;
}

.admin-link {
    background: var(--primary-light) !important;
    color: white !important;
}

.admin-link:hover {
    background: var(--primary-color) !important;
}

.hamburger { display: none; }

/*
================================================
|   HERO SECTION                               |
================================================
*/
.hero {
    position: relative;
    margin-top: 102px; /* Height of header */
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&h=800&fit=crop&q=80') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(30, 64, 175, 0.7); /* primary-color with opacity */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
}

.hero .btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.hero .btn-secondary {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.hero .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
}

/*
================================================
|   ABOUT & OTHER SECTIONS                     |
================================================
*/
#about { background-color: var(--background-white); }
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}
.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}
.stat { text-align: left; }
.stat h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0;
}
.stat p { font-weight: 600; color: var(--text-medium); }

/* Services Section */
.services { background-color: var(--background-light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--background-white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(30, 64, 175, 0.1);
}
.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}
.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* News Section */
#news { background-color: var(--background-white); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.news-card {
    background: var(--background-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(30, 64, 175, 0.1);
}
.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.news-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    flex-grow: 1;
}
.news-card .date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.news-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Contact Section */
.contact { background-color: var(--background-light); }
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}
.contact-form form {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.form-row {
    display: flex;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.contact-form textarea {
    height: 120px;
    resize: vertical;
}
.contact-info-map h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.contact-info-map p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact-info-map iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/*
================================================
|   FOOTER                                     |
================================================
*/
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.footer-section p,
.footer-section ul li {
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}
.footer-section ul { list-style: none; }
.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section ul li a:hover { color: var(--primary-light); }
.footer-section p i {
    margin-right: 10px;
    color: var(--primary-light);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #475569;
    color: #94a3b8;
}

/*
================================================
|   ADMIN PANEL STYLES                         |
================================================
*/
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}
.login-form {
    max-width: 450px;
    margin: 5rem auto;
    background: var(--background-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.login-form h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2rem;
}
.dashboard { margin-top: 2rem; }
.dashboard-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.dashboard-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.nav-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}
.nav-tab.active, .nav-tab:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--background-light);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
}
.overview-grid, .admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.stat-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.stat-card h3 { color: var(--text-medium); font-size: 1rem; margin-bottom: 0.5rem; }
.stat-card p { font-size: 2.5rem; font-weight: 700; color: var(--text-dark); }

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.content-header h3 { font-size: 1.5rem; color: var(--text-dark); }
.table-container {
    background: var(--background-white);
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.admin-table th { background: var(--background-light); color: var(--text-dark); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: #eef2ff; }
.admin-table td:last-child { white-space: nowrap; }

.btn-small { padding: 6px 12px; font-size: 0.875rem; margin-right: 5px; }
.btn-danger { background: var(--error-color); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-warning { background: var(--warning-color); color: var(--text-dark); }
.btn-warning:hover { background: #d97706; }

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}
.badge-success { background: var(--success-color); }
.badge-warning { background: var(--warning-color); color: var(--text-dark); }
.badge-primary { background: var(--primary-light); }
.badge-danger { background: var(--error-color); }
.badge-secondary { background: var(--text-medium); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem 2.5rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.modal-header h3 { font-size: 1.5rem; color: var(--text-dark); }
.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; }
.close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; }

/* Notifications */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}
.notification {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    color: white;
    min-width: 250px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    animation: slideInFromRight 0.5s ease;
}
.notification.success { background-color: var(--success-color); }
.notification.error { background-color: var(--error-color); }
@keyframes slideInFromRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/*
================================================
|   RESPONSIVE DESIGN                          |
================================================
*/
@media (max-width: 992px) {
    .header-top-bar .contact-info span { display: none; }
    .header-top-bar .contact-info span:first-child { display: inline; }
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .about-image { order: -1; margin-bottom: 2rem; }
    .stats { justify-content: center; }
    .contact-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-dark);
        transition: 0.3s;
    }
    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        text-align: center;
        gap: 0;
    }
    .nav ul.active { display: flex; }
    .nav ul li { width: 100%; }
    .nav ul a {
        display: block;
        padding: 1rem;
    }

    .header-top-bar { display: none; }
    .hero { margin-top: 74px; }
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.5rem; }
    
    .footer-content { text-align: center; }
}
/*
================================================
|   ADDITIONAL STYLES FOR DONATION FEATURE     |
================================================
*/

/* Style for the donate button in the nav bar */
.btn-donate {
    background-color: var(--success-color) !important;
    color: white !important;
    padding: 8px 20px !important;
    line-height: 1.5;
}

.btn-donate:hover {
    background-color: #14532d !important; /* A darker green */
    transform: translateY(-2px);
}

/* Specific styling for the donation modal content */
.donation-modal-content {
    max-width: 400px;
    text-align: center;
}

.donation-body img {
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
}

.donation-body .qr-info {
    text-align: left;
    background-color: var(--background-light);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-medium);
}