/*========================= Current Affairs container==========*/

/* Main container centered with fixed width and top margin */
.current-main-container {
  margin: 3em auto 0 auto; /* Top margin added */
  padding: 0;
  width: auto;
}

/* Three-column layout using flex */
.three-column-layout {
  display: flex;
  flex-direction: row;
  gap: 5px;
  padding: 5% 2%;
}

/* Left column (side menu) */
.current-left-column {
  margin-left: 8%;
  width: 30%;
  background-color: #f4f4f4;
  padding: 15px;
  box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}  

/* Center column (MCQ content) */
.current-center-column {
  width: 100%;  /* Set width to 50% to make it fixed size */
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  overflow-y: auto; /* Prevents overflowing content */
}

/* Right column (Date list) */
.current-right-column {
  margin-right: 8%;
  width: 30%;
  background-color: #f4f4f4;
  padding: 15px;
  box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

@media (max-width: 1500px) and (min-width: 1100px) {
  .current-main-container {
    margin: 4em auto 0 auto; /* ✅ Only this one, don't override it below */
    padding: 0;
    width: 100%;
  }

  .three-column-layout {
    margin-top: 70px;
    padding: 0;
  }
  .current-left-column {
    width: 40%;
  }
  .current-center-column {
    padding: 0;
    margin: 0;
  }
  .current-right-column {
    width: 30%;
  }
}

@media (max-width: 1100px) and (min-width: 689px) {
  .current-main-container {
    margin: 4.5em auto 0 auto; /* ✅ Keep this */
    padding: 0;
    width: 100%;
  }

  .three-column-layout {
    padding: 0;
    margin: 0;
  }

  .current-left-column {
    display: none;
  }

  .current-center-column {
    width: 100%;
  }

  .current-right-column {
    margin: 3em auto 0 auto;
    width: 50%;
  }
}

/* Responsive design */
@media (max-width: 689px) {
  .current-main-container {
    width: 100%;
  }

  .three-column-layout {
    margin: 3em auto 0 auto;
      flex-direction: column; /* Vertical layout on mobile */
  }

  /* Hide the left column */
  .current-left-column {
    display: none;
  }

  /* Right column appears above the center column */
  .current-right-column {
    width: 100%;  /* Full width on mobile */
    order: -1;    /* Moves right column above the center column */
    margin-bottom: 20px; /* Adds some space below the right column */
    margin-top: 70px;
  }

  /* Center column takes full width on mobile */
  .current-center-column {
      width: 100%;  /* Full width on mobile */
      margin-bottom: 20px;
  }

  /* Remove any extra margins and paddings for mobile */
  .current-center-column, .current-right-column {
      margin: 0;
      padding: 0;
  }
}
/* ===============Each date item box================ */
.current-center-column h2 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
  }
  
  .date-title {
    font-size: 16px;
    font-weight: 600;
    color: #0d6efd;
    background-color: #e9f3ff;
    padding: 5px 10px;
    border-left: 3px solid #0d6efd;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(13, 110, 253, 0.08);
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease;
  }
  
  
  
  
  .date-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }
  
  /* Each date item container */
  .date-item {
    position: relative;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease-in-out;
    border-left: 4px solid transparent;
    cursor: pointer;
    overflow: hidden;
  }
  
  /* Hover effect */
  .date-item:hover {
    transform: translateY(-2px) scale(1.01);
    border-left: 4px solid #007bff;
    background: #f0f8ff;
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.15);
  }
  
  /* Active date styling */
  .date-item.active-item {
    border-left: 4px solid #007bff;
    background-color: #e6f0ff;
    font-weight: bold;
    color: #0056b3;
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.15);
  }
  
  /* Link inside the date item */
  .date-item a {
    text-decoration: none;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    display: block;
    transition: color 0.2s ease;
  }
  
  /* On hover link color */
  .date-item:hover a {
    color: #007bff;
  }
  
  /* Active link inside active date item */
  .date-item.active-item a {
    color: #007bff;
  }
  
  @media (max-width: 689px) {
    .date-title {
      display: block;
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }
    .center-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh; /* Full screen height */
      text-align: center;
    }
    
    .date-list {
      flex-direction: row;
      overflow-x: auto;
      white-space: nowrap;
      gap: 8px; /* Thoda chhota gap */
      padding: 10px 0;
    }
  
    .date-item {
      min-width: max-content;
      padding: 8px 12px;  /* Compact padding */
      font-size: 0.9rem;
      flex-shrink: 0;
      border-radius: 6px; /* Thoda roundness kam */
    }
  
    .date-item a {
      font-size: 0.8rem; /* Font size chhoti */
      font-weight: bold;
    }
  }
  
  
  .explanation {
    display: none; /* Explanation hidden by default */
  }
  
  .explanation.show {
    display: block; /* Show explanation when the 'show' class is added */
  }

  /*===================================MCQs===================================*/
  /* General MCQ block */
.mcq {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Question text */
.mcq p {
  font-size: 20px;
  font-weight: 700;
  margin: 10px;
  color: #333;
}

/* Option buttons */
.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  margin-bottom: 0px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #333;
}


.option-btn:hover {
  background-color: #eaeaea;
}

/* Correct answer */
.option-btn.correct {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
  font-weight: 600;
}

/* Wrong answer */
.option-btn.wrong {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
  font-weight: 600;
}

/* Explanation block */
.explanation {
  background-color: #f1f1f1;
  border-left: 4px solid #007bff;
  padding: 10px 15px;
  margin-top: 10px;
  font-style: italic;
  color: #333;
  border-radius: 4px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
}

/*============Date More Buttons============*/
.date-title {
    font-size: 18px;
    margin-bottom: 10px;
}
.date-list {
    margin-bottom: 15px;
}
.date-item {
    margin: 4px 0;
}
.load-more-btn {
    margin-top: 10px;
    padding: 8px 16px;
    font-weight: bold;
    border: none;
    background-color: #bebebe;
    color: rgb(0, 0, 0);
    border-radius: 5px;
    cursor: pointer;
}
.load-more-btn:hover {
    background-color: #ff3333;
}

@media screen and (max-width: 768px) {
    #load-more-btn {
        display: none !important;
    }
}


  