/* Conservative Professional Enhancements for Runaki Institute */
/* Comprehensive Page Animations */

/* =================================== */
/* Global Animation Settings */
/* =================================== */
* {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Page Loading Animation */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #184894 0%, #0f3670 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  color: white;
  transform: translateY(-20px);
}

.loader-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 30px;
  animation: pulse 2s infinite, floating 3s ease-in-out infinite;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255,255,255,0.4);
  object-fit: contain;
  background: rgba(255,255,255,0.1);
  padding: 15px;
  backdrop-filter: blur(10px);
}

.loader-text {
  font-size: 2.5rem;
  font-weight: 700;
  animation: fadeInUp 1s ease-out;
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.loader-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.5s both;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
  margin-bottom: 30px;
  opacity: 0.9;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.spinner-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  animation: spinnerPulse 1.4s ease-in-out infinite both;
}

.spinner-ring:nth-child(1) { animation-delay: -0.32s; }
.spinner-ring:nth-child(2) { animation-delay: -0.16s; }
.spinner-ring:nth-child(3) { animation-delay: 0s; }

/* =================================== */
/* Header Animations */
/* =================================== */
.header-area {
  animation: slideDown 0.8s ease-out;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.1) rotate(5deg);
}

.navbar-nav .nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #184894, #0f3670);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  transform: translateY(-2px);
  color: #184894 !important;
}

/* =================================== */
/* Animated Main Title */
/* =================================== */
.animated-main-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 30px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  opacity: 0;
  animation: titleFadeIn 1s ease-out 0.5s forwards;
}

.title-line-1,
.title-line-2 {
  display: inline-block;
  opacity: 0;
  /* Remove CSS animation to prevent conflict with JavaScript */
}

.animated-main-title::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: white;
  margin-left: 5px;
  animation: blink 1s infinite, fadeOutCursor 0.5s ease-out 6s forwards;
  vertical-align: text-bottom;
}

