/**
 * =========================================================================
 * GK TODAY HINDI — Home Page Layout, Hero, Stats, Cards & Category Styles
 * =========================================================================
 */

/* Lazy Loading Image */
.exam-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exam-image.loaded {
  opacity: 1;
}

/* ===== LOAD MORE BUTTON STYLES ===== */
.load-more-container,
.load-more-wrapper {
  text-align: center;
  margin: 30px 0 20px;
  grid-column: 1 / -1;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.load-more-btn:active {
  transform: translateY(-1px);
}

.load-more-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.load-more-btn:hover i {
  transform: translateY(2px);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.load-more-btn .btn-text {
  margin-right: 5px;
}

.fa-spinner.fa-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== HERO SECTION ===== */
#hero {
  background: #fcfcfc;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  color: #fff;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-top: 0;
}

#hero p {
  color: #fff;
  margin: 0 0 1.5rem 0;
  padding: 0;
  text-align: center;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
}

@media (min-width: 480px) {
  #hero h1 { font-size: 2.8rem; }
  #hero p { font-size: 1.2rem; }
}

@media (min-width: 768px) {
  #hero h1 { font-size: 3.5rem; }
  #hero p { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  #hero h1 { font-size: 4rem; }
  #hero p { font-size: 1.8rem; }
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.stat-card {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: #10b981;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: blue;
  line-height: 1.2em;
  margin: 6px auto;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
}

.stat-label {
  color: #6b7280;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: bold;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
}

/* ===== SOCIAL COMMUNITY CONTAINER ===== */
.social-container {
  text-align: center;
  padding: 16px;
  background: white;
  margin-top: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.social-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 10px auto; 
  border: 2px solid #064e3b;
  object-fit: cover;
  display: block; 
}

.social-description {
  font-size: 1.2em;
  color: #059669;
  font-weight: 700;
  padding: 4px;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  margin-bottom: 8px;
}

.social-title {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 1.3em;
  font-weight: 600;
  color: #610610;
  margin-bottom: 16px;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .social-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: bold;
  border-radius: 14px;
  color: blue;
  transition: all 0.3s ease;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px, rgba(0, 0, 0, 0.1) 0px 4px 8px -2px;
  width: 100%;
  border: 1px solid #eee;
  background: #fff;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  color: red;
  text-decoration: none;
}

.social-link .icon img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.social-link .cta {
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 50px;
  color: #000;
}

.social-link:hover .cta {
  color: green;
}

/* ===== QUIZ & EXAMS GRID SECTION ===== */
#mcq-section {
  padding: 20px 0 40px;
}

.panel-default {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.panel-heading {
  padding: 14px;
  background: #610610;
  color: white;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}



.exam-posts {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
  padding: 12px;
  content-visibility: auto;
  contain-intrinsic-size: 300px;
}

@media (min-width: 600px) {
  .exam-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .exam-posts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .exam-posts { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1680px) {
  .exam-posts { grid-template-columns: repeat(5, 1fr); }
}

.exam-card {
  background: white;
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid #059669;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.exam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-link:hover {
  text-decoration: none;
}

.exam-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f3f4f6;
  display: block;
}

.card-body {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.exam-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: blue;
  text-align: justify;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  line-height: 1.4;
  margin-bottom: 6px;
  margin-top: 0;
}

.exam-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.exam-meta span {
  font-size: 1.1rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exam-meta i {
  color: #059669;
  font-size: 0.9rem;
}

.card-footer {
  background: #059669;
  padding: 10px;
  text-align: center;
  transition: background 0.3s ease;
}

.card-footer:hover {
  background: #047857;
}

.start-quiz {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
}

/* Loading States */
#loading-indicator {
  text-align: center;
  padding: 24px;
  grid-column: 1 / -1;
}

#no-more-posts {
  text-align: center;
  padding: 30px;
  color: #6b7280;
  font-size: 1rem;
  grid-column: 1 / -1;
}

.fa-spinner {
  color: #059669;
}

/* ===== LATEST MOCK TEST CENTERED HEADER ===== */
.latest-mock-test-header {
  padding: 24px 20px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}
