/* ============================================
   AL-NOOR CHARITY ORGANIZATION - STYLESHEET
   ============================================
   This stylesheet contains all styles for:
   - index.html (Home page)
   - about.html (About Us page)
   - project.html (Projects page)
   ============================================ */

/* ==========================================================================
   TABLE OF CONTENTS (NAVIGATE BY SECTION)
   ==========================================================================
   1. GLOBAL STYLES ........... - Variables, Reset, Body
   2. NAVIGATION BAR .......... - Logo, Links, Hover Effects
   3. BUTTON STYLES ........... - Donate, Main, Card Buttons
   4. HERO SECTIONS ........... - Home Hero & About Hero
   5. SECTION STYLES .......... - Section Spacing & Titles
   6. STORY SECTION ........... - About Us Grid & Images
   7. MISSION & VISION ........ - Icon Cards & Hover States
   8. TEAM SECTION ............ - Staff Cards & Bio Styles
   9. PROJECT CARDS (Home) .... - Home Page Project Grid
   10. CONTACT FORM ........... - Inputs, Textarea, Focus
   11. FOOTER ................. - Bottom Branding & Colors
   12. PROJECT PAGE SPECIAL ... - Category Pills & Sliders
   13. RESPONSIVE DESIGN ...... - Tablets & Mobile Breakpoints
   ========================================================================== */
   
/* ============================================
   GLOBAL STYLES & CSS VARIABLES
   ============================================ */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

:root {
    --primary-blue: #3498db;
    --dark-blue: #1a5276;
    --light-bg: #f8fbfc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --header-offset: 70px;
    --sidebar-max-width: 80%;
}

body { 
    color: #333; 
    line-height: 1.6; 
    scroll-behavior: smooth; 
    background-color: var(--white);
    background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), 
                      url('pics/al-noor-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30%; 
    background-attachment: fixed;
}

/* Container for centered content sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION BAR
   ============================================
   Used on: All pages (index.html, about.html, project.html)
   ============================================ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    background-image: none !important;
}

/* Flex container to hold the Image and the Text side-by-side */
.logo { 
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and name */
    font-size: 22px; 
    font-weight: 800; 
    color: #2980b9; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* Control the size of your logo image */
.nav-logo-img {
    height: 45px; 
    width: auto;
}

.logo span { 
    color: var(--dark-blue); 
    font-weight: 400; 
    font-size: 0.8rem; 
    display: block; 
    margin-top: -5px; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: #444; 
    font-weight: 600; 
    transition: 0.3s; 
    font-size: 0.95rem; 
}

/* Added Hover Effect */
.nav-links a:hover { 
    color: var(--primary-blue); 
}

/* Hamburger Menu Button - Hidden on Desktop */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Sidebar Menu */
.mobile-sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: var(--header-offset);
    width: 100%;
    max-width: var(--sidebar-max-width);
    min-height: calc(100vh - var(--header-offset));
    background: var(--white);
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    z-index: 999;
    flex-direction: column;
    gap: 0;
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    display: flex;
    transform: translateX(0);
}

.sidebar-link {
    display: block;
    padding: 16px 20px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: #f0f7ff;
    color: var(--primary-blue);
    padding-left: 30px;
}

.sidebar-link.btn-donate {
    background: var(--primary-blue);
    color: white !important;
    margin: 10px 10px 0 10px;
    border-radius: 4px;
    border: none;
    text-align: center;
}

