body {
  margin: 0px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #2c3e50;
/*   line-height: 1.6; */
} 
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header {
  background: #fff;
  padding: 10px 20px;
  border-bottom: 2px solid #ddd;
}
.header-left {
  display: flex;
  align-items: center;
}
.inst-name {
  font-weight: bold;
  margin-left: 10px;
  font-size: 18px;
}

.container {
  display: flex;
  flex: 1;
}
.sidebar {
   width: 250px;
  background: #fff;
  padding: 20px;
/*   box-shadow: 2px 0 5px rgba(0,0,0,0.1); */
}
.profile-box {
  text-align: center;
  margin-bottom: 20px;
}
.profile-img {
  width: 175px;
  height: 200px;
  border-radius: 50%;
}
.profile-box h2 {
  margin: 10px 0 5px;
  font-size: 18px;
}
.profile-box p {
  margin: 0;
  font-size: 14px;
  color: #444;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar ul li {
  padding: 10px;
  margin: 5px 0;
  cursor: pointer;
  background: #fff;
   border-radius: 5px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.1); 
}
.sidebar ul li:hover {
  background: #ddd;
}
.content {
  flex-grow: 1;
  padding: 20px;
  background: #fff;
}
iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
}
footer {
  text-align: center;
  padding: 10px;
  background: #fff;
  border-top: 2px solid #ddd;
}

.iiti-logo {
  height: 60px;
  margin-right: 10px;
}

.india-logo {
  height: 40px;
  margin-right: 5px;
}

.inst-name {
  font-size: 25px;
  font-weight: bold;
  color: #003366;
  white-space: nowrap;
}
/* Main Content Styling (applies inside iframe content) */
.content iframe {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  color: #222;
  line-height: 1.6;
}


/* Boxed site container */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
 /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background: #fff; */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: none;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .sidebar ul li {
    flex: 1 1 120px;
    text-align: center;
  }

  .content iframe {
    min-height: 500px;
  }

  header, footer {
    text-align: center;
  }

  .inst-name {
    font-size: 16px;
    margin-top: 10px;
  }

   .header-left {
    flex-direction: column;
    align-items: center;
  } 
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 5px;
/*  background-color: #f8f8f8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.header-left a,
.header-right a {
  text-decoration: none;
  color: #333;
}

.header-right {
  display: flex;
  gap: 20px; /* spacing between tabs */
}

.inst-name {
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s, border-bottom 0.3s;
}

.header-right a .inst-name:hover {
  color: #007acc; /* link hover color */
  border-bottom: 2px solid #007acc;
}

.header-left a .inst-name:hover {
  color: #007acc;
}
/* --------------------
   Mobile: Plain Text Menu (No Boxes / No Space)
-------------------- */
@media (max-width: 768px) {

  /* Menu list */
  .sidebar ul {
    display: block;
    padding: 0;
    margin: 0;
  }

  /* Menu items: completely flat */
  .sidebar ul li {
    margin: 0;
    padding: 8px 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
  }

  /* Remove hover background */
  .sidebar ul li:hover {
    background: none;
  }

  /* Active item: underline only */
  .sidebar ul li.active {
    background: none;
    color: #007acc;
    font-weight: 600;
    border-bottom: 2px solid #007acc;
  }
}
@media (max-width: 768px) {
  .sidebar ul li {
    padding: 6px 0;
    font-size: 14px;
  }
}
/* --------------------
   Menu Hover (Text Only)
-------------------- */
.sidebar ul li {
  cursor: pointer;        /* show hand cursor */
  transition: color 0.2s ease;
}

/* Hover effect */
.sidebar ul li:hover {
  color: #007acc;         /* change text color only */
  text-decoration: underline;
}

/* Active state */
.sidebar ul li.active {
  color: #007acc;
  font-weight: 600;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .sidebar ul li:hover {
    text-decoration: none; /* no hover underline on touch */
  }
}
