:root {
  --primary-color: #1a4b8c;
  --secondary-color: #e63946;
  --accent-color: #2a9d8f;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.university-header {
  background-color: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sub-topic {
  font-size: small;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-topic {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.logo {
  height: 100px;
  width: auto;
  margin-right: 0;
}

.index-maintext {
  flex: 1;
  min-width: 300px;
}

.university-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.college-name {
  font-size: 1.4rem;
  font-weight: 550;
  color: var(--dark-color);
  margin: 8px 0;
  line-height: 1.3;
}

.college-names {
  font-size: 1.3rem;
  font-weight: 550;
  color: var(--dark-color);
  margin: 8px 0;
  line-height: 1.3;
}
.row .aga a{
  text-decoration: underline;
}

/* Responsive Design for University Header */
@media (max-width: 1200px) {
  .university-name {
    font-size: 1.5rem;
  }

  .college-name {
    font-size: 1.2rem;
  }

  .college-names {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .index-topic {
    gap: 15px;
  }

  .logo {
    height: 100px;
  }

  .university-name {
    font-size: 1.3rem;
  }

  .college-name {
    font-size: 1.1rem;
  }

  .college-names {
    font-size: 1rem;
  }

  .index-maintext {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .university-header {
    padding: 12px 0;
  }

  .index-topic {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .logo {
    height: 60px;
    margin-bottom: 5px;
  }

  .university-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }

  .college-name {
    font-size: 1rem;
    margin: 5px 0;
  }

  .college-names {
    font-size: 0.95rem;
    margin: 5px 0;
  }

  .sub-topic {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .university-header {
    padding: 10px 0;
  }

  .logo {
    height: 50px;
  }

  .university-name {
    font-size: 1rem;
  }

  .college-name {
    font-size: 0.9rem;
  }

  .college-names {
    font-size: 0.85rem;
  }

  .sub-topic {
    font-size: 0.75rem;
  }

  .index-maintext {
    min-width: 200px;
  }
}

@media (max-width: 400px) {
  .university-name {
    font-size: 0.9rem;
  }

  .college-name {
    font-size: 0.8rem;
  }

  .college-names {
    font-size: 0.75rem;
  }

  .logo {
    height: 45px;
  }
}

/* Rest of your existing CSS remains the same */
.marquee {
  background-color: #f8f9fa;
  padding: 8px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.navbar {
  top: 0px;
  z-index: 1040;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.navbar-nav {
  margin: auto;
  align-items: center;
}

.navbar-nav .nav-item {
  margin: 0 20px;
}

.navbar-nav .nav-link {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
}

@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .nav-item {
    margin: 5px 0;
  }
}

/* ---------------- HERO ---------------- */
.hero-section {
  background: url("ucep-homeimg.jpg");
  background-size: cover;
  background-position: center;
  color: whitesmoke;
  padding: 80px 0;
  text-align: center;
  text-shadow: 1px 1px 2px black;
  
}



/* ---------------- COMMON ---------------- */
.section-title {
  color: var(--primary-color);
  text-decoration: underline var(--accent-color);
  display: flex;
  justify-content: center;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 4px 6px rgba(162, 81, 81, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
}
.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Quick links */
.quick-links {
  background-color: var(--light-color);
  padding: 40px 0;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 40px 0 20px;
}
.footer a {
  color: #ccc;
  text-decoration: none;
}
.footer a:hover {
  color: white;
}

/* Stats */
.stats-counter {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 0;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

/* Campus */
.academic-programs {
  background-color: #f0f7ff;
  padding: 60px 0;
}
.program-card {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}
.program-card img {
  height: 200px;
  object-fit: cover;
}
.campus-life {
  padding: 60px 0;
}
.campus-image {
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  text-align: center;
}
.scroll-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}
.scroll-arrow {
  font-size: 20px;
  color: var(--primary-color);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
/* News & Events Auto Scrolling Section */
.news-events-scroll {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

.scroll-container {
  height: 400px;
  overflow: hidden;
  position: relative;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  margin-top: -15px;
}

.scroll-content {
  position: absolute;
  width: 100%;
  animation: scrollUp 30s linear infinite;
}

.scroll-content:hover {
  animation-play-state: paused;
}

.scroll-item {
  padding: 25px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.scroll-item:last-child {
  border-bottom: none;
}

.scroll-item:hover {
  background: #f8f9fa;
  transform: translateX(10px);
}

.news-badge,
.event-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 5px;
}

.news-badge {
  background: var(--primary-color);
  color: white;
}

.event-badge {
  background: var(--accent-color);
  color: white;
}

.scroll-item-content {
  flex: 1;
}

.scroll-item-content h5 {
  color: var(--dark-color);
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

.scroll-item-content p {
  color: #666;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.news-date,
.event-date {
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
}

.news-date::before {
  content: "📅 ";
}

.event-date::before {
  content: "⏰ ";
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Pause animation when hovering */
.scroll-container:hover .scroll-content {
  animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-events-scroll {
    padding: 60px 0;
  }

  .scroll-container {
    height: 350px;
  }

  .scroll-item {
    padding: 20px;
    flex-direction: column;
    gap: 10px;
  }

  .scroll-item:hover {
    transform: translateX(5px);
  }

  .scroll-item-content h5 {
    font-size: 1rem;
  }
}

/* Alternative: Horizontal Scrolling Version */
.news-events-horizontal {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
}

.horizontal-scroll-container {
  overflow: hidden;
  position: relative;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.horizontal-scroll-content {
  display: flex;
  animation: scrollHorizontal 40s linear infinite;
  gap: 30px;
}

.horizontal-scroll-item {
  min-width: 300px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.horizontal-scroll-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes scrollHorizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Admin Button Styles */
.admin-btn {
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.admin-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-btn i {
  font-size: 0.8rem;
}

/* Responsive adjustments for admin button */
@media (max-width: 991px) {
  .navbar-nav.ms-auto {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
  }

  .admin-btn {
    display: inline-block;
    margin: 5px 0;
  }
}

/* Ensure proper spacing in navbar */
.navbar-nav {
  align-items: center;
}

.faculty-img-container {
  width: 100%;
  height: 250px; /* Fixed container height */
  overflow: hidden;
}

.faculty-img {
  width: 50%;
  height: 250px;
  object-fit: cover;
  margin-left: 25%;
  border-radius: 10px;
}
/* HOD Image - Smaller size */
.hod-img {
  width: 90%;
  height: 220px;
  object-fit: cover;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
}

/* Regular Faculty Images */
.faculty-img {
  width: 50%;
  height: 250px;
  object-fit: cover;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
}

/* Campus Services Section */
.campus-services {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
  padding: 80px 0;
}

.service-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: white;
  border-top: 4px solid var(--primary-color);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-card p {
  color: #666;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 15px;
  min-height: 40px;
  text-align: center;
}

.service-card .btn {
  border-radius: 18px;
  font-size: 0.78rem;
  padding: 5px 12px;
  font-weight: 500;
  border-width: 1.5px;
}

/* Responsive adjustments for campus services */
@media (max-width: 768px) {
  .campus-services {
    padding: 60px 0;
  }

  .service-card {
    margin-bottom: 15px;
  }

  .service-card h5 {
    font-size: 0.9rem;
    min-height: 40px;
  }

  .service-card p {
    font-size: 0.8rem;
    min-height: 35px;
  }

  .service-icon {
    font-size: 1.8rem;
    height: 45px;
  }
}

@media (max-width: 576px) {
  .service-card h5 {
    font-size: 0.85rem;
    min-height: 35px;
  }

  .service-card p {
    font-size: 0.75rem;
    min-height: 30px;
  }

  .service-icon {
    font-size: 1.6rem;
    height: 40px;
  }
}

/* Ensure consistent spacing */
.campus-services .container {
  max-width: 1200px;
}

.btn-primary {
  background-color: var(--primary-color);
  box-sizing: 30px;
}
