  body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    background-color: #f4f4f4;
  }
  .sidebar {
    width: 270px;
    background-color: #034ea2;
    color: white;
    padding: 20px 15px;
    box-sizing: border-box;
    overflow-y: auto;
    height: 100vh;
    position: fixed;
  }
  .sidebar h2 {
    margin-top: 0;
    margin-bottom: 20px;
  }
  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .sidebar li {
    margin: 10px 0;
    cursor: pointer;
    padding: 8px 10px;
    background-color: #0463c1;
    border-radius: 4px;
    user-select: none;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
  }
  .sidebar li:hover,
  .sidebar li.active {
    background-color: #055bb5;
  }
  .sidebar li img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
  }
  .category-li {
    background-color: #0280d0;
    cursor: default;
    font-weight: bold;
    margin-top: 20px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .toggle-icon {
    font-weight: bold;
    font-size: 20px;
    user-select: none;
  }
  .sub-programs {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    display: none;
    flex-direction: column;
  }
  .sub-programs li {
    background-color: #0463c1;
    margin: 5px 0;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
  }
  .sub-programs li:hover,
  .sub-programs li.active {
    background-color: #055bb5;
  }
  @media (max-width: 768px) {
    .sidebar {
      position: relative;
      width: 100%;
      height: auto;
      max-height: none;
      padding: 10px 15px;
      display: flex;
      align-items: center;
      overflow-x: auto;
      white-space: nowrap;
      box-sizing: border-box;
      margin-bottom: 15px;
    }
    .sidebar h2 {
      flex: 0 0 100%;
      margin-bottom: 10px;
      color: white;
    }
    .sidebar ul {
      display: flex;
      flex-wrap: nowrap;
      padding: 0;
      margin: 0;
    }
    .sidebar li, .category-li {
      margin: 0 10px 0 0;
      padding: 6px 10px;
      border-radius: 4px;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-width: 130px;
      white-space: normal;
    }
    .sub-programs {
      position: absolute;
      background: #034ea2;
      top: 100%;
      left: 0;
      width: 270px;
      max-height: 300px;
      overflow-y: auto;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      z-index: 10;
      display: none !important;
      flex-direction: column;
      padding: 10px 0;
      white-space: normal;
    }
    .sub-programs li {
      margin: 5px 15px;
      min-width: auto;
      justify-content: flex-start;
    }
  }
  .category-li {
    background-color: #0280d0;
    cursor: default;
    font-weight: bold;
    margin-top: 20px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .toggle-icon {
    font-weight: bold;
    font-size: 20px;
    user-select: none;
  }
  .sub-programs {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    display: none;
    flex-direction: column;
  }
  .sub-programs li {
    background-color: #0463c1;
    margin: 5px 0;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
  }
  .sub-programs li:hover,
  .sub-programs li.active {
    background-color: #055bb5;
  }
  .content {
    margin-left: 290px;
    padding: 30px;
    flex: 1;
    background: white;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .content h1 {
    margin-top: 0;
  }

  #top-sub-nav {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  /* Tab buttons + apply button container styles handled in JS */

  /* Desktop: Big image right side */
  /* #program-big-image {
    position: absolute;
    top: 30px;
    right: 30px;
    max-width: 350px;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    object-fit: cover;
    display: none;
  } */

  /* Responsive for mobile */
  @media (max-width: 768px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      position: relative;
      width: 100%;
      height: auto;
      max-height: none;
      padding: 10px 15px;
      display: flex;
      align-items: center;
      overflow-x: auto;
      white-space: nowrap;
      box-sizing: border-box;
      margin-bottom: 15px;
    }
    .sidebar h2 {
      flex: 0 0 100%;
      margin-bottom: 10px;
      color: white;
    }
    .sidebar ul {
      display: flex;
      flex-wrap: nowrap;
      padding: 0;
      margin: 0;
    }
    .sidebar li, .category-li {
      margin: 0 10px 0 0;
      padding: 6px 10px;
      border-radius: 4px;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-width: 130px;
      white-space: normal;
    }
    .sub-programs {
      position: absolute;
      background: #034ea2;
      top: 100%;
      left: 0;
      width: 270px;
      max-height: 300px;
      overflow-y: auto;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      z-index: 10;
      display: none !important;
      flex-direction: column;
      padding: 10px 0;
      white-space: normal;
    }
    .sub-programs li {
      margin: 5px 15px;
      min-width: auto;
      justify-content: flex-start;
    }
    .content {
      margin-left: 0;
      margin-top: 0;
      padding: 15px 20px;
      position: relative;
    }
    #program-big-image {
      position: relative;
      max-width: 100%;
      max-height: 250px;
      margin-top: 20px;
      right: auto;
      top: auto;
      display: block;
      box-shadow: 0 0 8px rgba(0,0,0,0.2);
      border-radius: 8px;
      object-fit: cover;
    }
  }
  /* Mobile header */
.mobile-header {
  display: none;
  background-color: #034ea2;
  color: white;
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  position: relative;
  z-index: 2000;
}
.mobile-logo {
  font-weight: bold;
}
.hamburger {
  font-size: 1.6rem;
  cursor: pointer;
}

/* Sidebar Drawer */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -270px;
    width: 250px;
    height: 100%;
    background-color: #034ea2;
    overflow-y: auto;
    z-index: 2001;
    transition: left 0.3s ease;
  }

  .sidebar.show {
    left: 0;
  }

  .overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4);
    display: none;
    z-index: 2000;
  }

  .overlay.show {
    display: block;
  }

  .content {
    margin-left: 0 !important;
    padding-top: 60px;
  }
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -270px;
    width: 250px;
    height: 100%;
    background-color: #034ea2;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2001;
    transition: left 0.3s ease;
    display: block; /* THIS IS CRITICAL */
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar ul {
    display: block;
    padding: 0;
    margin: 0;
  }

  .sidebar li,
  .category-li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    background-color: #0463c1;
    color: white;
    border-radius: 6px;
    white-space: normal;
  }

  .sidebar li img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #034ea2;
    color: white;
    padding: 14px 20px;
    font-size: 1.1rem;
    z-index: 2002;
  }

  .overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 2000;
  }

  .overlay.show {
    display: block;
  }

  .content {
    margin-left: 0 !important;
    padding-top: 60px;
  }
  

}
.sidebar-btn {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 5px 0;
  background-color: #0463c1;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.sidebar-btn:hover {
  background-color: #055bb5;
}
.sidebar h2 {
  font-size: 1.2rem;
  word-wrap: break-word;
  line-height: 1.3;
  white-space: normal;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .sub-programs {
    position: static !important;  /* <- ✅ allow it to flow with layout */
    display: none;
    padding-left: 15px;
    margin-top: 5px;
    flex-direction: column;
    background: #0456a2;
    border-radius: 4px;
  }

  .sub-programs.show {
    display: flex !important;
  }

  .sub-programs li {
    margin: 6px 0;
    padding: 8px 10px;
  }
}