.latest-mock-title-wrap {
  max-width: 750px;
  margin: 0 auto;
}
#page-title,
.latest-mock-title {
  margin: 0 auto;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 800;
  color: #065f46;
  background: #ecfdf5; /* Lite green theme */
  border: 1.5px solid #a7f3d0;
  border-radius: 50px;
  padding: 8px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.2px;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
  text-align: center;
}
#page-title i,
.latest-mock-title i {
  color: #059669;
}
#page-title .clear-cat-badge {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  padding: 0;
  outline: none;
  transition: all 0.2s ease;
  vertical-align: middle;
  flex-shrink: 0;
  box-sizing: border-box;
}
#page-title .clear-cat-badge i {
  color: #dc2626 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: color 0.2s ease;
}
#page-title .clear-cat-badge i::before {
  display: block !important;
  line-height: 1 !important;
}
#page-title .clear-cat-badge:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: scale(1.12);
}
#page-title .clear-cat-badge:hover i {
  color: #ffffff !important;
}
.latest-mock-subtitle {
  display: none;
}
.active-cat-chip {
  display: none;
}

/* ===== FLOATING GLOBE BUTTON ===== */
.floating-btn,
#floating-btn {
  position: fixed !important;
  bottom: 30px !important;
  right: 25px !important;
  width: 56px !important;
  height: 56px !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  font-size: 1.65rem !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px -4px rgba(5, 150, 105, 0.5), 0 6px 12px -2px rgba(5, 150, 105, 0.3) !important;
  z-index: 99999 !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  border: 2.5px solid rgba(255, 255, 255, 0.9) !important;
  outline: none !important;
  margin: 0 !important;
}
.floating-btn:hover,
#floating-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  transform: scale(1.12) rotate(10deg);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.5), 0 8px 16px -2px rgba(37, 99, 235, 0.3) !important;
  color: #ffffff !important;
}
.floating-btn:active,
#floating-btn:active {
  transform: scale(0.95);
}

/* Concentric Ripple Animation for Floating Button */
.floating-btn.with-ripple::before,
.floating-btn.with-ripple::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(5, 150, 105, 0.45);
  animation: globeRipple 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
}
.floating-btn.with-ripple::after {
  animation-delay: 1.2s;
}
@keyframes globeRipple {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ===== CATEGORY POPUP MODAL ===== */
#popup-overlay,
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1100;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.25s ease;
}
#popup-overlay {
  z-index: 1100 !important;
}
#popup-overlay.show,
.popup-overlay.show {
  display: block;
}

#floating-popup,
.floating-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  z-index: 1105 !important;
  width: 92%;
  max-width: 860px;
  max-height: 86vh;
  overflow: hidden;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  border: 1px solid #e2e8f0;
}
#floating-popup.show,
.floating-popup.show {
  display: flex !important;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Modal Header */
.popup-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  flex-shrink: 0;
}
.popup-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.popup-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}
.popup-header-title h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
}
.popup-header-title p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #64748b;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
}
.closebtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.closebtn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

/* Modal Scroll Body */
.popup-scroll-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
}
.popup-scroll-body::-webkit-scrollbar {
  width: 6px;
}
.popup-scroll-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.popup-section-block {
  margin-bottom: 20px;
}
.popup-section-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
}

