@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    background-attachment: fixed;
    color: #2c3e50;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(30, 60, 114, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 80%, rgba(42, 82, 152, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 10% 70%, rgba(0, 212, 255, 0.05) 0%, transparent 30%);
    background-attachment: fixed;
    pointer-events: none;
    z-index: 1;
}

* {
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.18)), url('header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 90px 0 140px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(30, 60, 114, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 30px 24px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.header h1 {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #FFD700 0%, #FF8C00 50%, #be1904 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* ← This line is key. Add it */
    filter: drop-shadow(0 4px 16px rgba(255,140,0,0.5)) 
            drop-shadow(0 2px 8px rgba(14, 13, 13, 0.8));
    animation: slideDown 0.8s ease-out;
}
.header {
    text-align: center;
}

.header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.tagline {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffd900d3;
    margin: 8px 0 16px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
.hero-cta {
    display: inline-block;
    margin: 26px auto 0 auto; /* This centers it */
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, hsl(40, 88%, 53%), #ec0909); /* Orange to red gradient */
    color: #eeeaea;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 140, 0, 0.6);
    background: linear-gradient(135deg, #FFA500, #FF6347); /* Brighter on hover */
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2em;
    font-weight: 800;
    margin-bottom: 14px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    animation: slideDown 0.8s ease-out;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
    animation: fadeIn 1s ease-out 0.3s both;
}

.hero-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-top: 18px;
}

.header h1, .tagline, .hero-subtitle {
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.header h1 {
    letter-spacing: 0.03em;
}

.tagline {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.15em;
}

/* Navigation */
.nav {
    background: white;
    padding: 15px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav .container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 88px 16px;
    border: 1px solid #e2e8f0;
    border-radius:20px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(30, 60, 114, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}
.filter-btn:hover {
    border-color: #1e3c72;
    color: #1e3c72;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

/* Main Content */
main {
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    max-width: min(92vw, 760px);
    width: 100%;
}

.cookie-consent p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-consent button {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    font-weight: 600;
    flex-shrink: 0;
}

.cookie-consent.is-hidden {
    display: none;
}

@media (max-width: 600px) {
    .cookie-consent {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent button {
        width: 100%;
    }
}

main::before {
    content: '';
    position: fixed;
    left: -80px;
    top: 250px;
    width: 350px;
    height: 550px;
    background-image: url('https://images.unsplash.com/photo-1577471488569-8fb6f7edda51?w=500&h=700&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.12;
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

main::after {
    content: '';
    position: fixed;
    right: -100px;
    top: 200px;
    width: 380px;
    height: 580px;
    background-image: url('https://images.unsplash.com/photo-1508098682722-e7c832951221?w=500&h=700&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.12;
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Admin Section */
.admin-section,
.admin-login {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border-top: 4px solid;
    border-image: linear-gradient(90deg, #1e3c72, #2a5298, #00d4ff) 1;
    animation: fadeInUp 0.8s ease-out;
}

.hidden {
    display: none;
}

.btn-secondary {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3c72;
    border: 1px solid rgba(30, 60, 114, 0.18);
    border-radius: 999px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 60, 114, 0.12);
}

.admin-section h2 {
    font-family: 'Poppins', sans-serif;
    color: #1e3c72;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 700;
}

.form-group {
    margin-bottom: 15px;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    background-color: white;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Button Styling */
.btn-primary {
    padding: 14px 40px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #00a8cc 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Status Message */
.status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.status:empty {
    display: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.manage-posts-list {
    display: grid;
    gap: 12px;
}

.manage-post-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    overflow: hidden;
}

.manage-post-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

.manage-post-summary::-webkit-details-marker {
    display: none;
}

.manage-post-chevron {
    color: #64748b;
    font-size: 1rem;
}

.manage-post-card[open] .manage-post-chevron {
    transform: rotate(180deg);
}

.manage-post-editor {
    padding: 0 14px 14px;
}

.manage-post-form {
    display: grid;
    gap: 10px;
}

.manage-post-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
}

.manage-post-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 4px;
}

.manage-post-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-small {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-edit {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-delete {
    background: #fee2e2;
    color: #b91c1c;
}

/* News Section */
.news-section {
    margin-top: 40px;
}
.news-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
}
.news-section h2:before {
    content:'';
    width: 4px;
    height: 24px;
    background: #1e40af;
    border-radius: 2px;
    flex-shrink: 0;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;  /* 1 column on mobile */
    gap: 16px;
    padding: 0 16px;
  }
}
.news {
    background: rgb(255, 255, 255);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.search-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 25px auto 0 auto;
  max-width: 400px;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Desktop only: nudge left 20px */
@media (min-width: 481px) {
  .search-wrapper {
    transform: translateX(-20px);
  }
}

/* Mobile: stack vertically and center */
@media (max-width: 480px) {
  .search-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  
  .search-box {
    width: 100%;
    max-width: 320px;
  }
  
  #searchBtn {
    width: 100%;
    max-width: 320px;
  }
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 280px;
}

#searchInput {
  width: 100%;
  padding: 10px 35px 10px 18px; /* Extra right padding for the X */
  border: none;
  border-radius: 25px;
  font-size: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: #0f0f0f;
  cursor: pointer;
  display: none;
  padding: 0;
  line-height: 1;
}

.clear-btn:hover {
  color: #333;
}

#searchBtn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background: #1e3c72;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#searchBtn:hover {
  background: #2a5298;
}

.news:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #2a5298;
}

.news-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin: 0;
    transition: transform 0.5s ease;
}

.news:hover .news-image {
    transform: scale(1.05);
}

.news h3 {
    color: #1e3c72;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 12px;
    word-wrap: break-word;
    padding: 20px 20px 0 20px;
    font-family: 'Poppins', sans-serif;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85em;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 20px 12px 20px;
    margin-top: 0;
}

.news-category {
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news:hover .news-category {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.news-author {
    font-weight: 600;
    color: #2a5298;
}

.news-date {
    color: #bbb;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
}

.news p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    word-wrap: break-word;
    padding: 0 20px;
}

.news p:first-of-type {
    padding-top: 10px;
}

.news p:last-child {
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #0f2439 100%);
    color: white;
    text-align: center;
    padding: 35px 0;
    margin-top: 60px;
    border-top: 3px solid #2a5298;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 150px;
    height: 100%;
    background: radial-gradient(circle at 0% 50%, rgba(255,255,255,0.08) 0%, transparent 45%);
    pointer-events: none;
}

.footer p {
    font-weight: 500;
    opacity: 0.9;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 0.95em;
    }

    .nav .container {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 5px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .admin-section {
        padding: 20px;
    }

    .news-image {
        height: auto;
    }

    .news h3 {
        font-size: 1.1em;
    }
}

.read-more-btn {
  background: none;
  border: none;
  color: #1e3c72;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  margin-left: 4px;
}
.read-more-btn:hover {
  text-decoration: underline;
}
.hero {
  position: relative;
  width: 100%;
  height: 450px; /* adjust to match your image */
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3-Dot Menu - Top Right Corner */
.hero-menu-wrapper {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.hero-menu-btn {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: #fff;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
}

.dropdown.show { display: block; }

.dropdown a, 
.dropdown button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  color: #333;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.dropdown a:hover,
.dropdown button:hover { background: #f5f5f5; }

/* Dark Mode */
body.dark-mode { background: #121212; color: #e0e0e0; }
body.dark-mode .dropdown { background: #1e1e1e; }
body.dark-mode .dropdown a,
body.dark-mode .dropdown button { color: #e0e0e0; }
body.dark-mode .dropdown a:hover,
body.dark-mode .dropdown button:hover { background: #2a2a2a; }
body.dark-mode article { background: #1e1e1e; }
/* Mobile Category Tabs - Horizontal Scroll */
.category-container {
  background: #fff;
  padding: 16px 0 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar { display: none; }
.category-scroll { -ms-overflow-style: none; scrollbar-width: none; }

.category-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 10px 20px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #444;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn.active {
  background: #1e40af; /* Deep blue */
  color: #fff;
  border-color: #1e40af;
}

.category-btn:active { transform: scale(0.95); }

/* Background Design - Subtle Football Pattern */
body {
  background-color: #ffffff;
  background-image: 
    radial-gradient(circle at 20px 20px, #e8ecf4 2px, transparent 0),
    radial-gradient(circle at 60px 60px, #e8ecf4 2px, transparent 0);
  background-size: 80px 80px;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 24px 0 16px;
  padding: 0 4px;
}

/* News Cards Grid */
.news-grid {
  display: grid;
  gap: 16px;
}

.news-card {
  background: #b81111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.news-card:active { transform: scale(0.98); }

.news-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background:#ffffff;
  max-height: 400px;

}

.news-card-content {
  padding: 16px;
}

/* Dark Mode */
body.dark-mode {
  background-color: #0f172a;
  background-image: 
    radial-gradient(circle at 20px 20px, #1e293b 2px, transparent 0),
    radial-gradient(circle at 60px 60px, #1e293b 2px, transparent 0);
}

body.dark-mode .category-container { background: #1e293b; }
body.dark-mode .category-btn { 
  background: #334155; 
  color: #e2e8f0; 
  border-color: #475569; 
}
body.dark-mode .category-btn.active { background: #3b82f6; border-color: #3b82f6; }
body.dark-mode .news-card { background: #edeef0; }
body.dark-mode .section-title { color: #60a5fa; }

.category-container { 
  padding: 16px 0; 
  background: #f3f3f5; 
}

.category-scroll { 
  display: flex; 
  overflow-x: auto; 
  gap: 8px; 
  padding: 0 16px; 
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-btn { 
  flex-shrink: 0; 
  padding: 8px 16px; 
  border: 1px solid #ccc; 
  background: #fff; 
  border-radius: 20px; 
  white-space: nowrap; 
}

.category-btn.active { 
  background: #2563eb; 
  color: #fff; 
  border-color: #2563eb; 
}
body {
  background-color: #c8d5e2;
  background-image: 
    radial-gradient(circle at 25px 25px, #90c4a3 1px, transparent 0);
  background-size: 50px 50px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 20px 16px 12px;
  padding: 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Make buttons look tappable */
.category-btn:active { 
  transform: scale(0.96); 
  transition: transform 0.1s;
}
h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fnh-ball {
    display: inline-flex;
    animation: float 3s ease-in-out infinite;
}
.fnh-ball svg {
    filter: drop-shadow(0 0 8px rgba(0,168,89,0.6));
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}
.share-btn-post {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #0d47a1;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}
.share-btn-post:hover {
  background: #ed04f5;
}
.single-post {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}
.single-post h1 {
  font-size: 32px;
  margin-bottom: 20px;
}
.post-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}
.post-content {
  font-size: 18px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #0d47a1;
  text-decoration: none;
  font-weight: 600;
}
.loading {
  text-align: center;
  padding: 60px;
  font-size: 20px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  font-size: 14px;
  color: #2a09e7;
}
.views {
  font-weight: 500;
}
.news-card-link {
  text-decoration: none;  /* removes underline */
  color: inherit;         /* keeps your normal text color */
  display: block;
}
.news-card-link:hover h3 {
  color: #007bff; /* Title turns blue on hover so people know it's clickable */
}
.news-card-link:hover img {
  opacity: 0.95; /* Image dims slightly on hover/tap */
}
#latest-news { 
  scroll-margin-top: 120px; /* = height of your glass header + tabs. Use 100-140px */
}
.news-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.4s ease forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Target the ID #latest-news for Dark Mode */
body.dark-mode #latest-news {
  color: #ffffff !important; /* Pure white */
  border-left: 4px solid #ffffff !important; /* White accent bar */
}
body { font-family: Arial, sans-serif; color: #222; background: #fff; margin: 0; }
nav { background: #111; padding: 12px 20px; }
nav a { color: #fff; text-decoration: none; margin-right: 15px; }
.container { max-width: 800px; margin: 40px auto; padding: 0 20px; line-height: 1.7; }
h1, h2, h3 { margin-top: 20px; }