/*
Theme Name: GKToday Modern
Theme URI: https://gktoday.in
Author: Suresh Soni
Description: Modern three-column GKToday WordPress theme with section-specific accents for Current Affairs, GK Questions, SSC, State PCS, UPSC Prelims and UPSC Mains.
Version: 1.0.0

IMPORTANT
---------
1. This is designed as a drop-in replacement for the existing stylesheet while preserving
   the current GKToday class names wherever possible.
2. Section accents are controlled with body classes:
   section-current-affairs, section-gk-questions, section-ssc,
   section-states-pcs, section-upsc-prelims, section-upsc-mains.
3. The extra .gk-* classes near the end are for the redesigned homepage cards shown in
   the visual mock-up. Existing archive/single pages do not require those classes.
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

/* =========================================================
   1. DESIGN TOKENS / SECTION ACCENTS
========================================================= */
:root {
  --gk-blue: #0d6efd;
  --gk-brand: #28c1ff;
  --gk-purple: #7c3aed;
  --gk-orange: #f97316;
  --gk-green: #12a150;
  --gk-red: #d71920;

  --section-color: var(--gk-blue);
  --section-rgb: 13, 110, 253;

  --page-bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-blue: #f3f8ff;
  --border: #dce5ef;
  --border-soft: #edf1f5;
  --text: #172033;
  --muted: #687386;
  --link: #145dcc;
  --shadow-sm: 0 1px 3px rgba(20, 38, 63, .06);
  --shadow-md: 0 5px 18px rgba(20, 38, 63, .08);
  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 11px;
  --site-width: 1420px;
  --header-height: 92px;
}

body.section-current-affairs {
  --section-color: #28c1ff;
  --section-rgb: 40, 193, 255;
}

body.section-gk-questions {
  --section-color: #7c3aed;
  --section-rgb: 124, 58, 237;
}

body.section-ssc {
  --section-color: #f97316;
  --section-rgb: 249, 115, 22;
}

body.section-states-pcs {
  --section-color: #12a150;
  --section-rgb: 18, 161, 80;
}

body.section-upsc-prelims {
  --section-color: #1769e0;
  --section-rgb: 23, 105, 224;
}

body.section-upsc-mains {
  --section-color: #d71920;
  --section-rgb: 215, 25, 32;
}

/* Homepage remains neutral GKToday blue */
body.home {
  --section-color: #0d6efd;
  --section-rgb: 13, 110, 253;
}

* {
  box-sizing: border-box;
}

html {
  background: #eaf1f8;
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  padding: 0;
  max-width: var(--site-width);
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  box-shadow: 0 0 28px rgba(16, 42, 67, .05);
}

::selection {
  background: rgba(var(--section-rgb), .18);
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.img-circle { border-radius: 10%; }
.img-rounded { border-radius: var(--radius); }

/* WooCommerce */
.woocommerce-product-gallery__wrapper { float: left; }
.wc-block-cart-items .wc-block-components-product-metadata { display: none !important; }

/* =========================================================
   2. TYPOGRAPHY
========================================================= */
a {
  color: var(--link);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 {
  font-size: 1.55rem;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid var(--border) !important;
  border-left: 4px solid var(--section-color) !important;
  border-radius: var(--radius);
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

h2 { font-size: 1.3rem; margin: 0 0 8px; }
h3 { font-size: 1.15rem; margin: 0; }
h4 { font-size: 1.08rem; margin: 0; color: var(--section-color); }
h5 { font-size: 1rem; margin: 0; }
h6 { font-size: .84rem; margin: 0; color: var(--muted); }

h4#widget-subtitle,
h5#widget-subtitle,
h6#widget-subtitle {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: #f5f8fc;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

p,
ul,
ol {
  font-size: 16px;
  line-height: 1.55;
}

.site-main > p,
.site-main > ul,
.site-main > ol,
.category-content p,
.category-content ul,
.category-content ol {
  text-align: left;
}

p { margin: 7px 0; }
ul, ol { margin: 7px 0; }
strong { font-weight: 700; }

title { font-size: 25px; }

.category-content ul,
.category-content ol,
.category-content li {
  font-family: inherit;
  font-size: 16px;
}

blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--section-color);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-soft);
  color: #3f4a5a;
}