/* Category Grid & Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 680px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 840px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0;
  user-select: none;
  text-align: left;
}
.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--cat-color, #4f46e5);
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.08);
  background: #fdfdfd;
}

/* Checked State */
.category-card.active,
.category-card:has(.category-input:checked) {
  border-color: var(--cat-color, #4f46e5);
  background: var(--cat-bg, #eef2ff);
  box-shadow: 0 4px 14px -2px rgba(79, 70, 229, 0.15);
}

.category-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cat-card-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: var(--cat-bg, #f1f5f9);
  color: var(--cat-color, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}
.category-card:hover .cat-card-icon,
.category-card:has(.category-input:checked) .cat-card-icon {
  transform: scale(1.08);
}

.cat-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cat-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
}
.category-card:has(.category-input:checked) .cat-card-name {
  color: var(--cat-color, #4f46e5);
}
.cat-card-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.cat-count-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 20px;
  margin-top: 3px;
  width: fit-content;
}

/* Checkmark badge indicator */
.cat-check-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 9.5px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.category-card:has(.category-input:checked) .cat-check-badge {
  background: var(--cat-color, #4f46e5);
  border-color: var(--cat-color, #4f46e5);
}

/* Master Card (All Quizzes) */
.card-all-quizzes {
  padding: 14px 18px;
  border-radius: 16px;
  border-width: 2px;
  background: #f8fafc;
}
.card-all-quizzes .cat-card-icon {
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
}
.card-all-quizzes .cat-card-name {
  font-size: 14.5px;
  font-weight: 800;
}
.card-all-quizzes .cat-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-all-quizzes .cat-count-badge {
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 700;
  padding: 4px 10px;
}

/* Sub-card tweaks */
.sub-category-grid {
  gap: 10px;
}
.sub-card {
  padding: 10px 12px;
}
.sub-card .cat-card-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 0.95rem;
}
.sub-card .cat-card-name {
  font-size: 12.5px;
}

@media (max-width: 768px) {
  .floating-btn,
  #floating-btn {
    bottom: 78px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.3rem !important;
  }
}

@media (max-width: 600px) {
  .floating-popup {
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
  }
  .popup-header-bar {
    padding: 14px 16px;
  }
  .popup-scroll-body {
    padding: 16px 14px;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* About Section */
.about-section {
  margin-top: 20px;
}

.about-header {
  width: 100%;
  text-align: center;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #1f2937;
  padding: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* =========================================================================
   NEW MODERN CATEGORY-ORIENTED HOME REDESIGN STYLES
   ========================================================================= */

/* 1. Testbook-Style Clean Split Hero Section + Floating 4-Stat Card */
.home-modern-hero.tb-hero-section {
  position: relative;
  padding: 0 0 18px;
  background: #f8fafc;
  border-bottom: none;
  overflow: visible;
}
.home-modern-hero.tb-hero-section::before,
.home-modern-hero.tb-hero-section::after {
  display: none !important;
}

.tb-hero-banner {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #eff9fc 55%, #e3f5fa 100%);
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  padding: 28px 0 68px;
  overflow: hidden;
}

.tb-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.tb-hero-left {
  flex: 1 1 52%;
  max-width: 580px;
  text-align: left;
}

.tb-hero-heading {
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  color: #1e293b;
}

.tb-hero-title-light {
  display: block;
  font-size: clamp(22px, 2.8vw, 31px);
  font-weight: 500;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 4px;
}

.tb-hero-title-bold {
  display: block;
  font-size: clamp(25px, 3.2vw, 35px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.tb-hero-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
}

.tb-step-item {
  color: #1e293b;
}

.tb-step-arrow {
  color: #1ad079;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  transform: translateY(0.5px);
}

.tb-hero-subtext {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  margin: 0 0 16px;
  line-height: 1.5;
  text-align: left;
}

.tb-hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tb-btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  background: #1ad079;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(26, 208, 121, 0.28);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.tb-btn-get-started:hover {
  background: #14b86a;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 208, 121, 0.36);
}

.tb-btn-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 15px;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.tb-btn-action-badge:hover {
  background: #1e293b;
  border-color: #475569;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.tb-badge-ico {
  font-size: 20px;
  flex-shrink: 0;
}

.tb-badge-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.tb-badge-small {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #cbd5e1;
}

.tb-badge-big {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.tb-hero-right {
  flex: 0 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-hero-illus-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.05));
}

/* Bottom Floating 4-Stat White Card (Overlapping Hero Bottom Edge) */
.tb-hero-stats-card {
  max-width: 1040px;
  margin: -48px auto 0;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  z-index: 3;
}

.tb-stat-col {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  text-align: left;
}

.tb-stat-col-highlight {
  background: #e7f9ef;
}

.tb-stat-shield-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #22c55e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
}

.tb-shield-check-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  color: #16a34a;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tb-stat-sq-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.tb-stat-info {
  min-width: 0;
}

.tb-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  line-height: 1.3;
  margin-bottom: 2px;
}

.tb-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .tb-hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 18px;
  }
  .tb-hero-left {
    max-width: 100%;
    text-align: center;
  }
  .tb-hero-heading,
  .tb-hero-subtext {
    text-align: center;
  }
  .tb-hero-steps,
  .tb-hero-cta-row {
    justify-content: center;
  }
  .tb-hero-illus-img {
    max-width: 310px;
  }
  .tb-hero-stats-card {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -36px;
  }
}

