/* =====================================================
GLOBAL RESET
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =====================================================
WRAPPER
===================================================== */
.single-post-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

/* =====================================================
SECTION SPACING
===================================================== */
.section-row {
  margin: 42px 0;
  width: 100%;
}

/* =====================================================
MAIN SECTION TITLE (H2)
===================================================== */
.section-title {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  line-height: 1.4;
}

/* =====================================================
EXPLANATION TITLE (H2)
===================================================== */
.section-explanation-title {
  background: #0f766e;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 30px 0 16px;
}

/* =====================================================
SUB TITLES (H3)
===================================================== */
.section-subtitle {
  background: #e0f2fe;
  color: #0c4a6e;
  font-size: 19px;
  font-weight: 700;
  padding: 8px 12px;
  border-left: 6px solid #0284c7;
  border-radius: 4px;
  margin: 20px 0 10px;
}

/* =====================================================
TWO COLUMN LAYOUT
===================================================== */
.section-two-col {
  display: flex;
  gap: 24px;
  width: 100%;
}

.section-col {
  width: 50%;
}

/* =====================================================
SIMPLE FANCY TABLE
===================================================== */
.simple-fancy-table {
  width: 100%;
  border-collapse: collapse;
  background: #f1f2f2;
  font-size: 16px;
}

.simple-fancy-table th {
  background: #79b1e5;
  color: #070707;
  font-weight: 700;
  padding: 12px;
  border: 1px solid #cbd5f5;
  text-align: left;
  border: 1px solid;
}

.simple-fancy-table td {
  padding: 12px;
  border: 1px solid #0b0b0b;
  line-height: 1.6;
  color: #020617;
}
/* =====================================================
EXCERPT TABLE OPTIMIZATION
===================================================== */

/* Prevent table breaking layout */
.excerpt-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Smaller, tighter table for excerpt */
.excerpt-table-wrap .simple-fancy-table {
  font-size: 14px;
  background: #ffffff;
}

/* Reduce padding */
.excerpt-table-wrap .simple-fancy-table td,
.excerpt-table-wrap .simple-fancy-table th {
  padding: 8px 10px;
}

/* Hide table header row in excerpt */
.excerpt-table-wrap thead {
  display: none;
}

/* =====================================================
EXPLANATION TEXT
===================================================== */
.section-text {
  width: 100%;
  margin-top: 24px;
}

.section-text p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 14px;
  color: #020617;
  text-align: justify;
}

/* =====================================================
IMPORTANT LINKS
===================================================== */
.important-links a {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 14px;
  margin: 6px 10px 6px 0;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #bfdbfe;
}

.important-links a:hover {
  background: #dbeafe;
}

/* =====================================================
RESPONSIVE (STACK TABLES)
===================================================== */
@media (max-width: 900px) {

  .section-two-col {
    flex-direction: column;
  }

  .section-col {
    width: 100%;
  }

  .section-title {
    font-size: 24px;
  }

  .section-explanation-title {
    font-size: 21px;
  }

  .section-subtitle {
    font-size: 18px;
  }

}

/* =====================================================
SMALL MOBILE OPTIMIZATION
===================================================== */
@media (max-width: 600px) {

  .section-title {
    font-size: 22px;
    padding: 10px 12px;
  }

  .section-explanation-title {
    font-size: 20px;
  }

  .section-text p {
    font-size: 16px;
  }

}

/* =====================================================
SUMMARY HEADER – MOBILE RESTRUCTURE
===================================================== */

.summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Default badge style (desktop unchanged) */
.summary-header span {
  background: #ff7a00;
  color: #ffffff;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 15px;
  white-space: nowrap;
}

/* =====================================================
MOBILE ONLY LAYOUT
===================================================== */
@media (max-width: 600px) {

  .summary-header {
    flex-wrap: wrap;          /* allow wrapping */
    gap: 8px;
  }

  /* Post Summary → full width, first row */
  .summary-header .summary-title:nth-child(2) {
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 6px 10px;
    
  }

  /* Date + Total Posts → second row, side by side */
  .summary-header .summary-title:first-child,
  .summary-header .total-posts {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 5px 8px;
  }

}

/* =====================================================
TOTAL POSTS – MOBILE ONLY BACKGROUND COLOR
===================================================== */

@media (max-width: 600px) {
  .summary-header .total-posts {
    background: #0aeb7e;   /* change color here */
    color: #ffffff;
    font-size: 18px;
  }
}


/* ================= FLOATING MENU WRAPPER ================= */
.srk-float-menu {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 9999;
  font-family: inherit;
}

/* ================= FLOAT BUTTON ================= */
.srk-float-btn {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.srk-float-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

/* ================= FLOAT PANEL ================= */
.srk-float-panel {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;

  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  padding: 16px;
}

/* ================= MENU GROUP ================= */
.srk-menu-group h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1e3a8a;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 6px;
}

/* ================= MENU LINKS ================= */
.srk-menu-group a {
  display: block;
  padding: 8px 12px;
  margin-bottom: 6px;

  background: #f1f5f9;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;

  border-radius: 6px;
  transition: all 0.25s ease;
}

.srk-menu-group a:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ================= ACTIVE LINK ================= */
.srk-menu-group a.active {
  background: linear-gradient(90deg, #2563eb, #1e40af);
  color: #ffffff;
}

/* ================= SCROLLBAR ================= */
.srk-float-panel::-webkit-scrollbar {
  width: 6px;
}

.srk-float-panel::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .srk-float-panel {
    width: 92vw;
    right: -10px;
    bottom: 20px;
  }

  .srk-float-btn {
    padding: 11px 16px;
    font-size: 14px;
  }
}

/* =====================================================
MOBILE STACKED TABLE (EXCERPT ONLY)
===================================================== */

@media (max-width: 600px) {

  .excerpt-table-wrap table,
  .excerpt-table-wrap tbody,
  .excerpt-table-wrap tr,
  .excerpt-table-wrap td {
    display: block;
    width: 100%;
  }

  .excerpt-table-wrap tr {
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    padding: 8px;
  }

  .excerpt-table-wrap td {
    border: none;
    padding: 6px 8px;
    font-size: 14px;
  }

  .excerpt-table-wrap td:first-child {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
  }
}


/* =====================================================
RESPONSIVE TABLE – FITS ALL SCREENS (NO SCROLL)
===================================================== */
@media (max-width: 768px) {

  .simple-fancy-table {
    border: none;
    background: transparent;
  }

  .simple-fancy-table thead {
    display: none;
  }

  .simple-fancy-table,
  .simple-fancy-table tbody,
  .simple-fancy-table tr,
  .simple-fancy-table td {
    display: block;
    width: 100%;
  }

  .simple-fancy-table tr {
    background: #ffffff;
    border: 1px solid black;
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 10px;
  }

  .simple-fancy-table td {
    border: black;
    padding: 6px 8px;
    font-size: 15px;
  }

  .simple-fancy-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #1e3a8a;
    display: block;
    margin-bottom: 4px;
  }
}
/* ================= ADMIT CARD SPECIAL ================= */

.admit-card-post .jump-download-btn {
  display: inline-block;
  margin-top: 16px;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
}

.admit-card-post .jump-download-btn:hover {
  background: #15803d;
}

.admit-card-post .important-links a {
  margin-bottom: 10px;
}

/* Sticky download CTA (optional) */
@media (min-width: 768px) {
  .admit-card-post #download-admit-card {
    scroll-margin-top: 80px;
  }
}

/* =====================================================
IMPORTANT LINKS – SARKARI RESULT STYLE TABLE
Compatible with existing CSS
===================================================== */

.important-links-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 22px;
}

.important-links-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 16px;
  border: 2px solid #000;
}

/* Table Header */
.important-links-table thead th {
  background: #0b63c7;
  color: #ffffff;
  padding: 12px 10px;
  text-align: center;
  font-weight: 800;
  border: 1px solid #000;
}

/* Table Body */
.important-links-table td {
  padding: 10px 12px;
  border: 1px solid #000;
  text-align: center;
  line-height: 1.6;
}

/* Content Title Column */
.important-links-table td:first-child {
  text-align: left;
  color: #27821A;
  font-weight: 700;
}

/* Issued Date Column */
.important-links-table td:nth-child(2) {
  color: #008000;
  font-weight: 700;
  white-space: nowrap;
}

/* Click Here Link */
.important-links-table td a {
  display: inline-block;
  color: #003cff;
  font-weight: 800;
  text-decoration: none;
  border: 2px dotted #ff0000;
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.important-links-table td a:hover {
  background: #fff3f3;
}

/* =====================================================
MOBILE OPTIMIZATION – STACKED CARD VIEW
===================================================== */

@media (max-width: 600px) {

  .important-links-table,
  .important-links-table thead,
  .important-links-table tbody,
  .important-links-table tr,
  .important-links-table td {
    display: block;
    width: 100%;
  }

  .important-links-table thead {
    display: none;
  }

  .important-links-table tr {
    border: 1px solid #e5e7eb;
    margin-bottom: 14px;
    border-radius: 8px;
    padding: 8px;
    background: #f9fafb;
  }

  .important-links-table td {
    border: none;
    padding: 6px 8px;
    text-align: left;
    font-size: 15px;
  }

  .important-links-table td:first-child {
    font-size: 15.5px;
  }

  .important-links-table td::before {
    display: block;
    font-weight: 800;
    margin-bottom: 2px;
    color: #1e3a8a;
  }

  .important-links-table td:nth-child(1)::before {
    content: "Content Title";
  }

  .important-links-table td:nth-child(2)::before {
    content: "Issued On";
  }

  .important-links-table td:nth-child(3)::before {
    content: "Content Link";
  }
}


/* =====================================================
TABLE STYLING FOR SARKARI ROJGAR KENDRA
===================================================== */
.srk-styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.srk-styled-table thead tr {
  background: #1e3a8a;
  color: #ffffff;
  text-align: left;
}

.srk-styled-table th, .srk-styled-table td {
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
}

.srk-styled-table tbody tr:nth-of-type(even) {
  background-color: #f8fafc;
}

/* =====================================================
DOWNLOAD BUTTON STYLING
===================================================== */
.download-btn-style {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s ease;
}

.download-btn-style:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  text-decoration: none;
}