:root {

    --primary: #EE1B24;

    --primary-dark: #c4151d;

    --dark: #222222;

    --gray: #f4f4f4;

    --text: #333333;

    --white: #ffffff;

}



/* --- Global Resets --- */

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text); line-height: 1.6; background: var(--white); }

a { text-decoration: none; color: inherit; transition: 0.3s; }

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }



/* --- Top Bar --- */

.top-bar { background-color: var(--dark); color: #ccc; font-size: 0.85rem; padding: 8px 0; }

.top-bar-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.top-bar-info { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

.top-bar-info span { display: flex; align-items: center; gap: 6px; }

.top-bar-info a:hover { color: var(--primary); }

.top-bar-socials { display: flex; gap: 15px; }

.top-bar-socials a { color: #ccc; font-weight: bold; font-size: 0.8rem; padding: 2px 6px; border: 1px solid #555; border-radius: 4px; }

.top-bar-socials a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }



/* --- Header & Navigation --- */

header { background: var(--white); padding: 10px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-bottom: 3px solid var(--primary); }

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: bold; color: var(--primary); }

.logo-img { height: 50px; }



nav ul { display: flex; list-style: none; gap: 5px; }

nav > ul > li { position: relative; }

nav a { color: var(--dark); font-weight: 600; padding: 10px 15px; display: block; transition: 0.3s; font-size: 0.95rem; }

nav a:hover, nav a.active { color: var(--primary); background: var(--gray); border-radius: 4px; }



/* Dropdown Menu */

nav ul ul { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 220px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 4px; flex-direction: column; gap: 0; padding: 10px 0; z-index: 1001; }

nav ul li:hover > ul { display: flex; }

nav ul ul a { padding: 10px 20px; font-size: 0.9rem; }

nav ul ul a:hover { background: var(--primary); color: var(--white); }



/* --- Buttons --- */

.btn { display: inline-block; background: var(--primary); color: var(--white); padding: 12px 28px; border-radius: 5px; font-weight: bold; transition: 0.3s; border: 2px solid var(--primary); cursor: pointer; text-align: center; }

.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }

.btn-outline:hover { background: var(--white); color: var(--primary); }

.btn-white { background: var(--white); color: var(--primary); border: 2px solid var(--white); }

.btn-white:hover { background: transparent; color: var(--white); }



/* --- Hero Slider --- */

.slider { position: relative; width: 100%; height: 500px; overflow: hidden; }

.slider-track { display: flex; height: 100%; animation: slide 15s infinite; }

.slide { min-width: 100%; height: 100%; position: relative; }

.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--white); padding: 40px; text-align: center; }

.slide-content h2 { font-size: 2.5rem; margin-bottom: 10px; }

@keyframes slide { 0%, 30% { transform: translateX(0); } 33%, 63% { transform: translateX(-100%); } 66%, 96% { transform: translateX(-200%); } 100% { transform: translateX(0); } }



/* --- Sections & Titles --- */

section { padding: 80px 0; }

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

.section-title h2 { font-size: 2.2rem; color: var(--dark); margin-bottom: 10px; position: relative; display: inline-block; }

.section-title h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 10px auto 0; }

.section-title p { color: #666; max-width: 700px; margin: 0 auto; }



/* --- Grids & Cards --- */

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

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; align-items: flex-start; } /* flex-start prevents uneven stretching */



.card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee; display: flex; flex-direction: column; }

.card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.card-image { width: 100%; height: 180px; object-fit: cover; overflow: hidden; }

.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }

.card:hover .card-image img { transform: scale(1.05); }

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

.card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.3rem; }

.card p { color: #666; font-size: 0.95rem; line-height: 1.5; }

.card-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; } /* Fixed missing brace here */



/* --- FAQ Section --- */

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

.faq-container { width: 100%; }

