/* Modern Styles for BKHM Website */

/* General Site Modernization */
:root {
  --primary-color: #002147;
  --secondary-color: #e8b012;
  --accent-color: #f05454;
  --light-bg: #f9f9f9;
  --dark-text: #222831;
  --light-text: #ffffff;
  --transition-speed: 0.3s;
  --box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  --hover-shadow: 0 10px 30px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --gradient-bg: linear-gradient(135deg, #002147 0%, #003366 100%);
  --card-height: 320px;
  --bounce-timing: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  font-family: 'Poppins', 'Helvetica', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background-color: #f8f9fa;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.page-transition {
  opacity: 0;
}

/* Prevent horizontal scroll and ensure proper full width */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Animation Utility Classes */
.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s var(--bounce-timing) forwards;
}

.animate-slide-down {
  animation: slideDown 0.8s var(--bounce-timing) forwards;
}

.animate-slide-left {
  animation: slideLeft 0.8s var(--bounce-timing) forwards;
}

.animate-slide-right {
  animation: slideRight 0.8s var(--bounce-timing) forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Institution Section Modernization */
.brand-area.schoolLogo-area {
  background-color: #e8f4fb; /* Light blueish color */
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.home-section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease forwards;
}

.home-section-title a {
  color: var(--primary-color);
  font-size: 40px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
}

.home-section-title a::before,
.home-section-title a::after {
  content: '';
  position: absolute;
  height: 3px;
  background: var(--secondary-color);
  bottom: -12px;
  transition: all 0.5s ease;
}

.home-section-title a::before {
  width: 50px;
  left: 50%;
  transform: translateX(-120%);
}

.home-section-title a::after {
  width: 50px;
  left: 50%;
  transform: translateX(20%);
}

.home-section-title:hover a::before,
.home-section-title:hover a::after {
  width: 70px;
  transform: translateX(-50%);
  left: 25%;
}

.home-section-title:hover a::after {
  left: 75%;
}

/* Campus Selector Styles */
.campus-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 auto 50px;
  background-color: #ffffff;
  border-radius: 50px;
  padding: 5px;
  max-width: 500px;
  box-shadow: var(--box-shadow);
  z-index: 5;
}

.campus-selector-button {
  position: relative;
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text);
  z-index: 2;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s var(--bounce-timing);
  text-align: center;
  outline: none;
  overflow: hidden;
}

.campus-selector-button:hover {
  transform: translateY(-2px);
}

.campus-selector-button.active {
  color: #fff;
}

.campus-selector-button i {
  margin-right: 10px;
  font-size: 22px;
  transition: transform 0.3s var(--bounce-timing), color 0.3s ease;
  display: inline-block;
  vertical-align: middle;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.campus-selector-button:hover i {
  transform: translateY(-3px) scale(1.2);
  color: var(--secondary-color);
}

.campus-selector-button.active i {
  animation: bounce 2s infinite;
  color: white;
}

.campus-selector-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--primary-color);
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  z-index: 1;
}

.campus-selector-button:nth-child(2).active ~ .campus-selector-slider {
  left: calc(50% + 0px);
}

/* Ripple effect for buttons */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Campus content transitions */
.campus-content {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.campus-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.institution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards in a row for large screens */
  gap: 30px;
  margin-top: 30px;
}

.institution-card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.4s var(--bounce-timing);
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, box-shadow;
}

.institution-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 15px 35px rgba(0, 33, 71, 0.15), 
              0 5px 15px rgba(0, 0, 0, 0.1);
}

.institution-logo {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #f8f9fa;
  transition: all 0.5s var(--bounce-timing);
}

.institution-logo img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
  transform-origin: center center;
  border-radius: 8px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.7);
}

.institution-card:hover .institution-logo img {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.institution-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 33, 71, 0.85); /* Darker overlay with primary color */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

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

.view-btn {
  background: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--bounce-timing);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.institution-card:hover .view-btn {
  transform: translateY(0);
  opacity: 1;
}