@media (max-width: 520px) {
  .tb-hero-banner {
    padding: 18px 0 52px;
  }
  .tb-hero-stats-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
  .tb-stat-col {
    padding: 10px 10px;
    gap: 10px;
  }
  .tb-stat-shield-ico,
  .tb-stat-sq-ico {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .tb-stat-label {
    font-size: 11.5px;
  }
  .tb-stat-value {
    font-size: 14px;
  }
}

/* 2. Category Hub Section ("Explore by Exam Category") */
.category-hub-section {
  padding: 35px 0 20px;
  background: #ffffff;
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-title-wrap h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
}
.section-subtitle-wrap {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.cat-hub-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.cat-hub-card {
  flex: 0 0 calc(50% - 6px);
  max-width: calc(50% - 6px);
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .cat-hub-grid {
    gap: 14px;
  }
  .cat-hub-card {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }
}
@media (min-width: 1024px) {
  .cat-hub-grid {
    gap: 16px;
  }
  .cat-hub-card {
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
  }
}
@media (min-width: 1440px) {
  .cat-hub-grid {
    gap: 16px;
  }
  .cat-hub-card {
    flex: 0 0 calc(20% - 13px);
    max-width: calc(20% - 13px);
  }
}
@media (min-width: 1800px) {
  .cat-hub-grid {
    gap: 18px;
  }
  .cat-hub-card {
    flex: 0 0 calc(16.666% - 15px);
    max-width: calc(16.666% - 15px);
  }
}
.cat-hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, #4f46e5);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.cat-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, #4f46e5);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.1);
  text-decoration: none !important;
}
.cat-hub-body-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.cat-hub-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--card-accent, #4f46e5);
  background: var(--card-bg, #eef2ff);
  margin: 0 auto 12px;
  transition: transform 0.2s;
}
.cat-hub-card:hover .cat-hub-icon-box {
  transform: scale(1.08);
}
.cat-hub-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--card-accent, #4f46e5);
  background: var(--card-bg, #eef2ff);
  padding: 3.5px 11px;
  border-radius: 50px;
  white-space: nowrap;
  display: inline-block;
}
.cat-hub-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
  text-align: center;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
}
.cat-hub-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--card-accent, #4f46e5);
}
.cat-hub-arrow {
  transition: transform 0.2s;
}
.cat-hub-card:hover .cat-hub-arrow {
  transform: translateX(4px);
}

