/*
Theme Name: Government Result Pro
Theme URI: https://governmentresult.online
Author: Government Result
Description: Modern mobile-first Sarkari Result theme
Version: 3.0
Text Domain: gr-pro
*/

/* === VARIABLES === */
:root {
  --red: #d32f2f;
  --red-dark: #b71c1c;
  --navy: #1a237e;
  --orange: #e65100;
  --green: #2e7d32;
  --blue: #1565c0;
  --purple: #6a1b9a;
  --teal: #00695c;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #212121;
  --muted: #757575;
  --border: #e0e0e0;
  --radius: 6px;
  --shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* === TICKER === */
#ticker-bar { background: #c62828; color: #fff; display: flex; align-items: center; overflow: hidden; height: 34px; }
#ticker-bar .ticker-label { background: #7f0000; padding: 0 14px; font-weight: 700; font-size: 12px; letter-spacing: 1px; white-space: nowrap; height: 100%; display: flex; align-items: center; flex-shrink: 0; }
#ticker-bar .ticker-wrap { overflow: hidden; flex: 1; }
#ticker-bar .ticker-items { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; }
#ticker-bar .ticker-items a { font-size: 12px; padding: 0 30px; color: #fff; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === HEADER === */
#site-header { background: var(--navy); padding: 8px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
#site-header .container { display: flex; align-items: center; gap: 12px; }
.logo-area { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-area img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); }
.logo-text { color: #fff; }
.logo-text .site-name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.logo-text .site-tagline { font-size: 10px; color: rgba(255,255,255,0.7); }

/* Header search */
.header-search { margin-left: auto; display: flex; align-items: center; }
.header-search form { display: flex; border-radius: var(--radius); overflow: hidden; }
.header-search input { padding: 6px 12px; border: none; font-size: 13px; width: 180px; background: rgba(255,255,255,0.15); color: #fff; outline: none; }
.header-search input::placeholder { color: rgba(255,255,255,0.6); }
.header-search button { background: var(--red); color: #fff; border: none; padding: 6px 12px; cursor: pointer; font-size: 14px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* === NAV === */
#main-nav { background: var(--red); }
#main-nav .container { display: flex; flex-wrap: wrap; }
#main-nav a { display: block; padding: 10px 14px; color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; transition: background .2s; }
#main-nav a:hover, #main-nav a.current { background: rgba(0,0,0,0.2); }

/* === QUICK LINKS === */
#quick-links { background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0; overflow-x: auto; }
#quick-links .container { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
#quick-links a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; color: #fff; }
.ql-jobs { background: #e65100; }
.ql-results { background: #2e7d32; }
.ql-admit { background: #1565c0; }
.ql-answer { background: #6a1b9a; }
.ql-syllabus { background: #00695c; }
.ql-admission { background: #d32f2f; }
.ql-scheme { background: #f57f17; }
.ql-important { background: #37474f; }

/* === MAIN GRID === */
#main-wrap { padding: 14px 0 20px; }
#main-wrap .container { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
#content-area { min-width: 0; }
#sidebar { min-width: 0; }

/* === SECTION CARDS === */
.sec-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.sec-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: #fff; }
.sec-head h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; flex: 1; margin: 0; }
.sec-icon { font-size: 16px; }
.sec-more { font-size: 11px; background: rgba(0,0,0,0.2); padding: 3px 8px; border-radius: 3px; color: #fff; white-space: nowrap; }
.sec-more:hover { background: rgba(0,0,0,0.35); }

/* Section colors */
.sec-jobs .sec-head { background: #e65100; }
.sec-results .sec-head { background: #2e7d32; }
.sec-admit .sec-head { background: #1565c0; }
.sec-answer .sec-head { background: #6a1b9a; }
.sec-syllabus .sec-head { background: #00695c; }
.sec-admission .sec-head { background: #c62828; }
.sec-scheme .sec-head { background: #f57f17; }
.sec-important .sec-head { background: #37474f; }

/* Section list */
.sec-list { padding: 4px 0; }
.sec-list li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--border); gap: 8px; transition: background .15s; }
.sec-list li:last-child a { border-bottom: none; }
.sec-list li a:hover { background: #fafafa; }
.sec-title { font-size: 13px; color: var(--text); flex: 1; line-height: 1.4; }
.sec-title.no-post { color: var(--muted); font-style: italic; }
.sec-date { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* Two-column grid for sections */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === SINGLE POST === */
.post-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.post-wrap h1 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
.post-meta-bar { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.post-content { line-height: 1.8; }
.post-content h2, .post-content h3 { margin: 16px 0 8px; color: var(--navy); }
.post-content p { margin-bottom: 12px; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
.post-content table th, .post-content table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.post-content table th { background: var(--navy); color: #fff; }
.post-content table tr:nth-child(even) { background: #f5f5f5; }
.post-content a { color: var(--blue); }
.post-content a:hover { text-decoration: underline; }

/* Apply button */
.apply-btn { display: inline-block; background: var(--green); color: #fff; padding: 10px 24px; border-radius: var(--radius); font-weight: 700; font-size: 14px; margin: 8px 4px; }
.apply-btn:hover { background: #1b5e20; }

/* === SIDEBAR === */
.widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.widget-title { background: var(--navy); color: #fff; padding: 10px 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.widget-body { padding: 12px 14px; }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--red); }

/* Ad placeholder */
.ad-box { background: #f9f9f9; border: 1px dashed #ccc; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; text-align: center; margin-bottom: 16px; }
.ad-box.ad-728 { height: 90px; }
.ad-box.ad-300 { height: 250px; }

/* === FOOTER === */
#site-footer { background: var(--navy); color: rgba(255,255,255,0.85); padding: 30px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 24px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 12px; color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: #fff; }
.footer-col p { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer-bottom { background: rgba(0,0,0,0.3); text-align: center; padding: 12px; font-size: 12px; color: rgba(255,255,255,0.6); }

/* === SEARCH RESULTS === */
.search-result { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.search-result h2 a { font-size: 16px; color: var(--navy); }
.search-result p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* === MOBILE === */
@media (max-width: 768px) {
  #main-wrap .container { grid-template-columns: 1fr; }
  #sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .sec-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .hamburger { display: flex; }
  #main-nav { display: none; }
  #main-nav.open { display: block; }
  #main-nav a { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .logo-text .site-name { font-size: 14px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
