/*
Theme Name: TheSarkariPoint
Theme URI: https://thesarkaripoint.com
Author: TheSarkariPoint Team
Description: A professional news portal theme for government jobs, schemes, and internships.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: thesarkaripoint
*/

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1a2e4a;
    --primary-dark: #0f1e33;
    --accent: #e63946;
    --accent-light: #ff6b6b;
    --text: #222222;
    --text-light: #555555;
    --bg: #f5f7fa;
    --white: #ffffff;
    --border: #e0e6ed;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --font-main: 'Inter', 'Segoe UI', sans-serif;
    --font-heading: 'Merriweather', Georgia, serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; color: var(--primary); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 24px 0; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: #cdd9e8;
    font-size: 0.78rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--accent);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.top-bar-date { display: flex; align-items: center; gap: 6px; }
.top-bar-links a { color: #cdd9e8; margin-left: 14px; font-size: 0.78rem; }
.top-bar-links a:hover { color: var(--accent-light); }

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { height: 50px; width: auto; }
.site-logo .logo-text { display: flex; flex-direction: column; }
.site-logo .logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.site-logo .logo-tagline { font-size: 0.72rem; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }

/* Search */
.header-search { flex: 1; max-width: 400px; }
.search-form { display: flex; position: relative; }
.search-form input {
    width: 100%;
    padding: 9px 44px 9px 14px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.search-form button:hover { background: var(--primary); }
.search-form button svg { width: 16px; height: 16px; }

/* ===== NAVIGATION ===== */
.main-nav { background: var(--primary); }
.main-nav .container { position: relative; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu > li > a {
    display: block;
    padding: 12px 16px;
    color: #d6e4f7;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.3px;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
    background: var(--accent);
    color: var(--white);
}
/* Dropdown */
.nav-menu li { position: relative; }
.nav-menu li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 210px;
    border-top: 3px solid var(--accent);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 999;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu li .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.nav-menu li .sub-menu a:hover { color: var(--accent); background: #f9f9f9; }
/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 10px;
    font-size: 1.4rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-wrap { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-light); flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--text-light); }

/* ===== BREAKING NEWS TICKER ===== */
.breaking-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 12px 0;
    border-radius: 4px;
}
.breaking-label {
    background: var(--accent);
    color: var(--white);
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; padding: 0 12px; }
.ticker { display: flex; animation: ticker-scroll 40s linear infinite; white-space: nowrap; }
.ticker:hover { animation-play-state: paused; }
.ticker a { color: var(--text); font-size: 0.85rem; padding-right: 60px; }
.ticker a:hover { color: var(--accent); }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== HERO BANNER ===== */
.hero-section { margin-bottom: 6px; }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.hero-main { position: relative; overflow: hidden; border-radius: 8px; }
.hero-main img { width: 100%; height: 420px; object-fit: cover; }
.hero-main .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(10,20,40,0.92));
    padding: 24px;
}
.hero-main .overlay .cat-badge { margin-bottom: 8px; }
.hero-main .overlay h2 { color: var(--white); font-size: 1.5rem; line-height: 1.3; }
.hero-main .overlay h2 a { color: var(--white); }
.hero-main .overlay h2 a:hover { color: var(--accent-light); }
.hero-main .overlay .meta { color: rgba(255,255,255,0.7); font-size: 0.78rem; margin-top: 8px; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-item { display: flex; gap: 12px; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); }
.hero-side-item img { width: 100px; height: 80px; object-fit: cover; flex-shrink: 0; }
.hero-side-item .info { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.hero-side-item .info h3 { font-size: 0.88rem; line-height: 1.35; }
.hero-side-item .info h3 a:hover { color: var(--accent); }
.hero-side-item .meta { font-size: 0.75rem; color: var(--text-light); }

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
}
.view-all {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    border: 1px solid var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}
.view-all:hover { background: var(--accent); color: var(--white); }