.sidebar-link.btn-donate:hover {
    background: var(--dark-blue);
    padding-left: 20px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   BUTTON STYLES
   ============================================
   Used on: All pages
   ============================================ */
.btn-donate, 
.btn-main, 
.btn-card-donate {
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
    background: var(--primary-blue);
    color: var(--white) !important;
}

.btn-donate:hover, 
.btn-main:hover, 
.btn-card-donate:hover { 
    background: var(--dark-blue); 
    transform: translateY(-2px);
}

.btn-donate { 
    padding: 10px 22px; 
    font-size: 0.9rem; 
}

.btn-main { 
    padding: 16px 35px; 
    font-size: 1rem; 
}

.btn-card-donate { 
    flex: 1; 
    padding: 10px; 
    text-align: center; 
}

.btn-card-details {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: 1px solid #3498db;
    color: #2980b9;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-card-details:hover { 
    background: #f0f7ff; 
}

/* ============================================
   HERO SECTIONS
   ============================================
   .hero - Used on: index.html (main hero)
   .about-hero - Used on: about.html, project.html
   ============================================ */
.hero {
    height: calc(100vh - 80px);
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('pics/hero-kids-smiling.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

.about-hero {
    height: 25vh;
    min-height: 180px;
    max-height: 220px;
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.95), rgba(52, 152, 219, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.3;
}

.about-hero .hero-content {
    position: relative;
    z-index: 1;
}

.about-hero .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.about-hero .hero-content p {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin: 0;
}

.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 15px; 
    font-weight: 800; 
}

.hero-content p { 
    font-size: 1.2rem; 
    max-width: 700px; 
    margin: 0 auto 30px; 
    opacity: 0.9; 
}

/* ============================================
   SECTION STYLES
   ============================================
   Used on: index.html, about.html
   ============================================ */
.projects, 
.contact { 
    padding: 80px 10%; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 50px; 
}

.section-title h2 { 
    font-size: 2.5rem; 
    color: var(--dark-blue); 
    margin-bottom: 10px; 
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

/* ============================================
   STORY SECTION (About Page)
   ============================================
   Used on: about.html
   ============================================ */
.story-section { 
    padding: 40px 10% 80px; 
}

.story-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.story-text h2 { 
    font-size: 2.4rem; 
    color: var(--dark-blue); 
    margin-bottom: 20px; 
}

.story-text p { 
    font-size: 1.05rem; 
    color: #555; 
    margin-bottom: 18px; 
    line-height: 1.7; 
}

.rounded-img { 
    width: 100%; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
}

/* ============================================
   MISSION & VISION SECTION (About Page)
   ============================================
   Used on: about.html
   ============================================ */
.mission-section { 
    padding: 80px 10%; 
    background: var(--light-bg); 
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 6px solid var(--primary-blue);
    transition: 0.3s;
}

.mission-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-hover);
}

.mission-card i { 
    font-size: 2.8rem; 
    color: var(--primary-blue); 
    margin-bottom: 20px; 
    display: block; 
}

.mission-card h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.mission-card p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

/* ============================================
   TEAM SECTION (About Page)
   ============================================
   Used on: about.html
   ============================================ */
.team-section { 
    padding: 100px 10%; 
    background: var(--white); 
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.4s ease;
    text-align: center;
}

.team-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow); 
}

.blank-img {
    height: 300px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.blank-img i { 
    font-size: 4rem; 
    color: #bdbdbd; 
}

.team-card .card-text {
    padding: 25px;
    text-align: center;
}

.team-card h3 { 
    color: var(--dark-blue); 
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.team-card p { 
    margin-bottom: 8px; 
    font-size: 0.95rem; 
    color: #666;
}

.team-card p strong { 
    color: var(--primary-blue); 
    display: block; 
    margin-bottom: 10px; 
    font-size: 1rem; 
}

/* ============================================
   PROJECT CARDS (Home Page)
   ============================================
   Used on: index.html
   ============================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-hover);
}

.project-card img { 
    width: 100%; 
    height: 240px; 
    object-fit: cover; 
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

.card-text { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.card-text h3 { 
    margin-bottom: 12px; 
    color: var(--dark-blue); 
    font-size: 1.3rem;
}

.card-text p { 
    margin-bottom: 20px; 
    color: #666; 
    flex-grow: 1; 
    line-height: 1.6;
}

.card-buttons { 
    display: flex; 
    gap: 12px; 
    margin-top: auto;
}

/* ============================================
   CONTACT FORM (Home Page)
   ============================================
   Used on: index.html
   ============================================ */
.contact-container { 
    max-width: 600px; 
    margin: 0 auto; 
}

form { 
    display: flex; 
    flex-direction: column; 
    margin-top: 30px; 
}

input, 
textarea { 
    padding: 15px; 
    margin-bottom: 15px; 
    border: 1px solid #dddddd; 
    border-radius: 5px; 
    font-family: inherit;
    font-size: 1rem;
}

input:focus, 
textarea:focus { 
    outline: 2px solid var(--primary-blue); 
    border-color: var(--primary-blue);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================
   Used on: All pages
   ============================================ */
footer { 
    background: var(--dark-blue); 
    color: var(--white); 
    text-align: center; 
    padding: 60px 10%; 
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    background-image: none !important;
}

/* ============================================
   PROJECT PAGE STYLES
   ============================================
   Used on: project.html
   ============================================ */

/* Category Navigation Pills */
.category-nav-container {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: var(--header-offset);
    z-index: 99;
    border-bottom: 1px solid #eee;
}

.category-nav-scroll {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0 3%;
    overflow-x: auto;
    width: 100%;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide webkit scrollbar */
.category-nav-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    white-space: nowrap;
    background: var(--primary-blue);
    color: white !important;
    padding: 7px 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    flex-shrink: 0;
    line-height: 1.2;
}

.category-pill:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

/* Projects Main Container */
.projects-main-container {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Category Row */
.category-row {
    scroll-margin-top: calc(var(--header-offset) + 80px);
    margin-bottom: 80px;
}

/* Category Header */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    margin-bottom: 25px;
}

.category-header h2 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    font-weight: 700;
    margin: 0;
}

.go-to-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 20px;
    border: 1.5px solid var(--primary-blue);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.go-to-link:hover {
    background: var(--primary-blue);
    color: white !important;
}

/* Horizontal Slider Wrapper */
.slider-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 10px 10% 20px 10%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

/* Project Item Cards */
.project-item {
    flex: 0 0 300px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #f2f2f2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.img-placeholder {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid #edf2f7;
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    color: var(--dark-blue);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.project-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   PROJECT DETAIL PAGES
   ============================================
   Used on: individual category pages
   ============================================ */
.back-button-container {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 150;
    padding: 0;
    margin: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 10px 18px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #d7e6f5;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.back-button:hover {
    background: #e8f4fd;
    color: var(--dark-blue);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.back-button i {
    font-size: 0.9rem;
}

.project-detail-section {
    padding: 20px 10% 30px;
    background: #f8fafc;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 35px;
    align-items: stretch;
}

.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
}

.detail-card h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--dark-blue);
    font-size: 1.6rem;
}

.detail-card p {
    margin: 0 0 12px 0;
    color: #4a5568;
    line-height: 1.7;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.detail-list li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    color: #2d3748;
    font-weight: 600;
}

.detail-list li span {
    color: #4a5568;
    font-weight: 400;
}

.detail-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    justify-content: space-between;
    align-items: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: #fff;
}

