
.dropdown.relative button {
  font-size: 14px;
}

.dropdown-content a {
  display: flex;
}
body {
  box-sizing: border-box;
}

.font-heading {
  font-family: 'Playfair Display', serif;
}

.font-body {
  font-family: 'Source Sans Pro', sans-serif;
}

/* ///Topbar// */
.top-bar {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.top-bar {
  background-color: #1e293b;
  padding: 8px 5%;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


.top-bar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.top-bar a {
  color: white;
}

/* Balti Pattern SVG Background */
.balti-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0zm0 10L10 30l20 20 20-20L30 10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Mountain silhouette */
.mountain-bg {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 54, 93, 0.1) 100%);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

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

/* News ticker */
@keyframes ticker {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.ticker-animate {
  animation: ticker 20s linear infinite;
}

.ticker-animate:hover {
  animation-play-state: paused;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #1a365d 0%, #2d5a87 50%, #1a365d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a365d, #2d5a87);
  border-radius: 5px;
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 1000;
  padding: 8px 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  /* display: flex; */
  padding: 10px 20px;
  color: #1a365d;
  font-size: 14px;
  transition: all 0.2s;
}

.dropdown-content a:hover {
  background: #f0f7ff;
  color: #c9a227;
}

/* Stats counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  animation: countUp 0.6s ease forwards;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}


/* ////Hero Slider//// */


.carousel-hero-banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  color: var(--text-color);
}

.carousel-hero-banner .carousel-images {
  width: 100%;
  height: 100%;
}

.carousel-hero-banner .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-hero-banner .carousel-slide.active {
  opacity: 1;
}

.carousel-hero-banner .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: 1;
}

.carousel-hero-banner .slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 4rem 2rem 4rem;
  background-color: #ffffff29;
  border-radius: 5px;
  top: 244px;
}

.carousel-hero-banner .slide-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: white;
}

.carousel-hero-banner .nav-button {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-color);
  border: none;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  transition: background-color 0.3s ease;
  z-index: 3;
}

.carousel-hero-banner .nav-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-hero-banner .prev {
  left: 20px;
}

.carousel-hero-banner .next {
  right: 20px;
}

.carousel-hero-banner .carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.carousel-hero-banner .dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.carousel-hero-banner .dot.active,
.dot:hover {
  background-color: var(--primary-color);
}

@view-transition {
  navigation: auto;
}

/* 
    New section slider */
.notice-section .card {
  min-height: 150px;
}

.notice-section .bi-newspaper {
  font-size: 24px;
}

/* Wrapper must be relative */
.notice-carousel {
  position: relative;
}

/* Nav container */
.notice-carousel .owl-nav {
  position: absolute;
  bottom: -45px;
  right: 0;
}