/* Header-Style Circle Notification Bell + Digit Badge on Category Hub Cards */
.cat-hub-badges-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cat-notification-bell {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  z-index: 4;
}
.cat-hub-card:hover .cat-notification-bell {
  transform: scale(1.07);
  background: #f1f5f9;
  color: #0f172a;
}
.cat-notification-bell .bell-ring {
  font-size: 13.5px;
  line-height: 1;
}
.cat-notif-digit {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.38);
  pointer-events: none;
}
@media (max-width: 480px) {
  .cat-notification-bell {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }
  .cat-notification-bell .bell-ring {
    font-size: 12.5px;
  }
}
.bell-ring {
  animation: bellSwing 2s ease-in-out infinite;
  transform-origin: top center;
  display: inline-block;
}
@keyframes bellSwing {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(20deg); }
  20% { transform: rotate(-20deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-14deg); }
  50% { transform: rotate(6deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
.bell-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 1.5px #ffffff;
  animation: bellPulse 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes bellPulse {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

.cat-hub-badge-new {
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444 0%, #ea580c 100%);
  padding: 2px 7px;
  border-radius: 50px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}



/* 4. Quick Study Downloads Banner */
.study-downloads-strip {
  margin: 32px 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.study-downloads-strip::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(238, 242, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.study-strip-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 16px;
  align-items: center;
}
@media (max-width: 900px) {
  .study-strip-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.study-strip-intro h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffffff;
}
.study-strip-intro p {
  font-size: 13px;
  color: #c7d2fe;
  margin: 0;
}
.study-strip-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}
.study-strip-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}
.study-strip-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.study-strip-card-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.study-strip-card-sub {
  font-size: 11px;
  color: #cbd5e1;
}

/* =========================================================================
   FULL WIDTH HOMEPAGE ARCHITECTURE (Edge-to-Edge Without Left/Right Margins)
   ========================================================================= */
.home-fullwidth-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
@media (min-width: 768px) {
  .home-fullwidth-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
@media (min-width: 1440px) {
  .home-fullwidth-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* Override any default Bootstrap .container constraints on homepage */
body.has-sidebar-rail .home-modern-hero .container,
body.has-sidebar-rail .category-hub-section .container,
body.has-sidebar-rail .live-quizzes-section .container,
body.has-sidebar-rail #mcq-section .container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}

/* Full Width for Study Strip and Social Community Card */
.study-downloads-strip {
  width: 100% !important;
  margin: 25px 0 !important;
}
.social-container {
  width: 100% !important;
  margin: 25px 0 !important;
  max-width: 100% !important;
}

/* =========================================================================
   2026 HOMEPAGE EDTECH POLISH:
   1. AI Question Count Selector Pills
   2. Quick Sort/Filter Tabs in #mcq-section
   3. Modern EdTech Mock Test Cards (.home-modern-card)
   4. Community AI Mock Tests Strip (.community-ai-section)
   5. Official Study Community Hub (.home-social-hub)
   6. SEO-Safe Collapsible Guide Card (.seo-collapsible-card)
   ========================================================================= */

/* 1. AI Question Count Selector Pills */
.ai-qcount-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.ai-qcount-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 4px;
}
.ai-qcount-pill {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ai-qcount-pill small {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.75;
}
.ai-qcount-pill:hover {
  border-color: #6366f1;
  color: #4f46e5;
  background: #eef2ff;
}
.ai-qcount-pill.active {
  background: #eef2ff;
  border-color: #4f46e5;
  color: #4338ca;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.14);
}

/* 2. Quick Sort/Filter Tabs in #mcq-section */
.latest-mock-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.latest-mock-header-flex .latest-mock-title-wrap {
  margin: 0;
  text-align: left;
}
.mcq-sort-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 5px;
  border-radius: 999px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.mcq-sort-tabs::-webkit-scrollbar {
  display: none;
}
.mcq-sort-tab {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.mcq-sort-tab:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.mcq-sort-tab.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}
@media (max-width: 768px) {
  .latest-mock-header-flex {
    flex-direction: column;
    align-items: center;
  }
  .latest-mock-header-flex .latest-mock-title-wrap {
    text-align: center;
  }
}

/* 3. Modern EdTech Mock Test Cards (#mcq-section .home-modern-card) */
#mcq-section .exam-posts {
  gap: 16px;
  padding: 6px;
}
#mcq-section .exam-card.home-modern-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  position: relative;
}
#mcq-section .exam-card.home-modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--card-accent, #059669);
  z-index: 2;
}
#mcq-section .exam-card.home-modern-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, #4f46e5);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.12);
}
#mcq-section .hmc-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 8px;
  background: linear-gradient(180deg, var(--cat-bg, #f8fafc) 0%, #ffffff 100%);
}
#mcq-section .hmc-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--cat-c, #4f46e5);
  background: #ffffff;
  border: 1px solid rgba(79, 70, 229, 0.16);
  padding: 3px 9px;
  border-radius: 999px;
  max-width: 68%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#mcq-section .hmc-time-chip {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
#mcq-section .hmc-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}
#mcq-section .hmc-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
#mcq-section .exam-card.home-modern-card:hover .hmc-thumb-img {
  transform: scale(1.04);
}
#mcq-section .hmc-floating-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--cat-c, #4f46e5);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
#mcq-section .hmc-free-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #059669;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}
#mcq-section .hmc-body {
  padding: 8px 15px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
#mcq-section .hmc-title {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif) !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: left !important;
  line-height: 1.45 !important;
  margin: 0 0 12px 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  transition: color 0.2s ease;
}
#mcq-section .exam-card.home-modern-card:hover .hmc-title {
  color: #4f46e5 !important;
}
#mcq-section .hmc-meta-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
#mcq-section .hmc-mpill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}
#mcq-section .hmc-footer {
  background: #f8fafc !important;
  border-top: 1px solid #f1f5f9;
  padding: 10px 15px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#mcq-section .hmc-lang-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#mcq-section .hmc-cta-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 6px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.22);
  transition: all 0.2s ease;
}
#mcq-section .exam-card.home-modern-card:hover .hmc-cta-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

