/*
 * CSS for Veera Narasimha Yuva Committee - Donations Page
 * New Theme: Saffron, Crimson, and Navy. Focus on Form and Donor Grid.
 */

/* General Styles */
body {
    font-family: 'Teko', sans-serif; 
    margin: 0;
    background: #fff8e6; /* Soft Ochre background */
    color: #333;
    line-height: 1.6;
}

/* --- Header & Navigation (UPDATED FOR SPACING) --- */
header {
    background: #ffcc33; /* Rich Saffron/Gold */
    color: #000;
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between; /* Keeps logo on left, nav on right */
    align-items: center;
}

.logo {
    font-size: 2.2em;
    margin: 0;
    color: #a30000; /* Deep Crimson */
}

/* FIX: Turning nav into a flex container and adding gap */
nav {
    display: flex;
    align-items: center;
    gap: 15px; /* Adjust this value for more or less space */
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevents text from wrapping */
}

nav a.active, nav a:hover {
    color: #a30000; /* Crimson on hover */
}

/* Auth Container for Dynamic Login/Photo */
#auth-nav-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    background: #a30000; 
    color: #fff !important; 
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 700;
    /* Removed the hardcoded margin-left as 'gap' handles it */
}
.login-btn:hover {
    background: #cc0000; 
}
/* --- Hero Section (Small) --- */
.hero {
    background: linear-gradient(to right, #ffde7d, #ffcc33); /* Saffron Gradient */
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    color: #333;
    font-weight: 700;
}

.hero p {
    font-size: 1.3em;
    color: #444;
    font-family: sans-serif;
}

/* --- Donation Section --- */
.donation-section {
    width: 90%;
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background: #fff; /* Clean white background */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    text-align: center;
}

.donation-section h2 {
    color: #a30000; /* Crimson Heading */
    font-size: 3em;
    margin-bottom: 10px;
    border-bottom: 3px solid #ffcc33; /* Saffron underline */
    padding-bottom: 5px;
}

.donation-section > p {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 30px;
    font-family: sans-serif;
}

/* Donation Form Box */
.donation-box {
    background: #fff8f0; /* Light Ochre background for the form */
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

#donation-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#donation-form input[type="text"],
#donation-form input[type="number"],
#donation-form input[type="url"],
#donation-form input[type="email"],
#donation-form input[type="tel"],
#donation-form textarea {
    /* Styling for form inputs */
    padding: 12px 15px;
    border: 1px solid #ffde7d; /* Light Saffron border */
    border-radius: 5px;
    font-size: 1em;
    font-family: sans-serif; 
    background: #fff;
    transition: border-color 0.3s ease;
}

#donation-form input:focus,
#donation-form textarea:focus {
    border-color: #a30000;
    outline: none;
    box-shadow: 0 0 5px rgba(163, 0, 0, 0.5);
}

/* Donate Button */
#donation-form .btn {
    /* Primary Crimson button */
    display: inline-block;
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.3em;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background 0.3s ease, transform 0.2s;
    margin-top: 10px;
}

#donation-form .btn:hover {
    background: #a30000;
    transform: translateY(-2px);
}

/* Donor List Section */
.donor-heading {
    color: #cc0000;
    font-size: 2.5em;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffcc33;
    padding-bottom: 5px;
}

.donor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.donor-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 3px solid #ffde7d;
}

.donor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.donor-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #a30000;
}

.donor-card h4 {
    color: #333;
    font-size: 1.4em;
    margin: 5px 0;
    font-family: sans-serif;
}

.donor-card p {
    color: #a30000;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0;
    font-family: sans-serif;
}

/* Total Donations Text */
.total {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin-top: 40px;
}

.total span {
    color: #cc0000;
}

/* --- Footer --- */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-family: sans-serif;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }

    .donation-section {
        width: 95%;
        padding: 20px;
    }

    .donor-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
/* --- Refined Donation Section Layout --- */
.donations-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

/* Wrapper around the entire donation content */
.donation-wrapper {
    background: #fff; /* keep clean white box */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    padding: 40px;
    max-width: 600px; /* ✅ limits size to about half page */
    width: 90%;       /* responsive shrink on small screens */
    margin: 50px auto;
}

/* Heading - centered and styled */
.donation-wrapper h2 {
    text-align: center;
    font-size: 2.5em;
    color: #a30000;
    border-bottom: 3px solid #ffcc33;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* Keep form clean and centered */
.donation-form-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

#donation-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

/* Reduce input width visually */
#donation-form input,
#donation-form textarea {
    font-size: 1em;
    padding: 12px 15px;
}

/* Center and balance the donate button */
#donation-form .btn {
    width: 100%;
    font-size: 1.2em;
}