.faq-item { background: var(--white); border: 1px solid #eee; margin-bottom: 15px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }

.faq-item summary { padding: 20px; cursor: pointer; font-weight: bold; background: var(--gray); list-style: none; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }

.faq-item summary:hover { background: #eaeaea; }

.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: bold; }

.faq-item[open] summary::after { content: '-'; }

.faq-item[open] summary { background: var(--primary); color: var(--white); }

.faq-item[open] summary::after { color: var(--white); }

.faq-item p { padding: 20px; border-top: 1px solid #eee; color: #555; }

.faq-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 15px 35px rgba(238, 27, 36, 0.15); object-fit: cover; }



/* --- Donation CTA Section --- */

.donation-cta { background: linear-gradient(rgba(238, 27, 36, 0.9), rgba(238, 27, 36, 0.9)), url('images/hero/donation-bg.jpg') center/cover; color: var(--white); text-align: center; padding: 80px 20px; }

.donation-cta h2 { font-size: 2.5rem; margin-bottom: 15px; }

.donation-cta p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.95; }



/* --- Contact Page Specifics --- */

.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; transition: 0.3s; }

.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(238, 27, 36, 0.1); }

.map-container { margin-top: 50px; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid #eee; }

.map-container iframe { width: 100%; height: 400px; border: 0; display: block; }



/* --- Project Page Layout & Gallery --- */

.project-layout { display: grid; grid-template-columns: 2fr 1.2fr; gap: 40px; align-items: start; }

.project-main-content, .project-sidebar { min-width: 0; } /* Prevents grid blowout */



.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }

.project-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; transition: transform 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.05); background-color: #f0f0f0; }

.project-gallery img:hover { transform: scale(1.03); }



.project-sidebar { background: var(--gray); padding: 25px; border-radius: 8px; border-top: 4px solid var(--primary); position: sticky; top: 100px; }

.project-sidebar h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.1rem; border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-top: 25px; }

.project-sidebar h3:first-child { margin-top: 0; }



.project-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 20px; }

.project-table th, .project-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e0e0e0; vertical-align: top; }

.project-table th { color: var(--dark); font-weight: 600; width: 65%; }

.project-table td:last-child { width: 35%; color: #666; font-size: 0.85rem; }

.project-table a { color: var(--primary); text-decoration: none; font-weight: 600; transition: 0.2s; }

.project-table a:hover { text-decoration: underline; color: var(--primary-dark); }



/* --- Footer with Background Image --- */

footer { 

    background: var(--dark); 

    color: #ccc; 

    padding: 0; /* Remove padding, handled by inner container */

    position: relative;

    overflow: hidden;

}



.footer-bg {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-image: url('images/hero/footer-bg.jpg'); /* Replace with your uploaded image */

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    opacity: 0.15; /* Faded effect - adjust between 0.05 to 0.25 as needed */

    z-index: 0;

}



.footer-content {

    position: relative;

    z-index: 1;

    padding: 60px 0 20px;

}



.footer-grid { 

    display: grid; 

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 

    gap: 40px; 

    margin-bottom: 40px; 

}



footer h4 { 

    color: var(--white); 

    margin-bottom: 20px; 

    position: relative; 

    padding-bottom: 10px; 

}



footer h4::after { 

    content: ''; 

    position: absolute; 

    left: 0; 

    bottom: 0; 

    width: 40px; 

    height: 3px; 

    background: var(--primary); 

}



footer ul { 

    list-style: none; 

}



footer ul li { 

    margin-bottom: 10px; 

}



footer a:hover { 

    color: var(--primary); 

}



footer p {

    margin-bottom: 10px;

    line-height: 1.6;

}



.copyright { 

    text-align: center; 

    padding-top: 20px; 

    border-top: 1px solid #444; 

    font-size: 0.9rem; 

}



/* News Page Specific Styles */

.news-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));

    gap: 30px;

}



.news-card {

    background: var(--white);

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);

    transition: transform 0.3s;

}



.news-card:hover {

    transform: translateY(-5px);

}



.news-card-image {

    width: 100%;

    height: 220px;

    overflow: hidden;

}



.news-card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.3s;

}



