/* style.css - Modern News Portal Theme */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-color: #003366;
    /* Deep Govt Blue */
    --secondary-color: #0056b3;
    /* Interaction Blue */
    --accent-color: #d32f2f;
    /* Alert Red */
    --highlight-color: #ffc107;
    /* Warning/Notice Yellow */
    --text-dark: #212529;
    --text-mid: #495057;
    --text-light: #6c757d;
    --bg-body: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Mukta', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
}

/* --- Top Utility Bar --- */
.top-bar {
    background-color: #f1f3f5;
    border-bottom: 1px solid var(--border-color);
    padding: 5px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

/* --- Main Header --- */
header {
    background: var(--bg-white);
    padding: 10px 0;
    border-bottom: 3px solid var(--primary-color);
}

.header-inner {
    display: flex;
    align-items: center;
    /* justify-content: space-between; -- Removed to Left Align */
    gap: 30px;
}

.logo {
    display: inline-block;
    padding: 5px 0;
}

.logo img {
    height: 80px;
    /* Kept large as requested */
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* Navigation */
.main-nav {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    /* Scroll on mobile */
}

.nav-list li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- News Ticker --- */
.news-ticker {
    background: var(--text-dark);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 40px;
}

.ticker-label {
    background: var(--accent-color);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    flex-shrink: 0;
    z-index: 2;
}

.ticker-content {
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    padding-left: 20px;
    font-size: 0.95rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Layout --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
}

.portal-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    /* 70% - 30% split */
    gap: 25px;
    margin-top: 25px;
}

/* --- Section Styling --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* --- Job Cards (News Style) --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.job-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: var(--secondary-color);
}

.job-card-header {
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    justify-content: space-between;
}

.job-card-body {
    padding: 15px;
    flex: 1;
}

.job-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
}

.job-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.job-card h3 a:hover {
    color: var(--secondary-color);
}

.job-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.job-excerpt {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-details {
    display: block;
    text-align: center;
    background: var(--bg-body);
    color: var(--primary-color);
    padding: 10px;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid var(--border-color);
    transition: background 0.3s;
}

.btn-details:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Ad Slots (Clean Integration) --- */
.ad-slot-container {
    margin: 20px 0;
    text-align: center;
    background: transparent;
    overflow: hidden;
    /* Prevent overflow if image is too big */
}

.ad-label {
    font-size: 10px;
    color: #aeaeae;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

/* Default empty state is hidden or subtle */
.ad-placeholder {
    display: none;
    /* Hide if no ad loaded */
}

.ad-placeholder.active {
    display: block;
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #999;
    font-size: 0.8rem;
    padding: 20px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Sidebar --- */
.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    border-radius: 4px;
}

.widget-title {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-body {
    padding: 15px;
}

.highlight-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    gap: 10px;
    transition: 0.3s;
}

.highlight-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.highlight-link i {
    color: var(--accent-color);
}

.highlight-link:last-child {
    border-bottom: none;
}

.whatsapp-box {
    text-align: center;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    padding: 20px;
}

.whatsapp-btn {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    /* Darker footer */
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
    }
}

/* --- Accessibility & Performance Enhancements --- */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.skip-link:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: #fff;
    padding: 10px;
    z-index: 9999;
}

img {
    max-width: 100%;
    height: auto;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 0.75rem;
}

/* Improve LCP by ensuring text remains visible during font load */
body {
    font-display: swap;
}