/* MPPSC.com - Official Website Styles 2025 */
/* Madhya Pradesh Public Service Commission */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1b9cd8;
    --dark-blue: #0e5a85;
    --sidebar-yellow: #f9e79f;
    --sidebar-green: #7d9b35;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --border-color: #ddd;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, var(--primary-blue) 0%, var(--primary-blue) 80px, var(--white) 80px);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 190px;
    background: var(--sidebar-yellow);
    border: 2px solid var(--sidebar-green);
    margin: 10px 0 10px 10px;
    flex-shrink: 0;
    height: fit-content;
    position: sticky;
    top: 10px;
}

.sidebar-logo {
    background: var(--sidebar-yellow);
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid var(--sidebar-green);
}

.sidebar-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.sidebar-logo h1 {
    color: var(--sidebar-green);
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar nav {
    background: var(--sidebar-yellow);
}

.sidebar nav a {
    display: block;
    padding: 10px 15px;
    background: var(--sidebar-green);
    color: var(--white);
    text-decoration: none;
    border-bottom: 2px solid var(--sidebar-yellow);
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s ease;
}

.sidebar nav a:hover {
    background: #6a8329;
    padding-left: 20px;
}

.sidebar nav a.download-link {
    background: #d35400;
}

.sidebar nav a.download-link:hover {
    background: #ba4a00;
}

/* Main Content Area */
.main-content {
    flex: 1;
    background: var(--white);
    margin: 10px;
    padding: 0;
    box-shadow: 0 2px 10px var(--shadow);
}

/* Header Banner */
.header-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.header-banner::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    width: 150px;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23ff9933" d="M0 0h100v33.33H0z"/><path fill="%23fff" d="M0 33.33h100v33.34H0z"/><path fill="%23138808" d="M0 66.67h100V100H0z"/><circle cx="50" cy="50" r="10" fill="%23000080"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.3;
}

.header-banner .map-icon {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    opacity: 0.4;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-banner h2 {
    font-size: 36px;
    color: #1565c0;
    margin-bottom: 5px;
    font-weight: 300;
}

.header-banner h2.hindi {
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
    color: #0d47a1;
}

.header-banner h1 {
    font-size: 64px;
    color: var(--dark-blue);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.building-image {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    display: block;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 4px 15px var(--shadow);
}

/* Content Section */
.content-section {
    padding: 30px;
}

.content-section h3 {
    color: var(--dark-blue);
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 10px;
}

/* News & Updates */
.news-section {
    background: #fff9e6;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #ff6b35;
    border-radius: 4px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 5px var(--shadow);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px var(--shadow);
}

.news-badge {
    background: #e74c3c;
    color: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.news-item a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.news-item a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.info-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ffd700;
}

/* Important Links */
.important-links {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.important-links h4 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.link-card {
    background: var(--white);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateX(5px);
    border-left-color: #e74c3c;
}

.link-card a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.link-card a::before {
    content: '📄';
    margin-right: 10px;
    font-size: 20px;
}

.link-card.download a::before {
    content: '⬇️';
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
    font-size: 14px;
}

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

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        margin: 10px;
    }
    
    .header-banner h1 {
        font-size: 36px;
    }
    
    .header-banner h2 {
        font-size: 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 30px;
    background: #f5f5f5;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 5px;
    color: var(--text-light);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.highlight-box h3 {
    color: var(--white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.highlight-box a {
    color: #ffd700;
    font-weight: bold;
    text-decoration: underline;
}

.highlight-box a:hover {
    color: #ffed4e;
}

/* Stats Box */
.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Article Content */
.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content h2 {
    color: var(--dark-blue);
    font-size: 28px;
    margin: 30px 0 15px;
    border-left: 5px solid var(--primary-blue);
    padding-left: 15px;
}

.article-content h3 {
    color: var(--dark-blue);
    font-size: 22px;
    margin: 25px 0 12px;
}

.article-content p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-content ul {
    margin: 15px 0 15px 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: var(--dark-blue);
    font-weight: 600;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 10px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow);
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}
