<style>
*{margin:0;padding:0;box-sizing:border-box;}
body{
  color:#333;
  background:url('../images/5153829-1.jpg') center/cover fixed;
}
body::before{
  content:"";
  position:fixed;
  top:0;left:0;width:100%;height:100%;
  background:rgba(255,255,255,0.9);
  z-index:-1;
}



/* PAGE LAYOUT */

    
.sidebar{
  flex:0 0 340px;
  background:#fff;
  border-radius:0px;
  box-shadow:0 0px 0px rgba(0,0,0,0.0);
  padding:10px 5px;
  height:max-content;
  position:sticky;
  top:100px;
}
    
    
.sidebar h3{
  color:#0C3574;
  margin-bottom:15px;
  font-size:1.2rem;
  text-align:center;
  border-bottom:3px solid #0C3574;
  padding-bottom:8px;
}
.sidebar ul{list-style:none;padding:0;}
.sidebar li{margin:10px 0;}
.sidebar a{
  color:#34495e;
  text-decoration:none;
  font-weight:500;
  display:block;
  padding:8px 12px;
  border-radius:0px;
  transition:all .3s;
}
 

/* MAIN CONTENT */
.main-content{
  flex:1;
  background:#fff;
  border-radius:2px;
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
  padding:40px;
  transition:opacity .5s;
}
.main-content.fade-out{opacity:0;}
.main-content.fade-in{opacity:1;}
.main-content h2{
  color:#0C3574;
  font-size:1.8rem;
  margin-bottom:15px;
  position:relative;
}
.main-content h2::after{
  content:"";
  width:70px;height:3px;
  background:#34495e;
  display:block;
  margin-top:8px;
  border-radius:2px;
}
.main-content p{
  color:#444;
  line-height:1.8;
  margin-bottom:20px;
  text-align:justify;
}

  
/* ============================================
   MOBILE RESPONSIVE FIXES (NO CONTENT CHANGES)
   ============================================ */

@media(max-width: 991px) {

  /* Main container stacking */
  .page-container {
    flex-direction: column;
    padding: 0 10px;
  }

  /* Sidebar full width on mobile */
  .sidebar {
    width: 100%;
    position: relative;
    top: 0;
    box-shadow: none;
  }
  .sidebar ul li a {
    padding: 12px;
    font-size: 15px;
  }

  /* Main content full width */
  .main-content {
    width: 100%;
    padding: 25px;
  }

  /* Section titles */
  .main-content h2 {
    font-size: 1.6rem;
  }

  /* Programmes grid */
  .programme-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .programme-item {
    padding: 20px;
    font-size: 14px;
  }

  /* Sub-hero height */
  .sub-hero {
    height: 30vh;
  }

  /* School title */
  .school-title h1 {
    font-size: 1.8rem;
  }
}

@media(max-width: 600px) {

  /* Header adjustments */
  .top-header {
    padding: 10px 20px;
  }
  .logo img {
    height: 45px;
  }

  /* Sidebar links */
  .sidebar a {
    font-size: 14px;
  }

  /* Reduce padding in content box */
  .main-content {
    padding: 20px;
  }

  /* Programme items */
  .programme-item {
    padding: 18px 15px;
  }

  /* Footer adjustments */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links a {
    margin-bottom: 10px;
  }

  /* Text scaling */
  body {
    font-size: 15px;
  }
}    
    
    
  
    
 .table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 30px;
}

.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.curriculum-table thead {
  background: #0C3574;
  color: #ffffff;
}

.curriculum-table th,
.curriculum-table td {
  padding: 14px 12px;
  text-align: center;
  font-size: 14px;
  border: 1px solid #e5e5e5;
  vertical-align: middle;
}

.curriculum-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
}

.curriculum-table tbody tr:nth-child(even) {
  background: #f5f7ff;
}

.curriculum-table tbody tr:hover {
  background: #eef3ff;
}

