/* --- 1. SHARED VARIABLES & RESET --- */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border: #e2e8f0;
    --radius-md: 16px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);
    
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }



body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- UTILITIES --- */
.animate-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

 /* --- TOP BAR --- */
        .top-announcement-bar {
            background: linear-gradient(90deg, #000000, #000000);
            color: white; padding: 8px; font-size: 0.85rem;
            display: flex; justify-content: center; align-items: center; gap: 15px;
            z-index: 1001; position: relative;
        }
        .top-announcement-btn {
            background: rgba(255,255,255,0.15); color: #fff; padding: 2px 10px;
            border-radius: 4px; text-decoration: none; font-size: 0.75rem; font-weight: 600;
            transition: 0.3s;
        }
        .top-announcement-btn:hover { background: #fff; color: var(--text-main); }

/* --- NAVBAR --- */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky; top: 0; z-index: 1000;
    padding: 1rem 0;
}
.nav-container {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { 
    font-size: 1.5rem; font-weight: 800; color: var(--text-main); 
    text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px;
}
.logo i { color: white; background: var(--primary); padding: 8px; border-radius: 8px; font-size: 1rem; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
    position: relative; transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.hamburger { display: none; cursor: pointer; font-size: 1.3rem; color: var(--text-main); }

/* --- HERO & SEARCH --- */
.hero {
    background: radial-gradient(circle at top, rgba(244, 63, 94, 0.05) 0%, transparent 40%);
    padding: 4rem 1.5rem 1rem; text-align: center;
}
.hero h1 {
    font-size: 3rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }

.search-wrapper { position: relative; max-width: 500px; margin: 0 auto 3rem; }
.search-wrapper input {
    width: 100%; padding: 16px 50px 16px 25px; border-radius: 50px; border: 1px solid var(--border);
    font-size: 1rem; box-shadow: var(--shadow-sm); outline: none; transition: 0.3s; background: white;
}
.search-wrapper input:focus { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.search-icon { position: absolute; right: 25px; top: 50%; transform: translateY(-50%); color: var(--text-light); }

/* --- BLOG GRID --- */
main { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem 4rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

.blog-card {
    background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border);
    overflow: hidden; display: flex; flex-direction: column; transition: 0.3s;
    animation: fadeInUp 0.5s ease backwards;
}
.blog-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }

/* 16:9 Aspect Ratio Container */
.img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}
.blog-img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.blog-card:hover .blog-img { transform: scale(1.05); }

.blog-category {
    position: absolute; top: 15px; left: 15px;
    background: rgba(255, 255, 255, 0.95); color: var(--text-main);
    padding: 5px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

.blog-date { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 6px; }
.blog-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.8rem; line-height: 1.4; }
.blog-excerpt { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; flex: 1; }

.read-more-btn {
    text-decoration: none; color: var(--primary); font-weight: 700; font-size: 0.95rem;
    display: flex; align-items: center; gap: 8px; transition: 0.2s; align-self: flex-start;
}
.read-more-btn:hover { gap: 12px; color: var(--primary-dark); }

/* --- PAGINATION --- */
.pagination-container {
    display: flex; justify-content: center; gap: 10px; margin-top: 4rem; flex-wrap: wrap;
}
.page-btn {
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--border); background: white;
    color: var(--text-muted); font-weight: 600; cursor: pointer; transition: 0.2s;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: #eff6ff; }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- FOOTER --- */
footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 5rem 1.5rem 2rem; margin-top: auto; }
.footer-container {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 4rem;
}
.footer-col h4 { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; margin-top: 1rem; max-width: 300px; color: #94a3b8; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: var(--footer-text); transition: 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 36px; height: 36px; background: #1e293b; color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; transition: 0.3s; }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none; position: fixed; top: 75px; left: 0; right: 0; background: white;
        flex-direction: column; padding: 2rem; border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .blog-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 1rem auto; }
    .footer-logo { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; }
    .social-links { justify-content: center; }
}