.view-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.institution-info {
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.institution-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.institution-affiliation {
  font-size: 14px;
  color: #666;
}

/* Enhanced History Section Styling */
#about-us {
  position: relative;
  background-color: #f9f9f9;
  padding: 80px 0;
  overflow: hidden;
}

#about-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/gmTmJFqTF6wS.svg');
  background-repeat: no-repeat;
  background-position: right -50px top -50px;
  background-size: 300px;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

#about-us .title-bar-medium-left {
  position: relative;
  margin-bottom: 40px;
  z-index: 2;
}

#about-us .title-bar-medium-left a {
  color: var(--primary-color);
  font-size: 36px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

#about-us .title-bar-medium-left a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  transition: width 0.4s var(--bounce-timing);
}

#about-us .title-bar-medium-left a:hover::after {
  width: 100%;
}

#about-us .about-box {
  position: relative;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s var(--bounce-timing), box-shadow 0.4s ease;
  z-index: 2;
  border-left: 5px solid var(--primary-color);
}

#about-us .about-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

#about-us .about-box p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

#about-us .about-box p b {
  color: var(--primary-color);
  font-weight: 600;
}

#about-us .about-box ul {
  padding-left: 20px;
  margin: 20px 0;
}

#about-us .about-box ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  list-style-type: none;
}

#about-us .about-box ul li::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  transition: transform 0.3s ease;
}

#about-us .about-box ul li:hover::before {
  transform: scale(1.3);
}

/* Enhanced Vision Section Styling */
#our-vision {
  position: relative;
  background: linear-gradient(145deg, #e4f1fd 0%, #f0f9ff 50%, #e8f8ff 100%);
  padding: 120px 0;
  overflow: hidden;
}

#our-vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(0,33,71,0.02) 25%, transparent 25%, transparent 50%, rgba(0,33,71,0.02) 50%, rgba(0,33,71,0.02) 75%, transparent 75%, transparent);
  background-size: 50px 50px;
  animation: visionBgAnimation 20s linear infinite;
  opacity: 0.5;
}

@keyframes visionBgAnimation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

.vision-wrapper {
  position: relative;
  z-index: 2;
  perspective: 1000px;
}

.vision-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#our-vision .vision-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 0 15px 35px rgba(0, 33, 71, 0.25);
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(30px);
  animation: floatIcon 6s infinite ease-in-out;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) translateZ(30px); }
  50% { transform: translateY(-15px) translateZ(30px); }
}

#our-vision .vision-icon::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: transparent;
  border: 2px dashed rgba(0, 102, 204, 0.3);
  top: -10%;
  left: -10%;
  animation: rotateRing 12s linear infinite;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#our-vision .vision-icon i {
  font-size: 48px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: pulseLight 3s infinite ease-in-out;
}

@keyframes pulseLight {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
  50% { text-shadow: 0 0 25px rgba(255, 255, 255, 1); }
}

#our-vision .title-bar-medium-left {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
}

#our-vision .title-bar-medium-left a {
  color: var(--primary-color);
  font-size: 44px;
  font-weight: 800;
  text-decoration: none;
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

#our-vision .title-bar-medium-left a:hover {
  color: #0066cc;
  transform: scale(1.05);
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#our-vision .title-bar-medium-left a::before,
#our-vision .title-bar-medium-left a::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.5s var(--bounce-timing), transform 0.5s var(--bounce-timing);
  border-radius: 10px;
}

#our-vision .title-bar-medium-left a::before {
  left: 50%;
  width: 40px;
  transform: translateX(-50px);
}

#our-vision .title-bar-medium-left a::after {
  right: 50%;
  width: 40px;
  transform: translateX(50px);
}

#our-vision .title-bar-medium-left a:hover::before,
#our-vision .title-bar-medium-left a:hover::after {
  width: 100px;
  transform: translateX(0);
}

.vision-divider {
  height: 3px;
  width: 60%;
  margin: 0 auto 30px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
  position: relative;
}

