/* header-gap.css
   Adds a small gap between the header and the following content.
   Adjust values if you want more/less space.
*/
header.th-header, header {
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  header.th-header, header {
    margin-bottom: 20px;
  }
}



/* internship overview */
/* Responsive media: ensure images, pictures, svg and videos scale to their containers */
img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility to make an image cover its container (useful for hero/course images) */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* natural flow with breathing room and allow vertical scrolling */
  min-height: 100vh;
  padding: clamp(16px, 4vw, 36px) clamp(12px, 2vw, 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.course-container {
  display: flex;
  flex-direction: column;
  background: #fff;
  width: min(100%, 1200px);
  margin: 0 auto 28px;
  border-radius: clamp(8px, 2vw, 12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease;
  gap: 0;
}

@media (min-width: 768px) {
  .course-container {
    flex-direction: row;
  }
}

/*.course-container:hover {
  transform: translateY(-5px);
}*/

.course-image {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .course-image {
    flex: 1 1 45%;
    min-width: 220px;
    max-height: none;
  }
}

.course-image img {
  width: 100%;
  height: auto; /* natural height so image scales responsively */
  object-fit: cover; /* will apply when container gives a fixed height or .img-cover is used */
  display: block;
  transition: transform 0.45s ease;
  max-width: 100%;
  max-height: 60vh; /* limit large images to 60% of viewport height to help fit to screen */
}

@media (max-width: 767px) {
  .course-image img {
    aspect-ratio: 16 / 9;
  }
}

.course-details {
  padding: clamp(16px, 3vw, 28px);
}
  

.course-details h2 {
  /* Fluid heading */
  font-size: clamp(1.1rem, 1.6vw + 0.6rem, 1.6rem);
  color: #111;
  margin-top: 14px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vw, 8px);
  margin-bottom: clamp(12px, 2vw, 14px);
}

.tag {
  padding: clamp(4px, 0.8vw, 5px) clamp(8px, 1.2vw, 10px);
  border-radius: clamp(4px, 0.8vw, 6px);
  font-size: clamp(12px, 1vw + 0.5rem, 13px);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .tags {
    gap: 6px;
  }
  
  .tag {
    padding: 4px 8px;
    font-size: 12px;
  }
}

.graphura {
  background: #f1f3f5;
  color: #333;
}

.category, .duration {
  background: #f4f4f4;
  color: #444;
}

.description {
  color: #555;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  margin-bottom: clamp(16px, 2.5vw, 18px);
  line-height: 1.6;
  max-width: 65ch;
}

@media (max-width: 480px) {
  .description {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }
}

.actions {
  display: flex;
  gap: 16px; /* Space between buttons */
  flex-wrap: wrap;
}

.apply-btn, .brochure-btn {
  background-color: #FFAC00; /* Yellow */
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease; /* Smooth transition */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  flex: 0 1 auto; /* Allow buttons to shrink if needed */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none; /* Remove underline from anchor */
}

.brochure-btn i {
  font-size: 1.1em; /* Slightly larger icon */
}

.apply-btn:hover, .brochure-btn:hover {
  background-color: #1a685b; /* Green */
  color: #fff;
  transform: translateY(-2px); /* Subtle lift effect */
}

@media (max-width: 480px) {
  .actions {
    gap: 12px;
  }
  
  .apply-btn, .brochure-btn {
    padding: 10px 24px;
    font-size: 14px;
  }
}

/* Small-screen improvements: stack layout and ensure elements fit nicely */
@media (max-width: 768px) {
  /* Make action buttons stack and fill width for easier tapping */
  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .apply-btn, .brochure-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  /* Reduce course image height to fit smaller screens */
  .course-image {
    max-height: 40vh;
  }

  .course-image img {
    max-height: 40vh;
    object-fit: cover;
  }

  /* Tabs: allow horizontal scroll if there are many tabs */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tabs .tab {
    flex: 0 0 auto; /* prevent tabs from shrinking too small */
  }

  /* Containeer padding reduction on small screens */
  .containeer {
    padding: 12px;
    margin: 12px auto;
  }
}

/* Medium screens: slightly larger paddings and keep buttons inline if space permits */
@media (min-width: 769px) and (max-width: 1024px) {
  .actions {
    flex-direction: row;
    gap: 12px;
  }

  .apply-btn, .brochure-btn {
    padding: 10px 22px;
    font-size: 15px;
  }

  .course-image {
    max-height: 45vh;
  }
}



/* internship details */

.containeer {
  background: #fff;
  width: 100%;
  max-width: 1100px;
  margin: 18px auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 18px 20px;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vw, 8px);
  border-bottom: 2px solid #eee;
  margin-bottom: clamp(14px, 2.5vw, 18px);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding: 8px 0;
}

