/* --- 1. RESET & VARIABLES --- */
:root {
    --primary: #004aad;       
    --primary-dark: #002d6b;  
    --accent: #ffc107;        
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg-light); color: var(--text-main); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* --- 2. HEADER & NAV (Glassmorphism Effect) --- */
header { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm); 
    position: sticky; top: 0; z-index: 1000; 
    padding: 12px 0;
    transition: all 0.3s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 48px; width: auto; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.05); }
.logo-text h1 { font-size: 1.25rem; color: var(--primary); font-weight: 700; line-height: 1.1; }
.logo-text span { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-link { 
    font-weight: 600; font-size: 0.95rem; color: var(--text-muted); 
    position: relative; padding: 5px 0; transition: color 0.3s ease;
}
.nav-link::after { 
    content: ''; position: absolute; width: 0; height: 3px; 
    background: var(--accent); bottom: -4px; left: 0; transition: width 0.3s ease; border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.menu-toggle { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; border: none; background: transparent; }

/* --- 3. HERO SLIDER --- */
.hero-slider { position: relative; width: 100%; height: 600px; overflow: hidden; background: var(--text-main); }

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; z-index: 1; }

.slide img {
    width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0;
    transform: scale(1.05); transition: transform 6s ease-out;
}
.slide.active img { transform: scale(1); }

/* Modern Gradient Overlay */
.overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,45,107,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.slide-content {
    position: relative; z-index: 2; text-align: center; color: var(--white); padding: 0 20px;
    max-width: 800px; transform: translateY(40px); opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.slide.active .slide-content { transform: translateY(0); opacity: 1; }

.slide-content h2 { font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; text-shadow: 0 4px 15px rgba(0,0,0,0.3); line-height: 1.2; }
.slide-content p { font-size: 1.1rem; margin-bottom: 2rem; font-weight: 400; color: #e5e7eb; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.slider-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; 
    background: var(--accent); color: var(--text-main); font-weight: 700; 
    border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3); transition: all 0.3s ease;
}
.slider-btn:hover { background: #e0a800; transform: translateY(-3px); box-shadow: 0 15px 25px rgba(255, 193, 7, 0.4); }

.slider-nav { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.nav-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; }
.nav-dot:hover { background: rgba(255,255,255,0.8); }
.nav-dot.active { background: transparent; border-color: var(--accent); transform: scale(1.3); }

/* --- 4. CONTENT GRID --- */
.content-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.2rem; color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.section-header .divider { width: 80px; height: 5px; background: var(--accent); margin: 0 auto; border-radius: 5px; }
.section-header p { margin-top: 15px; color: var(--text-muted); font-size: 1.1rem; }

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

.card { 
    background: var(--white); border-radius: var(--radius); overflow: hidden; 
    box-shadow: var(--shadow-md); transition: all 0.4s ease; border: 1px solid #e5e7eb;
    display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-img-wrapper { position: relative; overflow: hidden; padding-top: 60%; /* Aspect Ratio 16:9 */ }
.card-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img-wrapper img { transform: scale(1.1); }

.badge { position: absolute; top: 15px; left: 15px; background: var(--primary); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; z-index: 2; }

.card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.card-meta i { color: var(--accent); }
.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: var(--text-main); }
.card-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }

.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; font-weight: 600; color: var(--primary); margin-top: auto; }
.read-more i { transition: transform 0.3s ease; }
.read-more:hover i { transform: translateX(5px); }

/* --- 5. PAGINATION --- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 50px; }
.page-link { 
    display: inline-flex; justify-content: center; align-items: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    background: var(--white); border: 1px solid #d1d5db; border-radius: 8px; 
    color: var(--text-main); font-weight: 600; transition: all 0.3s ease; 
}
.page-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-link.active { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: 0 4px 10px rgba(0,74,173,0.2); pointer-events: none; }
.page-link.disabled { color: #9ca3af; border-color: #e5e7eb; pointer-events: none; background: #f9fafb; }

/* --- 6. FOOTER --- */
footer { background: var(--primary-dark); color: var(--white); padding: 40px 20px; text-align: center; margin-top: auto; }
.footer-content h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--accent); }
.footer-content p { color: #cbd5e1; font-size: 0.9rem; margin-bottom: 20px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.social-links a:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px); }
.copyright { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #94a3b8; }

/* --- 7. RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        flex-direction: column; padding: 20px; gap: 15px;
        box-shadow: var(--shadow-md); display: none; border-top: 1px solid #eee;
    }
    .nav-menu.active { display: flex; animation: slideDown 0.3s ease; }
    .menu-toggle { display: block; }
    
    .hero-slider { height: 500px; }
    .slide-content h2 { font-size: 2.2rem; }
    .slide-content p { font-size: 0.95rem; }
    .section-header h2 { font-size: 1.8rem; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }