:root {
  --bg: #ffffff;            /* page background */
  --text: #0b0b0b;          /* main text color */
  --accent-purple: #6a3bd5;
  --accent-green: #2fb86e;
  --accent-black: #101010;
  --muted: #6a3bd52d;

  --card-bg: #ffffff;       /* cards and boxes */
  --section-bg: #f9f9f9d4;    /* section backgrounds */
  --border-color: #ddd;
  --purple-back: purple;
  --purple-sec-text: #fff;
  --dark-back: #444;
  --dark-sec-text: #ccc;

  /*--max-width: 1100px;*/
  --max-width: 100%;
  --radius: 12px;
  --heading-font: 'sans-serif', Times, serif;
  --body-font: Arial, Helvetica, sans-serif;
  --transition: 300ms ease;
}

body[data-theme="dark"] {
  --bg: #0f0f0f;
  --text: #f9f9f9;
  --muted: #1c1c1c;

  --card-bg: #1a1a1a;
  --section-bg: #121212d4;
  --border-color: #333;
  --purple-back: #121212;
  --purple-sec-text: #0b0b0b;
  --dark-back: #111;
  --dark-sec-text: #ccc;
}

/* Reset / base */
* { box-sizing: border-box }
html, body { height: 100%; margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--body-font); line-height: 1.5 }
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0; background: var(--bg); }
.midContainer{width: 10%; margin: 0 auto; padding: 10px;}
@media (min-width:700px) {
  .midContainer{width: 100%; margin: 0; padding: 0;}
}
/* Header - sticky */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; position: sticky; top: 0;
  background: var(--section-bg); backdrop-filter: blur(4px);
  z-index: 1000; border-bottom: 1px solid var(--border-color);
}
.brand { display: flex; align-items: center; gap: 8px }
.logo {
  width: 56px; height: 56px; border-radius: 50%;
  /*background: linear-gradient(135deg, var(--accent-purple), var(--accent-black));*/
  background: none;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: bold;
}
nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0 }
nav a { padding: 8px 12px; border-radius: 8px; transition: background var(--transition) }
nav a:hover { background: var(--muted) }
.top-controls { display: flex; gap: 10px; align-items: center }
.theme-toggle {
  padding: 8px 10px; border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-black));
  color: white; border: none; cursor: pointer;
}

/* HERO slider */
.hero {
  position: relative; overflow: hidden;
  margin: 0; padding: 0; min-height: 50vh; background: var(--bg);; color: white;
}
.hero .slides { display: flex; transition: transform 600ms ease; height: 100% }
.slide {
  min-width: 100%; padding: 0px; display: flex; gap: 28px; align-items: center;
  position: relative; background-size: cover; background-position: center;
}
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.76), rgba(0,0,0,0.95));
}
.slide .left, .slide .right { position: relative; z-index: 2 }
.slide .right {
  width: 320px; flex-shrink: 0; background: rgba(255,255,255,0.06); margin: 5%;
  padding: 10px; border-radius: 10px;
}
body[data-theme="dark"] .slide .right {
  background: rgba(0,0,0,0.4);
}
.hod-photo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,0.2) }
.hod-photo img { width: 100%; height: 100%; object-fit: cover }
.hero-controls { position: absolute; bottom: 14px; left: 14px; display: flex; gap: 8px; z-index: 3 }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer }
.dot.active { background: var(--accent-green) }

/* Sections */
section { margin:20px 0; padding: 18px; border-radius: 10px; background: var(--section-bg); box-sizing: border-box; }
.about .btns { display: flex; gap: 10px; margin-top: 12px }
.btn { display: inline-block; padding: 10px 14px; border-radius: 10px; background: var(--accent-purple); color: white; font-weight: 600 }
.btn.secondary { background: transparent; border: 2px solid var(--accent-green); color: var(--accent-green) }

/* Programs */
.programs { display: grid; gap: 18px }
.program {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card-bg); padding: 12px; border-radius: 10px;
}
.program img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px }
.learn { padding: 8px 12px; border-radius: 8px; background: var(--accent-green); color: white; border: none; cursor: pointer }

/* Blog */
.blogs { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px}
.post { background: var(--card-bg); border-radius: 10px; padding: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.06) }
.post .meta { font-size: 13px; color: gray; margin-bottom: 8px }

/* Staff */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px }
.staff-card {
  background: var(--card-bg); padding: 12px; border-radius: 10px;
  display: flex; gap: 12px; align-items: center;
}
.staff-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px }
.staff-card .name { font-weight: 700 }
.staff-card .rank { font-size: 13px; color: gray }
.staff-card a { color: var(--accent-purple); font-size: 13px }

