:root {
  --duvasu-blue: #0056b3;
  --duvasu-light-blue: #007bff;
  --duvasu-dark-blue: #003d7a;
  --duvasu-gold: #ffc107;
  --duvasu-light-gold: #ffdb70;
  --duvasu-white: #ffffff;
  --duvasu-gray: #f8f9fa;
  --duvasu-dark-gray: #343a40;
  --primary-blue: #0056b3;
  --dark-blue: #003d7a;
  --accent-gold: #d4af37;
  --light-gold: #f4e4a6;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

/*Topbar of duvasu*/
.topbar {
  background: linear-gradient(to right, #c80000 70%, #000000 30%);
  font-size: 14px;
}

.topbar a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 15px;
}

.topbar a:hover {
  text-decoration: underline;
}

.font-controls span {
  border: 1px solid #fff;
  padding: 2px 6px;
  margin-left: 5px;
  cursor: pointer;
  font-weight: bold;
}

.font-controls span:hover {
  background-color: #ffffff;
  color: #c80000;
}

.language a {
  margin-left: 8px;
  font-weight: 500;
}

/*Logo Bar*/
.logo-area {
  display: flex;
  align-items: center;
  padding: 15px 0;
}

.logo-img {
  height: 80px;
  margin-right: 15px;
}

.logo-img-2 {
  height: 60px;
}

/*Modern Navigation*/
.navbar-duvasu {
  padding: 0;
}

.navbar-duvasu .navbar-nav {
  gap: 2px;
}

.navbar-duvasu .nav-item {
  position: relative;
}

.navbar-duvasu .nav-link {
  padding: 0.5rem 0.5rem;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 8px;
  margin: 0 2px;
}

.navbar-duvasu .nav-link:hover,
.navbar-duvasu .nav-link.active {
  color: var(--primary-blue);
  background: linear-gradient(
    135deg,
    rgba(0, 86, 179, 0.08),
    rgba(0, 86, 179, 0.04)
  );
  transform: translateY(-2px);
}

.navbar-duvasu .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  margin-top: 0px;
  min-width: 220px;
  border-top: 3px solid var(--accent-gold);
}

.navbar-duvasu .dropdown-item {
  padding: 10px 14px;
  color: var(--text-primary);
  transition: var(--transition);
  border-radius: 6px;
}

.navbar-duvasu .dropdown-item:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 86, 179, 0.1),
    rgba(0, 86, 179, 0.05)
  );
  color: var(--primary-blue);
  transform: translateX(5px);
}

/*Modern Annoucement*/
.announcement-bar {
  display: flex;
  align-items: center;
  background: #f5f2ef;
  overflow: hidden;
  font-size: 15px;
}

.announcement-label {
  background: #3b0d0d;
  color: #fff;
  padding: 5px 20px;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

.announcement-label::after {
  content: "";
  position: absolute;
  background:#f5f2ef;
  right: 0px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 12px solid #3b0d0d;
}

.marquee-wrapper {
  flex: 1;
  overflow: hidden;
  padding-left: 15px;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  margin-right: 40px;
  color: #555;
}

.marquee-content span::after {
  content: "|";
  margin-left: 40px;
  color: #c80000;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}


/* Modern Header */
.duvasu-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 1030;
}

.duvasu-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* HERO CAROUSEL RESPONSIVE HEIGHT */
.hero-carousel {
  aspect-ratio: 16 / 6;
}

@media (max-width: 991px) {
  .hero-carousel {
    height: 55vh;
    min-height: 360px;
  }
}

@media (max-width: 576px) {
  .hero-carousel {
    height: 45vh;
    min-height: 300px;
  }
}

.carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* 👈 adjust focus */
}


/* Subtle zoom animation */
.carousel-item.active .carousel-img {
  transform: scale(1.08);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 24px;
  background: rgba(16, 16, 98, 0.6);
  backdrop-filter: blur(6px);
  animation: fadeUp 1.2s ease forwards;
}

@media (max-width: 576px) {
  .carousel-content {
    padding: 5px 16px;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel-item {
  position: relative;
}

.carousel-item:not(.active) .carousel-title,
.carousel-item:not(.active) .carousel-subtitle {
  opacity: 0;
}

.carousel-indicators button {
    display:none;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #ffc107;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 6px rgba(0,0,0,.6));
}

/*New Section*/
.news-section {
  padding: 60px 80px;
  background: #fafafa;
  font-family: "Segoe UI", sans-serif;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.news-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111;
}

.view-all {
  font-size: 15px;
  color: #c30000;
  text-decoration: none;
  font-weight: 500;
}

.news-grid {
  display: grid;
  grid-template-columns: 3fr 1.4fr;
  gap: 30px;
}

/* News cards */
.news-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card h3 {
  font-size: 17px;
  font-weight: 600;
  padding: 12px 16px 0px;
  color: #111;
}

.news-card p {
  font-size: 14px;
  color: #555;
  padding: 0 16px 5px;
  line-height: 1.3;
}

.news-meta {
  display: block;
  padding: 0 16px 16px;
  font-size: 13px;
  color: #888;
}

/* Recent card */
.recent-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: url("https://upvetuniv.edu.in/wp-content/uploads/2025/11/WhatsApp-Image-2025-11-26-at-12.28.48-1140x500.jpeg") center/cover no-repeat;
  min-height: 100%;
}

.recent-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
  color: #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.recent-date {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.recent-overlay h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-section {
    padding: 40px 20px;
  }

  .news-cards {
    grid-template-columns: 1fr;
  }
}

