/* ============= TIMINGS SECTION ============= */
.timings-section {
  margin: 50px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.timings-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 40px;
  font-size: 2rem;
}

.timings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.timing-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-top: 4px solid #e53333;
  text-align: center;
}

.timing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(229,51,51,0.2);
}

.timing-icon {
  font-size: 2.5rem;
  color: #e53333;
  margin-bottom: 12px;
}

.timing-card h3 {
  color: #003b77;
  font-size: 1.2rem;
  margin: 12px 0;
}

.timing-time {
  color: #e53333;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 10px 0;
}

.timing-desc {
  color: #777;
  font-size: 0.9rem;
  margin: 8px 0;
}

.timing-days {
  color: #666;
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ============= BATCH SCHEDULE SECTION ============= */
.batch-schedule-section {
  background: #f7fafd;
  padding: 50px 20px;
  margin: 50px 0;
  border-radius: 12px;
}

.batch-schedule-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Batch Tabs */
.batch-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}

.batch-tab-btn {
  background: #fff;
  color: #003b77;
  padding: 12px 25px;
  border: 2px solid #e53333;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.batch-tab-btn:hover {
  background: #e53333;
  color: #fff;
}

.batch-tab-btn.active {
  background: #e53333;
  color: #fff;
}

/* Batch Content */
.batch-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.batch-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.batch-content h3 {
  color: #003b77;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

/* Schedule Table */
.schedule-table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 1000px;
  margin: 0 auto;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
}