.vision-divider::before,
.vision-divider::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  top: -3px;
  animation: slideGlow 3s infinite alternate ease-in-out;
}

.vision-divider::before {
  left: 25%;
}

.vision-divider::after {
  right: 25%;
}

@keyframes slideGlow {
  0% { box-shadow: 0 0 5px var(--secondary-color); transform: translateX(-20px); }
  100% { box-shadow: 0 0 15px var(--secondary-color); transform: translateX(20px); }
}

#our-vision .about-box {
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 60px 50px;
  box-shadow: 0 30px 60px rgba(0, 33, 71, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  transition: all 0.5s var(--bounce-timing);
  z-index: 2;
  transform-style: preserve-3d;
}

#our-vision .about-box:hover {
  transform: translateY(-15px) scale(1.02) rotateX(5deg);
  box-shadow: 0 40px 80px rgba(0, 33, 71, 0.2), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

#our-vision .about-box p {
  font-size: 20px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 40px 0;
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
  transform: translateZ(10px);
}

#our-vision .about-box p::before,
#our-vision .about-box p::after {
  content: '"';
  font-family: Georgia, serif;
  font-size: 120px;
  color: rgba(0, 33, 71, 0.08);
  position: absolute;
  line-height: 1;
  z-index: -1;
  transition: all 0.5s ease;
}

#our-vision .about-box:hover p::before,
#our-vision .about-box:hover p::after {
  color: rgba(0, 102, 204, 0.12);
  text-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

#our-vision .about-box p::before {
  top: -40px;
  left: -20px;
  animation: floatQuote1 5s infinite ease-in-out;
}

#our-vision .about-box p::after {
  bottom: -70px;
  right: -20px;
  animation: floatQuote2 5s infinite ease-in-out;
}

@keyframes floatQuote1 {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes floatQuote2 {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(10px) rotate(5deg); }
}

.vision-pillars {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.vision-pillar {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border-radius: 15px;
  padding: 25px;
  width: 200px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 33, 71, 0.1);
  transition: all 0.4s ease;
  transform: translateZ(20px);
  position: relative;
  overflow: hidden;
}

.vision-pillar::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  z-index: -1;
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease-in-out;
}

.vision-pillar:hover {
  transform: translateY(-10px) translateZ(20px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 33, 71, 0.15);
}

.vision-pillar:hover::before {
  transform: rotate(45deg) translateX(100%);
}

.pillar-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary-color), #008eff);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 33, 71, 0.15);
  transition: all 0.3s ease;
}

.vision-pillar:hover .pillar-icon {
  transform: scale(1.1) rotate(5deg);
}

.pillar-icon i {
  font-size: 32px;
  color: white;
}

.pillar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

/* Enhanced Chairman's Message Section Styling */
#chairman-message {
  position: relative;
  background: linear-gradient(to bottom right, #f8fafd 0%, #edf5fc 100%);
  padding: 120px 0;
  overflow: hidden;
}

.chairman-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 33, 71, 0.03) 0%, transparent 50%), 
                    radial-gradient(circle at 90% 80%, rgba(0, 102, 204, 0.02) 0%, transparent 50%);
  z-index: 1;
}

.chairman-card {
  position: relative;
  z-index: 5;
  perspective: 1500px;
}

.chairman-card-inner {
  transform-style: preserve-3d;
  transition: transform 1s;
}

.chairman-card:hover .chairman-card-inner {
  transform: rotateY(3deg);
}

.chairman-photo-frame {
  position: relative;
  margin-bottom: 30px;
  perspective: 1000px;
}

.chairman-photo-border {
  position: absolute;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  top: 20px;
  left: 20px;
  border: 2px solid rgba(0, 102, 204, 0.3);
  border-radius: 50%;
  z-index: 1;
  animation: rotateBorder 15s linear infinite;
}

@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#chairman-message .about-page-img-holder {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 33, 71, 0.2), 0 0 0 15px rgba(255, 255, 255, 0.8);
  border: 5px solid #e1effa;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  transform: translateZ(30px);
}