/* 4. Community AI Mock Tests Strip */
.community-ai-section {
  padding: 4px 0 18px;
}
.comm-ai-box {
  background: linear-gradient(135deg, #faf5ff 0%, #eef2ff 55%, #f0fdf4 100%);
  border: 1.5px solid #ddd6fe;
  border-radius: 20px;
  padding: 22px;
}
.comm-ai-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.comm-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}
.comm-ai-heading {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}
.comm-ai-sub {
  font-size: 13px;
  color: #475569;
  margin: 0;
}
.comm-ai-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #4f46e5;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: transform 0.2s ease;
}
.comm-ai-create-btn:hover {
  transform: translateY(-2px);
}
.comm-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.comm-ai-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.comm-ai-card:hover {
  transform: translateY(-3px);
  border-color: #7c3aed;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.12);
}
.comm-ai-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.comm-ai-tag {
  font-size: 11px;
  font-weight: 800;
  color: #7c3aed;
  background: #f5f3ff;
  padding: 2px 8px;
  border-radius: 999px;
}
.comm-ai-qpill {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}
.comm-ai-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comm-ai-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
}
.comm-ai-author {
  color: #64748b;
  font-weight: 600;
}
.comm-ai-start {
  color: #4f46e5;
  font-weight: 800;
}

/* 5. Official Study Community Hub (.home-social-hub) */
.home-social-hub {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px 24px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
}
.social-hub-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 320px;
}
.social-hub-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid #10b981;
  flex-shrink: 0;
}
.social-hub-motto {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 5px;
}
.social-hub-heading {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}
.social-hub-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.social-hub-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(195px, 1fr));
  gap: 12px;
  flex: 1.4 1 540px;
}
@media (max-width: 900px) {
  .social-hub-cards {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
.social-brand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none !important;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.2s ease;
}
.social-brand-card:hover {
  transform: translateY(-2px);
}
.sbc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sbc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #ffffff;
  flex-shrink: 0;
}
.sbc-left strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}
.sbc-left small {
  display: block;
  font-size: 11px;
  color: #64748b;
}
.sbc-cta {
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.whatsapp-card .sbc-icon { background: #16a34a; }
.whatsapp-card .sbc-cta { background: #dcfce7; color: #15803d; }
.whatsapp-card:hover { border-color: #16a34a; background: #f0fdf4; }

.telegram-card .sbc-icon { background: #0284c7; }
.telegram-card .sbc-cta { background: #e0f2fe; color: #0369a1; }
.telegram-card:hover { border-color: #0284c7; background: #f0f9ff; }

.youtube-card .sbc-icon { background: #dc2626; }
.youtube-card .sbc-cta { background: #fee2e2; color: #b91c1c; }
.youtube-card:hover { border-color: #dc2626; background: #fef2f2; }

/* 6. SEO-Safe Collapsible Guide Card (.seo-collapsible-card) */
.seo-collapsible-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}
.seo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  flex-wrap: wrap;
}
.seo-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.seo-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.seo-card-heading {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
}
.seo-card-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}
.seo-toggle-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.seo-card-body {
  padding: 20px 22px;
  position: relative;
  transition: max-height 0.35s ease;
}
.seo-card-body.collapsed {
  max-height: 210px;
  overflow: hidden;
}
.seo-card-fade-footer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 36px 16px 16px;
  margin-top: -54px;
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 55%, #ffffff 100%);
}
.seo-readmore-btn {
  background: #eef2ff;
  border: 1.5px solid #c7d2fe;
  color: #4338ca;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.seo-readmore-btn:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}
.seo-card-body p {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif) !important;
  font-size: 14.5px !important;
  line-height: 1.75 !important;
  color: #334155 !important;
  text-align: left !important;
  margin-bottom: 12px !important;
}
.seo-card-body h2 {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 20px 0 8px 0 !important;
  padding-left: 10px;
  border-left: 3.5px solid #4f46e5;
}
.seo-card-body h3 {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 14px 0 6px 0 !important;
}




