/* Student Branches Page Custom Styles */
:root {
    --primary-blue: #004080;
      overflow-x: clip
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Student Branches Hero --- */

/* === HERO BASE STYLES === */
.branches-hero {
  position: relative;
  min-height: 75vh;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: url("Gallery/WhatsApp Image 2025-04-11 at 22.52.39_46fe07f1.jpg") center /cover no-repeat;
}

.branches-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for contrast */
  z-index: 0;
}

.branches-hero-content {
  position: relative;
  z-index: 1;
  max-width: 950px;
  padding: 1rem;
}

/* === TEXT STYLES === */
.branches-hero-content h1 {
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 1rem;
  font-family: "Montserrat", sans-serif;
}

.branches-hero-content p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 6rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
/* Tablets (≤1024px) */
@media (max-width: 1024px) {
  .branches-hero {
    min-height: 60vh !important;
    padding: 2rem 1rem !important;
  }

  .branches-hero-content h1 {
    font-size: 3rem !important;
    
  }

  .branches-hero-content p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }
}

/* Phones (≤520px) */
@media (max-width: 620px) {
  .branches-hero {
    min-height: 40vh !important;
    padding: 1.5rem 1rem !important;
  }

  .branches-hero-content h1 {
    font-size: 1.79rem !important;
  }

  .branches-hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
}


/*.branches-hero {
    background: #fff;
    color: var(--primary-blue);
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
}

.branches-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.branches-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out;
    color: #fff;
    opacity: 0.99999;
    font-family: "Montserrat",sans-serif;
}

.branches-hero-content p {
    font-size: 1.2rem;
    opacity: 0.99999;
    animation: fadeInDown 0.8s ease-out;
    color: #fff;
    margin-bottom: 9rem;
}


*/
.sb-map-img {
  width: 80%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Tablet & small laptops */
@media (max-width: 768px) {
  .sb-map-img {
    max-width: 600px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .sb-map-img {
    max-width: 400px;
  }
  .branches-hero {
    min-height: 40vh !important;
    padding: 1.5rem 1rem !important;
  }

}


/* --- Student Branches List --- */
.sb-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 3rem auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: center;
  
}
.sb-list li {
  background: #fff;
  border-left: 6px solid var(--primary-blue);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0,64,128,0.07);
  display: flex;
  align-items: center;
  transition: box-shadow .2s, transform .2s;
}
.sb-list li:hover {
  box-shadow: 0 6px 20px rgba(0,64,128,0.13);
  transform: translateY(-2px) scale(1.02);
}
.sb-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue);
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  margin-right: 1rem;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,64,128,0.10);


}



/* --- Student Branches Table --- */
.sb-table-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 0 1rem; /* add some side padding for small screens */
  overflow-x: auto; /* allow scroll on very small screens */
  box-sizing: border-box;
}
.sb-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
  max-width: 1200px;
  width: 100%;
  background: #fff;
  border-radius: 0px;
  box-shadow: 0 2px 8px rgba(0,64,128,0.07);
  overflow: hidden;
  font-size: 1.05rem;
}
.sb-table th, .sb-table td {
  padding: 0.9rem 1.2rem;
  text-align: center;
}
.sb-table th {
  background: var(--primary-blue);
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #e6f0ff;
}
.sb-table tbody tr {
  transition: background 0.2s;
}
.sb-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}
.sb-table tbody tr:hover {
  background: #e6f0ff;
}
.sb-table td {
  color: var(--primary-blue);
  border-bottom: 1px solid #e6f0ff;
  
}
.sb-table td:first-child {
  font-weight: bold;
  text-align: center;
  color: #fff;
  background: var(--primary-blue);
  border-radius: 0px 0 0 0px;
  width: 2.5rem;
}
.sb-table tr:last-child td {
  border-bottom: none;
}

.sb-table th:nth-child(5), .sb-table td:nth-child(5) {
    min-width: 140px;
    width: 180px;
    text-align: center;
}
.sb-table td:nth-child(5) a {
    margin: 0 4px;
}

.sb-table td:nth-child(5) a i {
    font-size: 1.3em;
} 

