/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.6;
}

/* Wrapper Layout */
.prelims-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 5vw;
  max-width: 1400px;
  margin: 40px auto;
  box-sizing: border-box;
}
.prelims-main {
  flex: 0 0 70%;
  max-width: 70%;
}
.prelims-sidebar {
  flex: 0 0 30%;
  max-width: 30%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section Headings */
.prelims-main section {
  margin-bottom: 32px;
}
.prelims-main h1,
.prelims-main h2,
.prelims-main h3 {
  color: #111111;
  margin-bottom: 12px;
}
.prelims-main h1 {
  font-size: 1.75rem; /* reduced */
}
.prelims-main h2 {
  font-size: 1.25rem; /* reduced */
}
.prelims-main h3 {
  font-size: 0.95rem; /* reduced */
}

/* Intro Section */
.intro p {
  font-size: 0.95rem; /* reduced */
  margin-top: 8px;
}

/* Lists */
.prelims-main ul {
  list-style: disc inside;
  margin-top: 8px;
}
.prelims-main ul li {
  margin-bottom: 6px;
}

/* Test Series Slider */
.slider-section {
  position: relative;
}
.slider-wrapper {
  position: relative;
  overflow: hidden;
}
.test-slider {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.test-card-26 {
  background: linear-gradient(135deg, #ffffff, #f5f7fa);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px;
  margin-right: 16px;
  flex: 0 0 280px;
  max-width: 300px;
  scroll-snap-align: start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image: 
    linear-gradient(135deg, #ffffff, #f5f7fa), 
    linear-gradient(to right, #ff6ec4, #7873f5);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.test-card-26:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
.test-card-26-live {
  display: flex;
  align-items: center;
  font-size: 0.8125rem; /* reduced */
  color: #ff4d4f;
  margin-bottom: 8px;
  font-weight: 500;
  float: right;
}
.test-card-26-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ff4d4f;
  border-radius: 50%;
  margin-right: 6px;
  animation: blink 1.2s infinite;
}
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}
.test-card-26-title {
  font-size: 1rem; /* reduced */
  margin-bottom: 6px;
}
.test-card-26-exam,
.test-card-26-price {
  font-size: 0.8125rem; /* reduced */
  margin-bottom: 10px;
}
.test-card-26-price {
  color: red;
}
.test-card-26-buttons a {
  display: inline-block;
  font-size: 0.8125rem; /* reduced */
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 8px;
  transition: background-color 0.3s, color 0.3s;
}
.test-card-26-explore {
  color: #1890ff;
  background-color: transparent;
  border: 1px solid #1890ff;
}
.test-card-26-explore:hover {
  background-color: rgba(24,144,255,0.1);
}
.test-card-26-buy {
  background-color: #1890ff;
  color: #ffffff;
  border: none;
}
.test-card-26-buy:hover {
  background-color: #0f75d8;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333333;
  z-index: 10;
}
.slider-arrow.left {
  left: 8px;
}
.slider-arrow.right {
  right: 8px;
}

/* Enhanced Syllabus Section */
.syllabus-box {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e5e5;
  margin-top: 16px;
}
.syllabus-box h3 {
  margin-bottom: 12px;
  font-size: 1.125rem; /* reduced */
  color: #222;
  padding-left: 10px;
  border-left: 4px solid #007bff;
}
.syllabus-box ul {
  padding-left: 20px;
  list-style-type: disc;
  color: #444;
}
.syllabus-box ul li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Sidebar Boxes */
.sidebar-box {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
}
.sidebar-box h3 {
  margin-bottom: 8px;
  font-size: 1.125rem; /* reduced */
  text-align: left;
  padding-left: 10px;
  border-left: 4px solid;
  border-image: linear-gradient(to bottom, #ff4d4d, #b30000) 1;
}
.mock-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #28a745;
  color: #ffffff;
  font-size: 0.9375rem; /* reduced */
  cursor: pointer;
  transition: background-color 0.3s;
}
.mock-btn:hover {
  background-color: #218838;
}
.calendar-box iframe {
  border-radius: 8px;
}

/* Thin Scrollbars */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .prelims-wrapper {
    flex-direction: column;
    padding: 20px 4vw;
  }
  .prelims-main,
  .prelims-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .test-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 576px) {
  .prelims-wrapper {
    padding: 16px 3vw;
  }
  .prelims-main h1 {
    font-size: 1.5rem; /* reduced */
  }
  .prelims-main h2 {
    font-size: 1.25rem; /* reduced */
  }
  .prelims-sidebar {
    gap: 12px;
  }
  .test-card-26 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
  }
  .test-slider {
    overflow-x: hidden;
  }
  .slider-arrow {
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
  }
  .slider-arrow.left {
    left: 4px;
  }
  .slider-arrow.right {
    right: 4px;
  }
}