/* =========================================================
   3. TABLES / FORM ELEMENTS
========================================================= */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table th,
table td {
  padding: 9px 10px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}

table th {
  background: #f5f8fc;
  font-weight: 700;
}

table tr:last-child td { border-bottom: 0; }
table th:last-child,
table td:last-child { border-right: 0; }

textarea,
input,
select {
  font: inherit;
}

textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus {
  border-color: var(--section-color);
  box-shadow: 0 0 0 3px rgba(var(--section-rgb), .10);
}

input[type="submit"] {
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--section-color);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

input[type="submit"]:hover { filter: brightness(.93); }

/* =========================================================
   4. HEADER
========================================================= */
header {
  position: fixed;
  top: 0;
  z-index: 999;
  width: 100%;
  max-width: var(--site-width);
  background: #fff;
  box-shadow: 0 2px 10px rgba(16, 42, 67, .08);
}

.header_top {
  min-height: 50px;
  background: #fff;
}

.header_column_left {
  float: left;
  width: 50%;
}

.header_column_right {
  float: right;
  width: 45%;
  margin: 0;
  padding: 14px 20px 0 10px;
  text-align: right;
  color: #4c5667;
  font-size: 13px;
}

.header_titles { display: inline-block; }

.logo {
  display: block;
  max-height: 38px;
  width: auto;
  margin: 6px 15px 6px 25px;
}

#left_column .logo {
  margin: 14px auto;
  position: relative;
}