/* ===== POST CARDS ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-grid-4 { grid-template-columns: repeat(4, 1fr); }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }

.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.post-card .thumb { overflow: hidden; }
.post-card .thumb img { width: 100%; height: 185px; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .card-body { padding: 14px; }
.post-card .card-body h3 { font-size: 0.95rem; line-height: 1.45; margin-bottom: 8px; }
.post-card .card-body h3 a:hover { color: var(--accent); }
.post-card .card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--text-light); }

/* Horizontal post card */
.post-card-h {
    display: flex;
    gap: 12px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    padding: 12px;
    transition: transform 0.2s;
}
.post-card-h:hover { transform: translateY(-2px); }
.post-card-h .thumb img { width: 90px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.post-card-h .info h3 { font-size: 0.88rem; line-height: 1.4; }
.post-card-h .info h3 a:hover { color: var(--accent); }
.post-card-h .info .meta { font-size: 0.74rem; color: var(--text-light); margin-top: 4px; }

/* ===== CATEGORY BADGE ===== */
.cat-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.cat-badge.jobs { background: #2196f3; }
.cat-badge.schemes { background: #4caf50; }
.cat-badge.results { background: #ff9800; }
.cat-badge.internship { background: #9c27b0; }
.cat-badge.admit { background: #00bcd4; }

/* ===== MAIN CONTENT LAYOUT ===== */
.content-area { padding: 16px 0; }
.content-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ===== SIDEBAR WIDGETS ===== */
.widget { background: var(--white); border-radius: 8px; box-shadow: var(--card-shadow); margin-bottom: 24px; overflow: hidden; }
.widget-title {
    background: var(--primary);
    color: var(--white);
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-heading);
}
.widget-body { padding: 14px; }
.widget-post-list { display: flex; flex-direction: column; gap: 12px; }
.widget-post-list li { display: flex; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.widget-post-list li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-post-list .w-thumb img { width: 70px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.widget-post-list .w-info h4 { font-size: 0.82rem; line-height: 1.4; }
.widget-post-list .w-info h4 a:hover { color: var(--accent); }
.widget-post-list .w-meta { font-size: 0.72rem; color: var(--text-light); margin-top: 3px; }
.widget-cats a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--text); }
.widget-cats a:hover { color: var(--accent); }
.widget-cats a:last-child { border-bottom: none; }
.widget-cats .count { background: var(--bg); border-radius: 10px; padding: 1px 8px; font-size: 0.75rem; color: var(--text-light); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
    background: var(--bg);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.78rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.tag-cloud a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ===== SINGLE POST ===== */
.single-post-header { margin-bottom: 20px; }
.single-post-header h1 { font-size: 2rem; line-height: 1.3; margin: 12px 0; }
.post-meta-bar { display: flex; align-items: center; gap: 16px; font-size: 0.82rem; color: var(--text-light); flex-wrap: wrap; margin-bottom: 16px; }
.post-meta-bar .author { display: flex; align-items: center; gap: 5px; }
.post-featured-img { border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.post-featured-img img { width: 100%; max-height: 480px; object-fit: cover; }
.post-content { font-size: 1rem; line-height: 1.8; color: var(--text); }
.post-content p { margin-bottom: 18px; }
.post-content h2, .post-content h3 { margin: 28px 0 12px; }
.post-content ul, .post-content ol { padding-left: 22px; margin-bottom: 18px; }
.post-content ul li, .post-content ol li { margin-bottom: 6px; }
.post-content blockquote {
    border-left: 4px solid var(--accent);
    background: #f0f4ff;
    margin: 24px 0;
    padding: 16px 20px;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.post-content table th { background: var(--primary); color: var(--white); padding: 10px 14px; text-align: left; font-size: 0.88rem; }
.post-content table td { border: 1px solid var(--border); padding: 9px 14px; font-size: 0.88rem; }
.post-content table tr:nth-child(even) td { background: #f9fbff; }
.post-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-tags span { font-weight: 600; font-size: 0.85rem; margin-right: 4px; }

/* Important info box */
.info-box {
    background: #e8f4fd;
    border: 1px solid #b3d7f0;
    border-left: 4px solid #2196f3;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 0.9rem;
}
.info-box.warning { background: #fff8e1; border-color: #ffe082; border-left-color: #ff9800; }
.info-box.important { background: #ffeaea; border-color: #ffb3b3; border-left-color: var(--accent); }
.info-box strong { display: block; margin-bottom: 6px; font-size: 0.95rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    transition: all 0.2s;
}
.pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .current { background: var(--accent); color: var(--white); border-color: var(--accent); }
.pagination .dots { background: none; border-color: transparent; }

/* ===== STATIC PAGES ===== */
.page-hero {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 0;
    text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.page-content { background: var(--white); border-radius: 8px; box-shadow: var(--card-shadow); padding: 36px; margin: 28px 0; line-height: 1.8; }
.page-content h2 { color: var(--primary); margin: 28px 0 12px; font-size: 1.4rem; }
.page-content h3 { color: var(--primary); margin: 22px 0 10px; font-size: 1.15rem; }
.page-content p { margin-bottom: 16px; color: var(--text); }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 16px; }
.page-content ul li, .page-content ol li { margin-bottom: 8px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.btn-submit {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: var(--primary); }
.contact-info-card { background: var(--primary); color: var(--white); border-radius: 8px; padding: 24px; }
.contact-info-card h3 { color: var(--white); margin-bottom: 16px; }
.contact-info-card p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 12px; }
.contact-info-card a { color: #9dcfff; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary-dark);
    color: #9bb5d4;
    padding: 48px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-widget h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-widget p { font-size: 0.88rem; line-height: 1.7; color: #8aa5c2; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #8aa5c2; font-size: 0.88rem; transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--accent-light); }
.footer-links a::before { content: '›'; color: var(--accent); font-size: 1.1rem; }
.footer-recent li { display: flex; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-recent li:last-child { border-bottom: none; }
.footer-recent img { width: 60px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.footer-recent a { font-size: 0.82rem; color: #8aa5c2; line-height: 1.4; }
.footer-recent a:hover { color: var(--accent-light); }
.footer-recent .f-date { font-size: 0.72rem; color: #5d7a9a; margin-top: 3px; display: block; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #5d7a9a;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: #5d7a9a; }
.footer-bottom-links a:hover { color: var(--accent-light); }

/* ===== UTILITY ===== */
.no-thumb-placeholder {
    width: 100%;
    height: 185px;
    background: linear-gradient(135deg, #e8edf4 0%, #d0dae8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8aa5c2;
    font-size: 2rem;
}
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ===== ALERT BOXES ===== */
.deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { flex-direction: row; overflow-x: auto; }
    .hero-side-item { min-width: 240px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .header-search { width: 100%; max-width: 100%; order: 3; }
    .nav-toggle { display: flex; }
    .nav-menu { display: none; flex-direction: column; width: 100%; gap: 0; }
    .nav-menu.active { display: flex; }
    .nav-menu > li > a { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-menu li .sub-menu { position: static; display: none; box-shadow: none; border-top: none; background: rgba(0,0,0,0.15); }
    .nav-menu li.open > .sub-menu { display: block; }
    .content-wrap { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .top-bar .container { flex-direction: column; align-items: flex-start; gap: 2px; }
    .single-post-header h1 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; }
    .post-grid-4 { grid-template-columns: 1fr; }
    .post-grid-2 { grid-template-columns: 1fr; }
    .site-logo .logo-title { font-size: 1.2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}