.sub-programs {
  display: none;
}
.sub-programs.show {
  display: flex;
}
@media (max-width: 768px) {
  .sub-programs {
    position: static;
    display: none;
    padding-left: 0;
    margin-top: 5px;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
  }

  .sub-programs.show {
    display: flex;
  }

  .sub-programs li {
    display: flex;
    align-items: center;
    margin: 6px 0;
    padding: 8px 10px;
    background-color: #0463c1;
    color: white;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .sub-programs li:hover {
    background-color: #055bb5;
  }
}
.sidebar h2 {
  word-break: break-word;
  white-space: normal;
  font-size: 1.2rem;
  line-height: 1.4;
}
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .sidebar {
    white-space: normal; /* ✅ fixes the overflow */
    overflow-x: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px;
  }

.sidebar ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}


 .sidebar li,
.category-li {
  margin: 6px 0;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}


  .content {
    max-width: 100%;
    overflow-x: hidden;
    padding: 15px 20px;
  }

  #top-sub-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  #top-sub-nav button {
    flex: 1 1 calc(50% - 10px);
    min-width: 120px;
  }

  .mobile-header {
    overflow-x: hidden;
  }
}
.sidebar-btn {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 5px 0;
  background-color: #0463c1;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s;
  font-size: 0.95rem;
  box-sizing: border-box;
  width: 100%;         /* ✅ ensures full width like list items */
  white-space: normal; /* ✅ matches other buttons */
}
@media (max-width: 768px) {
  .sub-programs {
    display: none;
    flex-direction: column;
    padding-left: 10px;
    margin-top: 5px;
    background-color: #0456a2;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  .sub-programs.show {
    display: flex;
  }

  .sub-programs li {
    margin: 6px 0;
    padding: 8px 10px;
    background-color: #0463c1;
    color: white;
    border-radius: 4px;
    width: 100%;
  }

  .sub-programs li:hover {
    background-color: #055bb5;
  }
}
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -270px;
    width: 250px;
    height: 100%;
    background-color: #034ea2;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2001;
    transition: left 0.3s ease;
    display: block;
    white-space: normal;
    padding: 10px 15px;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar h2 {
    margin-bottom: 10px;
    color: white;
    font-size: 1.2rem;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
  }

  .sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .sidebar li,
  .category-li,
  .sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    background-color: #0463c1;
    color: white;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.95rem;
    white-space: normal;
  }

  .sidebar li img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .sub-programs {
    display: none;
    flex-direction: column;
    padding-left: 10px;
    margin-top: 5px;
    background-color: #0456a2;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  .sub-programs.show {
    display: flex;
  }

  .sub-programs li {
    margin: 6px 0;
    padding: 8px 10px;
    background-color: #0463c1;
    color: white;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  .sub-programs li:hover {
    background-color: #055bb5;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #034ea2;
    color: white;
    padding: 14px 20px;
    font-size: 1.1rem;
    z-index: 2002;
  }

  .overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4);
    display: none;
    z-index: 2000;
  }

  .overlay.show {
    display: block;
  }

  .content {
    margin-left: 0 !important;
    padding-top: 60px;
    max-width: 100%;
    overflow-x: hidden;
    padding: 15px 20px;
  }
}
.program-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.program-layout #section-content {
  flex: 1;
  min-width: 250px;
}

