* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #F5F7FA;
  overflow-x: hidden;
}








/* Administrative Leadership */
  .admin-card {
    max-width: 1000px;
  width: 95%;

  margin: 50px auto;
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 30px;
  position: relative;
  overflow: hidden;
  
  }

/* Optional wavy top green border effect */
.admin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #2b6cb0;
  border-radius: 50% 50% 0 0;
  z-index: 0;
}

.admin-card-container {
  display: flex;
  gap: 30px;
  position: relative;
  z-index: 1;
  align-items: center;
  flex-wrap: wrap;
}

/* Left: Principal Image */
.admin-image {
  flex: 1 1 250px;
  text-align: center;
}

.admin-image img {
  width: 240px;
  height: 280px;
  object-fit: cover;
  border-radius: 15px;
  border: 3px solid #2b6cb0;;
}

.admin-name h3 {
  margin: 15px 0 5px;
  color: #2b6cb0;;
  font-size: 22px;
}

.admin-name p {
  margin: 0;
  font-size: 16px;
  color: #555;
}

/* Right: Details */
.admin-details {
  flex: 2 1 500px;
}

.admin-details h2 {
  font-size: 32px;
  margin-bottom: 10px;
 color: #2b6cb0;
}

.admin-details h2 span {
  color:#f2b705; /* yellow accent */
}

.admin-details h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.admin-details .appointment {
  font-size: 16px;
  margin-bottom: 15px;
 color: #2b6cb0;
}

.admin-details .description {
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}




/* ACADEMIC FACULTY (ASSISTANT PROFESSORS) | NALANDA COLLEGE */
    .faculty-table-container {
      max-width: 1000px;
      margin: 40px auto;
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 12px 30px rgba(0,0,0,0.1);
      overflow: hidden;
      
    }


    /* Header Banner */
    .faculty-header {
      background: #2b6cb0;;
       color: #fff;
      text-align: center;
      padding: 15px;
      font-size: 22px;
      font-weight: bold;
      position: relative;
    }

    .faculty-header::before {
      content: "🎓";
      position: absolute;
      left: 15px;
      font-size: 24px;
    }

    .faculty-subheader {
      background: #e6f2e6;
      color: #333;
      text-align: center;
      padding: 10px;
      font-weight: 600;
      font-size: 17px;
      border-bottom: 2px solid #2b6cb0;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    th, td {
      padding: 14px 16px;
      text-align: left;
    }

    th {
      background-color: #2b6cb0;
      color: #fff;
      font-size: 16px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
tbody tr:nth-child(odd) {
  background: #eef5ff;
}

tbody tr:nth-child(even) {
  background: #ffffff;
}

tbody tr:hover {
  background: #d6e6ff;
}

    td {
      font-size: 16px;
      color: #333;
    }






   /* staff  */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
}

/* Header */
.staff-header {
  text-align: center;
  margin-bottom: 50px;
}

.staff-header h1 {
  font-size: 40px;
  font-weight: 700;
  color: #1a5276;
  position: relative;
  display: inline-block;
}

.staff-header h1::after {
  content: '';
  display: block;
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, #f2b705, #ff6f61);
  border-radius: 3px;
  margin: 10px auto 0;
}

/* Staff grid layout */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* Staff card style */
.staff-card {
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid #e0e0e0;
}

.staff-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Card title */
.staff-card h3 {
  font-size: 22px;
  color: #1a5276;
  margin-bottom: 12px;
  font-weight: 700;
}
.staff-card h4{
  font-size: 18px;
}
/* Card text */
.staff-card p {
  font-size: 17px;
  color: #555;
  margin-bottom: 8px;
}