.btn-solid {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    background: var(--primary-blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(52,152,219,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-solid:hover {
    transform: translateY(-2px);
    background: var(--dark-blue);
    box-shadow: 0 14px 30px rgba(41,128,185,0.45);
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.detail-stat {
    background: #f0f7ff;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e1ecf8;
    color: #2c5282;
    font-weight: 700;
}

.detail-stat span {
    display: block;
    color: #4a5568;
    font-weight: 400;
    margin-top: 6px;
}

.completed-projects {
    padding: 40px 10% 70px;
    background: #ffffff;
}

.completed-projects h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: var(--dark-blue);
    text-align: center;
}

.completed-slider-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 10px 10% 20px 10%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.completed-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.completed-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.completed-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.completed-card .img-placeholder {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid #edf2f7;
}

.completed-card .card-body {
    padding: 20px;
}

.completed-card h4 {
    margin: 0 0 10px 0;
    color: var(--dark-blue);
    font-size: 1.1rem;
}

.completed-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   DONATION MODAL
   ============================================
   Popup donation form
   ============================================ */
.donation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.donation-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-modal-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 35px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.donation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f4fd;
}

.donation-modal-header h2 {
    margin: 0;
    color: var(--dark-blue);
    font-size: 1.8rem;
}

.donation-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.donation-modal-close:hover {
    background: #f0f0f0;
    color: var(--dark-blue);
}

.donation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.donation-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donation-form-group label {
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.95rem;
}

.donation-form-group input,
.donation-form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.donation-form-group input:focus,
.donation-form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.donation-form-group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.donation-form-group input[type="number"]::-webkit-outer-spin-button,
.donation-form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.currency-amount-group {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    align-items: stretch;
}

.currency-amount-group input,
.currency-amount-group select {
    height: 100%;
    min-height: 48px;
}

.donation-form-group select {
    cursor: pointer;
    background-color: var(--white);
}

.donation-submit-btn {
    padding: 14px 30px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.donation-submit-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.donation-form-note {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================
   Breakpoints:
   - Large tablets: max-width 992px
   - Mobile devices: max-width 768px
   - Small mobile: max-width 480px
   ============================================ */

/* ============================================
   TABLET & SMALLER SCREENS (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    /* Navigation adjustments */
    nav {
        padding: 15px 5%;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    /* Hero section */
    .hero-content h1 { 
        font-size: 2.5rem; 
    }
    
    /* About page sections */
    .story-grid, 
    .mission-grid { 
        grid-template-columns: 1fr; 
    }
    
    .story-text { 
        text-align: center; 
    }
    
    .story-grid {
        gap: 40px;
    }
    
    /* Project detail pages */
    .project-detail-grid {
        grid-template-columns: 1fr;
    }
    
    /* Section padding adjustments */
    .projects,
    .contact,
    .story-section,
    .mission-section,
    .team-section {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* ============================================
   MOBILE DEVICES (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-offset: 66px;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }

    /* Hide regular nav links on mobile */
    .nav-links {
        display: none;
    }
    
    /* Navigation mobile adjustments */
    nav {
        padding: 15px 5%;
    }

    /* Typography adjustments */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .story-text h2 {
        font-size: 2rem;
    }
    
    .about-hero .hero-content h1 {
        font-size: 1.8rem;
    }
    
    /* Navigation mobile */
    .logo {
        font-size: 18px;
    }
    
    .nav-logo-img {
        height: 35px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .btn-donate {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Grid layouts - single column */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-card {
        padding: 30px 20px;
    }
    
    /* Project page mobile styles */
    .category-nav-container {
        padding: 10px 0;
    }
    
    .category-header { 
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 5%; 
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }
    
    .go-to-link {
        width: 100%;
        text-align: center;
    }
    
    .slider-wrapper { 
        padding: 10px 5% 20px 5%; 
        gap: 15px; 
    }
    
    .project-item { 
        flex: 0 0 260px; 
    }
    
    .category-nav-scroll { 
        padding: 0 2%; 
        gap: 4px; 
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .category-pill { 
        padding: 6px 12px; 
        font-size: 0.65rem; 
    }
    
    /* Project detail pages */
    .project-detail-section {
        padding: 20px 5% 30px;
    }
    
    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-card {
        padding: 20px;
    }
    
    .detail-card h2 {
        font-size: 1.4rem;
    }
    
    .back-button-container {
        left: 12px;
        bottom: 12px;
    }
    
    .back-button {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .detail-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-buttons a {
        width: 100%;
        text-align: center;
    }
    
    /* Completed projects section */
    .completed-projects {
        padding: 30px 5% 50px;
    }
    
    .completed-projects h3 {
        font-size: 1.3rem;
    }
    
    .completed-slider-wrapper {
        padding: 10px 5% 20px 5%;
        gap: 15px;
    }
    
    .completed-card {
        flex: 0 0 260px;
    }
    
    /* Donation modal mobile */
    .donation-modal-content {
        padding: 25px 20px;
        max-width: 95%;
        margin: 20px;
    }
    
    .donation-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .currency-amount-group {
        grid-template-columns: 1fr;
    }
    
    /* Contact form */
    .contact-container {
        padding: 0 5%;
    }
    
    /* Footer */
    footer {
        padding: 40px 5%;
        font-size: 0.85rem;
    }
}

/* ============================================
   SMALL MOBILE DEVICES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    :root {
        --header-offset: 56px;
        --sidebar-max-width: 100%;
    }

    /* Keep logo left and hamburger in the top-right corner */
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 12px 4%;
    }
    
    .logo {
        font-size: 14px;
        gap: 10px;
    }

    .logo span {
        font-size: 0.62rem;
        margin-top: -3px;
    }

    .nav-logo-img {
        height: 30px;
    }

    .hamburger-menu {
        margin-left: auto;
        align-self: center;
        padding: 8px 4px 8px 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    /* Hero adjustments */
    .hero {
        min-height: 500px;
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn-main {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    /* Section titles */
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    /* Project cards */
    .project-card img {
        height: 200px;
    }
    
    .card-text {
        padding: 20px;
    }
    
    .card-buttons {
        flex-direction: column;
    }
    
    .btn-card-details,
    .btn-card-donate {
        width: 100%;
    }
    
    /* Category pills - smaller */
    .category-pill {
        padding: 5px 10px;
        font-size: 0.6rem;
    }
    
    /* Project items */
    .project-item {
        flex: 0 0 240px;
    }
    
    .completed-card {
        flex: 0 0 240px;
    }
    
    /* Detail stats grid */
    .detail-stats {
        grid-template-columns: 1fr;
    }
    
    /* Donation modal */
    .donation-modal-content {
        padding: 20px 15px;
    }
    
    .donation-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .donation-form-group label {
        font-size: 0.9rem;
    }
    
    .donation-submit-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
