/* Global Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00AEEF;
    --secondary-blue: #007bb0;
    --dark-blue: #007bb0;
    --dark-grey: #333;
    --light-grey: #f4f4f4;
    --white: #fff;
    --text-color: #555;
    --accent-orange: #ff8c00;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.section-padding {
    padding: 4rem 0;
}

.bg-light {
    background: var(--light-grey);
}

.bg-dark {
    background: #1a1a1a;
}

/* Event Section Styles */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-info {
    padding: 1.5rem;
}

.event-date {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.event-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--dark-grey);
}

.event-info p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Top Bar */
.top-bar {
    background: #1a1a1a;
    color: #ccc;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar .contact-info a {
    margin-right: 1.5rem;
}

.top-bar .social-links a {
    margin-left: 1rem;
}

.top-bar .social-links a:hover {
    color: var(--primary-blue);
}

/* Header & Navigation */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo-text h1 {
    font-size: 1.1rem;
    color: var(--dark-grey);
    text-transform: uppercase;
    line-height: 1;
}

.logo-text h2 {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 400;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 1.2rem;
    position: relative;
}

nav ul li a {
    font-weight: 600;
    color: var(--dark-grey);
    font-size: 0.85rem;
    text-transform: uppercase;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-blue);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    display: none;
    min-width: 180px;
    padding: 0.5rem 0;
    border-top: 3px solid var(--primary-blue);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 0.6rem 1.2rem;
    display: block;
    text-transform: none;
    font-weight: 400;
}

.dropdown-menu li a:hover {
    background: var(--light-grey);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Specialized Buttons */
.portal-btn {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem !important;
}

.donate-btn {
    background: var(--accent-orange);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}

.portal-btn:hover, .donate-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Slider */
.hero {
    position: relative;
    height: 90vh; /* Taller height (Zoomed in layout) */
    overflow: hidden;
    background: #000;
}

.slider {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center 5% !important; /* Focus on faces while zoomed in */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Even lighter overlay for better visibility */
}

.hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    z-index: 5;
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Added text shadow for readability */
}

.badge {
    background: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns .btn-primary {
    background: var(--accent-orange);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}

.hero-btns .btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    margin-left: 10px;
    font-weight: 600;
    display: inline-block;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.slider-controls button:hover {
    background: var(--primary-blue);
}

.slider-controls .prev { left: 20px; }
.slider-controls .next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: var(--white);
    width: 25px;
    border-radius: 10px;
}

/* Info Boxes */
.info-boxes {
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.info-boxes .grid {
    grid-template-columns: repeat(3, 1fr);
}

.blue-banner {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto 20px;
    border-radius: 5px;
}

.info-box {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-radius: 5px;
    border-top: 4px solid var(--primary-blue);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-box:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.info-box i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* About Section */
.about-brief .grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
}

/* News Section */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-img {
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.small-news .news-img img {
    height: 150px;
}

.news-content {
    padding: 1.5rem;
}

.meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
}

.meta i {
    margin-right: 5px;
    color: var(--primary-blue);
}

.side-news {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Stats Section */
.stats {
    background: var(--soft-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 600;
    color: var(--dark-grey);
}

/* Footer */
footer {
    background: #222;
    color: #bbb;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

footer h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.footer-social a:hover {
    background: var(--primary-blue);
}

.bottom-bar {
    background: #111;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 4rem;
    font-size: 0.85rem;
}

/* =============================================
   Flash Messages
   ============================================= */
.flash-error {
    background: #fdecea;
    color: #c0392b;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #e74c3c;
    font-size: 0.95rem;
}

.flash-success {
    background: #eafaf1;
    color: #1e8449;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2ecc71;
    font-size: 0.95rem;
}

.flash-info {
    background: #eaf4fb;
    color: #1a5276;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
    font-size: 0.95rem;
}

/* =============================================
   Shared Button Utilities
   ============================================= */
.btn-outline-blue {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.3s, color 0.3s;
}

.btn-outline-blue:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* =============================================
   Page Banner (news.php, news-article.php)
   ============================================= */
.page-banner {
    background: linear-gradient(135deg, #1a3a5c 0%, var(--primary-blue) 100%);
    color: #fff;
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    opacity: 0.85;
    font-size: 1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: #fff;
    text-decoration: underline;
}

/* =============================================
   News Listing (news.php)
   ============================================= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.article-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.article-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.article-card-img-placeholder {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #e8f4fb, #c8e6f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    opacity: 0.6;
}

.article-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    font-size: 0.78rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.article-card-meta span {
    margin-right: 0.75rem;
}

.article-card h3 {
    font-size: 1rem;
    color: var(--dark-grey);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.article-card p {
    font-size: 0.88rem;
    color: #777;
    flex: 1;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.read-more:hover {
    text-decoration: underline;
}

.read-more-inline {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more-inline:hover {
    text-decoration: underline;
}

/* =============================================
   Pagination
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0 1rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: var(--dark-grey);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.pagination span.current {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* =============================================
   Single Article (news-article.php)
   ============================================= */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 3rem 0 5rem;
}

.single-article {}

.single-article .article-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.single-article .article-title {
    font-size: 1.9rem;
    color: var(--dark-grey);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.single-article .article-meta {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.single-article .article-meta i {
    margin-right: 0.3rem;
    color: var(--primary-blue);
}

.single-article .article-body {
    font-size: 1rem;
    line-height: 1.85;
    color: #444;
}

.single-article .article-body h2,
.single-article .article-body h3 {
    margin: 1.5rem 0 0.75rem;
    color: var(--dark-grey);
}

.single-article .article-body p {
    margin-bottom: 1.2rem;
}

.single-article .article-body img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.single-article .article-body blockquote {
    border-left: 4px solid var(--primary-blue);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    color: #555;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Article sidebar */
.sidebar-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.related-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f4f4f4;
    color: inherit;
    transition: color 0.2s;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    color: var(--primary-blue);
}

.related-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-item-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark-grey);
}

.related-item:hover .related-item-text {
    color: var(--primary-blue);
}

.related-item-date {
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 0.25rem;
}

/* =============================================
   Donate Page (donate.php)
   ============================================= */
.donate-hero {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #fff;
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.donate-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.donate-hero p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.donate-form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 560px;
    margin: 2rem auto 0;
}

.donate-form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-grey);
    font-size: 1.4rem;
}

.donate-form-container .form-group {
    margin-bottom: 1.2rem;
}

.donate-form-container .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

.donate-form-container .form-group input,
.donate-form-container .form-group select,
.donate-form-container .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.donate-form-container .form-group input:focus,
.donate-form-container .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.amount-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.amount-preset {
    padding: 0.45rem 1rem;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark-grey);
}

.amount-preset:hover,
.amount-preset.active {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: #fff;
}

.btn-donate {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}

.btn-donate:hover {
    background: #c0392b;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    nav ul {
        display: none; /* Mobile menu logic in JS */
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-boxes .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .hero {
        height: 60vh;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-btns .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }

    .info-boxes .grid {
        grid-template-columns: 1fr;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .about-brief .grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .donate-form-container {
        padding: 1.5rem;
    }

    .amount-presets {
        gap: 0.4rem;
    }

    .amount-preset {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
}