.table-row.header {
  background: linear-gradient(135deg, #003b77 0%, #e53333 100%);
  color: #fff;
  font-weight: bold;
}

.table-row:last-child {
  border-bottom: none;
}

.table-cell {
  padding: 18px 15px;
  text-align: center;
  border-right: 1px solid #e8e8e8;
}

.table-cell:last-child {
  border-right: none;
}

.table-row.header .table-cell:first-child {
  text-align: left;
  padding-left: 20px;
}

.table-cell strong {
  display: block;
  color: #003b77;
  margin-bottom: 5px;
}

/* Responsive adjustments */

/* Container to enable horizontal scrolling on small devices */
.schedule-table {
  overflow-x: auto; /* Enable horizontal scroll */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Keep the table rows as grid, no merging columns */
.table-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
  min-width: 600px; /* Prevent shrinking too much */
}

/* Adjust padding and font size for smaller screens */
@media (max-width: 1024px) {
  .table-cell {
    padding: 14px 10px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .table-row {
    min-width: 520px;
  }
  .table-cell {
    padding: 12px 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .table-row {
    min-width: 460px;
  }
  .table-cell {
    padding: 10px 6px;
    font-size: 0.85rem;
  }
}

@media (max-width: 350px) {
  .table-row {
    min-width: 400px;
  }
  .table-cell {
    padding: 8px 5px;
    font-size: 0.8rem;
  }
}


/* ============= MILESTONES SECTION ============= */
.milestones-section {
  margin: 50px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.milestones-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 40px;
  font-size: 2rem;
}

.milestones-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.milestone-category {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid #e53333;
}

.milestone-category h3 {
  color: #003b77;
  font-size: 1.3rem;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e53333;
}

.milestone-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.milestone-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.milestone-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.milestone-date {
  color: #e53333;
  font-weight: bold;
  font-size: 0.9rem;
  min-width: 90px;
}

.milestone-content h4 {
  color: #003b77;
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.milestone-content p {
  color: #777;
  margin: 0;
  font-size: 0.85rem;
}

/* ============= MILESTONES SECTION ============= */
.milestones-section {
  margin: 50px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.milestones-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Grid layout with responsive column sizing */
.milestones-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.milestone-category {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid #e53333;
}

.milestone-category h3 {
  color: #003b77;
  font-size: 1.3rem;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e53333;
}

.milestone-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.milestone-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  transition: all 0.3s ease;
  align-items: center;
}

.milestone-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.milestone-date {
  color: #e53333;
  font-weight: bold;
  font-size: 0.9rem;
  min-width: 90px;
  flex-shrink: 0; /* Prevent shrinking */
  text-align: center;
}

.milestone-content h4 {
  color: #003b77;
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.milestone-content p {
  color: #777;
  margin: 0;
  font-size: 0.85rem;
}

/* Responsive adjustments */


/* Small devices/mobile portrait */
@media (max-width: 480px) {
  .milestones-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .milestone-category {
    padding: 20px;
  }

  .milestone-category h3 {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }

  .milestone-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }

  .milestone-date {
    min-width: auto;
    width: 100%;
    font-size: 0.8rem;
    text-align: left;
  }

  .milestone-content h4 {
    font-size: 0.9rem;
  }

  .milestone-content p {
    font-size: 0.75rem;
  }
}


/* ============= CALENDAR SECTION ============= */
.calendar-section {
  background: #f7fafd;
  padding: 50px 20px;
  margin: 50px 0;
  border-radius: 12px;
}

.calendar-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 40px;
  font-size: 2rem;
}

.calendar-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.calendar {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header h3 {
  color: #003b77;
  margin: 0;
  font-size: 1.3rem;
}

.calendar-nav {
  background: #e53333;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.calendar-nav:hover {
  background: #003b77;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  text-align: center;
}

.weekday {
  font-weight: bold;
  color: #003b77;
  padding: 10px 0;
  font-size: 0.9rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #555;
}

.calendar-day:hover {
  background: #f0f0f0;
}

.calendar-day.today {
  background: #e53333;
  color: #fff;
  border-color: #e53333;
}

.calendar-day.event {
  background: #e53333;
  color: #fff;
  border-color: #e53333;
}

.calendar-day.other-month {
  color: #ccc;
}

.calendar-events {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.calendar-events h3 {
  color: #003b77;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.event-item {
  padding: 15px;
  background: #f7fafd;
  border-left: 4px solid #e53333;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.event-item:hover {
  background: #e53333;
  color: #fff;
}

.event-date {
  font-weight: bold;
  color: #e53333;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.event-item:hover .event-date {
  color: #fff;
}

.event-title {
  color: #003b77;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-item:hover .event-title {
  color: #fff;
}

.event-time {
  color: #777;
  font-size: 0.85rem;
}

.event-item:hover .event-time {
  color: rgba(255,255,255,0.9);
}

/* Responsive for medium devices (tablets, small desktops) */
@media (max-width: 768px) {
  .calendar-container {
    grid-template-columns: 1fr; /* Single column layout */
    max-width: 450px; /* Restrict max width to fit smaller screens */
    margin: 0 auto;
  }

  .calendar-section h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }

  .calendar-header h3 {
    font-size: 1.1rem;
  }

  .calendar-nav {
    padding: 7px 10px;
    font-size: 1rem;
  }
}

/* Responsive for small devices (phones) */
@media (max-width: 480px) {
  .calendar-section {
    padding: 30px 15px;
    margin: 30px 0;
  }

  .calendar-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .calendar-container {
    grid-template-columns: 1fr; /* Single column always */
    max-width: 100%;
    gap: 20px;
  }

  .calendar {
    padding: 20px;
  }

  .calendar-header h3 {
    font-size: 1rem;
  }

  .calendar-nav {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .calendar-weekdays {
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
  }

  .weekday {
    font-size: 0.75rem;
    padding: 6px 0;
  }

  .calendar-days {
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
  }

  .calendar-day {
    aspect-ratio: 1;
    font-size: 0.75rem;
    border-width: 1.5px;
  }

  .calendar-events {
    padding: 20px;
  }

  .calendar-events h3 {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .event-item {
    padding: 12px;
  }

  .event-date {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }

  .event-title {
    font-size: 1rem;
    margin-bottom: 3px;
  }

  .event-time {
    font-size: 0.75rem;
  }
}
