/* style.css - GIEYDC Website Styling */

:root {
    /* Color Palette - Change these codes to tweak colors */
    --primary-green: #155d27;  /* Deep Islamic Green */
    --light-green: #e8f5e9;    /* Very light background green */
    --accent-gold: #d4af37;    /* Gold for highlights */
    --text-dark: #333333;      /* Dark grey for text */
    --text-white: #ffffff;
    --nav-height: 70px;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* Navigation Bar */
header {
    background-color: var(--primary-green);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--nav-height);
}

.logo {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: var(--text-white);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(21, 93, 39, 0.5), rgba(21, 93, 39, 0.5)), url('images/cover_photo.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    padding: 0 20px;
    margin-top: var(--nav-height);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-gold);
    color: var(--primary-green);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #fff;
}

/* Sections General */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: var(--primary-green);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 10px auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.values-list {
    list-style: none;
    margin-top: 20px;
}

.values-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.values-list li::before {
    content: '✔';
    color: var(--primary-green);
    position: absolute;
    left: 0;
}

/* Projects Section */
.project-card {
    background-color: var(--light-green);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.financial-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-gold);
}

/* Event Section */
.event-banner {
    background-color: var(--primary-green);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.event-details-box {
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    display: inline-block;
    text-align: left;
}

/* Professional Input Styling */
.input-style {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fcfcfc;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box; /* This prevents the inputs from being wider than the box */
    margin-bottom: 10px; /* 🟢 ADD THIS LINE */
    transition: 0.3s;
}

.input-style:focus {
    border-color: #155d27;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 8px rgba(21, 93, 39, 0.1);
}



/* Donate Section */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.donate-option {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.bank-details {
    font-size: 1.1rem;
    margin: 20px 0;
    font-family: monospace;
    background: #fff;
    padding: 10px;
    display: inline-block;
}

/* Contact / Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-grid, .project-details {
        grid-template-columns: 1fr;
    }
}

/* Youth Section Gallery Styling */
.youth-gallery {
    display: grid;
    /* This automatically fits as many images as possible, minimum 200px wide */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.youth-gallery img {
    width: 100%;
    height: 180px; /* Forces all images to be the same height */
    object-fit: cover; /* Ensures images don't stretch/distort */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Optional: Slight zoom effect on hover */
.youth-gallery img:hover {
    transform: scale(1.05);
}

/* Fix for mobile browsers turning phone numbers blue, on 20250216 1034hrs */
.footer-section a[href^="tel"], 
.footer-section a[href^="mailto"] {
    color: white !important;
    text-decoration: none;
}

/* Fallback for iOS automatic detection */
.footer-section a {
    color: white !important;
}