/* --- Section Header --- */
.section-header {
  /* display: flex; */
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0;
}

/* --- Card Grid --- */
/* --- Card Grid --- */
.our-programs-cards-container {
  width: 100%;
  display: grid;

  /* 1. Change auto-fit to auto-fill */
  /* auto-fill creates columns even if they are empty, preventing stretching */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));

  gap: 2rem;
  width: 100%;
  align-items: stretch;
  /* Makes all cards in a row the same height */

  /* 2. Center the Grid Items/Tracks */
  /* This centers the content when there are fewer items than tracks */
  justify-content: center;
}

/* --- Base Card Styles (Mobile-First) --- */
.our-program-card {
  width: 100%;
  /* Fills the grid column */
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0px 2px 6px rgba(128, 128, 128, 0.779);
  background-color: #fff;
  box-sizing: border-box;
  justify-content: flex-start;
}

/* --- Card Top --- */
.our-program-card-top-container {
  width: 100%;
  display: flex;
  justify-content: center;
  row-gap: 1rem;
  align-items: center;
  flex-direction: column;
  padding-bottom: 1.5rem;
  margin-bottom: 1.3rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.23);
}

.course-heading {
  text-align: center;
  font-size: 1.5rem;
  /* Mobile font size */
  font-weight: 650;
  min-height: 3.3em;
  /* Prevents layout shift */
  display: flex;
  align-items: center;
  justify-content: center;
}

.duration-container {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
  align-items: center;
}

.calendar-icon-div {
  width: 20px;
  /* Mobile icon size */
  height: 20px;
  /* Mobile icon size */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 1px 1px 5px gray;
  border-radius: 5px;
  flex-shrink: 0;
}

.duration-text {
  font-weight: 500;
  font-size: 0.9rem;
  /* Mobile font size */
}

.calendar-icon-div img {
  width: 80%;
}

/* --- Card Bottom --- */
.our-program-card-bottom-container {
  width: 100%;
  display: flex;
  row-gap: 1rem;
  /* Mobile row gap */
  flex-direction: column;
  flex-grow: 1;
  /* Fills the card's height */
  justify-content: space-between;
  /* Pushes button to bottom */
}

.projects-guided-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  column-gap: 0.4rem;
  /* Mobile gap */
}

/* --- Course Icons Container --- */
.course-icons-container {
  width: 100%;
  display: flex;
  justify-content: space-evenly; /* Spreads items out evenly */
  align-items: flex-start; /* Aligns items to the top */
  gap: 8px; /* Safety gap between items */
  margin-top: 10px; /* Space from the section above */
}

/* --- New: The Wrapper for Image + Text --- */
.tech-item {
  display: flex;
  flex-direction: column; /* Stacks Image on top, Text below */
  align-items: center; /* Centers content horizontally */
  justify-content: center;
  text-align: center;
  width: 70px; /* Fixes width so they align perfectly */
}

/* --- Updated: Image Styling --- */
/* Note: Changed selector to be specific to .tech-item */
.tech-item img {
  width: 3rem; /* Slightly smaller (48px) to make room for text */
  height: 3rem; /* Ensures consistent height */
  object-fit: contain; /* Prevents image distortion */
  margin-bottom: 6px; /* Space between Image and Text */
  transition: transform 0.3s ease;
}

/* Hover effect for fun (Optional) */
.tech-item:hover img {
  transform: translateY(-3px);
}

/* --- New: Tech Name Styling --- */
.tech-name {
  font-size: 0.75rem; /* ~12px: Small and clean */
  font-weight: 500;
  color: var(--text-gray, #555); /* Uses your variable or fallback */
  line-height: 1.2;
  word-wrap: break-word; /* Ensures long words wrap */
}

/* --- Mobile Adjustment --- */
@media (max-width: 480px) {
  .tech-item img {
    width: 2.5rem; /* Smaller icons on very small screens */
    height: 2.5rem;
  }
  .tech-name {
    font-size: 0.7rem;
  }
}

.course-icons-container img {
  width: 4rem;
}

.our-program-bottom-para {
  font-size: 12px;
  /* Mobile font size */
}

.price-register {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.original-price {
  text-decoration: line-through;
  color: rgb(197, 197, 197);
}

/*
========================================
--- MEDIA QUERIES (Tablet & Desktop) ---
========================================
*/

/* Styles for screens 768px and WIDER */
@media (min-width: 768px) {
  .section-header {
    display: flex;
  }

  .our-program-card {
    padding: 1.6rem;
    /* Larger padding */
  }

  .course-heading {
    font-size: 1.8rem;
    /* Larger font */
    min-height: 3.6em;
  }

  .calendar-icon-div {
    width: 30px;
    /* Larger icon */
    height: 30px;
  }

  .duration-text {
    font-size: 1rem;
    /* Larger font */
  }

  .our-program-card-bottom-container {
    row-gap: 1.5rem;
    /* Larger gap */
  }

  .projects-guided-container {
    column-gap: 1rem;
    /* Larger gap */
  }

  .our-program-bottom-para {
    font-size: 0.8rem;
    /* Larger font */
  }
}

@media (max-width: 768px) {
  .our-programs-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  }
}

/* --- Course Category Filter Bar --- */
.course-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 40px;
  padding-bottom: 5px; /* Space for a slight border/shadow effect */
}

.filter-btn {
  background-color: var(--card-bg); /* White background */
  color: var(--text-dark);
  padding: 10px 18px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Default hover state */
.filter-btn:hover {
  border-color: var(--light-blue);
  background-color: #e6f3ff; /* Light blue tint on hover */
}

/* Active state (currently selected category) */
.filter-btn.active {
  background-color: var(--bg-dark-green);
  color: var(--text-light);
  border-color: var(--bg-dark-green);
}

.filter-btn.active:hover {
  /* Keep active state visual strong */
  background-color: var(--bg-dark-green);
  filter: brightness(1.1);
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
  .course-filter-bar {
    justify-content: flex-start;
    /* Allow buttons to stack if necessary */
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}


.our-program-bottom-para.line-clamp-4{
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}


.projects-guided-text-container.line-clamp  {
   display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}