/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  --primary-color: #8b2635;
  /* --primary-color: linear-gradient(358deg, #323291, #0e0e32); */
  --secondary-color: #c8a882;
  --accent-color: #d4af37;
  --dark-color: #2c1810;
  --light-color: #f5f5f5;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
}

body {
  /* Updated to Merriweather for body font */
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  letter-spacing: 0.5px;
  font-size: 16px;
}

h1,
h2,
h4,
h5,
h6 {
  /* Updated to Cinzel for elegant headings */
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Animated Bubble Background */
.bubble-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: radial-gradient(circle, rgba(139, 38, 53, 0.15), rgba(212, 175, 55, 0.08));
  border-radius: 50%;
  opacity: 0.6;
  animation: rise 15s infinite ease-in;
}

.bubble:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-duration: 12s;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 120px;
  height: 120px;
  left: 20%;
  animation-duration: 18s;
  animation-delay: 2s;
}

.bubble:nth-child(3) {
  width: 60px;
  height: 60px;
  left: 35%;
  animation-duration: 15s;
  animation-delay: 1s;
}

.bubble:nth-child(4) {
  width: 100px;
  height: 100px;
  left: 50%;
  animation-duration: 20s;
  animation-delay: 0s;
}

.bubble:nth-child(5) {
  width: 90px;
  height: 90px;
  left: 55%;
  animation-duration: 17s;
  animation-delay: 3s;
}

.bubble:nth-child(6) {
  width: 110px;
  height: 110px;
  left: 65%;
  animation-duration: 16s;
  animation-delay: 1s;
}

.bubble:nth-child(7) {
  width: 70px;
  height: 70px;
  left: 75%;
  animation-duration: 19s;
  animation-delay: 2s;
}

.bubble:nth-child(8) {
  width: 130px;
  height: 130px;
  left: 80%;
  animation-duration: 14s;
  animation-delay: 0s;
}

.bubble:nth-child(9) {
  width: 85px;
  height: 85px;
  left: 90%;
  animation-duration: 21s;
  animation-delay: 4s;
}

.bubble:nth-child(10) {
  width: 95px;
  height: 95px;
  left: 5%;
  animation-duration: 13s;
  animation-delay: 1s;
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease;
}

.popup-overlay.hidden {
  display: none;
}

.popup-content {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  max-width: 800px;
  position: relative;
  animation: scaleIn 0.5s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: var(--dark-color);
  transform: rotate(90deg);
}

.popup-body {
  text-align: center;
}

.popup-logo {
  width: 100%;

  margin-bottom: 20px;
  animation: bounceIn 1s ease;
  opacity: 1 !important;
}

.popup-body h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.popup-body h3 {
  font-size: 28px;
  color: var(--dark-color);
  margin-bottom: 15px;

  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #080808, #050052, #086400, #085600, #5a0000, #06005e);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: spiritualGlow 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  padding-top: 10px;
}