/* Banner section spacing adjustments */
.home-banner-area {
  padding-top: 100px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: linear-gradient(135deg, #184894 0%, #0f3670 100%);
  background-attachment: fixed;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.home-banner-left {
  position: relative;
  z-index: 2;
}

.home-banner-right {
  position: relative;
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
}

.banner-image-container {
  position: relative;
  text-align: center;
}

.banner-buttons {
  margin-top: 30px;
}

.btn-animated {
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(45deg, #184894, #0f3670);
  border: none;
  box-shadow: 0 8px 20px rgba(24, 72, 148, 0.3);
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: white;
  color: #184894;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(10px);
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 20%;
  animation: floating 6s ease-in-out infinite;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 70%;
  right: 15%;
  animation: floating 8s ease-in-out infinite reverse;
}

.shape-3 {
  width: 40px;
  height: 40px;
  top: 40%;
  left: 80%;
  animation: floating 5s ease-in-out infinite;
}

/* =================================== */
/* Section Animations */
/* =================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.fade-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.fade-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease-out;
}

.scale-in.animated {
  opacity: 1;
  transform: scale(1);
}

/* Feature Area Animations */
.feature-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}

.feature-item:hover::before {
  left: 100%;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-item i {
  transition: all 0.3s ease;
}

.feature-item:hover i {
  transform: scale(1.2) rotate(10deg);
  color: #184894;
}

/* Course Cards Animations */
.popular-course-carusel .card,
.course-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.popular-course-carusel .card::before,
.course-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popular-course-carusel .card:hover::before,
.course-item:hover::before {
  opacity: 1;
}

.popular-course-carusel .card:hover,
.course-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-body h4,
.course-item h4 {
  transition: color 0.3s ease;
}

.popular-course-carusel .card:hover h4,
.course-item:hover h4 {
  color: #184894;
}

/* Gallery Animations */
.gallery-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* Button Animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Form Animations */
.form-control {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.form-control:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(24, 72, 148, 0.2);
  border-color: #184894;
}

/* Floating Elements */
.floating-1 {
  animation: floating 3s ease-in-out infinite;
}

.floating-2 {
  animation: floating 4s ease-in-out infinite reverse;
}

.floating-3 {
  animation: floating 5s ease-in-out infinite;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typewriter animation removed - handled by JavaScript */

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@keyframes fadeOutCursor {
  to {
    opacity: 0;
  }
}

/* Mobile responsiveness for animated title */
@media (max-width: 768px) {
  .animated-main-title {
    font-size: 2.2rem;
  }
  
  .home-banner-left {
    margin-top: 120px !important;
    padding-top: 40px;
  }
}

@media (max-width: 576px) {
  .animated-main-title {
    font-size: 1.8rem;
  }
  
  .home-banner-left {
    margin-top: 140px !important;
    padding-top: 50px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .home-banner-left {
    margin-top: 160px !important;
    padding-top: 60px;
  }
  
  .animated-main-title {
    font-size: 1.6rem;
    line-height: 1.4;
  }
}

/* Very small devices */
@media (max-width: 375px) {
  .home-banner-left {
    margin-top: 180px !important;
    padding-top: 70px;
  }
  
  .animated-main-title {
    font-size: 1.4rem;
  }
}

/* =================================== */
/* Minimal CSS Variables */
/* =================================== */
:root {
  --primary-color: #184894;
  --transition-smooth: 0.3s ease;
}

/* =================================== */
/* Subtle Header Enhancements */
/* =================================== */
.default-header {
  transition: all var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-nav li a {
  transition: all var(--transition-smooth);
  position: relative;
}

.navbar-nav li a:hover {
  transform: translateY(-1px);
}

.navbar-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-smooth);
  transform: translateX(-50%);
}

.navbar-nav li a:hover::after {
  width: 60%;
}

/* =================================== */
/* Subtle Card Improvements - PRESERVE ORIGINAL LAYOUT */
/* =================================== */
.card {
  transition: all var(--transition-smooth);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* =================================== */
/* Feature Items - MINIMAL CHANGES */
/* =================================== */
.feature-item {
  transition: all var(--transition-smooth);
  padding: 30px 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24, 72, 148, 0.1);
}

.feature-item i {
  transition: all var(--transition-smooth);
  color: var(--primary-color);
}

.feature-item:hover i {
  transform: scale(1.1);
}

/* =================================== */
/* Buttons - Subtle Enhancement */
/* =================================== */
.btn {
  transition: all var(--transition-smooth);
  border-radius: 6px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =================================== */
/* Images - Subtle Hover Effects */
/* =================================== */
img {
  transition: all var(--transition-smooth);
}

.img-fluid:hover {
  transform: scale(1.02);
}

/* =================================== */
/* Responsive Improvements */
/* =================================== */
@media (max-width: 768px) {
  .feature-item {
    margin-bottom: 15px;
    padding: 25px 15px;
  }
  
  .feature-inner .row {
    margin: 0 -10px;
  }
  
  .feature-inner .row > div {
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .feature-item {
    padding: 20px 15px;
  }
  
  .feature-item i {
    font-size: 2rem;
    margin-right: 15px;
  }
  
  .feature-item h4 {
    font-size: 1.1rem;
  }
  
  .feature-item p {
    font-size: 0.9rem;
  }
}

/* =================================== */
/* Smooth Scrolling */
/* =================================== */
html {
  scroll-behavior: smooth;
}

/* =================================== */
/* Minimal Loading Effect */
/* =================================== */
body {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* =================================== */
/* Text Selection */
/* =================================== */
::selection {
  background-color: var(--primary-color);
  color: white;
}

/* =================================== */
/* Focus Improvements */
/* =================================== */
.btn:focus,
.form-control:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* =================================== */
/* Comprehensive Keyframe Animations */
/* =================================== */

/* Loading Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes spinnerPulse {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes loadingDots {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Header Animations */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Section Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) rotate(2deg);
  }
  70% {
    transform: scale(0.98) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Floating Animation */
@keyframes floating {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Rotation Animations */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Gradient Animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Text Animations */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(118, 75, 162, 0.6);
  }
}

/* Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Bar Animation */
@keyframes progressFill {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width, 100%);
  }
}

/* Heartbeat Animation */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

/* =================================== */
/* Section Styling Improvements */
/* =================================== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #184894, #0f3670);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-top: 20px;
  opacity: 0.8;
}

/* Enhanced responsive design */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
  
  .banner-buttons .btn {
    display: block;
    margin: 10px auto;
    width: 200px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-item {
    margin-bottom: 20px;
    padding: 20px !important;
  }
  
  .feature-item i {
    font-size: 40px !important;
  }
}

/* =================================== */
/* Activities Section Enhancements */
/* =================================== */
.activities-description {
  position: relative;
  overflow: hidden;
}

.activities-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(24, 72, 148, 0.1), transparent);
  transition: left 0.8s ease;
}

.activities-description:hover::before {
  left: 100%;
}

/* Blog Cards Enhancements */
.card-blog .card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-blog .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(24, 72, 148, 0.25) !important;
}