.header_bottom {
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(90deg, #0767e8 0%, #0b79ec 100%);
  border-top: 1px solid rgba(255,255,255,.18);
}

/* Section pages can subtly identify themselves in the nav bar */
body:not(.home) .header_bottom {
  background: var(--section-color);
}

.header_bottom::-webkit-scrollbar { display: none; }

.main_menu {
  display: block;
  height: 42px;
  margin: 0;
  padding: 0 18px;
  white-space: nowrap;
  overflow-x: auto;
  text-align: left;
  font-weight: 600;
}

.main_menu li {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0;
}

.main_menu li a,
.page_item a {
  display: flex;
  align-items: center;
  height: 34px;
  margin: 4px 2px;
  padding: 0 13px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
}

.main_menu li a:hover,
.main_menu .current-menu-item > a,
.main_menu .current_page_item > a {
  background: rgba(255,255,255,.17);
  color: #fff;
}

body.home .main_menu .current-menu-item > a,
body.home .main_menu .current_page_item > a {
  background: #fff;
  color: #172033;
}

.header_title {
  margin: 0;
  padding: 7px 20px 0;
  font-size: 19px;
}

.header_title a { text-decoration: none; }
.header_des { margin: 0; padding: 0 20px 7px; font-size: 14px; color: var(--muted); }

.mobile_icon,
.menu_icon {
  display: none;
  margin: 10px;
  font-size: 25px;
}

.menu_icon { float: right; }
.side_logo { display: none; }

/* =========================================================
   5. THREE-COLUMN LAYOUT
========================================================= */
.row {
  width: 100%;
  max-width: var(--site-width);
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.main_content {
  min-height: calc(100vh - 142px);
  margin-top: var(--header-height);
  padding: 16px 14px 70px;
  background: var(--page-bg);
}

.column {
  float: left;
  width: 20%;
}

.middle-column {
  float: left;
  width: 55.5%;
  min-height: calc(100vh - 150px);
  margin: 0 1.25%;
  padding: 0;
  overflow-x: hidden;
  background: transparent;
}

.column-right {
  width: 22%;
}

/* Main center surface for standard pages */
.middle-column > .site-main,
.middle-column > main,
.middle-column > article,
.middle-column > .content-area {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   6. LEFT / RIGHT SIDEBARS
========================================================= */
.side_menu,
.right_menu {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.side_menu_title {
  margin: 0;
  padding: 9px 13px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--section-color);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

/* On homepage use neutral blue section headings */
body.home .side_menu_title { background: #0d6efd; }

.side_menu_img {
  margin: 12px 0;
  padding: 0;
}

.side_menu_img img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.side_menu li,
.right_menu li {
  position: relative;
  margin: 0;
  padding: 7px 11px;
  list-style: none;
  border-bottom: 1px solid var(--border-soft);
  color: #394456;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
}

.side_menu li:last-child,
.right_menu li:last-child { border-bottom: 0; }

.side_menu li a,
.right_menu li a {
  display: block;
  color: #394456;
  text-decoration: none;
}

.side_menu li a:hover,
.right_menu li a:hover {
  color: var(--section-color);
}

.side_menu .current-menu-item,
.side_menu .current_page_item,
.right_menu .current-menu-item {
  background: rgba(var(--section-rgb), .07);
  box-shadow: inset 3px 0 0 var(--section-color);
}

/* Generic widget cards in sidebars */
#left_column > div:not(.side_menu_img),
.column-right > div:not(.custom-search-form):not(.side_menu_img) {
  border-radius: var(--radius);
}

/* =========================================================
   7. POSTS / ARCHIVE LISTS
========================================================= */
.home-post-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-bottom-color: var(--border-soft);
  background: #fff;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-post-item:first-child {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.home-post-item:last-child {
  border-bottom-color: transparent;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.home-post-item:hover {
  background: #fbfdff;
  border-color: #e4ebf4;
  box-shadow: var(--shadow-sm);
}

.featured-image {
  flex: 0 0 118px;
  width: 118px;
  margin: 0;
  padding: 0;
}

.featured-image img,
.home-post-item-mobile img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid #e6ebf1;
  border-radius: 6px;
}

.home-post-item-mobile img {
  width: 110px;
  margin-right: 11px;
  padding: 0;
  float: left;
}

.home-post-item .post-data {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  word-break: normal;
  text-align: left;
}

.home-post-item .post-data h2,
.home-post-item .post-data h3 {
  margin-bottom: 4px;
  color: #111827;
  font-size: 16px;
  line-height: 1.28;
}

.home-post-item .post-data h2 a,
.home-post-item .post-data h3 a { color: #111827; }
.home-post-item .post-data h2 a:hover,
.home-post-item .post-data h3 a:hover { color: var(--section-color); }

.home-post-item .post-data p {
  margin: 3px 0;
  color: #4d5868;
  font-size: 13px;
  line-height: 1.42;
  text-align: left;
}

.home-post-data-meta {
  margin-top: 4px;
  color: #788395;
  font-size: 11px;
  line-height: 1.3;
}

.home-post-data-meta a { color: #657286; }
.home-post-data-meta a:hover { color: var(--section-color); }

.post-featured-image {
  max-width: 38%;
  height: auto;
  margin: 8px 16px 8px 0;
  padding: 0;
  float: left;
  border-radius: var(--radius);
}

.post-meta {
  margin: 8px 0 14px;
  padding: 8px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 12px;
}

.site-main .wp-block-image { margin: 12px 0; }
.site-main .wp-block-image img { width: 100%; border-radius: 6px; }

/* =========================================================
   8. PAGINATION / NAVIGATION
========================================================= */
.home-pagination,
.wp-pagenavi {
  clear: both;
  margin: 16px 0;
  text-align: center;
}

.home-pagination a,
.home-pagination span,
.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  margin: 2px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: #3c485a;
  font-size: 12px;
  text-decoration: none;
}

.home-pagination a:hover,
.wp-pagenavi a:hover,
.wp-pagenavi span.current {
  border-color: var(--section-color);
  background: rgba(var(--section-rgb), .08);
  color: var(--section-color);
}

.wp-pagenavi span.current { font-weight: 700; }

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
}

.nav-links > div { max-width: 48%; }
.nav-links div span { font-weight: 600; }

/* =========================================================
   9. SEARCH / BREADCRUMB / BUTTONS
========================================================= */
.custom-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 14px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.custom-search-input {
  flex: 1;
  width: auto !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
}

.custom-search-input::placeholder { color: #a2aabc; }

.custom-search-button {
  flex: 0 0 36px;
  width: 36px;
  height: 34px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #eef4fb;
  color: var(--section-color);
  cursor: pointer;
}

.custom-search-button:hover {
  background: rgba(var(--section-rgb), .12);
  color: var(--section-color);
  box-shadow: none;
}

.breadcrumb {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb li::after {
  content: '›';
  margin: 0 7px;
  color: #a4adba;
}

.breadcrumb li:last-child::after { content: ''; margin: 0; }
.breadcrumb a { color: #536176; text-decoration: none; }
.breadcrumb a:hover { color: var(--section-color); }
.breadcrumb span[itemprop="name"] { font-weight: 600; }
.breadcrumb meta[itemprop="position"] { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--section-color);
  border-radius: 6px;
  background: var(--section-color);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { filter: brightness(.94); color: #fff; }

.title-line {
  display: block;
  width: 70px;
  margin: 5px auto 18px;
  border-top: 3px solid var(--section-color);
}

.post_navi {
  margin: 12px 0;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #fafcff;
}

.post_navi a { text-decoration: none; }
.border-bottom { border-bottom: 1px solid var(--border-soft) !important; }
.border-top { border-top: 1px solid var(--border-soft) !important; }
.navigation { font-size: 14px; text-decoration: none; }

/* =========================================================
   10. COMMENTS
========================================================= */
.comment-list,
.children {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.comment-wrap {
  position: relative;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: #fff;
}

.comment-wrap .comments-title { padding-top: 50px; }
.comment-wrap .comment-img { float: left; margin-right: 15px; padding-bottom: 20px; }
.comment-author { text-align: left; }
.comment-author,
.comment-author a {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
}

.comment-date {
  display: block;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-style: italic;
}

.comment-reply {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f2f6fa;
  font-size: 11px;
}

.depth-2 .comment-wrap { margin-left: 20px; }
.depth-3 .comment-wrap { margin-left: 40px; }
.depth-4 .comment-wrap,
.depth-5 .comment-wrap,
.depth-6 .comment-wrap,
.depth-7 .comment-wrap,
.depth-8 .comment-wrap,
.depth-9 .comment-wrap,
.depth-10 .comment-wrap { margin-left: 55px; }

.comment-respond form label { display: block; margin-bottom: 4px; font-weight: 600; }
.comment-respond textarea { width: 100%; }
.comment-respond input { padding: 9px 10px; }
.comment-respond .submit { width: auto; }

#commentform #comment,
#commentform #author,
#commentform #email,
#commentform #url { display: block; width: 100%; }

#commentform input[type="submit"] {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--section-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
}

/* =========================================================
   11. SPECIAL COMPONENTS
========================================================= */
.dkpdf-button-container {
  margin: 8px 0;
  padding: 8px;
  text-align: center;
}

.dkpdf-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 0;
  border-radius: 6px;
  background: #e11d2e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.dkpdf-button-icon { margin-right: 7px; }
.dkpdf-button i { font-size: 16px; vertical-align: middle; }
.dkpdf-button:hover { background: #c91425; color: #fff; transform: translateY(-1px); }
.dkpdf-button:active { transform: translateY(0); }

.applewrap,
.infobox {
  display: block;
  margin: 10px 0;
  padding: 12px 14px !important;
  border: 1px solid rgba(var(--section-rgb), .3);
  border-left: 4px solid var(--section-color);
  border-radius: var(--radius);
  background: rgba(var(--section-rgb), .035);
  color: #1d2735;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 400;
  text-align: left;
}

.applewrap a { text-decoration: none; }
#toc_container { display: none; }

.related-posts-table {
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border-collapse: separate;
}

.related-posts-table td { padding: 10px; text-align: left; vertical-align: top; }
.related-posts-table a { color: #263247; font-size: 13px; text-decoration: none; }
.related-posts-table a:hover { color: var(--section-color); }
.related-posts-table img { width: 55px; height: 42px; margin-right: 10px; object-fit: cover; border-radius: 5px; }
.related-posts-table .post-info { display: flex; align-items: center; }

.gktoday-share-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px 0;
  padding: 9px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.gktoday-share-box .a2a_kit a { margin: 0 4px; }
.social_icons a i { margin-right: 8px; font-size: 20px; }
.form-submit { margin-bottom: 20px; }

/* =========================================================
   12. EXISTING .home_list MODERNIZED
========================================================= */
.home_list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

.home_list > div {
  position: relative;
  min-height: 105px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.home_list > div img {
  display: block;
  width: 100%;
  aspect-ratio: 16/8;
  margin: 0;
  object-fit: cover;
}

.home_list > div h3 {
  position: static;
  width: auto;
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  color: #1b2638;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
}

.home_list > div h3 a { color: inherit; text-decoration: none; }
.home_list > div h3:hover { background: #f8fbff; color: var(--section-color); }

/* =========================================================
   13. NEW HOMEPAGE COMPONENTS FOR THE MOCK-UP
   Requires corresponding markup in front-page.php / home template.
========================================================= */
.gk-home-panel,
.gk-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.gk-home-panel { margin-bottom: 14px; overflow: hidden; }

.gk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: #f7faff;
}

.gk-panel-head h2,
.gk-panel-head h3 {
  margin: 0;
  color: #145dcc;
  font-size: 15px;
}

.gk-panel-head a { color: #145dcc; font-size: 11px; font-weight: 600; }

.gk-home-intro {
  padding: 13px 14px 3px;
  background: linear-gradient(135deg, #f7fbff 0%, #fff 65%);
}

.gk-home-intro h1 {
  margin: 0 0 3px;
  padding: 0;
  border: 0 !important;
  background: transparent;
  box-shadow: none;
  color: #145dcc;
  font-size: 20px;
}

.gk-home-intro p { margin: 0 0 12px; color: #49566a; font-size: 13px; }

.gk-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px 14px;
}

.gk-section-card {
  --card-color: #0d6efd;
  position: relative;
  min-height: 125px;
  padding: 17px 15px 15px 66px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--card-color) 24%, white);
  border-bottom: 3px solid var(--card-color);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-color) 5%, white);
}

.gk-section-card::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 21px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-color) 12%, white);
}

.gk-section-card .gk-section-icon {
  position: absolute;
  z-index: 1;
  left: 24px;
  top: 27px;
  color: var(--card-color);
  font-size: 20px;
}

.gk-section-card h3 { color: var(--card-color); font-size: 15px; }
.gk-section-card p { margin: 4px 0 14px; color: #556174; font-size: 11px; line-height: 1.35; }
.gk-section-card a { color: var(--card-color); font-size: 12px; font-weight: 700; }

.gk-section-card.current-affairs { --card-color: #0d6efd; }
.gk-section-card.gk-questions { --card-color: #7c3aed; }
.gk-section-card.ssc { --card-color: #f97316; }
.gk-section-card.states-pcs { --card-color: #12a150; }
.gk-section-card.upsc-prelims { --card-color: #1769e0; }
.gk-section-card.upsc-mains { --card-color: #d71920; }

.gk-filter-tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px 7px;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-soft);
}

.gk-filter-tabs a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 5px;
  color: #455164;
  font-size: 11px;
}

.gk-filter-tabs a.active,
.gk-filter-tabs a:hover {
  background: #0d6efd;
  color: #fff;
}

.gk-update-list { margin: 0; padding: 0 12px; list-style: none; }

.gk-update-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 82px 20px;
  gap: 11px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--border-soft);
}

.gk-update-item:last-child { border-bottom: 0; }
.gk-update-thumb { width: 78px; height: 48px; object-fit: cover; border-radius: 5px; }
.gk-update-category { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 700; }
.gk-update-title { color: #172033; font-size: 13px; font-weight: 600; line-height: 1.3; }
.gk-update-date { color: #8590a0; font-size: 10px; text-align: right; }

.gk-cat-ca { color: #0d6efd; }
.gk-cat-gk { color: #7c3aed; }
.gk-cat-ssc { color: #f97316; }
.gk-cat-pcs { color: #12a150; }
.gk-cat-prelims { color: #1769e0; }
.gk-cat-mains { color: #d71920; }

.gk-view-more {
  margin: 8px 12px 12px;
  padding: 7px;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}

.gk-stat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.gk-stat {
  min-height: 57px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.gk-stat strong { display: block; color: #0d6efd; font-size: 15px; }
.gk-stat span { display: block; color: #596579; font-size: 10px; }

/* =========================================================
   14. FOOTER
========================================================= */
.footer {
  display: flex;
  flex-direction: row;
  margin-bottom: 42px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer .column { width: 33.333%; }

.copyright {
  position: fixed;
  z-index: 998;
  bottom: 0;
  width: 100%;
  max-width: var(--site-width);
  min-height: 34px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.96);
  color: #5d6879;
  text-align: center;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

/* =========================================================
   15. RESPONSIVE
========================================================= */
@media (min-width: 768px) and (max-width: 1100px) {
  :root { --site-width: 100%; }

  .main_content { padding-left: 10px; padding-right: 10px; }
  .column { width: 22%; }
  .middle-column { width: 52%; margin: 0 1%; }
  .column-right { width: 24%; }

  .side_menu li,
  .right_menu li { font-size: 12px; padding: 6px 8px; }

  .featured-image { flex-basis: 95px; width: 95px; }
  .gk-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gk-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --header-height: 104px; }

  html, body { max-width: 100%; box-shadow: none; }

  .header_top { min-height: 55px; }
  .header_column_left { float: none; width: 100%; text-align: center; }
  .header_column_right { display: none; }

  .logo {
    position: relative;
    top: auto;
    width: auto;
    max-height: 36px;
    margin: 8px auto;
  }

  .header_bottom { width: 100%; }
  .main_menu { height: 42px; padding: 0 6px; }
  .main_menu li { height: 42px; }
  .main_menu li a { padding: 0 9px; font-size: 13px; }

  .main_content {
    margin-top: var(--header-height);
    padding: 10px 8px 60px;
  }

  #left_column {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: -100%;
    width: min(82%, 330px);
    height: 100vh;
    padding: 8px;
    overflow-y: auto;
    background: #f5f8fc;
    box-shadow: 8px 0 28px rgba(17, 24, 39, .16);
    transition: left .28s ease;
  }

  #left_column.open { left: 0; }
  #left_column::-webkit-scrollbar { display: none; }

  .column-left {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: -100%;
    width: min(82%, 330px);
    max-width: none;
    height: 100%;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f5f8fc;
    transition: left .28s ease;
  }

  .column-left.open { left: 0; }

  .middle-column,
  .column-right {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .column-right { margin-top: 12px; }

  .side_logo {
    display: block;
    max-height: 28px;
    margin: 5px auto 10px;
    padding: 0;
    background: transparent;
  }

  .mobile_icon,
  .menu_icon {
    display: inline-block;
    float: left;
  }

  .home-post-item { gap: 9px; padding: 10px 8px; }
  .featured-image { flex-basis: 94px; width: 94px; }
  .home-post-item .post-data h2,
  .home-post-item .post-data h3 { font-size: 14px; }
  .home-post-item .post-data p { display: none; }
  .home-post-data-meta { font-size: 10px; }

  h1 { font-size: 1.3rem; padding: 10px 12px; }
  p, ul, ol { font-size: 15px; }

  .home_list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home_list > div h3 { font-size: 13px; padding: 8px; }

  .gk-section-grid { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .gk-section-card { min-height: 104px; }
  .gk-update-item { grid-template-columns: 64px minmax(0,1fr) 18px; gap: 8px; }
  .gk-update-thumb { width: 64px; height: 42px; }
  .gk-update-date { display: none; }
  .gk-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  .breadcrumb,
  .breadcrumb li,
  .breadcrumb li a { font-size: 11px; }

  .nav-links { gap: 8px; }
  .nav-links div a { font-size: 0; }
  .nav-links div a span { font-size: 12px; }

  .comment-list,
  .children { padding-left: 0; }
  .comment-wrap .comment-img { float: none; width: 100%; margin: 0; padding-bottom: 0; }
  .comment-img > img { display: block; margin: 0 auto; }
  .comment-author,
  .comment-author a,
  .comment-date { text-align: center; }
  .depth-2 .comment-wrap,
  .depth-3 .comment-wrap,
  .depth-4 .comment-wrap,
  .depth-5 .comment-wrap,
  .depth-6 .comment-wrap,
  .depth-7 .comment-wrap,
  .depth-8 .comment-wrap,
  .depth-9 .comment-wrap,
  .depth-10 .comment-wrap { margin-left: 0; }
  .comment-reply { position: relative; top: auto; right: auto; display: block; margin-top: 10px; text-align: center; }

  .footer { flex-direction: column; }
  .footer .column { width: 100%; }
  .social_icons a i { margin-right: 8px; font-size: 17px; }
}

@media (max-width: 420px) {
  .home_list { grid-template-columns: 1fr; }
  .gk-stat-row { grid-template-columns: 1fr 1fr; }
  .featured-image { flex-basis: 82px; width: 82px; }
}

/* =========================================================
   15. THEME INTEGRATION ADDITIONS
========================================================= */
.gk-wordmark { display:inline-flex; flex-direction:column; margin:8px 15px 7px 25px; text-decoration:none; line-height:1; }
.gk-wordmark strong { font-size:25px; letter-spacing:-1px; color:#1689d6; font-weight:800; }
.gk-wordmark strong span { color:#e82929; }
.gk-wordmark small { margin-top:2px; color:#202b39; font-size:8px; font-weight:600; letter-spacing:.1px; }
.logo .custom-logo-link { display:block; }
.logo .custom-logo { width:auto; max-height:42px; }
.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.entry-excerpt p { margin:3px 0 5px; color:#536071; font-size:12px; line-height:1.35; text-align:left; }
.gk-empty { padding:15px; font-size:13px; color:#667085; }
.gk-latest-list .home-post-item { padding:10px 12px; }
.gk-latest-list .featured-image { flex:0 0 82px; width:82px; margin-right:12px; padding-top:0; }
.gk-latest-list .featured-image img { width:82px; height:50px; border-radius:5px; object-fit:cover; }
.gk-latest-list .home-post-item h3 { margin:0 0 3px; font-size:14px; line-height:1.25; }
.gk-latest-list .home-post-data-meta { font-size:10px; color:#7c8798; }
.gk-filter-tabs { display:flex; gap:4px; padding:8px 11px; overflow:auto; border-bottom:1px solid var(--border-soft); background:#fff; scrollbar-width:none; }
.gk-filter-tabs::-webkit-scrollbar { display:none; }
.gk-filter-tabs span { flex:0 0 auto; padding:5px 10px; border-radius:6px; color:#475467; font-size:10px; cursor:default; }
.gk-filter-tabs .active { background:#2d7ff9; color:#fff; font-weight:700; }
.gk-stats-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:14px 0 6px; }
.gk-stats-row > div { display:flex; flex-direction:column; min-height:58px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius); background:#f8fbff; }
.gk-stats-row strong { color:#1167de; font-size:17px; }
.gk-stats-row span { margin-top:3px; color:#536071; font-size:10px; }
.footer-menu { display:inline-flex; gap:10px; margin:0 0 0 10px; padding:0; list-style:none; }
.footer-menu li { list-style:none; }
body.gk-menu-open { overflow:hidden; }
@media (max-width:767px) {
  .gk-wordmark { margin-left:50px; }
  .gk-stats-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gk-latest-list .featured-image { flex-basis:72px; width:72px; }
  .gk-latest-list .featured-image img { width:72px; height:46px; }
}