@keyframes spiritualGlow {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

.popup-body p {
  color: var(--text-light);
  font-size: 16px;
}

/* Top Header */
.top-header {
  background: #3b5dabcf;
  color: var(--white);
  padding: 3px 0;
  font-size: 13px;
  /* Added slide down animation on load */
  animation: slideDown 0.8s ease, headerGlow 3s infinite alternate;
  position: relative;
  overflow: hidden;
}

/* Added glowing animation to header */
@keyframes headerGlow {
  0% {
    box-shadow: 0 2px 10px rgba(139, 38, 53, 0.3);
  }

  100% {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
  }
}

.contact-info span {
  margin-right: 20px;
  color: #fff;
  font-size: 14px;
}

.contact-info i {
  margin-right: 8px;
  color: #fff;
}

.quick-links a {
  color: #fff;
  background: #2e4885;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  margin-left: 10px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.quick-links a:hover {
  background: #d4af37;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Logo Section */
.logo-section {
  background: linear-gradient(135deg, rgb(255 255 255 / 87%), rgb(255 255 255 / 81%)), url(./images/home/header-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5px 0;
  animation: fadeInUp 1s ease;
  position: relative;
  overflow: hidden;
  /* background: url('./images/home/header-bg.jpg') no-repeat center center / cover, linear-gradient(135deg, var(--white) 0%, var(--light-color) 100%);
  padding: 30px 0;
  border-bottom: 3px solid var(--primary-color);

  animation: fadeInUp 1s ease;
  position: relative;
  overflow: hidden; */
}

/* 
.logo-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 3s infinite;
} */

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.college-logo {

  height: 130px;
  /* Enhanced rotation and bounce animation */
  animation: logoFloat 3s ease-in-out infinite, rotateIn 1s ease;
  opacity: 1 !important;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

.college-name {
  font-size: 36px;
  color: #2e4885;
  margin-bottom: 5px;
  /* Added text glow and enhanced animation */
  animation: fadeInRight 1.2s ease, textGlow 1s infinite alternate;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

@keyframes textGlow {
  0% {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  }

  100% {
    text-shadow: 2px 2px 8px rgba(139, 38, 53, 0.3);
  }
}

.college-subtitle {
  font-size: 18px;
  color: #000;
  margin-bottom: 5px;
  text-align: center;
  font-weight: 500;
}

.college-tagline {
  font-size: 13px;
  color: #0e0e0e;
  margin-bottom: 0 !important;
  text-align: center;
  letter-spacing: 2.5px;
}

/* Navigation */
.navbar {
  background: linear-gradient(1deg, #2e4885), url(./images/home/menu-bg.jpg);
  background-size: cover;
  /* background: linear-gradient(268deg, #6a6a6a, #000000); */
  padding: 0;
  /* Enhanced shadow with pulsing animation */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: navbarSlide 1s ease;
}

@keyframes navbarSlide {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Desktop hover dropdown */
@media (min-width: 992px) {
  .navbar .dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Smooth look */
.dropdown-menu {
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


.navbar-nav .nav-link {
  color: #fff !important;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.7px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  margin-right: 9px;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 95%;
  transform: translateX(-50%);
  width: 0;
  height: 27px;
  /* background: var(--accent-color); */
  /* transition: width 0.3s ease; */
  /* Added glow effect */
  /* box-shadow: 0 0 10px var(--accent-color); */
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  /* width: 80%; */
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  background: var(--white);
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 0;
}

.dropdown-item {
  padding: 4px 15px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: #3b5dabcf;
  color: var(--white);
  padding-left: 30px;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  /* Added overflow hidden for better animations */
  overflow: hidden;
  padding: 0px 0px;
  margin-bottom: 0 !important;
  display: block;
}

.hero-slide {
  height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
  /* Enhanced animation with multiple effects */
  animation: zoomIn 1s ease, heroShine 5s infinite;
}

@keyframes heroShine {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 420px;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 60%) 100%);
  background-image: linear-gradient(135deg, rgb(0 0 0 / 73%) 0%, rgba(44, 24, 16, 0.6) 100%), repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
}

.hero-content {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-size: 35px;
  color: var(--white);
  /* Enhanced text shadow with glow */
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
  animation: fadeInUp 1s ease 0.3s both, titlePulse 3s infinite;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
}

@keyframes titlePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 50px;
  height: 50px;
  background-color: #042a82;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

/* Announcements */

marquee a {
  text-decoration: none !important;
}

marquee .announcement-item:hover {
  color: #0000a5;
}

.announcements-section {
  background: #e3e3e3;
  padding: 0px 0;
  margin-top: 0 !important;
}

.announcement-wrapper {
  display: flex;
  align-items: center;
}

.announcement-label {
  background: #2e4885;
  color: var(--white);
  padding: 9px 25px;
  font-weight: 600;
  white-space: nowrap;
  animation: pulse 2s infinite;
  border-radius: 10px;
}

.announcement-label i {
  margin-right: 10px;
  animation: swing 1s infinite;
}

.announcement-content {
  flex: 1;
  overflow: hidden;
  background: var(--white);
  padding: 6px 15px;
}

.announcement-item {
  margin-right: 50px;
  font-weight: 500;
  color: var(--dark-color);
}

/* Section Styles */
section {
  padding: 80px 0;
  position: relative;
}

.about-section {
  background: var(--white);
}

.about-section .btn {
  float: right;
  background: #0C558D;
  border: navajowhite;
}

.about-section .btn:hover {
  background: #6d94ee;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  /* Added fade-in animation */
  animation: fadeInUp 0.8s ease;
}

.section-title h2 {
  font-size: 42px;
  background: -webkit-radial-gradient(#2e4885, #2e4885);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  /* Added decorative styling */
  position: relative;
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
}

.section-title h2::before,
.section-title h2::after {
  content: "❖";
  position: absolute;
  color: var(--accent-color);
  font-size: 20px;
  top: 50%;
  transform: translateY(-50%);
  animation: decorPulse 2s infinite;
}

.section-title h2::before {
  left: -40px;
}

.section-title h2::after {
  right: -40px;
}

@keyframes decorPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
  }
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 0 auto 15px;
  border-radius: 2px;
  /* Added expansion animation */
  animation: expandLine 2s infinite;
}

@keyframes expandLine {

  0%,
  100% {
    width: 80px;
  }

  50% {
    width: 120px;
  }
}

.section-subtitle {
  color: var(--text-light);
  font-size: 16px;
}

/* About Section */
.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  /* Added floating animation */
  animation: imageFloat 4s ease-in-out infinite;
}

@keyframes imageFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.about-img {
  width: 100%;
  transition: transform 0.5s ease;
  /* Added brightness transition */
  filter: brightness(0.95);
  opacity: 1 !important;
}

.about-image-wrapper:hover .about-img {
  transform: scale(1.1);
  opacity: 1 !important;
  filter: brightness(1);
}

.about-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.about-badge {
  background: #2e4885;
  color: var(--white);
  padding: 15px 25px;
  border-radius: 10px;
  font-weight: 600;
  animation: fadeInLeft 1s ease;
}

.about-content {
  padding-left: 30px;
}

.about-content h3 {
  font-size: 32px;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.about-content .lead {
  font-size: 18px;
  color: #2e4885;
  font-style: italic;
  margin-bottom: 20px;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-item i {
  color: var(--accent-color);
  font-size: 20px;
}

/* Principal Section */
.principal-section {
  background: -webkit-radial-gradient(circle, rgb(107 147 238 / 27%), #2e4885), url(./images/home/menu-bg1.jpg);
  /* background: -webkit-radial-gradient(#ff899c, #8b2635); */
}

.principal-section .section-title h2 {
  font-size: 42px;
  background: -webkit-radial-gradient(#fff6da, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
}

.principal-card {
  background: var(--white);
  padding: 50px;
  border-radius: 30px;
  /* Enhanced shadow with glow animation */
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  animation: cardGlow 3s infinite alternate;
}

@keyframes cardGlow {
  0% {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  }

  100% {
    box-shadow: 0 20px 60px rgba(139, 38, 53, 0.15);
  }
}

.principal-image-wrapper {
  text-align: center;
}

.principal-frame {
  position: relative;
  display: inline-block;
  padding: 10px;
  background: linear-gradient(135deg, #244ba7, #6a92ee17);
  border-radius: 20px;
  animation: float 3s ease-in-out infinite;
}

.principal-img {
  width: 310px;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  opacity: 1 !important;
}

.principal-name-card {
  background: #ffffff;
  color: #234aa6;
  padding: 20px;
  border-radius: 15px;
  margin-top: 20px;
}

.principal-name-card p {
  color: #000 !important;
}

.principal-name-card h4 {
  margin-bottom: 5px;
}

.principal-message {
  position: relative;
}

.quote-icon {
  font-size: 60px;
  color: var(--accent-color);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
}

.message-text {
  margin-bottom: 20px;
  text-align: justify;
  position: relative;
  z-index: 1;
}

.signature-img {
  margin-top: 20px;
}

/* News & Events */
.news-events-section {
  background: linear-gradient(135deg, #c7d6fa82 0%, #ffffff 100%);
}

.news-wrapper {
  max-height: 660px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.news-container {
  animation: scrollUp 20s linear infinite;
}

.news-container:hover {
  animation-play-state: paused;
}

.news-card {
  background: var(--light-color);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  background: var(--white);
}

.news-date {
  background: var(--primary-color);
  color: var(--white);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  min-width: 80px;
}

.date-day {
  display: block;
  font-size: 32px;
  font-weight: 700;
}

.date-month {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
}

.news-content h4 {
  color: var(--dark-color);
  margin-bottom: 10px;
}

.read-more {
  color: #0C558D;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--accent-color);
  padding-left: 10px;
}


/* New two-column layout styling */
.news-events-section .container {
  position: relative;
  z-index: 2;
}

.event-date-badge {
  background: linear-gradient(135deg, var(--primary-color), #a52a2a);
  color: var(--white);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

/* Header fixed */
.news-column .column-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  padding: 15px;
}

.news-scroll {
  height: 580px;
  /* header height minus total */
  overflow: hidden;
  position: relative;
}

.news-column,
.events-column {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  height: 700px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 0, 0, 0.1);
}

.column-header {
  background: linear-gradient(135deg, var(--primary-color), #a52a2a);
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(139, 0, 0, 0.3);
}

.column-header h3 {
  margin: 0;
  font-size: 24px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.column-header i {
  margin-right: 10px;
}


/* New two-column layout styling */
.news-events-section .container {
  position: relative;
  z-index: 2;
}

.news-wrapper,
.events-column {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  height: 660px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 0, 0, 0.1);
}

.column-header {
  background: linear-gradient(135deg, #2e4885);
  color: #000;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgb(112 151 239);
}

.column-header h3 {
  margin: 0;
  font-size: 25px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #fff;
}

.column-header i {
  margin-right: 10px;
}

/* News Column Styling */
.news-wrapper {
  max-height: 660px;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
}


.news-container {
  animation: scrollUp 25s linear infinite;
}

.news-container:hover {
  animation-play-state: paused;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.news-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #0C558D;
}

.news-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 40px rgba(139, 0, 0, 0.2);
  background: white;
}

.news-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: pulse 2s infinite;
}

.news-date {
  background: linear-gradient(146deg, #2e4885, #6f96ee);
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 5px 15px rgb(112 150 239);
}

.date-day {
  display: block;
  font-size: 32px;
  font-weight: 700;
}

.date-month {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
}

.event-item h4,
.news-content h4 {
  color: var(--dark-color);
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
}

.news-content p {
  color: #000;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.read-more {
  color: #2e4885;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #3b5dab;
  gap: 10px;
}

.read-more i {
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Events Column Styling */
.events-list {
  max-height: 503px;
  overflow-y: auto;
  padding-right: 10px;
}

.events-list::-webkit-scrollbar {
  width: 6px;
}

.events-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb:hover {
  background: #a52a2a;
}

.event-item {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Fixed syntax error and completed event item styling */
.event-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
}



/* Added bubble animation background for News & Events section */
.news-bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.news-bubble {
  position: absolute;
  bottom: -100px;
  width: 40px;
  height: 40px;
  background: rgba(139, 0, 0, 0.1);
  border-radius: 50%;
  opacity: 0.5;
  animation: bubbleFloat 15s infinite ease-in-out;
}

.news-bubble:nth-child(1) {
  left: 10%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  animation-duration: 12s;
}

.news-bubble:nth-child(2) {
  left: 30%;
  width: 60px;
  height: 60px;
  animation-delay: 2s;
  animation-duration: 14s;
}

.news-bubble:nth-child(3) {
  left: 50%;
  width: 100px;
  height: 100px;
  animation-delay: 4s;
  animation-duration: 16s;
}

.news-bubble:nth-child(4) {
  left: 70%;
  width: 50px;
  height: 50px;
  animation-delay: 1s;
  animation-duration: 13s;
}

.news-bubble:nth-child(5) {
  left: 90%;
  width: 70px;
  height: 70px;
  animation-delay: 3s;
  animation-duration: 15s;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
  }
}

/* Programs Section */
.programs-section {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.program-icon i {
  font-size: 36px;
  color: var(--white);
}

.program-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  /* Added initial animation */
  animation: cardPopIn 0.6s ease backwards;
}

.program-card:nth-child(1) {
  animation-delay: 0.1s;
}

.program-card:nth-child(2) {
  animation-delay: 0.2s;
}

.program-card:nth-child(3) {
  animation-delay: 0.3s;
}

.program-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes cardPopIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.program-card:hover {
  transform: translateY(-10px) rotateY(5deg);
  box-shadow: 0 15px 50px rgba(139, 38, 53, 0.2);
  background: linear-gradient(135deg, #2e5abf, var(--dark-color));
  color: var(--white);
}

.program-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0d3ca9, #759aef);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.4s ease;
  /* Added bounce animation */
  animation: iconBounce 2s infinite;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.program-card:hover .program-icon {
  background: var(--white);
}

.program-card:hover .program-icon i {
  color: #2d3d73;
}

.program-card h4 {
  font-size: 20px;
  margin-bottom: 15px;
}

.program-link {
  color: #0b3fb8;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.program-card:hover .program-link {
  color: var(--white);
}

/* Vision Section */
.vision-section {
  background: var(--white);
}

.vision-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.vision-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  padding: 50px 30px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  transition: all 0.4s ease;
}

.vision-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(139, 38, 53, 0.3);
}

.vision-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 80px;
  font-weight: 700;
  opacity: 0.1;
}

.vision-icon {
  /* width: 80px; */
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  /* margin: 0 auto 25px; */
}

.vision-icon i {
  font-size: 36px;
  color: #0C558D;
}

.vision-card h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.motto-list p {
  font-size: 18px;
  margin-bottom: 10px;
}

.vision-decoration {
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* Gallery Section */
.gallery-section {
  background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 250px;
  /* Added initial animation */
  animation: galleryFadeIn 0.8s ease backwards;
  transition: all 0.3s ease;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}

.gallery-item:nth-child(7) {
  animation-delay: 0.7s;
}

.gallery-item:nth-child(8) {
  animation-delay: 0.8s;
}

.gallery-btn {
  margin-left: auto;
  margin-right: auto;
  display: table;
  background: #0C558D;
  border: navajowhite;
}

.gallery-btn:hover {
  background: #6a92ee;
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 1 !important;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(105 145 238 / 51%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 48px;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.2);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.gallery-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

.gallery-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: var(--white);
  font-size: 48px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-close:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 20px 25px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: var(--accent-color);
}

.gallery-prev {
  left: 50px;
}

.gallery-next {
  right: 50px;
}

/* Footer */
.footer-section {
  background: #3b5dab;
  color: var(--white);
  position: relative;
  padding-top: 100px;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
  fill: #fff;
}

.footer-about img {
  width: 80px;
  margin-bottom: 20px;
}

.footer-about h4 {
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: #2e4885;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: #d4af37;
  transform: translateY(-5px);
}

.footer-links h5,
.footer-contact h5 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 10px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item a {
  color: #fff !important;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent-color) !important;
}

.contact-item i {
  color: var(--accent-color);
  font-size: 20px;
  margin-top: 5px;
}

.footer-bottom {
  background: #2e4885;
  padding: 20px 0;
  margin-top: 50px;
}

.footer-bottom p {
  margin-bottom: 0px !important;
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
}

/* Scroll to Top */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #2e4885;
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-top-btn:hover {
  background: #3b5dab;
  transform: translateY(-5px);
}

.scroll-top-btn.show {
  display: flex;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(1.2);
  }

  to {
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    transform: rotate(-360deg) scale(0);
  }

  to {
    transform: rotate(0) scale(1);
  }
}

@keyframes bounceIn {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-30px);
  }

  60% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes swing {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(15deg);
  }

  75% {
    transform: rotate(-15deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .college-name {
    font-size: 24px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .section-title h2::before,
  .section-title h2::after {
    display: none;
  }

  .about-content {
    padding-left: 0;
    margin-top: 30px;
  }

  .principal-card {
    padding: 30px 20px;
  }

  .principal-img {
    width: 200px;
    height: 200px;
  }

  .contact-info span {
    display: block;
    margin-bottom: 5px;
  }

  .gallery-prev,
  .gallery-next {
    padding: 15px 20px;
    font-size: 18px;
  }

  .gallery-prev {
    left: 20px;
  }

  .gallery-next {
    right: 20px;
  }

  .gallery-close {
    right: 20px;
    font-size: 36px;
  }

  .bubble {
    display: none;
  }
}

.vision-icon {
  font-weight: 600;
  font-size: 25px;
  margin-bottom: 10px;
  color: #2e4885;
}

.vision-icon i {
  font-size: 25px;
}

.vision-title {
  display: inline-block;
}

.event-item {
  margin-bottom: 25px;
}

.vision-header {
  display: flex !important;
  /* force one line */
  align-items: center;
  gap: 10px;
}

.vision-header h5 {
  margin: 0;
  font-weight: 600;
}

.event-item p {
  margin-top: 8px;
  /* paragraph title keela */
  margin-bottom: 0;
}

.event-item-one p {
  margin-top: 8px;
  /* paragraph title keela */
  margin-bottom: 0;
  /* margin-left: 20px; */
}

.gallery-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-weight: 700;
}

.title-underline {
  width: 80px;
  height: 3px;
  background: #0d6efd;
  margin: 10px auto 15px;
}

.section-subtitle {
  color: #6c757d;
}

/* ===== Gallery Item ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: 0.4s ease;
}

/* Dark overlay (hover) */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgb(9 23 48 / 58%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.4s ease;
  color: #fff;
  font-size: 28px;
}

/* Gradient at bottom for better text visibility */
.gallery-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Title overlay */
.gallery-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  z-index: 2;
}

/* Hover effects */
.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Button */
.gallery-btn {
  display: block;
  width: fit-content;
  margin: 50px auto 0;
  padding: 10px 25px;
  border-radius: 30px;
}

h3 {
  font-size: 25px;
  color: #2e4885;
  margin-bottom: 20px;
}

.page-title-area {
  /* height: 200px; */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.d-table {
  width: 100%;
  height: 100%;
}

.d-table-cell {
  /* vertical-align: middle; */
}

.page-title-area .title-item {
  position: relative;
  z-index: 1;
  text-align: center;
  /* margin-top: 95px; */
}

.page-title-area .title-item h2 {
  font-size: 50px;
  color: #fff;
  margin-bottom: 0px;
  margin-top: 30px;
}

.page-title-area .title-item ul li {
  list-style-type: none;
  display: inline-block;
  position: relative;
  color: #fff;
}

.title-bg-eight {
  background: linear-gradient(rgb(94 122 186 / 38%), rgb(80 101 152 / 41%)), url(./images/home/header-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-title-area .title-item ul li a {
  color: #fff;
  text-decoration: none;
}

.subpage {
  /* padding-bottom: 70px; */
  padding-top: 70px;
  background-color: #fff !important;
}

.team-img img {
  opacity: 1 !important;
}