/* Reset and global settings */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
   font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
}

/* Wrapper for entire mains page */
.mains-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 2rem;
  padding: 4rem;
  padding-top: 100px; /* Prevent overlap with fixed header */
  max-width: 1400px;
  margin: auto;
  background: #fff;
}

/* Main content area - 65% */
.mains-main {
  width: 68%;
}

/* Sidebar - 35% */
.mains-sidebar {
  width: 32%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sidebar box styling */
.sidebar-box {
  background: #f7f7f7;
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-box h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  text-align: left;
  padding-left: 10px;
  border-left: 4px solid;
  border-image: linear-gradient(to bottom, #ff4d4d, #b30000) 1;
}

/* Mock Test Button */
.mock-btn {
  margin-top: 0.8rem;
  background: #28a745;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.mock-btn:hover {
  background: #218838;
}

/* Calendar iframe */
.calendar-box iframe {
  border: none;
  width: 100%;
  height: 300px;
  border-radius: 8px;
}

/* 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), /* card bg */
    linear-gradient(to right, #ff6ec4, #7873f5); /* cool multicolor border */
  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.875rem;
  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: 1.125rem;
  margin-bottom: 6px;
}
.test-card-26-exam,
.test-card-26-price {
  font-size: 0.875rem;
  margin-bottom: 10px;
}
.test-card-26-price {
  color: red;
}
.test-card-26-buttons a {
  display: inline-block;
  font-size: 0.875rem;
  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;
}

/* 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;
}

/* Section styles */
section {
  margin-bottom: 2.5rem;
}

h1, h2, h3 {
  color: #222; /* Clean black variant */
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.5rem;
  line-height: 1.7;
}

.syllabus-box {
  background: #f8f8f8;
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .mains-wrapper {
    flex-direction: column;
    padding: 1rem 1rem 2rem;
    padding-top: 90px;
    gap: 1rem;
  }

  .mains-main,
  .mains-sidebar {
    width: 100%;
  }

  .sidebar-box {
    padding: 1rem 1rem;
  }
.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;
  }
  .syllabus-box {
    padding: 0.8rem 1rem;
  }

  section {
    margin-bottom: 1.5rem;
  }

  h1, h2, h3 {
    font-size: 1.2rem;
  }

  ul {
    padding-left: 1rem;
  }
}