.card-blog .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(24, 72, 148, 0.1), rgba(15, 54, 112, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card-blog .card:hover::before {
  opacity: 1;
}

.projectTitleHover {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.card-blog .card:hover .projectTitleHover {
  transform: translateY(-5px);
}

.red_line {
  height: 4px;
  width: 0;
  transition: width 0.4s ease;
}

.card-blog .card:hover .red_line {
  width: 100%;
}

/* ================== Feature and Department Cards ================== */
.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(24, 72, 148, 0.2) !important;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
}

.department-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(24, 72, 148, 0.2) !important;
}

.department-card:hover .card-bg {
  opacity: 1 !important;
}

.department-card:hover h3,
.department-card:hover p {
  color: white !important;
}

.department-card:hover .department-icon {
  background: white !important;
  color: #184894 !important;
  transform: scale(1.1);
}

.department-card:hover .department-icon i {
  color: #184894 !important;
}

/* ================== Staff Cards ================== */
.staff-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(24, 72, 148, 0.2) !important;
}

.staff-card:hover .staff-image {
  transform: scale(1.05);
}

/* ================== Certificate Section ================== */
.certificate-image:hover {
  transform: scale(1.02);
}

.certificate-image:hover .image-overlay {
  background: linear-gradient(45deg, rgba(24, 72, 148, 0.2), rgba(15, 54, 112, 0.2)) !important;
}

/* ================== Director Card ================== */
.director-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(24, 72, 148, 0.15) !important;
}

.director-card:hover .director-image .image-border {
  border-color: #0f3670;
}

.director-card:hover .quote-icon {
  transform: scale(1.1);
}

/* ================== Vision & Mission Cards ================== */
.vision-card:hover,
.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(24, 72, 148, 0.15) !important;
}

.vision-card:hover .card-icon,
.mission-card:hover .card-icon {
  transform: scale(1.1);
}

/* ================== Department Staff Cards ================== */
.staff-card:hover .card-bg {
  opacity: 1 !important;
}

.staff-card:hover h3,
.staff-card:hover .position,
.staff-card:hover .detail-item span {
  color: white !important;
}

.staff-card:hover .staff-image {
  border-color: white !important;
  transform: scale(1.05);
}

.staff-card:hover .detail-icon {
  background: white !important;
}

.staff-card:hover .detail-icon i {
  color: #184894 !important;
}

.staff-card:hover .staff-details {
  border-top-color: rgba(255,255,255,0.3) !important;
}

/* ================== Department Contact Section ================== */
.department-contact:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(24, 72, 148, 0.15) !important;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

/* ================== Department Image Effects ================== */
.department-image:hover {
  transform: scale(1.02);
}

.department-image:hover .image-overlay {
  background: linear-gradient(45deg, rgba(24, 72, 148, 0.2), rgba(15, 54, 112, 0.2)) !important;
}

.department-content:hover .description-icon {
  transform: scale(1.1);
}

/* ================== Course Cards ================== */
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(24, 72, 148, 0.2) !important;
}

.course-card:hover .card-bg {
  opacity: 1 !important;
}

.course-card:hover h4,
.course-card:hover p {
  color: white !important;
}

.course-card:hover .course-icon {
  background: white !important;
  transform: scale(1.1);
}

.course-card:hover .course-icon i {
  color: #184894 !important;
}

/* ================== Research Page Animations ================== */
.research-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(24, 72, 148, 0.2);
}

.research-feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(24, 72, 148, 0.4);
}

.research-card {
    transition: all 0.4s ease;
    transform: translateY(0);
}

.research-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(24, 72, 148, 0.25);
}

.research-card:hover .research-image img {
    transform: scale(1.05);
}

.research-card:hover .image-overlay {
    opacity: 1;
}

.research-card:hover h3 {
    color: #0f3670;
}

.research-card:hover .read-more i {
    transform: translateX(-5px);
}

.research-card:hover .hover-line {
    transform: scaleX(1);
    transform-origin: left;
}

.research-card .research-content {
    position: relative;
    z-index: 2;
}

.research-badge {
    backdrop-filter: blur(10px);
    z-index: 3;
}

/* Research Statistics Animation */
.research-stats .stat-item {
    transition: all 0.3s ease;
}

.research-stats .stat-item:hover {
    transform: translateY(-5px);
}

.research-stats .stat-item:hover .stat-icon {
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(24, 72, 148, 0.3);
}

/* Research Overview Cards */
.research-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(24, 72, 148, 0.05) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px;
}

.research-feature-card:hover::before {
    opacity: 1;
}

.research-feature-card .feature-icon {
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Responsive Design for Research Cards */
@media (max-width: 768px) {
    .research-card {
        margin-bottom: 30px;
    }
    
    .research-projects-area {
        padding: 80px 0;
    }
    
    .research-overview-area {
        padding: 80px 0;
    }
    
    .research-stats {
        padding: 30px 20px;
    }
}

/* ================== Activities Page Animations ================== */
.activity-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(24, 72, 148, 0.2);
}

.activity-feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(24, 72, 148, 0.4);
}

.activity-card {
    transition: all 0.4s ease;
    transform: translateY(0);
}

.activity-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(24, 72, 148, 0.25);
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-card:hover .image-overlay {
    opacity: 1;
}

.activity-card:hover h3 {
    color: #0f3670;
}

.activity-card:hover .read-more i {
    transform: translateX(-5px);
}

.activity-card:hover .hover-line {
    transform: scaleX(1);
    transform-origin: left;
}

.activity-card .activity-content {
    position: relative;
    z-index: 2;
}

.activity-badge {
    backdrop-filter: blur(10px);
    z-index: 3;
}

/* Activities Statistics Animation */
.activities-stats .stat-item {
    transition: all 0.3s ease;
}

.activities-stats .stat-item:hover {
    transform: translateY(-5px);
}

.activities-stats .stat-item:hover .stat-icon {
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(24, 72, 148, 0.3);
}

/* Activities Overview Cards */
.activity-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(24, 72, 148, 0.05) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px;
}

.activity-feature-card:hover::before {
    opacity: 1;
}

.activity-feature-card .feature-icon {
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Responsive Design for Activities Cards */
@media (max-width: 768px) {
    .activity-card {
        margin-bottom: 30px;
    }
    
    .activities-gallery-area {
        padding: 80px 0;
    }
    
    .activities-overview-area {
        padding: 80px 0;
    }
    
    .activities-stats {
        padding: 30px 20px;
    }
}

/* ================== Detail Page Animations ================== */
.main-image-container:hover .main-featured-image {
    transform: scale(1.05);
}

.main-image-container:hover .image-overlay {
    opacity: 1;
}

.main-image-container:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-image-container:hover img {
    transform: scale(1.1);
}

.gallery-image-container:hover .gallery-overlay {
    opacity: 1;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.facebook-btn:hover {
    background: #365899 !important;
}

.whatsapp-btn:hover {
    background: #128C7E !important;
}

.viber-btn:hover {
    background: #59267C !important;
}

/* Related Activities Cards */
.related-activity-card {
    transition: all 0.4s ease;
    transform: translateY(0);
}

.related-activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(24, 72, 148, 0.2);
}

.related-activity-card:hover .related-image img {
    transform: scale(1.05);
}

.related-activity-card:hover .image-overlay {
    opacity: 1;
}

.related-activity-card:hover h4 {
    color: #0f3670;
}

.related-activity-card:hover .read-more i {
    transform: translateX(-5px);
}

.related-activity-card:hover .hover-line {
    transform: scaleX(1);
    transform-origin: left;
}

.related-activity-card:hover .activity-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(24, 72, 148, 0.3);
}

/* Image Modal Animations */
.image-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal img {
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.close-modal:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.nav-btn:hover {
    background: rgba(24, 72, 148, 1) !important;
    transform: scale(1.1);
}

/* Detail Card Animations */
.detail-main-card {
    transition: all 0.4s ease;
}

.detail-main-card:hover {
    box-shadow: 0 15px 40px rgba(24, 72, 148, 0.15);
}

.sidebar-card {
    transition: all 0.4s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(24, 72, 148, 0.15);
}

/* Article Content Animations */
.article-title {
    transition: all 0.3s ease;
}

.article-content:hover .article-title {
    color: #0f3670;
}

/* Gallery Item Animations */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

.view-more-container:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6) !important;
    transform: translateY(-2px);
}

.view-more-container a:hover {
    color: #0f3670 !important;
}

/* Meta Info Animations */
.date-icon {
    transition: all 0.3s ease;
}

.meta-info:hover .date-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(24, 72, 148, 0.3);
}

/* Responsive Design for Detail Page */
@media (max-width: 768px) {
    .detail-main-card {
        margin-bottom: 20px;
    }
    
    .activity-detail-content {
        padding: 80px 0;
    }
    
    .related-activities-area {
        padding: 80px 0;
    }
    
    .sidebar-card {
        margin-bottom: 20px;
    }
    
    .main-image-container {
        height: 250px;
    }
    
    .gallery-image-container img {
        height: 150px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-navigation {
        display: none;
    }
}

/* ================== Gallery Page Animations ================== */
.gallery-item {
    transition: all 0.4s ease;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(24, 72, 148, 0.25);
}

.gallery-item:hover .image-container img {
    transform: scale(1.1);
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.gallery-item:hover .zoom-icon {
    transform: scale(1);
}

.gallery-item:hover .image-badge {
    transform: scale(1.1);
}

/* Gallery Stats Animations */
.gallery-stats .stat-item {
    transition: all 0.3s ease;
}

.gallery-stats .stat-item:hover {
    transform: translateY(-5px);
}

.gallery-stats .stat-item:hover .stat-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 25px rgba(24, 72, 148, 0.3);
}

/* Gallery Instructions */
.gallery-instructions:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(24, 72, 148, 0.15);
}

.gallery-instructions:hover .instruction-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(24, 72, 148, 0.3);
}

/* Gallery Modal Animations */
.gallery-modal {
    backdrop-filter: blur(5px);
}

.gallery-modal .modal-content img {
    transition: all 0.3s ease;
}

.gallery-modal .nav-btn:hover {
    background: rgba(24, 72, 148, 1) !important;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(24, 72, 148, 0.4);
}

.gallery-modal .close-gallery:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1);
}

.gallery-modal .gallery-controls button:hover {
    background: rgba(24, 72, 148, 1) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 72, 148, 0.4);
}

/* Image Loading Animation */
.gallery-item .image-container img {
    opacity: 0;
    animation: imageLoad 0.6s ease forwards;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Staggered Animation for Gallery Items */
.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; }

/* Related Activities in Gallery */
.related-activity-card:hover h4 {
    color: #0f3670;
}

.related-activity-card:hover .read-more i {
    transform: translateX(-5px);
}

.related-activity-card:hover .hover-line {
    transform: scaleX(1);
    transform-origin: left;
}

.related-activity-card:hover .activity-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(24, 72, 148, 0.3);
}

