/*
Theme Name: JPSC Portal Theme
Author: Your Name
Description: Elite custom theme for JPSC Civil Services preparation.
Version: 2.0
*/

/* --- Google Fonts Import for Clean Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1e3a8a;
    --primary-hover: #1d4ed8;
    --accent: #2563eb;
    --dark: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* --- Top Announcement Bar --- */
.top-bar {
    background-color: var(--dark);
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 24px;
}

.top-bar-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s ease;
}

.top-links a:hover {
    color: #ffffff;
}

/* --- Professional Header & Navigation --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.site-logo a {
    text-decoration: none;
}

.site-logo h1 {
    font-size: 26px;
    color: var(--primary);
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-logo p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-navigation li {
    margin-left: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--accent);
}

.main-navigation a.nav-highlight {
    background-color: var(--accent);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.main-navigation a.nav-highlight:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* --- Hero Banner Section --- */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 70px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 850px;
    margin: 0 auto;
}

.hero-section h2 {
    font-size: 38px;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-section p {
    font-size: 17px;
    color: #cbd5e1;
    margin-bottom: 32px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* --- Main Content Layout Grid --- */
.portal-container {
    max-width: 1280px;
    margin: 48px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2.4fr 1fr;
    gap: 36px;
}

.section-title h3 {
    font-size: 20px;
    color: var(--dark);
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 24px;
}

/* Elite Content Cards */
.portal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.portal-card h4 a {
    color: var(--primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.portal-card h4 a:hover {
    color: var(--accent);
}

.meta-info {
    font-size: 13px;
    color: var(--text-muted);
    margin: 10px 0 14px 0;
    display: flex;
    gap: 16px;
    font-weight: 500;
}

.card-excerpt {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    text-decoration: underline;
}

/* --- Professional Sidebar --- */
.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 16px;
    color: var(--dark);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 8px;
}

.sidebar-widget li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-widget li a:hover {
    background-color: var(--bg-light);
    color: var(--accent);
    transform: translateX(4px);
}

.highlight-widget {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
}

.highlight-widget h3 {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.highlight-widget p {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sidebar-btn {
    display: block;
    background-color: #ffffff;
    color: var(--primary);
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-btn:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark);
    color: #94a3b8;
    text-align: center;
    padding: 36px 24px;
    margin-top: 60px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive Mobile Layout */
@media (max-width: 900px) {
    .portal-container {
        grid-template-columns: 1fr;
    }
    .hero-section h2 {
        font-size: 28px;
    }
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .main-navigation li {
        margin: 0 10px;
    }
}