#chairman-message .about-page-img-holder:hover {
  transform: translateY(-15px) scale(1.05) translateZ(30px);
  box-shadow: 0 35px 60px rgba(0, 33, 71, 0.25), 0 0 0 20px rgba(255, 255, 255, 0.9);
  border-color: var(--secondary-color);
}

.chairman-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 33, 71, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease, height 0.4s ease;
}

#chairman-message .about-page-img-holder:hover .chairman-img-overlay {
  opacity: 1;
  height: 50%;
}

#chairman-message .chairman-name {
  text-align: center;
  margin-top: 30px;
  position: relative;
  padding-bottom: 20px;
  transform: translateZ(20px);
}

.chairman-name-text {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#chairman-message .chairman-name:hover .chairman-name-text {
  color: #0066cc;
  transform: scale(1.05);
}

#chairman-message .chairman-name::after {
  content: 'Chairman';
  display: block;
  font-size: 18px;
  color: var(--secondary-color);
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 5px;
  opacity: 0.9;
}

.chairman-signature {
  max-width: 150px;
  margin: 15px auto 0;
  opacity: 0.8;
  transform: translateY(5px);
  transition: all 0.4s ease;
}

#chairman-message .chairman-name:hover .chairman-signature {
  opacity: 1;
  transform: translateY(0);
}

#chairman-message .about-page-content-holder {
  display: flex;
  align-items: center;
  height: 100%;
}

#chairman-message .content-box {
  position: relative;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 25px 50px rgba(0, 33, 71, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
  margin-top: 0;
  z-index: 2;
  border-left: 6px solid var(--primary-color);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateZ(20px);
  height: calc(100% - 40px);
}

#chairman-message .content-box:hover {
  transform: translateY(-15px) translateZ(20px) scale(1.02);
  box-shadow: 0 35px 60px rgba(0, 33, 71, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.2);
  border-left-width: 10px;
}

.quote-icon {
  position: absolute;
  top: -25px;
  left: 40px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 10px 20px rgba(0, 33, 71, 0.2);
  transition: all 0.3s ease;
}

#chairman-message .content-box:hover .quote-icon {
  transform: scale(1.1) rotate(10deg);
}

#chairman-message .title-bar-medium-left {
  position: relative;
  margin-bottom: 40px;
}

#chairman-message .animated-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary-color), #008eff);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#chairman-message .content-box:hover .animated-underline::after {
  width: 140px;
}

.chairman-message-text {
  color: #333;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
}

#chairman-message .content-box:hover .chairman-message-text {
  color: #222;
}

/* Enhanced Logo Section Styling */
#logo {
  position: relative;
  background: linear-gradient(120deg, #f8f9fa 0%, #e8f4fb 100%);
  padding: 100px 0;
  overflow: hidden;
}

#logo::before, 
#logo::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,176,18,0.1) 0%, rgba(232,176,18,0.05) 50%, rgba(232,176,18,0) 70%);
  z-index: 1;
}

#logo::before {
  top: -150px;
  left: -150px;
}

#logo::after {
  bottom: -150px;
  right: -150px;
}

#logo .about-page-content-holder {
  position: relative;
  z-index: 2;
}

#logo .content-box {
  position: relative;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s var(--bounce-timing), box-shadow 0.5s ease;
}

#logo .content-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

#logo .title-bar-medium-left {
  position: relative;
  margin-bottom: 40px;
  text-align: center;
}

#logo .title-bar-medium-left::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 80px;
  height: 3px;
  background: var(--secondary-color);
  transform: translateX(-50%);
  transition: width 0.4s var(--bounce-timing);
}

#logo .content-box:hover .title-bar-medium-left::after {
  width: 120px;
}

#logo .our-logo {
  position: relative;
}

#logo .our-logo img {
  transition: transform 0.8s var(--bounce-timing);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

#logo .our-logo:hover img {
  transform: rotate(5deg) scale(1.1);
}

#logo .our-logo h3 {
  margin-top: 30px;
  color: var(--primary-color);
  font-size: 24px;
}