/*Highlight Section*/
.research-section {
  position: relative;
  padding: 80px 80px;
  background: url("https://via.placeholder.com/1400x800") center/cover no-repeat;
  color: #fff;
  font-family: "Segoe UI", sans-serif;
}

.research-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}

.research-container {
  position: relative;
  z-index: 2;
}

.research-header h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 40px;
}

.research-header h2 span {
  color: #e60000;
  margin-right: 10px;
}

/* Layout */
.research-content {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
}

/* Section titles */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-title h3 {
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
}

.section-title a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.9;
}

/* Highlights */
.highlight-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.highlight-card {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-6px);
}

.highlight-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.highlight-card h4 {
  font-size: 18px;
  padding: 16px;
  line-height: 1.4;
}

.highlight-card p {
  padding: 0 16px 18px;
  font-size: 14px;
  opacity: 0.85;
}

/* Centres */
.centres-title {
  margin-bottom: 20px;
}

.nav-arrows span {
  font-size: 22px;
  margin-left: 12px;
  cursor: pointer;
  opacity: 0.8;
}

.centre-card {
  background: #fff;
  color: #111;
  border-radius: 8px;
  overflow: hidden;
}

.centre-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.centre-card h4 {
  font-size: 17px;
  padding: 16px;
  font-weight: 600;
}

.centre-card p {
  padding: 0 16px 18px;
  font-size: 14px;
  color: #555;
}

/* Responsive */
@media (max-width: 1024px) {
  .research-content {
    grid-template-columns: 1fr;
  }

  .highlight-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .research-section {
    padding: 50px 20px;
  }
}

/*Deaprtment Section*/
.departments-section {
  padding: 70px 80px;
  background: #fff;
  font-family: "Segoe UI", sans-serif;
}

.departments-header h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 40px;
}

.departments-header h2 span {
  color: #e60000;
  margin-right: 10px;
}

/* Slider Wrapper */
.departments-slider-wrapper {
  position: relative;
  overflow: hidden;
}

/* Slider Track */
.departments-slider {
  display: flex;
  gap: 40px;
  transition: transform 0.5s ease;
}

/* Card */
.department-card {
  min-width: 360px;
  max-width: 360px;
}

.department-card h3 {
  font-size: 16px;
  color: #c40000;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.department-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  margin-bottom: 14px;
}

.department-card p {
  font-size: 15px;
  color: #222;
  line-height: 1.6;
}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ccc;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: #f2f2f2;
}

.nav-btn.left {
  left: -10px;
}

.nav-btn.right {
  right: -10px;
}

/* Responsive */
@media (max-width: 768px) {
  .departments-section {
    padding: 50px 20px;
  }

  .department-card {
    min-width: 280px;
  }
}


/*About Section */
.highlight-marquee {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.highlight-content {
    position: absolute;
    width: 100%;
    animation: scrollUp 14s linear infinite;
}

.highlight-marquee:hover .highlight-content {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0%   { top: 100%; }
    100% { top: -100%; }
}

/* Recent New Styles */
.activity-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  background: white;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.activity-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.activity-date {
  color: #666;
  font-size: 0.9rem;
  margin: 15px 15px 5px 15px;
}

.activity-title {
  font-weight: 600;
  margin: 0 15px 15px 15px;
  color: #333;
  line-height: 1.4;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgb(255 239 239 / 55%);
  border-radius: 10%;
  width: 30px;
  height: 30px;
}

.carousel-control-prev,
.carousel-control-next {
  width: auto;
  opacity: 1;
}


/*Notice*/
.notice-card {
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.notice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.notice-header {
  background: linear-gradient(90deg, #0d6efd, #3a8bff);
  padding: 14px 20px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
}

.notice-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
  transition: 0.25s ease;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list li:hover {
  background: #f8f9ff;
  border-radius: 6px;
  padding-left: 8px;
}

.notice-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eff3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #0d6efd;
  margin-top: 2px;
  box-shadow: inset 0 0 4px rgba(13, 110, 253, 0.2);
}


/* Custom slider styles */
.slider-container {
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-slide {
  min-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .activity-card img {
    height: 180px;
  }
}

/*Profile*/

.profile-card {
  border: none;
  border-radius: 12px;
  background: #ffffff;
  padding: 25px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
}
.profile-img {
  border-radius: 12px;
  width: 100%;
  max-width: 240px;
  object-fit: cover;
}
.profile-title {
  font-size: 28px;
  font-weight: 700;
  color: #0d6efd;
}
.profile-name {
  font-size: 20px;
  font-weight: 600;
}

/*Gallery*/
.thumb-img {
  height: 80px;
  width: 120px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}
.thumb-img:hover {
  transform: scale(1.05);
  border-color: #0d6efd;
}
.main-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

/*Quick Link*/
.quick-links-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.quick-link-card {
  padding: 15px 18px;
  border-radius: 6px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-link-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.quick-link-icon {
  width: 38px;
  height: 38px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Footer */
.duvasu-footer {
  background: linear-gradient(135deg, var(--dark-blue), #00264d);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.duvasu-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-gold), var(--light-gold));
}

.footer-links h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-gold);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.footer-links ul li a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-links ul li a i {
  margin-right: 8px;
  color: var(--accent-gold);
  font-size: 0.8rem;
}