/* Role banner */
.role-banner {
  display: inline-block;
  padding: 6px 15px;
  background: linear-gradient(90deg, #1a5276, #3b9dd0);
  color: #fff;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
  transition: background 0.4s ease;
}

.staff-card:hover .role-banner {
  background: linear-gradient(90deg, #ff6f61, #f2b705);
}






/* Nalanda College: Academic Leadership & Growth Summary */
.dashboard {
  max-width: 1200px;
  margin: 30px auto;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Header */
.dashboard-header {
  background-color:#2b6cb0;;
  color: #fff;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15px 15px 0 0;
}

.dashboard-header h2 {
  font-size: 25px;
  font-weight: 500;
}

.logo {
  font-weight: 700;
  font-size: 28px;
}

/* Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 30px 40px;
}

.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Panel Styling */
.panel {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Panel Header */
.panel-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.panel-main {
  background-color: #2b6cb0;
  color: #fff;
  border-radius: 12px 12px 0 0;
}

/* Panel Content */
.panel-content {
  padding: 20px;
  color: #333;
}

.panel-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-content ul li {
  margin-bottom: 8px;
  font-size: 18px;
}

.highlight-text {
  margin-top: 10px;
  color: #0c6c38;
  font-weight: 600;
}

/* Panel Footer */
.panel-footer {
  text-align: center;
  background-color: #1a5276;
  color: #fff;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 0 0 12px 12px;
}









@media (max-width: 1024px) {

  /* ===== Layout (Sidebar + Content) ===== */
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-radius: 0;
    padding: 30px 20px;
  }
/* ===== Navbar ===== */
  .topbar {
    height: auto;
    flex-direction: row;
    padding: 15px;
     position: relative;
  z-index: 1000;

  }
  
  .menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #2b6cb0;
    flex-direction: column;
  
    display: none;
    gap: 10px;
    padding: 15px 0;
      z-index: 999; /* IMPORTANT */
  }

  .nav-links.active {
    display: flex;
  }


  .content {
    width: 100%;
  }

  
  .brand-logo img {
    height: 110px;
  }

  .college-title {
    font-size: 22px;
  }

  .college-desc {
    font-size: 15px;
    max-width: 100%;
  }

  /* ===== Hero ===== */
  .hero-section {
    height: 60vh;
    border-bottom-left-radius: 40px;
  }

  .hero-text {
    font-size: 18px;
    top: 35%;
  }

  .admin-card {
    padding: 25px;
  }

  .admin-card-container {
    gap: 20px;
  }

/* staff */
  .staff-grid {
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 cards per row */
    gap: 20px;
  }

  .staff-header h1 {
    font-size: 32px;
  }

  .staff-card {
    padding: 20px;
  }

  .staff-card h3 {
    font-size: 20px;
  }

  .staff-card h4 {
    font-size: 16px;
  }

  .staff-card p {
    font-size: 15px;
  }



  /* MAIN DASHBOARD */
  .dashboard {
    padding: 20px;
    
  }

  /* HEADER */
  .dashboard-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .dashboard-header h2 {
    font-size: 20px;
    line-height: 1.4;
  }

  /* GRID */
  .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* COLUMNS */
  .dashboard-col {
    width: 100%;
  }

  /* PANEL */
  .panel {
    width: 100%;
  }

  .panel-header h3 {
    font-size: 18px;
  }

  .panel-count {
    font-size: 16px;
  }

  /* LIST TEXT */
  .panel-content ul li {
    font-size: 15px;
    line-height: 1.6;
  }

  .highlight-text {
    font-size: 14px;
  }



  /* ===== Footer ===== */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}









/* ===================== 768px (Tablet) ===================== */
@media (max-width: 768px) {


    /* ===== Layout ===== */
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 25px 15px;
    border-radius: 0;
  }


  .content {
    width: 100%;
    
  }

  /* ===== Logo + Text ===== */
  .brand-logo img {
    height: 90px;
  }

  .college-title {
    font-size: 20px;
  }

  .college-desc {
    font-size: 14px;
  }

  /* ===== Navbar ===== */
  .topbar {
    height: auto;
    flex-direction: row;
    padding: 15px;
  }
  
  .menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    background: #2b6cb0;
    flex-direction: column;
    text-align: center;
    display: none;
    gap: 15px;
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex;
  }


  /* ===== Hero ===== */
  .hero-section {
    height: 50vh;
    border-bottom-left-radius: 30px;
  }

  .hero-text {
    font-size: 16px;
    top: 30%;
    padding: 10px;
  }

  /* ADMIN CARD */
  .admin-card-container {
    flex-direction: column;
    text-align: center;
  }

  .admin-image img {
    width: 200px;
    height: auto;
  }

  .admin-details {
    width: 100%;
  }

  .admin-image img {
    width: 200px;
    height: auto;
  }

  .admin-details h2 {
    font-size: 26px;
  }

  /* FACULTY TABLE */
  .faculty-table-container {
    overflow-x: auto;
  }
 .faculty-header {
 min-width: 600px;
 }
 .faculty-subheader{
 min-width: 600px;
 }
  table {
    min-width: 600px;
  }

  /* STAFF GRID */
  .staff-header h1 {
    font-size: 30px;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* DASHBOARD */
  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .dashboard-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* ===== Footer ===== */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 20px;
  }
}






/* ===================== 480px (Mobile) ===================== */
@media (max-width: 480px) {
 /* ===== General Padding ===== */
  body {
    overflow-x: hidden;
  }

  .layout {
    flex-direction: column;
   
     min-height: 80vh;
  }

  .sidebar {
    width: 100%;
    padding: 20px 10px;
    border-radius: 0;
  }
  
  .content {
    width: 100%;
  }

  /* ===== Logo + Text ===== */
  .brand-logo img {
    height: 75px;
  }

  .college-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .college-desc {
    font-size: 13px;
    max-width: 100%;
  }

  /* ===== Navbar ===== */
  .topbar {
    padding: 10px;
  }

  .nav-links {
    top: 0px;
    gap: 10px;
    padding: 10px 0;
  }

  .nav-links a {
    font-size: 14px;
  }

  .menu-btn span {
    width: 22px;
    height: 2px;
  }
  /* ADMIN */
  .admin-card {
    padding: 15px;
     min-height: auto;
  }

  .admin-image img {
    width: 230px;
    height: 300px;
  }
  .admin-details h2 {
    font-size: 22px;
  }

  .admin-details h3 {
    font-size: 18px;
  }

  .admin-details .description {
    font-size: 15px;
  }

  /* STAFF */
  .staff-header h1 {
    font-size: 24px;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-card {
    padding: 18px;
  }

  /* TABLE */

  table {
    min-width: 600px; /* ya jitna tumhe width chahiye */
  }
  th, td {
    font-size: 14px;
    padding: 10px;
  }

  /* DASHBOARD */
  .panel-content ul li {
    font-size: 15px;
  }

  .panel-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  /* ===== Footer ===== */
  .footer-container {
    grid-template-columns: 1fr;
    padding: 10px;
    text-align: center;
  }

  .footer-col h3 {
    font-size: 16px;
  }

  .footer-col p,
  .footer-col li {
    font-size: 13px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}