.program-layout img {
  flex-shrink: 0;
  max-width: 350px;
  max-height: 250px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .program-layout {
    flex-direction: column;
  }
  .program-layout img {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }
}
/* yar ya main page k lia style woe jider become a doctor wagara a rha */

/* ------------------------ */
/* Welcome Section Styles  */
/* ------------------------ */
.welcome-section {
  background-color: transparent;
  padding: 25px;
  margin: 0 auto;
  max-width: 850px;
  text-align: center;
}
.welcome-section h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #034ea2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.welcome-section h2 span.highlight {
  color: #37a1f5;
}
.welcome-section p.subheading {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #297ec8;
  font-weight: 600;
}
.welcome-section p.intro {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.5;
}
.welcome-section ul {
  list-style: none;
  padding: 0;
  font-size: 1.05rem;
  text-align: left;
  max-width: 600px;
  margin: 0 auto 25px auto;
  line-height: 1.5;
}
.welcome-section ul li {
  margin-bottom: 10px;
}
.welcome-section p.footer {
  font-size: 1.08rem;
  margin-bottom: 20px;
  color: #333;
}
.welcome-section .buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.welcome-section .buttons a,
.welcome-section .buttons button {
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  cursor: pointer;
  border: none;
  color: #fff;
}
.welcome-section .buttons a.apply {
  background: linear-gradient(90deg,#034ea2,#37a1f5);
}
.welcome-section .buttons a.apply:hover {
  background: linear-gradient(90deg,#037bdc,#21a0d8);
}
.welcome-section .buttons button.list {
  background: linear-gradient(90deg,#28a745,#55c770);
}
.welcome-section .buttons button.list:hover {
  background: linear-gradient(90deg,#218838,#4abf66);
}

/* Responsive */
@media(max-width:768px){
  .welcome-section h2 { font-size:1.6rem; }
  .welcome-section p { font-size:1rem; }
  .welcome-section ul    { font-size:0.95rem; padding:0 10px; }
  .welcome-section .buttons a,
  .welcome-section .buttons button {
    font-size:0.95rem; padding:12px 20px;
  }
}
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.table-wrapper th,
.table-wrapper td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.table-wrapper th {
  background-color: #f2f2f2;
}

@media (max-width: 480px) {
  .table-wrapper table { min-width: 400px; }
}
@media (max-width: 768px) {
  /* Extend the wrapper out to the edges of the viewport */
  .table-wrapper {
    margin: 20px -20px;   /* negative margin equals your content’s left/right padding */
    padding: 0 20px;      /* re-apply that padding inside the wrapper */
    width: calc(100% + 40px);
  }

  /* Allow the table itself to shrink if needed */
  .table-wrapper table {
    min-width: auto;
  }
}.table-wrapper {
  /* push out to cover the entire viewport width */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;

  /* restore your inner gutter */
  padding: 0 20px;

  /* keep horizontal scroll if it still overflows */
  overflow-x: auto;
}