.tab {
  background: none;
  border: none;
  font-size: clamp(14px, 1vw + 0.5rem, 16px);
  padding: clamp(6px, 1vw, 8px) clamp(10px, 1.5vw, 14px);
  cursor: pointer;
  color: #555;
  position: relative;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  min-width: fit-content;
}

@media (max-width: 480px) {
  .tabs {
    justify-content: stretch;
    gap: 4px;
  }
  
  .tab {
    flex: 1 1 auto;
  }
}

.tab.active {
  color: #f28705;
  font-weight: 600;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #f28705;
  border-radius: 2px;
}

/* Content Box */
.detail-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(10px, 2vw, 14px) clamp(4px, 1vw, 8px);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
  padding: clamp(8px, 1.5vw, 10px);
  background: #fafafa;
  border-radius: clamp(6px, 1vw, 8px);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .detail-item {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  
  .detail-item i {
    margin-bottom: 8px;
  }
}

.detail-item i {
  width: 28px;
  height: 28px;
  color: #555;
  flex: 0 0 28px;
}

.detail-item h4 {
  font-size: 0.95rem;
  color: #777;
  font-weight: 600;
  margin: 0;
}

.detail-item p {
  font-size: 0.95rem;
  color: #111;
  font-weight: 600;
  margin: 0;
}
/* additional details */
/* Tab Content */
.tab-content { display: none; }
.tab-content.active { display: block; }

.why-us ul{
  list-style-type: disc;
  padding-left: 20px;
  color: #333;
  line-height: 1.6;
}

.why-us li{ margin-bottom: 12px; }

/* key respo. , what gain */
.outcomes {
  width: min(100%, 1100px);
  margin: clamp(14px, 2.5vw, 18px) auto clamp(28px, 4vw, 36px);
  padding: 0 clamp(8px, 1.5vw, 10px);
}

h1 {
  color: #222;
  margin-bottom: clamp(16px, 2.5vw, 20px);
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  line-height: 1.2;
}

.outcomes-box {
  background-color: #ffffff;
  padding: clamp(20px, 3vw, 25px) clamp(20px, 3.5vw, 30px);
  border-radius: clamp(8px, 1.5vw, 12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
  .outcomes-box {
    padding: 16px;
  }
  
  .outcomes-box ul {
    padding-left: 16px;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .course-container { max-width: 920px; }
  .container, .outcomes { max-width: 920px; }
}

@media (max-width: 768px) {
  /* Stack image and details */
  .course-container {
    flex-direction: column;
    align-items: stretch;
  }

  .course-image { width: 100%; height: 220px; }
  .course-image img { height: 100%; aspect-ratio: auto; }

  .course-details { padding: 18px; }

  .tabs { justify-content: flex-start; }
  .tab { padding: 8px 10px; }

  .detail-item { flex-direction: row; }
}

@media (max-width: 480px) {
  body { padding: 20px 12px; }
  .course-image { height: 180px; }
  .course-details h2 { font-size: 1.1rem; }
  .apply-btn { width: 100%; text-align: center; padding: 12px; }
  .detail-box { gap: 12px; }
}

.outcomes-box ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #333;
  line-height: 1.6;
}

/* Newsletter form styling */
.form-message {
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  color: #3c763d;
  padding: 15px;
  margin-top: 15px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.outcomes-box li {
  margin-bottom: 12px;
}
  