.news-card:hover .news-card-image img {

    transform: scale(1.05);

}



.news-card-content {

    padding: 25px;

}



.news-date {

    color: var(--primary);

    font-weight: 600;

    font-size: 0.85rem;

    margin-bottom: 10px;

    display: block;

}



.news-card h3 {

    color: var(--dark);

    margin-bottom: 15px;

    font-size: 1.3rem;

}



.news-card p {

    color: #666;

    margin-bottom: 15px;

    line-height: 1.6;

}



.news-card a {

    color: var(--primary);

    font-weight: 600;

    text-decoration: none;

}



.news-card a:hover {

    text-decoration: underline;

}



/* Publications Page */

.pub-list {

    display: flex;

    flex-direction: column;

    gap: 20px;

    max-width: 900px;

    margin: 0 auto;

}



.pub-item {

    background: var(--white);

    border-left: 4px solid var(--primary);

    padding: 25px;

    border-radius: 8px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.08);

    transition: transform 0.3s;

}



.pub-item:hover {

    transform: translateX(5px);

}



.pub-item h3 {

    color: var(--primary);

    margin-bottom: 10px;

    font-size: 1.2rem;

}



.pub-item p {

    color: #666;

    margin-bottom: 15px;

}



.pub-meta {

    display: flex;

    gap: 20px;

    font-size: 0.85rem;

    color: #888;

    margin-bottom: 15px;

}



.pub-download {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: var(--primary);

    color: var(--white);

    padding: 10px 20px;

    border-radius: 5px;

    text-decoration: none;

    font-weight: 600;

    transition: background 0.3s;

}



.pub-download:hover {

    background: var(--primary-dark);

}



/* Photo Gallery Page */

.gallery-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    gap: 20px;

}



.gallery-item {

    position: relative;

    overflow: hidden;

    border-radius: 8px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.1);

    cursor: pointer;

    aspect-ratio: 4/3;

}



.gallery-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.4s;

}



.gallery-item:hover img {

    transform: scale(1.1);

}



.gallery-overlay {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    background: linear-gradient(transparent, rgba(238, 27, 36, 0.9));

    color: var(--white);

    padding: 20px;

    transform: translateY(100%);

    transition: transform 0.3s;

}



.gallery-item:hover .gallery-overlay {

    transform: translateY(0);

}



.gallery-overlay h4 {

    font-size: 1.1rem;

    margin-bottom: 5px;

}



.gallery-overlay p {

    font-size: 0.85rem;

    opacity: 0.9;

}



/* Responsive */

@media (max-width: 900px) {

    .news-grid {

        grid-template-columns: 1fr;

    }

    .gallery-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}



@media (max-width: 600px) {

    .gallery-grid {

        grid-template-columns: 1fr;

    }

    .pub-meta {

        flex-direction: column;

        gap: 5px;

    }

}



/* --- Responsive Adjustments (Merged & Cleaned) --- */

@media (max-width: 900px) {

    .top-bar-container { flex-direction: column; text-align: center; gap: 8px; }

    .top-bar-info { flex-direction: column; gap: 5px; }

    .nav-container { flex-direction: column; gap: 10px; }

    nav ul { flex-wrap: wrap; justify-content: center; }

    nav ul ul { position: static; box-shadow: none; border-left: 3px solid var(--primary); margin-left: 10px; }

    

    .slider { height: 300px; }

    .slide-content h2 { font-size: 1.5rem; }

    

    .faq-grid { grid-template-columns: 1fr; }

    .faq-image { order: -1; margin-bottom: 30px; }

    .donation-cta h2 { font-size: 1.8rem; }

    

    .grid-2 { grid-template-columns: 1fr; }

    .map-container iframe { height: 300px; }

    

    .project-layout { grid-template-columns: 1fr; gap: 30px; }

    .project-sidebar { position: static; order: 2; }

    .project-gallery { grid-template-columns: repeat(2, 1fr); }

}



@media (max-width: 600px) {

    .project-gallery { grid-template-columns: 1fr; }

}