:root {
  --primary-color: #0056b3; /* Blue - close to --blue-main #0057a8 */
  --secondary-color: #fd7e14; /* Orange - close to --orange-main #f47920 */
  --light-bg: #f8f9fa; /* close to --gray-bg #f4f7fb */
  --text-dark: #333; /* close to --text-dark #1a2740 */

  /* Additional variables from des/style.css */
  --blue-dark: #003e7e;
  --blue-main: #0057a8;
  --orange-main: #f47920;
  --gray-line: #dde4ef;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 4px 18px rgba(0,62,126,.12);
  --text-mid: #4a5870;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
}

p {
  margin-bottom: 0px;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-secondary-custom {
  background-color: var(--secondary-color) !important;
}

.text-secondary-custom {
  color: var(--secondary-color) !important;
}

/* Navbar */
.navbar-custom {
  background-color: var(--primary-color);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: #fff;
}

.navbar-custom .nav-link:hover {
  color: var(--secondary-color);
}

/* des-style header nav for homepage */
.top-bar {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, .75);
  font-size: .8rem;
  padding: 6px 0;
}

.top-bar .top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-bar-links {
  display: flex;
  gap: 18px;
}

.top-bar a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--secondary-color);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-line);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.logo-area {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--blue-dark);
  font-weight: 800;
}

.logo-text p {
  margin: 0;
  color: var(--text-mid);
  font-size: .78rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--text-mid);
  font-size: .92rem;
  text-decoration: none;
  border-radius: 6px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-main);
  background: #f4f7fb;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: #fff;
  border-top: 3px solid var(--orange-main);
  box-shadow: var(--shadow);
  border-radius: 0 0 6px 6px;
  z-index: 1000;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.has-dropdown .dropdown li a {
  width: 100%;
  border-radius: 0;
  padding: 10px 16px;
  font-size: .88rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
}

@media (max-width: 991px) {
  .top-bar-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-line);
    box-shadow: var(--shadow);
    padding: 10px 0;
    max-height: calc(100vh - 78px); /* Height limit for scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 14px;
  }

  .main-nav a {
    width: 100%;
  }

  .has-dropdown .dropdown {
    position: static;
    display: block;
    border-top: none;
    box-shadow: none;
    background: #f8f9fb;
    margin-left: 10px;
    border-radius: 6px;
  }
}

/* Footer */
.footer-custom {
  background-color: #003366;
  color: #fff;
  padding-top: 60px;
  padding-bottom: 20px;
  font-size: 14px;
}

.footer-custom h5, .footer-custom h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
}

.footer-custom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  margin-bottom: 8px;
}

.footer-custom a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer-custom p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-icon-round {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* Sports Excellence Section */
.section-sports-excellence {
  background-color: #004080;
  color: #fff;
  padding: 80px 0;
}

.sports-tag {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 8px 20px;
  margin-right: 15px;
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}

.sports-tag:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.sports-tag i {
  color: #ffc107; /* Gold/Yellow icon */
  margin-right: 8px;
}

.video-placeholder {
  background-color: #00264d;
  border-radius: 10px;
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.play-button {
  width: 70px;
  height: 70px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(253, 126, 20, 0.6);
  transition: transform 0.2s;
  z-index: 2;
  color: white;
  font-size: 30px;
}

.video-placeholder:hover .play-button {
  transform: scale(1.1);
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #fff;
    z-index: 2;
}

/* Faculty Section */
.section-faculty {
    padding: 80px 0;
    background-color: #f4f7fa;
}

.faculty-subtitle {
    color: var(--secondary-color);
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.faculty-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    text-align: center;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.faculty-img-container {
    background-color: #0e6cc9; /* Blue top part */
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faculty-avatar {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.faculty-info {
    padding: 25px 20px;
}

.faculty-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004080;
    margin-bottom: 5px;
}

.faculty-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.faculty-desc {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Gallery Section */
.section-gallery {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 250px; /* Fixed height for uniformity */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 179, 0.7); /* Primary color with opacity */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    text-align: center;
    padding: 15px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: bold;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

/* Sidebar Menu - Replaced with style from des/style.css */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.sidebar-card-header {
  background: var(--blue-main);
  color: var(--white);
  padding: 12px 18px;
  font-size: .92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card-body {
  padding: 10px 0;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid var(--gray-line);
}

.sidebar-nav li:last-child {
  border-bottom: none;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: .92rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-nav li a:hover {
  background: #f4f7fb;
  color: var(--blue-main);
  padding-left: 24px;
}

.sidebar-nav li a.active {
  background: #f4f7fb;
  color: var(--blue-main);
  border-left: 4px solid var(--orange-main);
  padding-left: 16px;
  font-weight: bold;
}

.sidebar-nav li a .arrow {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

/* Sidebar Hot - from des/style.css */
.sidebar-hot {
  list-style: none;
  padding: 0 18px;
  margin: 0;
}
.sidebar-hot li {
  border-bottom: 1px solid var(--gray-line);
  padding: 10px 0;
}
.sidebar-hot li:last-child {
  border-bottom: none;
}
.sidebar-hot li a {
  font-size: .85rem;
  color: var(--text-mid);
  transition: color 0.25s;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-decoration: none;
  line-height: 1.5;
}
.sidebar-hot li a:hover {
  color: var(--blue-main);
}
.sidebar-hot .num {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--gray-line);
  color: #8898aa;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
  margin-right: 8px;
  flex-shrink: 0;
}
.sidebar-hot li:nth-child(1) .num,
.sidebar-hot li:nth-child(2) .num,
.sidebar-hot li:nth-child(3) .num {
  background: var(--orange-main);
  color: var(--white);
}

/* Navbar Dropdown - styles referenced from des/style.css */
@media (min-width: 992px) {
    .navbar-custom .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.navbar-custom .dropdown-menu {
    border: none;
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 4px 18px rgba(0,62,126,.12);
    border-radius: 0 0 6px 6px;
    padding: 0;
    min-width: 160px;
    display: none; /* Default hidden */
}

.navbar-custom .dropdown-item {
    padding: 10px 18px;
    font-size: .88rem;
    color: #4a5870;
    transition: all 0.2s;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    color: var(--primary-color);
    background-color: #f4f7fb;
}

.navbar-custom .dropdown-item.active,
.navbar-custom .dropdown-item:active {
    background-color: #f4f7fb;
    color: var(--primary-color);
    font-weight: bold;
}

/* Button */
.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-primary-custom:hover {
  background-color: #004494;
  border-color: #004494;
}

.btn-secondary-custom {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.btn-secondary-custom:hover {
  background-color: #e36a0d;
  border-color: #e36a0d;
}

/* Sections */
.section-title {
  border-left: 5px solid var(--secondary-color);
  padding-left: 15px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.card-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary-color);
}

.breadcrumb-item a {
  color: var(--primary-color);
}