/* --- Global Wrapper --- */
.epfo-wrapper {
  font-family: 'Poppins', sans-serif;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  color: #2c3e50;
  background: linear-gradient(to bottom, #f7f9fa 0%, #ffffff 100%);
}

/* --- Intro / Hero Section --- */
.intro-section {
  background: linear-gradient(135deg, #eaf2ff, #f4f9ff);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0ecff;
}
.intro-section span{
    font-size: 2.5rem;
    color: #FF2056;
}
.intro-section h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #173b6c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.intro-section p {
  font-size: 16px;
  color: #4a5a6a;
  max-width: 700px;
  margin: auto;
}

/* --- Section Headings --- */
.test-grid h2,
.syllabus-section h2 {
  font-size: 22px;
  margin-bottom: 24px;
  font-weight: 600;
  color: #1c2833;
  background: linear-gradient(90deg, #dceeff, #f1f8ff);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}

/* --- Cards Section --- */
.carousel-container {
  position: relative;
  padding: 0 20px; /* padding to show arrows inside */
}

.test-cards {
    margin-top:10px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
 scrollbar-width: thin; /* Firefox */
  scrollbar-color: #3498db #e1ecf8;
}

.test-cards::-webkit-scrollbar {
  height: 8px; /* horizontal scrollbar height */
}

.test-cards::-webkit-scrollbar-track {
  background: #e1ecf8;
  border-radius: 10px;
}

.test-cards::-webkit-scrollbar-thumb {
  background: #3498db;
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.test-cards::-webkit-scrollbar-thumb:hover {
  background: #1d6fb8;
}

.test-card {
  position: relative; /* Ensure relative for absolute child */
  flex: 0 0 25%;
  min-width: 260px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  border: 1px solid #e1eaf0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.open-lock-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 18px;
  color: #0F172B;
  opacity: 0.85;
  pointer-events: none; /* so it doesn't block clicks */
  user-select: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
  transition: color 0.3s ease;
}

.open-lock-icon:hover {
  color: #2471a3;
  opacity: 1;
}


.test-card:hover {
  transform: translateY(-5px);
  background: #fdfdff;
  box-shadow: 0 10px 24px rgba(0, 136, 204, 0.07);
  border-color: #cde6ff;
}

/* Show arrows always, including mobile */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #dce3ea;
  color: #3498db;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

.carousel-arrow:hover {
  background: #f5faff;
  transform: translateY(-50%) scale(1.1);
  color: #2471a3;
}

@media (max-width: 1024px) {
  .test-card {
    flex: 0 0 50%;    /* Show 2 cards fully in tablets */
    min-width: 220px; /* Minimum width to avoid too small */
  }
}

@media (max-width: 768px) {
  .test-card {
    flex: 0 0 70%;    /* Show roughly 1.5 cards on small tablets */
    min-width: 260px;
  }
  
}

@media (max-width: 480px) {
  .test-card {
    flex: 0 0 90%;    /* Almost full width card on small phones */
    min-width: auto;  /* Let width be flexible */
    max-width: 320px; /* Optional max width to avoid too large on bigger phones */
  }
}



.test-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 136, 204, 0.08);
  border-color: #d0e7ff;
  background: #fdfdff;
}

.test-card h3 {
  font-size: 18px;
  color: #FF2056;
  margin-bottom: 10px;
  font-weight: 600;
}

.test-card p {
  font-size: 14px;
  color: #5a5a5a;
  margin: 6px 0;
}

/* --- Attempt Button --- */
.btn-attempt {
  margin-top: 15px;
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #5dade2, #3498db);
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.btn-attempt:hover {
  background: linear-gradient(135deg, #2980b9, #2471a3);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
}

.btn-attempt.disabled {
  background: #b2bec3;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Syllabus Table --- */
.syllabus-section {
  margin-top: 70px;
}

.syllabus-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  border: 1px solid #e5e5e5;
}

.syllabus-section thead {
  background: linear-gradient(90deg, #f0f8ff, #f5fafd);
}

.syllabus-section th,
.syllabus-section td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eaecee;
}

.syllabus-section tr:hover {
  background-color: #f9fbfd;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #ccddee;
  border-radius: 10px;
}

/* --- Responsive Fix --- */
@media (max-width: 768px) {
  
  .test-grid h2{
      font-size: 20px;
  }
  .intro-section{
      margin-bottom: 20px;
  }
  .intro-section h1{
      font-size: 23px;
     
  }
  .test-cards{
      margin-top: -12px;
  }
}


/* Container for heading and subscribe button */
.epfo-tests-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: nowrap; /* side by side on desktop */
}

/* Adjust h2 inside flex */
.epfo-tests-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1c2833;
  background: linear-gradient(90deg, #dceeff, #f1f8ff);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
  margin: 0;      /* reset margin */
  flex-grow: 1;   /* take available space */
  text-align: center;
  display: inline-block; /* keep inline-block for gradient */
}

/* Test cards grid */
.epfo-tests-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 15px;
}

/* Individual test card */
.epfo-test-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1px solid #e5ecf3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.epfo-test-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 136, 204, 0.08);
  border-color: #d0e7ff;
  background: #fdfdff;
}

.epfo-test-card h3 {
  font-size: 18px;
  color: #FF2056;
  margin-bottom: 10px;
  font-weight: 600;
}

.epfo-test-card p {
  font-size: 14px;
  color: #5a5a5a;
  margin: 6px 0;
}

/* Attempt buttons */
.btn-epfo-attempt {
  margin-top: 15px;
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #5dade2, #3498db);
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.btn-epfo-attempt:hover {
  background: linear-gradient(135deg, #2980b9, #2471a3);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
}

.btn-epfo-attempt.disabled {
  background: #b2bec3;
  cursor: not-allowed;
  box-shadow: none;
}

/* Subscribe now button: smaller & neat */
.btn-subscribe-now {
  padding: 6px 14px;
  font-size: 18px;           /* smaller font */
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
  transition: background 0.3s, box-shadow 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-subscribe-now:hover {
  background: #2471a3;
  box-shadow: 0 6px 16px rgba(36, 113, 163, 0.4);
}

/* Responsive: stack heading & subscribe button vertically on mobile */
@media (max-width: 600px) {
  .epfo-tests-header {
    flex-direction: column;
    gap: 10px;
  }

  .epfo-tests-header h2 {
    width: 100%;
    text-align: center;
  }
}