/* Buttons style */
.notice-carousel .owl-nav button {
  width: 38px;
  height: 38px;
  background: #0d6efd !important;
  border-radius: 50%;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Icon color */
.notice-carousel .owl-nav button span {
  font-size: 18px;
  color: #fff;
}

/* Hover effect */
.notice-carousel .owl-nav button:hover {
  background: #084298 !important;
}

.owl-item {
  background: white;
  padding: 2px 4px 2px 4px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}




/* INFINITE SCROLL ANIMATION (Left)
        */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* INFINITE SCROLL ANIMATION (Right/Reverse)
        */
@keyframes scroll-reverse {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.animate-scroll {
  animation: scroll 25s linear infinite;
}

.animate-scroll-reverse {
  animation: scroll-reverse 25s linear infinite;
}

/* Pause animation on hover for better UX */
.slider-container:hover .animate-scroll,
.slider-container:hover .animate-scroll-reverse {
  animation-play-state: paused;
}

/* Gradient Mask for smooth fade in/out */
.slider-mask {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* ==========================================================================
   SINGLE ROW INFINITE SCROLLING SLIDER
   ========================================================================== */

/* Slider Container */
.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  background: linear-gradient(90deg,
      var(--color-surface) 0%,
      transparent 5%,
      transparent 95%,
      var(--color-surface) 100%);
}

/* Infinite Slider Track */
.infinite-slider-track {
  display: flex;
  width: max-content;
  animation: infiniteScroll 40s linear infinite;
  will-change: transform;
}

/* Pause animation on hover */
.slider-container:hover .infinite-slider-track {
  animation-play-state: paused;
}

/* Animation Keyframes for Infinite Scroll */
@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Card Styling */
.success-card {
  flex-shrink: 0;
}

.card-inner {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card-inner:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Image Styling */
.card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* Gradient Overlay */
.card-inner .bg-gradient-to-t {
  z-index: var(--z-index-10);
}

/* Initial Content (Always visible) */
.card-inner .absolute.bottom-0 {
  z-index: var(--z-index-20);
}

/* Hover Details (Appear on hover) */
.card-inner .bg-black\/80 {
  z-index: var(--z-index-30);
  transform: translateY(100%);
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-inner:hover .bg-black\/80 {
  transform: translateY(0);
  opacity: 1;
}

/* Detail Button */
.detail-btn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.detail-btn:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.detail-btn::after {
  content: '→';
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: all var(--transition-fast);
}

.detail-btn:hover::after {
  right: 10px;
  opacity: 1;
}

/* Skill Tags */
.card-inner span {
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
}

.card-inner span:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Navigation Buttons */
.slider-prev,
.slider-next {
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: var(--z-index-40);
}

.slider-prev:hover,
.slider-next:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.slider-prev:active,
.slider-next:active {
  transform: scale(0.95);
}

/* Dots Indicator */
.slider-dot {
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  padding: 0;
}

.slider-dot.active {
  background-color: var(--color-secondary);
  transform: scale(1.2);
  box-shadow: var(--shadow-sm);
}

.slider-dot:hover:not(.active) {
  background-color: var(--color-secondary-light);
  transform: scale(1.1);
}

/* Fade Edges */
.slider-container .absolute.inset-y-0 {
  z-index: var(--z-index-30);
}


/* ===============================
   HOME PAGE POPUP (UVAS STYLE)
================================ */

.home-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.home-popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

.home-popup {
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: popupZoom 0.4s ease;
  position: relative;
}

@keyframes popupZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-header {
  background: #1a365d;
  color: #ffffff;
  padding: 15px 20px;
}

.popup-header h4 {
  margin: 0;
  font-size: 20px;
}

.popup-body {
  padding: 20px;
  color: #333;
}

.popup-body ul {
  padding-left: 18px;
  margin: 15px 0;
}

.popup-body li {
  margin-bottom: 8px;
}

.popup-btn {
  display: inline-block;
  margin-top: 10px;
  background: #c9a227;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.popup-btn:hover {
  background: #b38f1c;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* ===============================
   HOME PAGE POPUP
================================ */

.home-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.home-popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

.home-popup {
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: popupZoom 0.4s ease;
  position: relative;
}

@keyframes popupZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-header {
  background: #1a365d;
  color: #ffffff;
  padding: 15px 20px;
}

.popup-header h4 {
  margin: 0;
  font-size: 20px;
}

.popup-body {
  padding: 20px;
  color: #333;
}

.popup-body ul {
  padding-left: 18px;
  margin: 15px 0;
}

.popup-body li {
  margin-bottom: 8px;
}

.popup-btn {
  display: inline-block;
  margin-top: 10px;
  background: #c9a227;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.popup-btn:hover {
  background: #b38f1c;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .success-card {
    width: 320px;
  }

  .card-inner {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .success-card {
    width: 280px;
  }

  .card-inner {
    height: 260px;
  }

  .slider-container .absolute.inset-y-0 {
    width: 40px;
  }
}

@media (max-width: 640px) {
  .success-card {
    width: 240px;
  }

  .card-inner {
    height: 240px;
  }

  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
  }

  .slider-container .absolute.inset-y-0 {
    width: 20px;
  }
}

/* Auto-scroll speed adjustments */
@media (prefers-reduced-motion: reduce) {
  .infinite-slider-track {
    animation-duration: 80s;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .slider-container {
    background: linear-gradient(90deg,
        var(--color-background) 0%,
        transparent 5%,
        transparent 95%,
        var(--color-background) 100%);
  }

  .slider-container .absolute.inset-y-0 {
    background: linear-gradient(to right,
        var(--color-background) 0%,
        transparent 100%);
  }

  .slider-container .absolute.inset-y-0.right-0 {
    background: linear-gradient(to left,
        var(--color-background) 0%,
        transparent 100%);
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .card-inner:hover {
    transform: none;
  }

  .card-inner:hover img {
    transform: none;
  }

  .slider-container:hover .infinite-slider-track {
    animation-play-state: running;
  }

  /* Show details on tap for touch devices */
  .card-inner.active .bg-black\/80 {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ///Faculties// */

  /* Faculty Section */
  .faculty-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  /* Faculty Tabs */
  .faculty-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    margin-top: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
  }

  .faculty-tab {
    padding: 14px 24px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 10px;
    background: #f1f5f9;
    color: #1e293b;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .faculty-tab:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
  }

  .faculty-tab.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 6px 12px rgba(29, 78, 216, 0.2);
  }

  .faculty-icon {
    font-size: 1.1rem;
  }

  /* Departments Section */
  .departments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
  }

  .departments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
  }

  .departments-count {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    color: #475569;
  }

  .department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
  }

  .department-card {
    padding: 22px;
    border-radius: 12px;
    border: 2px solid #0f172a;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
  }

  .department-card:hover {
    background: #0f172a;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.25);
  }

  .department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
  }

  .department-card:hover::before {
    left: 100%;
  }

  /* Mobile Optimization */
  @media (max-width: 768px) {
    .page-title {
      font-size: 2rem;
    }
    
    .faculty-tabs {
      justify-content: center;
    }
    
    .faculty-tab {
      width: 100%;
      justify-content: center;
    }
    
    .department-grid {
      grid-template-columns: 1fr;
    }
    
    .departments-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  @media (min-width: 769px) and (max-width: 1024px) {
    .department-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}




.dropdown.relative button {
  font-size: 14px;
}

.dropdown-content a {
  display: flex;
}

#quick-links {
  background: #fefeee;
}