/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --primary: #154c79;      /* Tech Blue */
    --primary-dark: #0f3555;
    --accent: #d32f2f;       /* Red for important tags/buttons */
    --bg-body: #f4f6f8;
    --text-main: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --font-head: 'Mukta', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--bg-body); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* --- 1. TOP BAR (Breaking News Ticker) --- */
.top-bar {
    background: #111;
    color: #fff;
    font-size: 0.85rem;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden; /* Hides the scrolling text when it goes out */
    position: relative;
    z-index: 1020;
}

.news-ticker-container {
    display: flex;
    align-items: center;
    width: 100%;
    white-space: nowrap;
}

.ticker-title {
    background: var(--accent);
    color: white;
    padding: 0 15px;
    height: 40px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-family: var(--font-head);
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.ticker-text {
    display: inline-block;
    padding-left: 100%; /* Start from far right */
    animation: marquee 20s linear infinite;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.ticker-text span { margin-right: 50px; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- 2. HEADER (Logo & Ad) --- */
header { background: var(--white); padding: 20px 0; border-bottom: 1px solid #eee; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.logo span { color: var(--accent); }

.ad-banner { 
    width: 60%; height: 80px; background: #e9ecef; border: 1px dashed #ccc;
    display: flex; justify-content: center; align-items: center; color: #999; font-size: 0.8rem; 
}

/* --- 3. NAVIGATION BAR (Sticky) --- */
.navbar {
    background: var(--primary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0; /* Sticks to top of viewport */
    z-index: 1000;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* Menu Links */
.nav-links { display: flex; }
.nav-links li a {
    display: block; padding: 15px 20px; color: white; font-weight: 500; 
    font-family: var(--font-head); font-size: 1.05rem; border-right: 1px solid rgba(255,255,255,0.1);
}
.nav-links li a:hover, .nav-links li a.active { background: var(--accent); }

.mobile-header { display: none; } 

/* --- 4. CONTENT STYLES --- */
.hero-section { padding: 30px 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.hero-main { position: relative; height: 400px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.hero-main img { height: 100%; width: 100%; transition: transform 0.4s; }
.hero-main:hover img { transform: scale(1.03); }
.hero-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px; color: white;
}
.tag { background: var(--accent); color: white; padding: 3px 10px; font-size: 0.75rem; text-transform: uppercase; font-weight: bold; border-radius: 3px; display: inline-block; margin-bottom: 8px; }

.hero-sub { display: flex; flex-direction: column; gap: 20px; }
.sub-card { position: relative; height: 190px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.sub-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.7); padding: 15px; color: white; }

.page-layout { display: grid; grid-template-columns: 2.5fr 1fr; gap: 30px; margin-bottom: 60px; }
.section-title { 
    border-bottom: 3px solid #e0e0e0; margin-bottom: 25px; 
    font-family: var(--font-head); font-size: 1.6rem; color: var(--primary); 
    position: relative;
}
.section-title span { 
    background: var(--primary); color: white; padding: 5px 15px; 
    position: absolute; bottom: -3px; left: 0;
}

.news-card { 
    display: flex; gap: 20px; background: white; padding: 15px; margin-bottom: 20px; 
    border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.news-img { width: 240px; height: 150px; flex-shrink: 0; border-radius: 5px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; }
.news-info h3 { font-size: 1.3rem; font-family: var(--font-head); margin-bottom: 8px; color: #222; line-height: 1.3; }
.news-info p { color: #555; font-size: 0.95rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: 0.8rem; color: #999; }

.widget { background: white; padding: 25px; margin-bottom: 30px; border-radius: 8px; border: 1px solid #eee; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.widget h4 { font-size: 1.2rem; border-left: 4px solid var(--accent); padding-left: 12px; margin-bottom: 18px; color: var(--primary); font-family: var(--font-head); }
.widget-links li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; }

.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.file-card { 
    background: white; border-top: 5px solid var(--primary); 
    padding: 30px 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; transition: 0.3s;
}
.file-icon { font-size: 3.5rem; color: var(--accent); margin-bottom: 15px; }
.btn-download { 
    display: inline-block; background: var(--primary); color: white; 
    padding: 10px 25px; border-radius: 50px; margin-top: 15px; font-size: 0.9rem; font-weight: bold;
}

footer { background: #111; color: #aaa; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-bottom: 40px; }
.copyright { background: #000; padding: 20px; text-align: center; font-size: 0.9rem; color: #777; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    /* Top Bar: NO Sticky on mobile so it scrolls away */
    .top-bar { position: relative; } 
    
    .header-flex { display: none; }
    
    /* Navbar: Sticky on Mobile */
    .navbar { top: 0; padding: 0; height: 60px; display: flex; align-items: center; }
    
    .nav-container { width: 92%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

    .mobile-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .mobile-logo { font-size: 1.8rem; font-weight: 800; color: white; font-family: var(--font-head); }
    .mobile-logo span { color: var(--accent); }
    .menu-btn { color: white; font-size: 1.6rem; cursor: pointer; padding: 5px; }

    /* MENU ANIMATION (Smooth Slide) */
    .nav-links { 
        flex-direction: column; width: 100%; background: white; 
        position: absolute; top: 60px; left: 0; 
        box-shadow: 0 15px 20px rgba(0,0,0,0.1); 
        
        /* The Magic Slide Logic */
        max-height: