/* ==========================================
   1. Global Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* ==========================================
   2. Top Utility Bar
   ========================================== */
.top-bar {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 8px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    font-size: 14px;
}

.top-bar-item {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar-item:hover {
    color: #ffffff;
}

/* ==========================================
   3. Main Header Bar
   ========================================== */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-container img {
    height: 55px;
    width: auto;
}

.logo-text h2 {
    font-size: 18px;
    color: #0f172a;
    font-weight: 700;
}

.logo-text span {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

nav a:hover {
    color: #0284c7;
}

.btn-donate {
    background-color: #059669;
    color: white !important;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-donate:hover {
    background-color: #047857;
}

.btn-add {
    background-color: #0284c7;
    color: white !important;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-add:hover {
    background-color: #0369a1;
}

/* ==========================================
   4. Image Banner Slider
   ========================================== */
.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #0f172a;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 50px;
    left: 60px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    padding: 25px 35px;
    border-radius: 8px;
    max-width: 600px;
    backdrop-filter: blur(5px);
}

.slide-caption h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.slide-caption p {
    font-size: 16px;
    color: #cbd5e1;
}

/* ==========================================
   5. "Our Goals" Split-Screen Section
   ========================================== */
.goals-section {
    display: flex;
    min-height: 480px;
    background: #ffffff;
    margin: 40px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.goals-bg-col {
    flex: 1;
    position: relative;
    background-image: url('images/goals/goal1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px;
    color: white;
}

.goals-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.82);
}

.goals-title-content {
    position: relative;
    z-index: 2;
}

.goals-title-content h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.goals-title-content p {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.7;
}

.goals-slider-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    background: #f8fafc;
}

.goals-slides-wrapper {
    position: relative;
    min-height: 200px;
}

.goal-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.goal-slide.active-goal {
    display: block;
}

.goal-number {
    font-size: 42px;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 10px;
}

.goal-slide h3 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 15px;
}

.goal-slide p {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
}

.goals-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.goal-dots {
    display: flex;
    gap: 8px;
}

.goal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: background-color 0.2s;
}

.goal-dot.active-dot {
    background-color: #0284c7;
    width: 24px;
    border-radius: 5px;
}

.goal-btn-group {
    display: flex;
    gap: 10px;
}

.goal-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.goal-btn:hover {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}

/* ==========================================
   6. Centered Floating About Section
   ========================================== */
.about-wrapper-bg {
    padding: 60px 20px;
    background: #f1f5f9;
}

.about-card-box {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.about-card-text {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card-text h2 {
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 20px;
}

.about-card-text p {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 25px;
}

.btn-read-more-box {
    display: inline-block;
    background-color: #0284c7;
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    transition: background-color 0.2s;
}

.btn-read-more-box:hover {
    background-color: #0369a1;
}

.about-card-img {
    flex: 1;
    min-height: 350px;
}

.about-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   7. Modern Split-Screen News Cards
   ========================================== */
.grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Left side: Text Content */
.card-body {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: #e0f2fe;
    color: #0369a1;
    align-self: flex-start;
}

.badge.Event {
    background: #fef3c7;
    color: #92400e;
}

/* Right side: Supporting Images Container */
.card-media-side {
    width: 380px;
    background: #f8fafc;
    border-left: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-img-wrapper img:hover {
    transform: scale(1.03);
}

/* Thumbnail Gallery bar on the right */
.card-gallery {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.gallery-thumb:hover, .gallery-thumb.active-thumb {
    border-color: #0284c7;
    transform: scale(1.05);
}

/* ==========================================
   8. Animations & Media Queries
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .goals-section {
        flex-direction: column;
    }
    .about-card-box {
        flex-direction: column;
    }
    .card {
        flex-direction: column;
    }
    .card-media-side {
        width: 100%;
        border-left: none;
        border-top: 1px solid #f1f5f9;
    }
    header {
        padding: 15px 20px;
    }
    .top-bar {
        padding: 8px 20px;
    }
}