:root {
    --primary-dark: #1a1d2e;
    --secondary-dark: #2d3142;
    --accent-blue: #4a6fa5;
    --accent-gold: #d4af37;
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: #252839;
    --hover-bg: #353749;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding-top: 90px;
    overflow-x: hidden;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(0, 51, 102, 0.95);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 3px solid #C8A861;
    animation: fadeInDown 0.8s ease;
}

nav.scrolled {
    background: rgba(0, 51, 102, 0.98);
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 3px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-subtitle {
    font-size: 11px;
    color: #C8A861;
    letter-spacing: 2px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #C8A861;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #C8A861;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #C8A861;
}

.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}


.blog-hero {
    background: linear-gradient(rgba(26, 29, 46, 0.7), rgba(26, 29, 46, 0.8)), url('../assets/background5.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 4rem 2rem 4rem;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 7%;
    right: 30%;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(74, 111, 165, 0.3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 8s ease-in-out infinite reverse;
}

.blog-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 1400px) {
    .blog-hero-container {
        grid-template-columns: 1fr 450px;
        gap: 5rem;
    }
}

.blog-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.blog-hero-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 700px;
}

/* Inside NITA Card */
.inside-nita-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

.inside-nita-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.inside-nita-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-gold);
}

.inside-nita-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.inside-nita-text.italic {
    font-style: italic;
    color: #666;
    font-size: 1.05rem;
}

.join-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    padding: 0.85rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.join-btn:hover {
    background-color: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

/* Content Section */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 1000px;
}

/* Latest Section */
.latest-section {
    margin-top: 2rem;
}

.latest-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 5px solid var(--accent-gold);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ── 16:9 image wrapper ── */
.blog-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #e0e0e0;
    transition: transform 0.4s ease;
    display: block;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-card-category {
    background-color: var(--accent-blue);
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 1rem;
}

.blog-card-author {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.blog-card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
    color: #c49b2e;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Footer */
.foot {
    background: rgb(34, 34, 34);
    color: rgb(204, 204, 204);
    text-align: center;
    padding: 25px;
    font-size: 17px;
    min-height: 20px;
    margin-top: 4rem;
}


@media (max-width: 1200px) {
    .blog-hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .blog-hero-content h1 {
        font-size: 3rem;
    }
    
    .blog-hero-content p {
        max-width: 100%;
    }

    .inside-nita-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    .blog-hero-content h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 25px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(0, 51, 102, 0.98);
        padding: 35px;
        border-radius: 10px;
        transition: right 0.3s;
        backdrop-filter: blur(10px);
        border: 2px solid #C8A861;
    }

    .nav-links.active {
        right: 25px;
    }

    body {
        padding-top: 80px;
    }

    .blog-hero {
        padding: 4rem 1.5rem;
        min-height: auto;
        background-attachment: scroll;
    }

    .blog-hero-content h1 {
        font-size: 2.5rem;
    }

    .blog-hero-content p {
        font-size: 1.1rem;
    }

    .inside-nita-card {
        padding: 2rem;
    }

    .inside-nita-title {
        font-size: 1.6rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .latest-title {
        font-size: 1.6rem;
    }
}


/* ── Article page wrapper ── */
#article-page {
    min-height: 100vh;
    background-color: #f5f7fa;
}

/* ── Top bar with back button ── */
.article-topbar {
    background: rgba(0, 51, 102, 0.97);
    padding: 14px 50px;
    display: flex;
    align-items: center;
    position: fixed;    
    top: 90px;         
    left: 0;
    right: 0;
    z-index: 998;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #C8A861;
    color: #C8A861;
    padding: 9px 22px;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.back-btn:hover {
    background: #C8A861;
    color: #002244;
}

.back-arrow {
    font-size: 1.1rem;
    line-height: 1;
}

/* ── Article content wrapper ── */
.article-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 52px 24px 80px;
}

.article-inner {
    animation: articleFadeIn 0.35s ease both;
}

@keyframes articleFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Category tag ── */
.article-category-tag {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

/* ── Article title ── */
.article-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.25;
    margin-bottom: 22px;
    letter-spacing: -0.02em;
}

/* ── Author row ── */
.article-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e0e0e0;
}

.article-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.article-author-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.article-author-info strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.article-author-info span {
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Hero image ── */
.article-hero-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 44px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: block;
}

/* ── Article body typography ── */
.article-body {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #2d2d3a;
}

.article-body h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 44px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--accent-gold);
}

.article-body p {
    margin-bottom: 22px;
}

.article-body blockquote {
    margin: 36px 0;
    padding: 18px 28px;
    background: #fffbf2;
    border-left: 5px solid var(--accent-gold);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #4a4a5a;
    line-height: 1.75;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    
    .inside-nita-card {
        display: none;
    }

    .blog-hero {
        min-height: 100vh;
        background-attachment: scroll;
    }

    .blog-hero-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .blog-hero-content {
        text-align: center;
    }
}
    .article-topbar {
        padding: 12px 20px;
    }

    .article-wrapper {
        padding: 36px 18px 60px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    

    .article-body h2 {
        font-size: 1.25rem;
    }
