/* styles.css - Polished Chicago Chinese Culture */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    background: #fdfaf0;
    color: #333;
    line-height: 1.7;
}

     header {
    background: linear-gradient(to right, #9c1c2b, #c8102e);
    color: white;
    padding: 0.7rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    position: sticky;
    top: 0;
    z-index: 99999;
}


header h1 {
    font-size: 1.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
}

nav a {
    color: white;
    margin: 0 13px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffeb3b;
}

/* Hero - Full Width */
.hero {
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2)),
                url('images/CCCAS.jpg') center/cover no-repeat;
    height: 480px;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.hero-content {
    width: 100%;
    padding: 0 20px 45px;
    text-align: center;
}

.hero-content h2 {
    color: white;
    font-size: 2.5rem;
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-content p {
    color: white;
    font-size: 1.25rem;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}


/* Buttons */
button {
    padding: 15px 36px;
    font-size: 1.15rem;
    background: #c8102e;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(200,16,46,0.3);
}

button:hover {
    background: #ffeb3b;
    color: #9c1c2b;
    transform: translateY(-4px);
}

/* Sections */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    color: #9c1c2b;
    font-size: 2.4rem;
    margin-bottom: 50px;
    position: relative;
}

h2:after {
    content: '';
    width: 80px;
    height: 3px;
    background: #c8102e;
    display: block;
    margin: 12px auto 0;
}

/* Event Cards */
.event-card {
    background: white;
    padding: 32px;
    margin: 28px auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    max-width: 760px;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-8px);
}

.event-card h3 {
    color: #c8102e;
    margin-bottom: 14px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.4s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Members */
.members {
    background: linear-gradient(135deg, #9c1c2b, #c8102e);
    color: white;
    text-align: center;
    border-radius: 0;
}

.members p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 35px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 35px 20px;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 120px 15px 90px; }
    .hero h2 { font-size: 2.4rem; }
    header h1 { font-size: 2.1rem; }
}
.hero {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}
/* Member Login Styling */

/* Member Login Styling - Improved */
.login-section {
    max-width: 500px;
    margin: 80px auto;
    text-align: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 55px 45px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    max-width: 440px;
    margin: 0 auto;
}

.login-box h2 {
    color: #9c1c2b;
    margin-bottom: 35px;
    font-size: 2.1rem;
}

.login-box label {
    display: block;
    text-align: left;
    margin: 18px 0 8px;
    font-weight: 600;
    color: #444;
}

.login-box input {
    width: 100%;
    padding: 18px 16px;
    font-size: 1.15rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 22px;
    transition: border 0.3s;
}

.login-box input:focus {
    border-color: #c8102e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.login-box button {
    width: 100%;
    padding: 18px;
    font-size: 1.25rem;
    margin-top: 15px;
    border-radius: 50px;
}

.login-box p {
    margin-top: 25px;
    font-size: 1.05rem;
}

.login-box a {
    color: #c8102e;
    text-decoration: none;
}

.login-box a:hover {
    text-decoration: underline;
}
.login-section {
    padding: 40px 20px;
}

.login-box {
    padding: 45px 40px;
}

.login-box label {
    margin: 14px 0 6px;
}

.login-box input {
    padding: 15px 16px;
    margin-bottom: 16px;
}
.login-box {
    padding: 40px 45px !important;
}

.login-box label {
    margin: 12px 0 5px !important;
}

.login-box input {
    padding: 14px 16px !important;
    margin-bottom: 5px !important;
}

.login-box button {
    margin-top: 2px !important;
    padding: 16px !important;
}
.login-section {
    padding-top: 0 !important;
    margin-top: -20px !important;
}

.login-section h2 {
    margin-top: 15px !important;
    margin-bottom: 25px !important;
}

.login-box {
    padding: 25px 40px !important;
}

.gallery-item {
    text-align: center;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-item img {
    max-height: 320px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.caption {
    margin: 10px 0 5px;
    font-size: 1.05rem;
    color: #333;
}

.uploader {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item img {
    height: 220px;        /* Smaller thumbnails */
    object-fit: cover;
}

/* Smaller Gallery Thumbnails */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 18px;
}

.gallery-item img {
    height: 180px !important;     /* Much smaller thumbnails */
    object-fit: cover;
    cursor: pointer;
}

.gallery-item {
    padding: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Even Smaller Gallery Thumbnails */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 15px;
}

.gallery-item img {
    height: 140px !important;   /* Much smaller */
    object-fit: cover;
}

.gallery-item {
    padding: 6px;
}
/* Proper Small Thumbnails */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 16px;
}

.gallery-item {
    max-width: 160px;
    padding: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.gallery-item img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover;
    border-radius: 8px;
}
/* Better Gallery Thumbnails */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 20px;
}

.gallery-item img {
    width: 100% !important;
    height: 200px !important;     /* Taller to show full image */
    object-fit: contain !important;   /* Shows entire photo */
    background: #f8f1e3;
    border-radius: 8px;
}

.gallery-item {
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    }
    
    .gallery-item img {
        height: 130px !important;
    }
    
    .admin-grid {
        grid-template-columns: 1fr !important;
    }
}
.newsletter-delete-form {
    margin-top: 22px;
}

.newsletter-delete-button {
    display: inline-block;
    padding: 11px 24px;
    border: 2px solid #8f1020;
    border-radius: 8px;
    background: linear-gradient(
        180deg,
        #d9273d 0%,
        #a70f23 100%
    );
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 9px rgba(120, 0, 20, 0.25);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.newsletter-delete-button:hover {
    background: linear-gradient(
        180deg,
        #eb3049 0%,
        #bd1028 100%
    );
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(120, 0, 20, 0.35);
}

.newsletter-delete-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(120, 0, 20, 0.3);
}
