/* ========================================
   HOPE FOUNDATION - PROFESSIONAL CSS
   Colors: Orange #E05A2A | Blue #1E5AA3
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fefcf8;
    color: #1e2a3e;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h1 { font-size: 2rem; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 30px; text-align: center; color: #1e5aa3; }
h3 { font-size: 1.2rem; margin-bottom: 15px; color: #1e5aa3; }

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-block;
    background: #e05a2a;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: #c24418;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e05a2a;
    color: #e05a2a;
}

.btn-outline:hover {
    background: #e05a2a;
    color: white;
}

/* ========== USER PORTAL BUTTON ========== */
.portal-btn {
    background: #e05a2a;
    color: white !important;
    padding: 10px 25px;
    border-radius: 40px;
    transition: 0.3s;
}

.portal-btn:hover {
    background: #c24418;
    color: white !important;
    transform: translateY(-2px);
}
.portal-btn-right {
    background: #e05a2a;
    color: white;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.3s;
    margin-left: auto;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
}

.portal-btn-right:hover {
    background: #c24418;
    transform: translateY(-2px);
}

/* ========== HEADER ========== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-wrap: wrap;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e5aa3, #e05a2a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-tagline {
    font-size: 0.62rem;
    color: #e05a2a;
    background: rgba(224, 90, 42, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.logo img {
    height: 45px;
    width: auto;
    max-height: 45px;
    object-fit: contain;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #1e5aa3;
    background: none;
    border: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.85rem;
    transition: 0.2s;
    padding: 8px 0;
}

.nav-links a:hover {
    color: #e05a2a;
}

/* ========== DASHBOARD HEADER ========== */
.dashboard-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.dashboard-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.dashboard-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 7px 12px;
    border-radius: 25px;
    transition: 0.2s;
}

.dashboard-menu a:hover {
    background: #f0f0f0;
    color: #e05a2a;
}

.dashboard-menu a:last-child:hover {
    background: #fee;
    color: #d32f2f;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(rgba(30, 90, 163, 0.75), rgba(224, 90, 42, 0.7)), url('../images/hero-bg.jpg?v=2');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero p {
    color: white;
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== STATS SECTION ========== */
.stats {
    padding: 40px 0;
    background: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-card {
    background: #f5f7fa;
    padding: 20px 15px;
    border-radius: 16px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    color: #e05a2a;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e5aa3;
    margin-bottom: 5px;
}

.stat-card p {
    color: #555;
    font-weight: 500;
    font-size: 0.85rem;
}

/* ========== DONATION SECTION ========== */
.donation-section {
    padding: 40px 0;
    background: #f8f9fc;
}

.donation-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.donation-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    width: 260px;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.donation-card i {
    font-size: 2rem;
    color: #e05a2a;
    margin-bottom: 12px;
}

.donation-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.donation-card p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* ========== FEATURED PROJECTS ========== */
.featured-projects {
    padding: 40px 0;
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background: #f8f9fc;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.project-card i {
    font-size: 2rem;
    color: #e05a2a;
    margin-bottom: 12px;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.project-card p {
    color: #666;
    font-size: 0.85rem;
}

/* ========== CHAIRMAN PREVIEW ========== */
.chairman-preview {
    padding: 40px 0;
    background: #f0f4f8;
}

.chairman-box {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.chairman-box i {
    font-size: 2rem;
    color: #e05a2a;
    margin-bottom: 15px;
    opacity: 0.7;
}

.chairman-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    font-style: italic;
}

.chairman-box h4 {
    margin-top: 15px;
    color: #1e5aa3;
    font-size: 0.9rem;
}

/* ========== CTA SECTION ========== */
.cta {
    background: #1e5aa3;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.cta h2 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.cta p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: white;
    color: #1e5aa3;
}

.cta .btn-primary:hover {
    background: #e05a2a;
    color: white;
}

/* ========== FOOTER ========== */
footer {
    background: #0a2a3b;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 25px;
}

.footer-col h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer-col p, .footer-col li {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #bbb;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: #e05a2a;
}

.social-links {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.2s;
}

.social-links a:hover {
    background: #e05a2a;
    transform: translateY(-2px);
}

.channel-link {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.2s;
}

.channel-link:hover {
    background: #128C7E;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.7rem;
}

/* ========== UTILITY ========== */
.text-center {
    text-align: center;
}

/* ========== TOP BAR ========== */
.top-header {
    background: #0a2a3b;
    padding: 6px 0;
    border-bottom: 1px solid #1e3a4b;
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.top-header-left a,
.top-header-center a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.top-header-left a:hover,
.top-header-center a:hover {
    color: #e05a2a;
}

.whatsapp-subscribe {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.12);
    padding: 3px 10px;
    border-radius: 30px;
}

.whatsapp-subscribe i {
    color: #25D366;
    font-size: 0.8rem;
}

.whatsapp-subscribe span {
    color: #cbd5e0;
    font-size: 0.7rem;
}

.whatsapp-subscribe form {
    display: inline-flex;
    gap: 4px;
}

.whatsapp-subscribe input {
    padding: 3px 8px;
    border: none;
    border-radius: 30px;
    font-size: 0.65rem;
    width: 110px;
    outline: none;
    background: white;
}

.whatsapp-subscribe button {
    background: #25D366;
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.65rem;
    transition: 0.2s;
}

.whatsapp-subscribe button:hover {
    background: #128c7e;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 0 10px;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .dashboard-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 55px;
        left: 0;
        padding: 15px 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 99;
    }
    
    .dashboard-menu.active {
        display: flex;
    }
    
    .dashboard-nav {
        padding: 10px 15px;
        position: relative;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero {
        padding: 60px 20px;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .chairman-box {
        padding: 25px 20px;
    }
    
    .chairman-box p {
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .top-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .whatsapp-subscribe {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .portal-btn-right {
        margin-left: 0;
        text-align: center;
        display: inline-block;
        width: auto;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-tagline {
        font-size: 0.52rem;
    }
    
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .stat-card h3 {
        font-size: 1.3rem;
    }
}
/* ========== MOBILE SLIDE-IN MENU ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #1e5aa3;
    z-index: 100;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: right 0.3s ease;
    padding: 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.close-menu {
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-links a:hover {
    color: #e05a2a;
}

.portal-btn-mobile {
    background: #e05a2a;
    color: white !important;
    padding: 10px !important;
    text-align: center;
    border-radius: 40px;
    margin-top: 10px;
}

.portal-btn-mobile:hover {
    background: #c24418;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.85rem;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #e05a2a;
}

.portal-btn-right {
    background: #e05a2a;
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
}