:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --background-color: #f8f9fa;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0099ff 100%);
  --gradient-text: linear-gradient(45deg, var(--primary-color), #0099ff);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  scrollbar-gutter: stable;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* News Section */
.news-section {
  background: var(--primary-color);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  padding: 8px 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1000;
}

.news-container {
  display: flex;
  align-items: center;
}

.news-header {
  min-width: 120px;
  margin-right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 4px;
  margin-bottom: 0;
}

.news-flash {
  color: white;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-marquee {
  flex: 1;
  background: rgba(255,255,255,0.1);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  border-radius: 4px;
  padding: 5px 10px;
  overflow: hidden;
}

.news-item {
  color: white;
  margin-right: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}

.news-item:last-child {
  margin-right: 0;
}

marquee:hover {
  cursor: pointer;
}

/* Header */
.transparent-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: transform 0.35s ease, box-shadow 0.3s ease;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.transparent-header.header-hidden {
  transform: translateY(-100%);
}

[data-header-hide] {
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease, margin 0.35s ease, transform 0.35s ease;
  overflow: hidden;
}

[data-header-hide="brand"].header-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  transform: translateY(-100%);
}

[data-header-hide="menu"].header-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  transform: translateY(-100%);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  padding-top: 200px;
}

.main-content {
  padding: 20px;
  padding-top: 20px;
}

.header-brand-row {
  padding: 18px 0;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-brand-row .navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: #0a2540;
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.3px;
  gap: 14px;
}

.header-brand-row .logo-img {
  height: 70px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 14px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.header-brand-row .navbar-brand:hover .logo-img {
  transform: scale(1.03);
}

.transparent-header .navbar {
  padding: 6px 0;
}

.transparent-header .nav-link {
  color: var(--secondary-color) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  white-space: nowrap;
}

.logo-img {
  height: 50px;
  margin-right: 12px;
}

.transparent-header .nav-link {
  color: var(--secondary-color) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
}

.transparent-header .nav-link:hover,
.transparent-header .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(13,110,253,0.1);
  border-radius: 4px;
}

.transparent-header .navbar-toggler {
  border-color: rgba(0,0,0,0.2);
  padding: 4px 8px;
}

/* Slider */
.slider-section {
  position: relative;
}

#mainSlider {
  position: relative;
}

.carousel-item {
  height: 70vh;
  min-height: 400px;
  max-height: 550px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.carousel-caption {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  max-width: 800px;
  width: auto;
  margin: 0;
  text-align: center;
  z-index: 2;
}

.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption .lead {
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-caption-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  z-index: 2;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  padding: 24px 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.85);
}

.carousel-caption-bottom h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.85);
}

.carousel-caption-bottom p {
  font-size: 1.1rem;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.95), 0 0 16px rgba(0,0,0,0.85);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary-color), #0099ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #0d6efd;
}

.section-subtitle {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Statistics Section */
.statistics-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.statistics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.stat-card {
  background: white;
  transition: all 0.3s ease;
  border: none;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #0099ff);
  border-radius: 3px;
  opacity: 0;
  transition: all 0.3s ease;
}

.stat-card:hover::after {
  opacity: 1;
  width: 80px;
}

.stat-icon {
  position: relative;
  z-index: 1;
}

.stat-icon::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, rgba(13,110,253,0.1), rgba(13,110,253,0.05));
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.stat-icon i {
  background: linear-gradient(45deg, var(--primary-color), #0099ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-wrapper {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.counter-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0;
  background: linear-gradient(45deg, var(--primary-color), #0099ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 5px;
  opacity: 0.7;
}

.stat-title {
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Principal Message */
.principal-message {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.principal-message .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255,255,255,0.95);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
}

.principal-message .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.principal-image-wrapper img {
  transition: transform 0.3s ease;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 180px;
  height: 180px;
  object-fit: cover;
}

.principal-image-wrapper img:hover {
  transform: scale(1.05);
}

.faculty-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.faculty-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.message-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 1.5rem;
}

.message-text:last-child {
  margin-bottom: 0;
}

/* Faculty */
.featured-faculty {
  background: #f8f9fa;
}

.faculty-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  background: #fff;
  overflow: hidden;
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.faculty-image {
  transition: transform 0.5s ease;
}

.faculty-card:hover .faculty-image {
  transform: scale(1.05);
}

.faculty-card .card-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Shining Stars */
.shining-stars .card {
  transition: transform 0.3s ease;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.shining-stars .card:hover {
  transform: translateY(-10px);
}

.shining-stars img {
  border: 4px solid #f8f9fa;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Sports */
.sport-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.sport-card .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sport-card:hover .card-img-top {
  transform: scale(1.1);
}

.sport-overlay {
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sport-card:hover .sport-overlay {
  opacity: 1;
}

.sport-overlay .btn {
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.sport-card:hover .sport-overlay .btn {
  transform: translateY(0);
}

/* Programs */
.program-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.program-card:hover {
  transform: translateY(-5px);
}

.program-icon {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
}

.program-icon i {
  font-size: 2.5rem;
}

.program-card .duration {
  color: var(--secondary-color);
}

.program-card .status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

/* Gallery */
.gallery-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
}

.gallery-card .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .card-img-top {
  transform: scale(1.05);
}

.gallery-video {
  height: 250px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.gallery-card .card-body {
  padding: 1.5rem;
}

.gallery-card .card-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.gallery-card .card-text {
  color: #6c757d;
  font-size: 0.9rem;
}

.gallery-link {
  display: block;
  overflow: hidden;
}

/* Footer */
.footer {
  background: #1a1a2e !important;
}

.footer h5 {
  font-weight: 600;
}

.footer .social-links a {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer .social-links a:hover {
  color: var(--primary-color) !important;
}

.footer ul li a {
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--primary-color) !important;
}

/* Newsletter */
.newsletter-form .form-control {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.newsletter-form .btn {
  border-radius: 0 8px 8px 0;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Responsive */
@media (max-width: 991px) {
  .carousel-item {
    height: 60vh;
  }
  .carousel-caption h1 {
    font-size: 2rem;
  }
  .carousel-caption .lead {
    font-size: 1rem;
  }
  .carousel-caption-bottom h2 {
    font-size: 1.6rem;
  }
  .carousel-caption-bottom p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .counter-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 50vh;
  }
  .carousel-caption h1 {
    font-size: 1.8rem;
  }
  .carousel-caption .lead {
    font-size: 0.9rem;
  }
  .carousel-caption-bottom h2 {
    font-size: 1.4rem;
  }
  .carousel-caption-bottom p {
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .counter-number {
    font-size: 2rem;
  }
  .counter-plus {
    font-size: 1.5rem;
  }
  .stat-title {
    font-size: 0.9rem;
  }
  .transparent-header {
    top: 0;
  }
  .header-brand-row .logo-img {
    height: 50px;
    border-radius: 10px;
  }
  .header-brand-row .navbar-brand {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .counter-number {
    font-size: 1.8rem;
  }
  .stat-card {
    margin-bottom: 1rem;
  }
  .header-brand-row .logo-img {
    height: 42px;
    border-radius: 8px;
  }
  .header-brand-row .navbar-brand {
    font-size: 1.05rem;
  }
}