/* -------------------------------------------- */
/*               RESPONSIVE STYLES              */
/* -------------------------------------------- */
/*@media (max-width: 768px) {
  .branches-hero-content h1 {
      font-size: 2.2rem;
  }

  .branches-hero-content p {
      font-size: 1rem;
      margin-bottom: 4rem;
  }

  .sb-list {
      margin-left: 1rem;
      padding: 0 1rem;
  }

  .sb-list li {
      font-size: 1rem;
      padding: 0.8rem 1rem;
  }

  .sb-index {
      width: 1.5rem;
      height: 1.5rem;
      font-size: 0.9rem;
      margin-right: 0.75rem;
  }

  .sb-table-wrapper {
      margin-left: 0;
      overflow-x: auto;
      padding: 0 1rem;
  }

  .sb-table {
      min-width: 500px;
      font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .branches-hero-content h1 {
      font-size: 1.8rem;
  }

  .branches-hero-content p {
      font-size: 0.95rem;
  }

  .sb-list li {
      flex-direction: column;
      align-items: flex-start;
  }

  .sb-index {
      margin-bottom: 0.5rem;
  }

  .sb-table th,
  .sb-table td {
      padding: 0.6rem;
      font-size: 0.9rem;
  }

  .sb-table td:first-child {
      display: none;
  }
}*/
/* -------------------------------------------- */
/*               RESPONSIVE STYLES              */
/* -------------------------------------------- */
/*@media (max-width: 768px) {
  .branches-hero-content h1 {
      font-size: 2.2rem;
  }

  .branches-hero-content p {
      font-size: 1rem;
      margin-bottom: 4rem;
  }

  .sb-list {
      margin: 0 auto;
      padding: 0 1rem;
  }

  .sb-list li {
      font-size: 1rem;
      padding: 0.8rem 1rem;
  }

  .sb-index {
      width: 1.5rem;
      height: 1.5rem;
      font-size: 0.9rem;
      margin-right: 0.75rem;
  }

  .sb-table-wrapper {
      margin-left: 0;
      padding: 0 1rem;
      overflow-x: auto;
      width: 100%;
      box-sizing: border-box;
  }

  .sb-table {
      min-width: 500px;
      width: 100%;
      max-width: 100%;
      font-size: 0.95rem;
      display: block;
  }
}

@media (max-width: 480px) {
  .branches-hero-content h1 {
      font-size: 1.8rem;
  }

  .branches-hero-content p {
      font-size: 0.95rem;
  }

  .sb-list li {
      flex-direction: column;
      align-items: flex-start;
  }

  .sb-index {
      margin-bottom: 0.5rem;
  }

  .sb-table th,
  .sb-table td {
      padding: 0.6rem;
      font-size: 0.9rem;
  }

  .sb-table th:first-child,
  .sb-table td:first-child {
      display: table-cell;

  }
  
}
*/

/* For tablets and small laptops */
@media (max-width: 768px) {
  .branches-list h2{
    font-size: 1.2rem;
  }
  .sb-table-wrapper {
    margin-left: 0;
    padding: 0 0.5rem;
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
  }

  .sb-table {
    font-size: 0.85rem;
    min-width: 500px;
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .sb-table th,
  .sb-table td {
    padding: 0.5rem 0.8rem;
  }

  .sb-table td:first-child {
    width: 2rem;
    font-size: 0.8rem;
  }

  .sb-table th:nth-child(5),
  .sb-table td:nth-child(5) {
    min-width: 100px;
    width: 120px;
  }
}

@media (max-width: 480px) {
 .branches-list{
  padding: 16px 16px !important;
 }
 .branches-list h2{
    font-size: 0.8rem;
  }
  .sb-table {
    font-size: 0.55rem;
    min-width: 280px;
    max-width: 100%;
    display: block;
  }

  .sb-table th,
  .sb-table td {
    padding: 0.2rem 0.35rem;
  }

  .sb-table td:first-child,
  .sb-table th:first-child {
    width: 1.3rem;
    font-size: 0.65rem;
    padding: 0.2rem 0.3rem;
    text-align: center;
  }

  .sb-table th:nth-child(5),
  .sb-table td:nth-child(5) {
    min-width: 55px;
    width: 70px;
  }

  .footer-social-link i {
    font-size: 0.9em;
  }
}