/* Mobile text size */
@media (max-width: 768px) {
  .curriculum-table th,
  .curriculum-table td {
    font-size: 13px;
    padding: 10px;
  }
}  
    
 .course-matrix-wrapper {
  margin: 30px 0;
}

.course-matrix-btn {
  width: 100%;
  background: #0c3574;
  color: #fff;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-matrix-content {
  display: none;
  margin-top: 20px;
}

.cm-icon {
  font-size: 18px;
  font-weight: bold;
}

@keyframes cmFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cm-icon {
  font-size: 18px;
  font-weight: bold;
}   
 .career-section {
  margin: 30px 0;
}

.career-section h3 {
  font-size: 1.6rem;
  color: #0c3574;
  margin-bottom: 15px;
  border-bottom: 2px solid #0c3574;
  display: inline-block;
  padding-bottom: 5px;
}

.career-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.career-grid li {
  background: #f4f6ff;
  padding: 12px 15px;
  border-left: 4px solid #0c3574;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
}  
    
    
 /* ===== ENHANCED SIDEBAR ===== */
.sidebar {
  background: linear-gradient(180deg, #ffffff, #fff);
  border-radius: 2px;
  padding: 18px 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  position: sticky;
  top: 110px;
}

/* Accordion list */
.accordion-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Accordion item */
.accordion-item {
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.3s;
}

/* Toggle button */
.accordion-toggle {
  padding: 13px 15px;
  font-size: 15px;
  font-weight: 600;
  color: #0c3574;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: linear-gradient(90deg, #eef2ff, #ffffff);
  transition: all 0.35s ease;
}

/* Hover & active */
.accordion-toggle:hover,
.accordion-toggle.active {
  background: linear-gradient(90deg, #0c3574, #1e88e5);
  color: #ffffff;
}

/* Plus / Minus icon */
.accordion-toggle .icon {
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

/* Rotate icon when open */
.accordion-item.open .icon {
  transform: rotate(180deg);
}

/* Submenu */
.accordion-submenu {
  display: none;
  padding: 10px 12px 14px;
  background: #f8faff;
  animation: slideDown 0.35s ease;
}

/* Show submenu */
.accordion-item.open .accordion-submenu {
  display: block;
}

/* Submenu links */
.accordion-submenu li {
  margin-bottom: 6px;
}

.accordion-submenu li a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: #34495e;
  background: #ffffff;
  border-radius: 6px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

/* Hover submenu */
.accordion-submenu li a:hover,
.accordion-submenu li a.active {
  background: #e8eeff;
  color: #0c3574;
  border-left: 3px solid #0c3574;
  padding-left: 16px;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MOBILE FRIENDLY ===== */
@media (max-width: 991px) {
  .sidebar {
    border-radius: 12px;
    padding: 12px;
    box-shadow: none;
  }

  .accordion-toggle {
    font-size: 14px;
    padding: 12px;
  }

  .accordion-submenu li a {
    font-size: 13px;
  }
}   
   
 * ==============================
   FINAL MOBILE RESPONSIVE PATCH
   ============================== */

/* Prevent horizontal overflow */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- MOBILE LAYOUT ---------- */
@media (max-width: 768px) {

  /* Stack sidebar & content */
  .page-container {
    flex-direction: column;
    margin: 20px auto;
    gap: 20px;
  }

  /* Sidebar mobile behavior */
  .sidebar {
    width: 100%;
    position: relative;
    top: 0;
    padding: 10px;
    border-radius: 10px;
    box-shadow: none;
  }

  /* Accordion spacing */
  .accordion-toggle {
    font-size: 14px;
    padding: 12px 14px;
  }

  .accordion-submenu li a {
    font-size: 13px;
    padding: 10px 12px;
  }

  /* Main content */
  .main-content {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .main-content h2 {
    font-size: 1.4rem;
  }

  .main-content p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Hero section */
  .sub-hero {
    height: 26vh;
  }

  /* Title section */
  .school-title h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    padding: 0 10px;
  }

  /* Highlight box */
  .highlight-box {
    padding: 16px;
    font-size: 14px;
  }

  /* Career grid */
  .career-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .career-grid li {
    font-size: 14px;
  }

  /* Course Matrix Button */
  .course-matrix-btn {
    font-size: 15px;
    padding: 14px;
  }

  /* Tables swipe-friendly */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .curriculum-table {
    min-width: 720px;
    font-size: 13px;
  }

  .curriculum-table th,
  .curriculum-table td {
    padding: 10px 8px;
  }
}

/* ---------- SMALL PHONES ---------- */
@media (max-width: 480px) {

  .top-header {
    padding: 8px 14px;
  }

  .logo img {
    height: 40px;
  }

  .school-title h1 {
    font-size: 1.4rem;
  }

  .main-content {
    padding: 18px 14px;
  }

  .main-content h2 {
    font-size: 1.3rem;
  }

  .programme-item {
    font-size: 14px;
    padding: 16px;
  }
}   
    
 html, body {
    height: auto;
    overflow-y: auto;     /* enable full page scroll */
}

/* Layout wrapper */
.page-container {
    display: flex;
    max-width: 1500px;
    margin: 110px auto 0 auto;
    padding: 0 20px;
    gap: 10px;
    align-items: flex-start;
}

/* LEFT SIDEBAR – STICKY ONLY */
.sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;          /* below header */
    height: fit-content;
    max-height: calc(100vh - 130px);
    overflow: hidden;   /* 🔒 sidebar itself never scrolls */
}

/* RIGHT CONTENT – normal page flow */
.main-content {
    flex: 1;
    padding: 35px;
}

/* MOBILE FIX */
@media (max-width: 991px) {
    .page-container {
        flex-direction: column;
        margin-top: 20px;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
    }
}
    

    
.eco-section h2 {
  color: #0c3574;
  font-size: 1.6rem;
  margin: 35px 0 15px;
  border-left: 5px solid #0c3574;
  padding-left: 12px;
}

.eco-features,
.eco-events,
.eco-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 12px;
}

.eco-features li,
.eco-events li,
.eco-list li {
  background: #f4f6ff;
  padding: 12px 15px;
  border-left: 4px solid #0c3574;
  border-radius: 6px;
  font-size: 14px;
}

.eco-expertise p {
  background: #ffffff;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 12px;
}

.eco-programmes span {
  background: #0c3574;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  margin-right: 10px;
  display: inline-block;
  font-weight: 600;
}

.eco-companies {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 10px;
}

.eco-companies span {
  background: #eef1ff;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
}
  
    
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

/* FULL PAGE LAYOUT WRAPPER */
.page-container {
    display: flex;
    max-width: 1500px;
    margin: 120px auto 0 auto;
    padding: 0 20px;
    gap: 15px;
    align-items: flex-start;
}

/* LEFT SIDEBAR — FIXED IN VIEWPORT */
.sidebar {
    width: 330px;
    flex-shrink: 0;
    position: fixed;        /* 🔥 this is the real fix */
    top: 120px;
    left: calc(50% - 750px); /* keep aligned inside max-width */
}

/* MAIN CONTENT AREA */
 .main-content{
    flex: 1 1 auto;
    width: calc(100% - 330px);
}



/* MOBILE RESET */
@media (max-width: 991px) {
    .page-container {
        flex-direction: column;
        margin-top: 20px;
    }

    .sidebar {
        position: relative;
        width: 100%;
        left: 0;
        top: 0;
    }

    .main-content,
    .site-footer {
        margin-left: 0;
    }
}   
    
.sidebar {
    position: fixed;
    top: 120px;
}

.page-container {
    position: relative;
}    


.sidebar{
    width: 330px;
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

#sidebar-stop{
    height: 1px;
}
   
    
</style>