#logo .our-logo h4 {
  color: var(--secondary-color);
  font-size: 20px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
}

#logo .our-logo h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,33,71,0.2), transparent);
}

#logo .our-logo p {
  text-align: justify;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  padding-left: 25px;
}

#logo .our-logo p::before {
  content: '•';
  position: absolute;
  left: 5px;
  color: var(--secondary-color);
  font-size: 20px;
}

/* Enhanced Contact Section Styling - Full Width */
#contact-us {
  position: relative;
  background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fb 100%);
  padding: 120px 0 100px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Remove container padding for full width */
.contact-us-page2-area {
  padding: 88px 0 60px !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}

.contact-us-page2-area .container,
.contact-us-page2-area .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Ensure full width for contact section */
.contact-us-page2-area .container-fluid {
  padding: 0 30px;
}

#contact-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(0,33,71,0.02) 25%, transparent 25%, transparent 50%, rgba(0,33,71,0.02) 50%, rgba(0,33,71,0.02) 75%, transparent 75%, transparent);
  background-size: 30px 30px;
  z-index: 1;
  animation: contactBgAnimation 30s linear infinite;
  opacity: 0.7;
}

.contact-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

@keyframes contactBgAnimation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 60px;
  }
}

.contact-heading-area {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 5;
}

.contact-heading {
  font-size: 46px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
}

.contact-heading-divider {
  height: 4px;
  width: 100px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
  margin: 0 auto;
  position: relative;
}

.contact-heading-divider::before,
.contact-heading-divider::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  box-shadow: 0 0 10px var(--secondary-color);
}

.contact-heading-divider::before {
  left: 30%;
  animation: moveDot1 3s infinite ease-in-out alternate;
}

.contact-heading-divider::after {
  right: 30%;
  animation: moveDot2 3s infinite ease-in-out alternate;
}

@keyframes moveDot1 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-20px); }
}

@keyframes moveDot2 {
  0% { transform: translateX(0); }
  100% { transform: translateX(20px); }
}

.contact-row {
  position: relative;
  z-index: 5;
}

.contact-card {
  position: relative;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 50px rgba(0, 33, 71, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  transform: translateZ(0);
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 35px 60px rgba(0, 33, 71, 0.15), 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.contact-card-header {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(0, 33, 71, 0.1);
}

.contact-card-icon {
  position: absolute;
  top: -60px;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  box-shadow: 0 15px 30px rgba(0, 33, 71, 0.2);
  transition: all 0.4s ease;
}

.contact-card:hover .contact-card-icon {
  transform: translateY(-10px) rotate(10deg);
  box-shadow: 0 20px 40px rgba(0, 33, 71, 0.3);
}

#contact-us .title-default-left {
  position: relative;
  color: var(--primary-color);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  z-index: 2;
}

#contact-us .title-default-left::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary-color), #008eff);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#contact-us .title-default-left:hover::after {
  width: 150px;
}

#contact-us .contact-us-info2 {
  position: relative;
  padding: 20px 0;
  z-index: 2;
}

#contact-us .contact-us-info2 ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 5px 15px rgba(0, 33, 71, 0.05);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(0, 33, 71, 0.1);
}

