/* --- CSS Variables & Reset --- */
:root {
    --primary-color: #1a252f; /* Dark Navy */
    --secondary-color: #c0392b; /* Deep Red for accents */
    --accent-color: #3498db; /* Blue for links/buttons */
    --light-bg: #f4f6f7;
    --text-color: #2c3e50;
    --white: #ffffff;
    --border-radius: 6px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding { padding: 60px 0; }
.bg-light { background-color: var(--light-bg); }
.text-center { text-align: center; }

h1, h2, h3, h4 { color: var(--primary-color); margin-bottom: 1rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 3rem; position: relative; }
h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--secondary-color); margin: 10px auto 0;
}

/* --- Header & Nav --- */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 16px; }
.logo img { height: 80px; width: auto; max-height: 80px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; color: #ecf0f1; }
.logo-text .logo-line1 { font-size: 1.4rem; font-weight: 900; letter-spacing: 0.3px; }
.logo-text .logo-line2 { font-size: 1rem; font-weight: 700; margin-top: 2px; opacity: 0.95; }

.nav-links { display: flex; gap: 25px; }
.nav-links a { color: #ecf0f1; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--secondary-color); }
.nav-btn {
    background-color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    color: white !important;
}
.nav-btn:hover { background-color: #a93226; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('Images/Banner1.png');
    background-size:auto;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 30px; opacity: 0.9; }

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.btn:hover { background: #a93226; }
.btn-outline { background: transparent; border: 2px solid var(--white); margin-left: 10px; }
.btn-outline:hover { background: var(--white); color: var(--primary-color); }

/* --- Cards & Grid --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--secondary-color);
}
.card h3 { font-size: 1.3rem; }

/* --- Interactive Cards (Expandable) --- */
.card.interactive { cursor: pointer; position: relative; }
.card.interactive:hover { transform: translateY(-3px); }
.read-more-btn { margin-top: 15px; color: var(--secondary-color); font-weight: bold; font-size: 0.9rem; }
.read-more-btn::after { content: 'Read More'; }
.card.interactive.active .read-more-btn::after { content: 'Read Less'; }
.card.interactive.plus-icon::after { content: '+'; position: absolute; top: 25px; right: 25px; font-size: 1.5rem; color: var(--secondary-color); font-weight: bold; transition: 0.3s; }
.card.interactive.plus-icon.active::after { content: '-'; transform: rotate(180deg); }

.card .full-content { display: none; margin-top: 15px; color: var(--text-color); border-top: 1px solid #eee; padding-top: 15px; }
.card.interactive.active .full-content { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Forms (Grievance) --- */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-color); }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--accent-color); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: #bdc3c7;
    padding: 60px 0 20px;
    margin-top: auto;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.copyright { border-top: 1px solid #34495e; padding-top: 20px; text-align: center; font-size: 0.9rem; }

/* --- Responsive --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        text-align: center;
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    
    
    .grid-3, .grid-2, .gallery-grid, .resources-grid { grid-template-columns: 1fr; }
    
    .section-padding { padding: 40px 0; }
    
    .footer-content { flex-direction: column; gap: 30px; }
}

/* --- Resource Lists --- */
.list-group { list-style: none; padding: 0; border: 1px solid #eee; border-radius: var(--border-radius); overflow: hidden; }
.list-group li { background: #fff; border-bottom: 1px solid #eee; padding: 15px; transition: 0.2s; }
.list-group li:last-child { border-bottom: none; }
.list-group li:hover { background-color: #f9f9f9; padding-left: 20px; }
.list-group li a { color: var(--primary-color); font-weight: 600; display: block; }
.list-group li a:hover { color: var(--secondary-color); }

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background: #fff;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
    border-top: 1px solid #eee;
}

/* --- Floating Social Sidebar --- */
.social-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.social-sidebar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 1.2rem;
    transition: width 0.3s ease;
}

.social-sidebar a:hover { width: 60px; }
.social-sidebar .twitter { background: #000000; }
.social-sidebar .instagram { background: #E1306C; }
.social-sidebar .facebook { background: #1877F2; }
.social-sidebar .threads { background: #000000; }
.social-sidebar .youtube { background: #FF0000; }

.social-toggle { display: none; }

@media (max-width: 768px) {
    .social-sidebar a {
        display: flex;
        width: 0;
        height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .social-sidebar.visible a {
        width: 45px;
        height: 45px;
        opacity: 1;
    }
    .social-toggle {
        display: flex;
        justify-content: center; align-items: center;
        width: 25px; height: 45px;
        background: var(--secondary-color); color: white;
        cursor: pointer; font-size: 1.2rem;
        transition: all 0.4s ease;
        border-radius: 0 6px 6px 0;
    }
    .social-sidebar.visible .social-toggle {
        width: 0;
        height: 0;
        opacity: 0;
        overflow: hidden;
    }
}

/* --- Footer Social Icons --- */
.social-links-footer { display: flex; gap: 15px; }
.social-links-footer a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border-radius: 50%; color: var(--white); transition: 0.3s; font-size: 1.1rem;
}
.social-links-footer a:hover { background: var(--secondary-color); transform: translateY(-3px); }

/* --- Contact Page --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.contact-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contact-details {
    padding-top: 10px;
}

.contact-form-container.card {
    padding: 40px;
    border-top-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}
.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.6rem;
    color: var(--secondary-color);
    width: 35px;
    text-align: center;
    margin-top: 5px;
}

.info-item h4 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}
.info-item p, .info-item a {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
}
.info-item a:hover {
    color: var(--secondary-color);
}

/* --- New layout styles for updated homepage --- */
.donate-btn {
    background: #c0392b;
    color: #fff;
    padding: 10px 16px;
    border-radius: 24px;
    font-weight: 700;
    margin-left: 20px;
}
.donate-btn:hover { background: #a93226; }

.hero {
    position: relative;
    background: #1a252f;
    color: var(--white);
    padding: 140px 0;
    overflow: hidden;
}

/* Slides container */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Each slide */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active {
    opacity: 1;
    animation: heroZoom 8s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

/* Dark overlay on top of slides */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(10,10,10,0.35), rgba(10,10,10,0.35)); z-index: 1; }

/* Carousel arrow buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    font-size: 1.05rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}
.hero-nav:hover { background: rgba(192,57,43,0.75); border-color: transparent; }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }

/* Dot indicators */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    z-index: 4;
}
.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    outline: none;
}
.hero-dot.active { background: #fff; transform: scale(1.35); }
.hero-inner { position: relative; z-index: 3; }
.hero-content { max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 3.2rem; letter-spacing: 1px; margin-bottom: 12px; }
.hero .lead { font-size: 1.15rem; opacity: 0.95; margin-bottom: 22px; }
.hero-cta .btn { padding: 12px 28px; }
.btn-large { padding: 14px 36px; font-size: 1.1rem; }

.features-grid { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature-card { text-align: center; padding: 30px 20px; }
.feature-icon { font-size: 36px; color: var(--secondary-color); margin-bottom: 12px; }
.feature-card h3 { margin: 10px 0 8px; }

.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.cta-box { color: white; padding: 22px; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); text-align: left; }
.cta-box h4 { margin-bottom: 6px; }
.cta-box p { opacity: 0.95; margin-bottom: 12px; }
.small-btn { display: inline-block; background: rgba(255,255,255,0.12); color: #fff; padding: 8px 12px; border-radius: 4px; font-weight: 700; }
.small-btn:hover { background: rgba(255,255,255,0.18); }
.cta-box.blue { background: #2f7dbb; }
.cta-box.red { background: #b03a34; }
.cta-box.green { background: #2e8b57; }
.cta-box.navy { background: #3a5568; }

.get-involved-cta { margin-top: 28px; }

.values-bar { background: #f5f5f5; padding: 18px 0; }
.values-inner { display: flex; gap: 20px; justify-content: space-around; align-items: center; }
.value-item { display: flex; gap: 10px; align-items: center; color: var(--primary-color); font-weight: 600; }
.value-item i { font-size: 20px; color: var(--secondary-color); }

@media (max-width: 768px) {
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 1.8rem; }
    .hero-nav { width: 36px; height: 36px; font-size: 0.85rem; }
    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }
    .values-inner { flex-direction: column; gap: 12px; }
}

/* --- Section heading styles to match provided design --- */
h2.section-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.6rem;
    color: #0e3140;
    text-align: center;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

h2.section-title::after { display: none; }

.muted {
    display: block;
    text-align: center;
    color: #6b6f73;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Slightly tighten spacing for boxed CTAs under the heading */
.support-grid { margin-top: 18px; }

.social-links-contact {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links-contact a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .contact-details {
        text-align: center;
    }
    .contact-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .info-item i {
        margin-top: 0;
    }
    .social-links-contact {
        justify-content: center;
    }
}
.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    width: 40px;
    text-align: center;
}
.info-item h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}
.info-item p, .info-item a {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
}
.info-item a:hover {
    color: var(--secondary-color);
}

.social-links-contact {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links-contact a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border: 1px solid #ddd;
    border-radius: 50%;
    color: var(--primary-color);
    transition: 0.3s;
    font-size: 1.1rem;
}

.social-links-contact a:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* --- Text Container for Static Pages --- */
.text-container {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.text-container h3 {
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
}

.text-container p {
    margin-bottom: 20px;
}

.about-page-logo {
    display: block;
    margin: 0 auto 30px;
    max-width: 300px;
    width: 100%;
    height: auto;
}
