/* =============================================================
   SarkariResult Clone - Main Stylesheet
   Same look and feel as SarkariResult.com
   ============================================================= */

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

:root {
  --red: #cc0000;
  --dark-red: #990000;
  --blue: #0066cc;
  --green: #006600;
  --orange: #ff6600;
  --dark: #212121;
  --gray: #555;
  --light-gray: #f5f5f5;
  --border: #ddd;
  --white: #fff;
  --font: 'Noto Sans', 'Noto Sans Devanagari', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; color: var(--dark); background: #f0f0f0; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }
img { max-width: 100%; height: auto; }
table { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }

/* ─── Top Bar ─── */
.top-bar {
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  padding: 5px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px; }
.top-bar-left { flex: 1; min-width: 200px; text-align: center; }
@media (min-width: 768px) { .top-bar-left { text-align: left; } }
.top-bar-right { display: flex; justify-content: center; width: 100%; }
@media (min-width: 768px) { .top-bar-right { width: auto; } }
.top-bar-right a { color: var(--white); margin: 0 8px; font-size: 14px; }
.top-bar-right a:hover { color: #ffd700; text-decoration: none; }

/* ─── Header ─── */
.site-header { background: var(--white); border-bottom: 3px solid var(--red); padding: 10px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-logo-link { text-decoration: none; }
.site-logo { display: flex; align-items: baseline; gap: 1px; }
.logo-sr { font-size: 32px; font-weight: 900; color: var(--red); font-family: Arial, sans-serif; }
.logo-result { font-size: 32px; font-weight: 900; color: var(--dark); font-family: Arial, sans-serif; }
.logo-com { font-size: 18px; font-weight: 600; color: var(--gray); }
.logo-tagline { font-size: 12px; color: var(--gray); margin-top: 2px; }

.header-search { flex: 1; max-width: 500px; }
.search-form { display: flex; border: 2px solid var(--red); border-radius: 4px; overflow: hidden; }
.search-form input { flex: 1; padding: 10px 15px; border: none; outline: none; font-size: 14px; font-family: var(--font); }
.search-form button { background: var(--red); color: var(--white); border: none; padding: 10px 20px; cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 0.2s; }
.search-form button:hover { background: var(--dark-red); }

/* ─── Navigation ─── */
.main-nav { background: #222; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.main-nav .container { display: flex; align-items: center; overflow: hidden; }
.nav-menu { display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a { display: block; padding: 12px 14px; color: #eee; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background 0.2s, color 0.2s; }
.nav-menu a:hover, .nav-menu a.active { background: var(--red); color: var(--white); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 18px; padding: 12px 15px; cursor: pointer; white-space: nowrap; }

/* ─── News Ticker ─── */
.news-ticker { background: #003399; color: var(--white); padding: 8px 0; display: flex; align-items: center; gap: 15px; font-size: 13px; animation: slideIn 0.3s ease; }
.ticker-label { background: var(--red); padding: 2px 10px; font-weight: 700; white-space: nowrap; border-radius: 3px; animation: blink 1s infinite; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: 0.5 } }
@keyframes slideIn { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ticker-content { flex: 1; overflow: hidden; }
.ticker-close { background: none; border: none; color: var(--white); cursor: pointer; font-size: 16px; padding: 0 10px; }

/* ─── Notice Banner ─── */
.notice-banner { background: #fff3cd; border: 1px solid #ffc107; padding: 8px 15px; font-size: 13px; margin-bottom: 15px; border-radius: 4px; overflow: hidden; }

/* ─── Main Content ─── */
.main-content { padding: 15px 0 30px; }

/* ─── Home Grid ─── */
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; }
@media (max-width: 992px) { .home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .home-grid { grid-template-columns: 1fr; } }

/* ─── Category Section ─── */
.category-section { background: var(--white); border: 1px solid #000; overflow: hidden; }
.section-header { }
.section-title { background: #a91818; color: var(--white); padding: 10px; font-size: 16px; font-weight: bold; text-align: center; margin: 0; text-transform: uppercase; }
.section-title a { color: #fff; text-decoration: none; display:none; }

/* ─── Post Items ─── */
.posts-list { padding: 0; }
.posts-list ul { list-style: none; margin: 0; padding: 0; }
.posts-list ul li { padding: 8px 12px; border-bottom: 1px solid #ddd; font-size: 14px; position: relative; padding-left: 20px; line-height: 1.4; }
.posts-list ul li::before { content: "»"; position: absolute; left: 6px; top: 8px; color: #a91818; font-weight: bold; }
.posts-list ul li a { color: #0000ee; text-decoration: none; font-weight: normal; }
.posts-list ul li a:hover { color: #a91818; text-decoration: underline; }
.badge-new { color: red; font-size: 11px; font-weight: bold; margin-left: 5px; animation: blink 1s infinite; }
.date-badge { display: block; font-size: 11px; color: #555; margin-top: 2px; }

/* Section Footer */
.section-footer { background: #f9f9f9; text-align: center; padding: 8px; border-top: 1px solid #ddd; }
.view-all-btn { color: #0000ee; font-size: 14px; font-weight: bold; text-decoration: none; }
.view-all-btn:hover { color: #a91818; text-decoration: underline; }
.no-posts { padding: 20px; text-align: center; color: var(--gray); font-size: 13px; }

/* ─── Category Page ─── */
.page-heading { padding: 15px; background: var(--white); border-left: 4px solid var(--red); margin-bottom: 15px; border-radius: 2px; }
.page-heading h1 { font-size: 22px; color: var(--dark); margin-bottom: 5px; }

.category-posts-list { display: flex; flex-direction: column; gap: 15px; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 15px; border-left: 4px solid var(--red); transition: box-shadow 0.2s; }
.post-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.post-card-badges { margin-bottom: 5px; display: flex; gap: 5px; }
.post-card-title { font-size: 17px; margin-bottom: 8px; }
.post-card-title a { color: var(--dark); text-decoration: none; font-weight: 700; }
.post-card-title a:hover { color: var(--red); }
.post-card-desc { color: var(--gray); font-size: 14px; margin-bottom: 8px; }
.post-card-meta { display: flex; gap: 15px; font-size: 13px; color: var(--gray); margin-bottom: 10px; flex-wrap: wrap; }
.post-card-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.link-new { background: var(--red) !important; }
.read-more-btn { display: inline-block; background: var(--red); color: var(--white); padding: 7px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.read-more-btn:hover { background: var(--dark-red); text-decoration: none; color: var(--white); }
.text-red { color: var(--red) !important; }

/* ─── Post Detail Page ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 15px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.breadcrumb a {
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb a:hover {
  color: var(--red);
  text-decoration: underline;
}
.breadcrumb .bc-sep {
  color: #ccc;
  font-size: 10px;
}
.breadcrumb .bc-current {
  color: var(--dark);
  font-weight: 500;
}

.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 768px) { .post-layout { grid-template-columns: 1fr; } }

.post-detail { background: var(--white); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.post-header { background: #003399; color: var(--white); padding: 20px; }
.post-main-title { font-size: 20px; line-height: 1.4; margin-bottom: 10px; }
.post-header-meta { display: flex; gap: 15px; font-size: 12px; opacity: 0.85; flex-wrap: wrap; margin-bottom: 10px; }
.post-intro { background: rgba(255,255,255,0.15); padding: 10px; border-radius: 4px; font-size: 14px; line-height: 1.5; }

.info-table-wrap { border-bottom: 1px solid var(--border); padding: 0; }
.info-table-title { background: #f0f4ff; padding: 8px 15px; font-size: 14px; font-weight: 700; color: #003399; border-bottom: 1px solid var(--border); }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table td { padding: 8px 15px; border-bottom: 1px dashed #eee; vertical-align: middle; }
.td-label { font-weight: 600; width: 45%; background: #fafafa; color: #333; }
.td-value { color: var(--dark); }
.total-posts-badge { background: #e8f5e9; border: 1px solid #4caf50; padding: 8px 15px; font-size: 15px; margin: 10px 15px; border-radius: 4px; }
.info-content { padding: 10px 15px; font-size: 14px; }
.vacancy-content { padding: 10px 15px; font-size: 14px; }

/* Important Links Table */
.important-links-wrap .info-table-title { background: #fff3e0; color: #e65100; border-bottom-color: #ffcc02; }
.links-table .td-label { color: #333; }
.link-btn { display: inline-flex; align-items: center; gap: 5px; background: #0066cc; color: #fff; padding: 5px 14px; border-radius: 4px; font-size: 12px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.link-btn:hover { background: var(--red); text-decoration: none; color: #fff; }

.full-notification { padding: 15px; }
.full-notification h3 { font-size: 16px; margin-bottom: 10px; color: #003399; }
.notification-content { font-size: 14px; line-height: 1.7; }

/* Share Section */
.share-section { padding: 15px; border-top: 1px solid var(--border); background: #f9f9f9; }
.share-section h4 { font-size: 14px; margin-bottom: 10px; color: var(--gray); }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 4px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.twitter { background: #1da1f2; }
.share-btn:hover { opacity: 0.9; text-decoration: none; color: #fff; }

/* Post Sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 15px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.widget-title { background: #cc0000; color: #fff; padding: 8px 12px; font-size: 14px; font-weight: 700; }
.related-list { list-style: none; padding: 8px 0; }
.related-list li { padding: 6px 12px; border-bottom: 1px dashed #eee; }
.related-list a { font-size: 13px; color: var(--dark); font-weight: 600; text-decoration: none; }
.related-list a:hover { color: var(--red); }
.related-date { display: block; font-size: 11px; color: var(--red); margin-top: 2px; }
.cat-list { list-style: none; padding: 8px 0; }
.cat-list li { padding: 5px 12px; border-bottom: 1px dashed #eee; }
.cat-list a { font-size: 13px; color: var(--dark); text-decoration: none; }
.cat-list a:hover { color: var(--red); }

/* ─── Search ─── */
.search-prompt { margin: 30px 0; }
.search-form-large { display: flex; max-width: 600px; border: 2px solid var(--red); border-radius: 6px; overflow: hidden; }
.search-form-large input { flex: 1; padding: 12px 20px; border: none; font-size: 16px; font-family: var(--font); }
.search-form-large button { background: var(--red); color: #fff; border: none; padding: 12px 25px; cursor: pointer; font-size: 15px; font-weight: 600; }
.search-count { font-size: 14px; color: var(--gray); margin-bottom: 15px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state i { font-size: 50px; margin-bottom: 15px; opacity: 0.3; display: block; }

/* ─── Pagination ─── */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 25px; flex-wrap: wrap; }
.page-btn { display: inline-block; padding: 7px 14px; border: 1px solid var(--border); color: var(--dark); background: var(--white); border-radius: 3px; font-size: 14px; text-decoration: none; transition: all 0.2s; }
.page-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); text-decoration: none; }
.page-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ─── Footer ─── */
.site-footer { background: #111; color: #aaa; margin-top: 30px; padding: 30px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 25px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }
.footer-logo { color: var(--white); font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 12px; border-bottom: 1px solid #333; padding-bottom: 8px; }
.footer-col p { font-size: 13px; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: #aaa; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; flex-direction: column; gap: 8px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 4px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.s-telegram { background: #0088cc; }
.s-youtube { background: #ff0000; }
.s-facebook { background: #1877f2; }
.s-twitter { background: #1da1f2; }
.social-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding: 15px 0; text-align: center; font-size: 12px; }
.footer-bottom p { margin-bottom: 5px; }
.disclaimer { color: #777; }

/* Footer Policy Links */
.footer-policy-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-policy-links a { color: #aaa; font-size: 12px; text-decoration: none; }
.footer-policy-links a:hover { color: #fff; text-decoration: underline; }
.footer-policy-links span { color: #555; }

/* Static / Policy Pages */
.static-page-content { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 25px 30px; margin-bottom: 30px; font-size: 15px; line-height: 1.8; }
.static-page-content h2 { font-size: 18px; color: #cc0000; margin: 25px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #f0f0f0; }
.static-page-content h3 { font-size: 16px; margin: 20px 0 8px; }
.static-page-content p { margin-bottom: 12px; }
.static-page-content ul { margin: 10px 0 15px 25px; }
.static-page-content ul li { margin-bottom: 6px; }
.static-page-content a { color: var(--blue); }
.static-page-content a:hover { color: var(--red); }

/* ─── Back to Top ─── */
.back-to-top { position: fixed; bottom: 25px; right: 25px; background: var(--red); color: #fff; border: none; padding: 10px 14px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 700; z-index: 999; opacity: 0; transform: translateY(30px); transition: all 0.3s; }
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--dark-red); }

/* ─── Responsive Nav ─── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #222; z-index: 200; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 20px; border-bottom: 1px solid #333; }
  .header-inner { gap: 10px; }
  .site-logo { flex-wrap: nowrap; }
  .logo-sr, .logo-result { font-size: 24px; }
  .search-form button span { display: none; }
  .post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-grid-main { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .static-page-content { padding: 15px; }
}



/* ─── Floating Social Widget ─── */
.floating-widget {
  position: fixed;
  bottom: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  color: #fff;
}
.float-wa { background: #25d366; }
.float-tg { background: #0088cc; }

/* ─── Scraped Vacancy Details Tables Styling ─── */
.scraped-vacancy-table-container {
  overflow-x: auto;
  margin: 15px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.scraped-vacancy-table-container table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
}
.scraped-vacancy-table-container td, .scraped-vacancy-table-container th {
  padding: 12px 16px !important;
  border: 1px solid var(--border) !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--dark) !important;
  background: transparent !important;
  text-align: left;
}
.scraped-vacancy-table-container h2, .scraped-vacancy-table-container h3, 
.scraped-vacancy-table-container span[style*="color"] {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--red) !important;
  margin: 5px 0 !important;
}
.scraped-vacancy-table-container a {
  color: var(--blue) !important;
  text-decoration: none;
  font-weight: 600;
}
.scraped-vacancy-table-container a:hover {
  text-decoration: underline;
}

/* ─── Premium Notification Body Layout Styles ─── */
.notification-body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--dark);
}
.notif-intro-section {
  margin-bottom: 25px;
}
.notif-lead-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.6;
  margin-bottom: 10px;
}
.notif-body-text {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.6;
}
.notif-deadline-box {
  background: #fff0f0;
  border-left: 4px solid var(--red);
  color: var(--red);
  padding: 12px 16px;
  border-radius: 4px;
  margin: 20px 0;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.notif-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 30px 0 15px 0;
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.notif-numbered-steps {
  margin: 15px 0 15px 20px;
}
.notif-numbered-steps li {
  font-size: 14.5px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.6;
}
.notif-docs-list, .notif-tips-list {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}
.notif-docs-list li, .notif-tips-list li {
  font-size: 14.5px;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 10px;
  position: relative;
  padding-left: 24px;
}
.notif-docs-list li::before {
  content: '✔';
  color: var(--green);
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 14px;
}
.notif-tips-list li::before {
  content: '➤';
  color: var(--orange);
  position: absolute;
  left: 0;
  font-size: 12px;
}
.notif-selection-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  background: var(--light-gray);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.sel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sel-num {
  background: var(--blue);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.sel-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
}
.sel-arrow {
  color: #ccc;
  font-weight: bold;
  font-size: 14px;
}
.notif-disclaimer-section {
  margin-top: 40px;
  background: #fafafa;
  border: 1px solid var(--border);
  padding: 15px 20px;
  border-radius: 6px;
}
.notif-disclaimer-text {
  font-size: 12.5px;
  color: #666;
  line-height: 1.6;
}
}

/* ─── Free Study Material & E-Book Portal Styles ─── */
.store-hero {
  background: linear-gradient(135deg, #003399 0%, #0052a3 100%);
  color: var(--white);
  padding: 40px 30px;
  border-radius: 6px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.store-hero-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffcc00;
}
.store-hero-content p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}
.store-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 25px;
  align-items: start;
}
@media (max-width: 900px) {
  .store-layout {
    grid-template-columns: 1fr;
  }
}
.store-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.category-tab-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s;
}
.category-tab-link:hover {
  background: var(--light-gray);
  color: var(--blue);
  text-decoration: none;
}
.category-tab-link.active {
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 600;
}
.store-main-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.section-header-bar .section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}
.section-header-bar .count-badge {
  background: var(--light-gray);
  color: var(--gray);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.book-cover-wrap {
  position: relative;
  height: 180px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.book-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-title-link {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.book-title-link a {
  color: var(--dark);
  text-decoration: none;
}
.book-title-link a:hover {
  color: var(--blue);
}
.book-meta-info {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  color: var(--gray);
  margin-bottom: 10px;
  font-weight: 500;
}
.book-short-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 15px;
  flex: 1;
}
.book-card-actions {
  margin-top: auto;
}
.btn-read-more {
  display: block;
  text-align: center;
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-read-more:hover {
  background: #0052a3;
  text-decoration: none;
}

/* Book Details Page */
.book-details-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 25px;
  align-items: start;
}
@media (max-width: 900px) {
  .book-details-layout {
    grid-template-columns: 1fr;
  }
}
.book-details-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.book-hero-section {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 25px;
  margin-bottom: 25px;
}
@media (max-width: 600px) {
  .book-hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.book-hero-cover {
  width: 160px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.book-cover-large {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.book-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.detail-badge {
  background: #e1ecf4;
  color: #39739d;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  align-self: flex-start;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .detail-badge {
    align-self: center;
  }
}
.book-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 15px;
}
.book-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.meta-val {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark);
}
.book-download-box {
  background: var(--light-gray);
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-download-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: var(--white) !important;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 5px rgba(204,0,0,0.15);
}
.btn-download-pdf:hover {
  background: var(--dark-red);
  text-decoration: none;
}
.download-help {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
}
.book-body-content .book-heading-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 25px 0 12px 0;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.book-detail-text {
  font-size: 14.5px;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 15px;
}
.book-features-list {
  padding-left: 20px;
  margin-bottom: 20px;
}
.book-features-list li {
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Sidebar Related Books */
.related-books-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-book-card {
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.related-book-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
}
.related-book-card img {
  width: 50px;
  height: 65px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}
.related-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.related-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.4;
}
.related-info span {
  font-size: 11px;
  color: var(--gray);
}