/* Reviews */
.reviews .review-wrap { display: flex; gap: 20px; flex-wrap: wrap }
.reviews .review-submit { display: flex; gap: 20px; flex-wrap: wrap }
.review-slider { flex: 1; min-width: 260px; overflow: hidden; border-radius: 10px; background: var(--card-bg); padding: 12px }
.review-track { display: flex; transition: transform 600ms ease }
.review-card { min-width: 100%; padding: 10px }

/* Contact */
.contact { display: flex; flex-direction: column; gap: 18px}
.contact form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.contact input, .contact textarea {
  padding: 10px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text)
}
.contact textarea { grid-column: 1 / -1 }
.contact-info { font-size: 14px }
.contact-info a { color: var(--accent-purple) }

/* Map */
.map iframe { width: 100%; height: 360px; border: 0; border-radius: 10px }

/* Footer */
footer { margin-top: 40px; padding: 18px 0; border-top: 1px solid var(--border-color); text-align: center; color: gray }

/* Responsive */
@media (min-width:900px) {
  .programs { grid-template-columns: repeat(2,1fr) }
  .slide { padding: 56px }
  .contact { flex-direction: row }
  .contact form { flex: 1 }
  .contact-info { flex: 1 }
}
/* Base responsive scaling */
h1, h2, h3 {
  line-height: 1.3;
  word-wrap: break-word;
}

/* Mobile-first adjustments */
@media (max-width: 768px) {
  /* Header */
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--section-bg);
    padding: 12px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  nav ul.show { display: flex; }
  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 22px;
    background: none;
    border: none;
    color: var(--text);
  }

  /* Hero slider */
  .slide {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }
  .slide .right {
    width: 100%;
    margin-top: 16px;
  }
  .slide h2 { font-size: 1.5rem; }

  /* About buttons */
  .about .btns { flex-direction: column; align-items: stretch; }

  /* Programs */
  .program {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  /*.program img { width: 100%; height: auto; }*/

  /* Staff */
  .staff-card {
    flex-direction: column;
    text-align: center;
  }
  .staff-card img { width: 100%; height: auto; max-width: 200px; }

  /* Contact form */
  .contact form { grid-template-columns: 1fr; }
}

/*Article page*/
.centerWrapper{
  width: 70%;
  margin: 0 auto;
  padding: 10px;
}
.dual-cols{
  float: left;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.centerWrapper main{
  width: 70%;
}
.centerWrapper aside{
  width: 30%;

}
.imgWrapper{
  width: 100%;
  padding: 0;
  margin: 0;
}
.imgWrapper img{
  width: 100%;
}
.centerWrapper main h1, .centerWrapper main p{
 margin: 5px;
 padding: 0;
}
.dateHolder{
  font-size: 12px;
  margin: 0;
}
.clr{clear: both;}
.articlePosts{
  width: 96%;
  margin: 5px 2%;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 0;
  height: 100px;
  overflow: hidden;
}
.articlePostSec{
  float: left;
  margin: 0;
  padding: 0;
}
.articlePostImgSec{
  width: 30%;
  overflow: hidden;
  height: 100%;
}
.articlePostImgSec img{
  width: 100%;
}
.articlePostTextSec{
  width: 70%;
}
.dual-cols h3, .dual-cols p{
  margin: 0;
  padding: 3px;
}
.dual-cols p{
  font-size: 12px;
}
.dual-cols a{
  color: purple;
}
.dual-cols a:hover{
  color: #333;
}
.articleBody p{
  font-size: 14px;
  line-height: 2em;
}
.asideCard{
  width: 96%;
  margin: 2%;
  padding: 0;
  /*position: sticky;
  top: 10%;*/
  background: var(--bg);
}
.asideCard h1{
  margin: 0;
  padding: 0 10px;
}
.asideCard p{
  margin: 0;
  padding: 0 10px;
  font-size: 14px;
}
.asideCard .imgWrapper img{
  width: 100%;
  border-radius: 10px;
}

#paymentForm input, #paymentForm select{
  margin: 1%;
  padding: 15px 10px;
  width: 47%;
  box-sizing: border-box;
  background: none;
  color: var(--text);
  border-radius: 10px;
  border: 1px solid #333;
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .slide { padding: 32px; }
  .slide h2 { font-size: 1.8rem; }
  .programs { grid-template-columns: 1fr; }
}

@media (max-width: 920px){
  .centerWrapper{
    width: 100%;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
  }
  .dual-cols{
    float: none;
  }
  .centerWrapper main{
    width: 100%;
  }
  .centerWrapper aside{
    width: 100%;
  #paymentForm input, #paymentForm select{
    margin: 1%;
    width: 98%;
  }
}

/* Large desktops */
@media (min-width: 1200px) {
  .slide h2 { font-size: 2.2rem; }
  .programs { grid-template-columns: repeat(2, 1fr); }
  }
}