/* Responsive Design for Gallery */
@media (max-width: 768px) {
    .gallery-item {
        margin-bottom: 20px;
    }
    
    .main-gallery-area {
        padding: 80px 0;
    }
    
    .gallery-overview-area {
        padding: 80px 0;
    }
    
    .related-activities-area {
        padding: 80px 0;
    }
    
    .gallery-item .image-container {
        height: 250px;
    }
    
    .gallery-modal .modal-content {
        padding: 60px 10px 60px;
    }
    
    .gallery-modal .gallery-navigation {
        padding: 0 15px;
    }
    
    .gallery-modal .nav-btn {
        padding: 15px;
        font-size: 16px;
    }
    
    .gallery-modal .modal-header {
        padding: 15px;
    }
    
    .gallery-modal .modal-footer {
        padding: 15px;
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-controls button {
        width: 100%;
        max-width: 200px;
    }
}

/* Additional Gallery Effects */
.image-badge {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.image-number {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Gallery Grid Masonry Effect */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
}

.gallery-grid .col-lg-4:nth-child(3n+1) .gallery-item .image-container {
    height: 320px;
}

.gallery-grid .col-lg-4:nth-child(3n+2) .gallery-item .image-container {
    height: 280px;
}

.gallery-grid .col-lg-4:nth-child(3n+3) .gallery-item .image-container {
    height: 300px;
}

/* ================== Modern Footer Animations ================== */
.modern-footer {
    position: relative;
}

.modern-footer .footer-section {
    transition: all 0.4s ease;
}

.modern-footer .footer-section:hover {
    transform: translateY(-5px);
}

/* Social Media Buttons */
.social-btn {
    transition: all 0.4s ease;
}

.social-btn.facebook:hover {
    background: #4267B2 !important;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(66, 103, 178, 0.4);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #E4405F, #833AB4) !important;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.4);
}

.social-btn.linkedin:hover {
    background: #0077B5 !important;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

.social-btn.youtube:hover {
    background: #FF0000 !important;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

/* Footer Links */
.footer-link {
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #ffd700 !important;
    transform: translateX(5px);
}

.footer-link:hover i {
    transform: scale(1.2);
    color: #ffd700 !important;
}

/* Address Info */
.address-item {
    transition: all 0.3s ease;
}

.address-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1) !important;
}

.address-item:hover .address-icon {
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.3) !important;
}

/* Map Controls */
.map-control-btn {
    transition: all 0.3s ease;
}

.map-control-btn:hover {
    background: rgba(24, 72, 148, 1) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(24, 72, 148, 0.4);
}

.map-info-badge {
    animation: pulse-badge 3s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Map Instructions */
.map-instructions {
    transition: all 0.3s ease;
}

.map-instructions:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    transition: all 0.3s ease;
}

/* Logo Animation */
.logo-container {
    transition: all 0.3s ease;
}

.footer-section:hover .logo-container {
    transform: translateX(5px);
}

.footer-section:hover .logo-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* Particle Animation Enhancement */
.footer-particles .particle {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modern-footer:hover .footer-particles .particle {
    opacity: 1;
}

/* Section Title Underline Animation */
.footer-section h5 {
    position: relative;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 0;
    height: 3px;
    background: #ffd700;
    transition: width 0.4s ease;
}

.footer-section:hover h5::after {
    width: 40px;
}

/* Responsive Footer Animations */
@media (max-width: 768px) {
    .modern-footer .container {
        padding: 40px 15px 20px;
    }
    
    .footer-section {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-section .logo-container {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section .logo-container .logo-icon {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .modern-map-container {
        height: 180px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .address-item {
        flex-direction: column;
        text-align: center;
        max-width: 280px;
        margin: 0 auto 15px;
    }
    
    .address-item .address-icon {
        margin-left: 0;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        padding: 15px 0;
        margin-top: 20px;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-link {
        justify-content: center;
        font-size: 13px;
        padding: 4px 0;
    }
    
    .footer-section h5 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .modern-footer .container {
        padding: 30px 10px 15px;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .social-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-btn {
        width: 38px;
        height: 38px;
    }
    
    .social-btn i {
        font-size: 14px;
    }
    
    .modern-map-container {
        height: 160px;
    }
    
    .address-item {
        padding: 10px;
        max-width: 250px;
    }
    
    .address-item p {
        font-size: 12px;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    .footer-section h5 {
        font-size: 0.95rem;
    }
    
    .map-controls button {
        width: 32px;
        height: 32px;
    }
    
    .map-controls button i {
        font-size: 11px;
    }
    
    .map-info-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .map-instructions p {
        font-size: 10px;
    }
}

/* Additional mobile-specific fixes */
@media (max-width: 480px) {
    .modern-footer .container {
        padding: 25px 8px 12px;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .logo-container h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .modern-map-container {
        height: 140px;
    }
    
    .address-item {
        max-width: 220px;
        padding: 8px;
    }
    
    .social-btn {
        width: 35px;
        height: 35px;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
}