.contact-icon-wrapper {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f9ff, #e8f4fb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  border: 1px solid rgba(0, 102, 204, 0.2);
  box-shadow: 0 5px 15px rgba(0, 33, 71, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-wrapper {
  transform: rotate(10deg);
  background: linear-gradient(135deg, var(--secondary-color), #008eff);
  border-color: transparent;
}

#contact-us .contact-us-info2 ul li i {
  font-size: 22px;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.contact-item:hover i {
  color: white !important;
  transform: scale(1.2);
}

.contact-text {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-text {
  color: var(--primary-color);
  font-weight: 500;
}

.social-media-icons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #0066cc);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 33, 71, 0.15);
}

.social-icon:hover {
  transform: translateY(-8px) rotate(10deg);
  box-shadow: 0 10px 25px rgba(0, 33, 71, 0.2);
  background: linear-gradient(135deg, var(--secondary-color), #008eff);
}

.map-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 33, 71, 0.1);
  height: 100%;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 35px 60px rgba(0, 33, 71, 0.15);
}

.map-card-header {
  background: linear-gradient(to right, var(--primary-color), #0066cc);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
}

.map-pin-icon {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-pin-icon i {
  color: var(--primary-color);
  font-size: 20px;
}

.map-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.google-map-area {
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.05);
}

#contact-us .google-map-area {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s var(--bounce-timing), box-shadow 0.5s ease;
}

#contact-us .google-map-area:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

#contact-us #googleMap {
  border-radius: var(--border-radius);
  border: 10px solid white;
}

/* Enhanced Footer Section - Full Width */
footer {
  position: relative;
  background-color: var(--primary-color);
  color: white;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}

/* Make footer full width */
.footer-area-bottom {
  padding: 30px 0;
  position: relative;
  z-index: 2;
  background: #001a39;
  width: 100%;
  margin: 0;
}

.footer-area-bottom .container,
.footer-area-bottom .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Responsive adjustments for full width */
@media (max-width: 1199px) {
  .contact-us-page2-area .container,
  .contact-us-page2-area .container-fluid,
  .footer-area-bottom .container,
  .footer-area-bottom .container-fluid {
    padding: 0 20px;
  }
}

@media (max-width: 767px) {
  .contact-us-page2-area .container,
  .contact-us-page2-area .container-fluid,
  .footer-area-bottom .container,
  .footer-area-bottom .container-fluid {
    padding: 0 15px;
  }
  
  .contact-us-page2-area {
    padding: 60px 0 40px !important;
  }
  
  .contact-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .contact-us-page2-area .container,
  .contact-us-page2-area .container-fluid,
  .footer-area-bottom .container,
  .footer-area-bottom .container-fluid {
    padding: 0 10px;
  }
  
  .contact-heading {
    font-size: 32px;
  }
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Smooth Page Transitions */
body {
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.page-transition {
  opacity: 0;
}

/* Enhanced header animations */
header {
  position: relative;
  z-index: 1000;
}

.header-top-area {
  position: relative;
  z-index: 1001;
}

/* Enhanced logo transitions */
.logo-area img.logo {
  transition: transform 0.5s var(--bounce-timing);
}

.logo-area:hover img.logo {
  transform: scale(1.05);
}

/* Add subtle animations to various elements */
.about-box, .why-choose-area {
  position: relative;
  transition: transform 0.5s var(--bounce-timing);
  will-change: transform;
}

.about-box:hover, .why-choose-area:hover {
  transform: translateY(-5px);
}

/* Animated underlines for links */
a:not(.btn):not(.institution-card a) {
  position: relative;
  text-decoration: none;
}

a:not(.btn):not(.institution-card a)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
}

a:not(.btn):not(.institution-card a):hover::after {
  width: 100%;
  left: 0;
}

/* Enhanced loading indicator */
#preloader {
  background-color: #ffffff;
  background-image: linear-gradient(45deg, rgba(232,176,18,0.2) 25%, transparent 25%, transparent 50%, rgba(232,176,18,0.2) 50%, rgba(232,176,18,0.2) 75%, transparent 75%, transparent);
  background-size: 30px 30px;
  animation: preloader-bg 2s linear infinite;
}

@keyframes preloader-bg {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

/* Prevent horizontal scroll and ensure proper full width */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Wrapper adjustments for full width sections */
#wrapper {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure contact particles cover full width */
.contact-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Fix any potential layout issues */
.contact-row {
  position: relative;
  z-index: 5;
  margin: 0 -15px;
}

.contact-row .col-lg-4,
.contact-row .col-lg-8 {
  padding: 0 15px;
}

/* Improve footer layout */
.footer-area-bottom .row {
  margin: 0;
}

.footer-area-bottom .col-lg-8 {
  padding: 0;
}
