/* 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);
}

.event-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-info-top .event-date {
    margin-bottom: 0;
}

.event-fee {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    white-space: nowrap;
}

.event-fee.free {
    background: #eafaf1;
    color: #1e8449;
}

.event-fee.paid {
    background: #eaf4fb;
    color: #1a5276;
}

/* 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: repeat(3, 1fr);
    gap: 1.75rem;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-bottom: 3px solid transparent;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-bottom-color: var(--primary-blue);
}

.news-img {
    overflow: hidden;
    height: 200px;
    background: #e8f4fb;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.news-card:hover .news-img img {
    transform: scale(1.06);
}

.news-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    opacity: 0.35;
}

.news-card-body {
    padding: 1.4rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-blue);
    background: #e8f4fb;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.news-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-grey);
    line-height: 1.45;
    margin-bottom: 0.75rem;
    flex: 1;
}

.news-meta {
    font-size: 0.78rem;
    color: #bbb;
    margin-bottom: 1rem;
}

.news-meta i {
    margin-right: 0.3rem;
    color: var(--primary-blue);
}

.news-read-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}

.news-card:hover .news-read-more {
    gap: 0.7rem;
}

/* 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 — Tablet (≤1024px)
   ============================================== */
@media (max-width: 1024px) {
    /* Hide desktop nav, show hamburger */
    nav ul { display: none; }
    .menu-toggle { display: block; }

    /* Mobile nav panel — CSS-driven (not inline JS) */
    nav ul.nav-open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 0.25rem 0 1rem;
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
        z-index: 999;
        border-top: 3px solid var(--primary-blue);
    }

    nav ul.nav-open > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul.nav-open > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    nav ul.nav-open > li:last-child,
    nav ul.nav-open > li:nth-last-child(2) {
        border-bottom: none;
    }

    /* Accordion: dropdown submenus */
    nav ul.nav-open .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--primary-blue);
        margin: 0 0 0 1.5rem;
        padding: 0;
        min-width: unset;
        width: calc(100% - 1.5rem);
    }

    nav ul.nav-open .dropdown.open > .dropdown-menu {
        display: block;
    }

    nav ul.nav-open .dropdown.open > a {
        color: var(--primary-blue);
        background: #f8fbff;
    }

    nav ul.nav-open .dropdown-menu li {
        margin: 0;
    }

    nav ul.nav-open .dropdown-menu li a {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        border-bottom: 1px solid #f5f5f5;
        display: block;
        justify-content: unset;
    }

    /* Portal / Donate buttons in mobile nav */
    nav ul.nav-open .portal-btn,
    nav ul.nav-open .donate-btn {
        display: inline-block;
        margin: 0.4rem 1.5rem;
        padding: 0.5rem 1.2rem;
        width: auto;
        border-radius: 50px;
    }

    /* Grids */
    .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); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr 280px; gap: 2rem; }
}

/* ==============================================
   Responsive — Mobile (≤768px)
   ============================================== */
@media (max-width: 768px) {
    .container { width: 95%; }

    /* Top bar: show only social icons, hide phone/email */
    .top-bar .contact-info { display: none; }
    .top-bar .container { justify-content: center; }

    .hero { height: 70vh; min-height: 380px; }
    .hero-content { padding: 0 1rem; }
    .hero-content h2 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }

    /* Stack hero buttons vertically */
    .hero-btns { display: flex; flex-direction: column; gap: 0.75rem; width: fit-content; }
    .hero-btns .btn-secondary { margin-left: 0; }

    /* Single-column layouts */
    .info-boxes .grid { grid-template-columns: 1fr; }
    .info-boxes { margin-top: -30px; }
    .event-grid { grid-template-columns: 1fr; }
    .about-brief .grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }

    /* Donate page */
    .donate-form-container { padding: 1.5rem; margin: 1rem; }
    .amount-presets { gap: 0.4rem; }
    .amount-preset { padding: 0.4rem 0.7rem; font-size: 0.8rem; }

    /* Footer social icons wrap nicely */
    .footer-social { flex-wrap: wrap; gap: 0.75rem; }
}

/* ==============================================
   Responsive — Small phones (≤480px)
   ============================================== */
@media (max-width: 480px) {
    .hero { height: 60vh; }
    .hero-content h2 { font-size: 1.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.5rem; margin-bottom: 2rem; }
}

/* ==============================================
   Portal nav — mobile
   ============================================== */
@media (max-width: 600px) {
    .portal-nav {
        padding: 0.8rem 1rem !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .portal-nav .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .portal-nav .nav-links a {
        margin-left: 0 !important;
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem !important;
        border-radius: 6px;
        background: #f5f5f5;
    }
    .portal-nav .nav-links a.logout {
        background: #fdecea;
    }
}
