/* ==========================================================================
   Grow Wisdom - Sarkari Jobs Portal Stylesheet
   ========================================================================== */

:root {
    --primary: #0b5cab;
    --primary-dark: #08407a;
    --accent: #b8280d;
    --green: #1a6b3c;
    --bg: #f4f6f9;
    --card-bg: #ffffff;
    --border: #e1e5ea;
    --text: #1f2937;
    --text-muted: #6b7280;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Noto Sans Devanagari', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

img { max-width: 100%; }

/* Topbar */
.topbar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 13px;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar-links a { color: #fff; margin-left: 16px; opacity: 0.9; }
.topbar-links a:hover { opacity: 1; }

/* Header */
.site-header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 16px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-icon {
    background: linear-gradient(135deg, var(--primary), var(--green));
    color: #fff;
    font-weight: 700;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 22px; font-weight: 700; color: var(--text); }
.brand-name .accent { color: var(--accent); }
.brand-tagline { font-size: 12px; color: var(--text-muted); }

.search-form {
    display: flex;
    flex: 1;
    max-width: 380px;
    min-width: 220px;
}
.search-form input {
    flex: 1;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 15px;
}
.search-form button:hover { background: var(--primary-dark); }

/* Nav */
.main-nav {
    background: var(--primary);
}
.nav-inner {
    display: flex;
    flex-wrap: wrap;
}
.nav-inner a {
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.nav-inner a:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

/* Marquee */
.marquee-wrap {
    background: #fff8e1;
    border-bottom: 1px solid #f0d98c;
    padding: 8px 0;
    overflow: hidden;
}
.marquee-wrap .container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.marquee-label {
    font-weight: 700;
    color: var(--accent);
    font-size: 13px;
    flex-shrink: 0;
}
.marquee {
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
}
.marquee-track {
    display: inline-flex;
    gap: 40px;
    animation: scroll-left 45s linear infinite;
}
.marquee-track a {
    color: #7a4a00;
    font-size: 13px;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Main content */
.main-content {
    padding: 24px 16px 48px;
    min-height: 60vh;
}

/* Hero */
.hero-banner {
    background: linear-gradient(135deg, var(--primary), var(--green));
    color: #fff;
    padding: 32px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    text-align: center;
}
.hero-banner h1 { margin: 0 0 8px; font-size: 26px; }
.hero-banner p { margin: 0; opacity: 0.95; }

/* Featured grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.featured-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    border-top: 4px solid var(--primary);
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.15s ease;
}
.featured-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
}
.featured-card h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.featured-card p { margin: 0; color: var(--text-muted); font-size: 13px; }
.badge {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}
.date-tag { font-size: 12px; color: var(--text-muted); }

/* Board columns (home page 3-6 column listing) */
.board-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.board-col {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.board-col-head {
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.board-col-head a { color: #fff; font-size: 12px; font-weight: 400; opacity: 0.9; }
.board-col-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex: 1;
}
.board-col-list li {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13.5px;
}
.board-col-list li:last-child { border-bottom: none; }
.board-col-list a { color: var(--text); }
.li-date { color: var(--text-muted); font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.board-col-list li.empty, .list-table td.empty { color: var(--text-muted); text-align: center; padding: 20px; }

/* Page heading */
.page-heading {
    background: var(--card-bg);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.page-heading h1 { margin: 0 0 4px; font-size: 22px; }
.page-heading p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Tables */
.list-table-wrap {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}
.list-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}
.list-table th, .list-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.list-table th {
    background: #f0f3f7;
    font-weight: 600;
    color: var(--text);
}
.list-table tr:hover td { background: #fafbfc; }

/* Pagination */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pagination a {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
}
.pagination a.active, .pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--primary); }

/* Post detail layout */
.post-layout {
    display: grid;
    grid-template-columns: 2.4fr 1fr;
    gap: 24px;
    align-items: start;
}
.post-detail {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.post-detail h1 {
    font-size: 24px;
    margin: 12px 0 8px;
    line-height: 1.35;
}
.post-detail h2 {
    font-size: 18px;
    margin: 24px 0 10px;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 6px;
}
.post-meta { color: var(--text-muted); font-size: 13.5px; margin: 0 0 12px; }
.post-lead { font-size: 15px; margin: 0 0 16px; }

.key-info-table table, .simple-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.key-info-table th, .key-info-table td,
.simple-table th, .simple-table td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
}
.key-info-table th, .simple-table th {
    background: #f0f3f7;
    width: 220px;
    font-weight: 600;
}
.simple-table thead th { width: auto; }

.bullet-list { padding-left: 20px; margin: 8px 0; }
.bullet-list li { margin-bottom: 6px; }

.important-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.link-btn {
    background: var(--green);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}
.link-btn:hover { background: #124f2b; text-decoration: none; }

.disclaimer-box {
    margin-top: 24px;
    background: #fff4e5;
    border: 1px solid #f5c27a;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #7a4a00;
}

.post-sidebar .sidebar-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}
.sidebar-box h3 { margin: 0 0 12px; font-size: 15px; }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.sidebar-box li:last-child { border-bottom: none; }

/* Static pages */
.static-page {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    max-width: 800px;
    margin: 0 auto;
}
.static-page h1 { margin-top: 0; }
.static-page h2 { color: var(--primary-dark); font-size: 18px; margin-top: 24px; }

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
    margin-top: 16px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form textarea {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
}
.contact-form button:hover { background: var(--primary-dark); }
.success-box {
    background: #e6f7ec;
    border: 1px solid #8fd6ab;
    color: #12603a;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.not-found {
    text-align: center;
    padding: 60px 20px;
}
.not-found h1 { font-size: 64px; margin: 0; color: var(--primary); }

/* Footer */
.site-footer {
    background: #14213d;
    color: #c9d3e0;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    padding: 40px 16px;
}
.footer-brand { margin-bottom: 12px; }
.footer-brand .brand-name { color: #fff; }
.footer-col h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer-col p { font-size: 13.5px; line-height: 1.7; margin: 0; }
.footer-col p.small { font-size: 12.5px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #c9d3e0; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    text-align: center;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .header-inner { flex-direction: column; align-items: stretch; }
    .search-form { max-width: none; }
    .nav-inner { overflow-x: auto; flex-wrap: nowrap; }
    .key-info-table th, .simple-table th { width: auto; }
}
