/*
 * Front Page Styles
 * CSS specific to front-page.php template
 * 
 * @package Pendidikan_Sejarah
 */

/* ========================================
   Hero Section
======================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-bg-animation::before,
.hero-bg-animation::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-bg-animation::before {
  width: 400px;
  height: 400px;
  background: var(--gradient-primary);
  opacity: 0.1;
  top: -100px;
  right: -100px;
}

.hero-bg-animation::after {
  width: 300px;
  height: 300px;
  background: var(--gradient-secondary);
  opacity: 0.1;
  bottom: -50px;
  left: -50px;
  animation-delay: 3s;
}

.hero-content {
  text-align: center;
  z-index: 1;
  position: relative;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s backwards;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ========================================
   Features Grid
======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-item {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.feature-item:hover::before {
  opacity: 0.1;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: transform var(--transition-normal);
}

.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
}

/* ========================================
   Section Spacing Optimization
======================================== */
.section-spacing {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

@media (max-width: 768px) {
  .section-spacing {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

/* ========================================
   Modern Section Headers
======================================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title-modern {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========================================
   Modern News Section
======================================== */
.news-section {
  position: relative;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.news-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
}

.news-card.featured {
  grid-column: span 1;
}

.news-card-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(201, 48, 44, 0.2);
}

.news-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-image {
  transform: scale(1.1);
}

.news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-size: 4rem;
}

.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.news-category {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-meta i {
  color: var(--primary-color);
}

.news-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-title a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-excerpt {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex: 1;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.news-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.news-link:hover {
  gap: 1rem;
  color: var(--secondary-color);
}

.news-stats {
  display: flex;
  gap: 1rem;
}

.news-views {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.news-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.news-card:hover .news-shine {
  left: 150%;
}

.no-news {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-news i {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  margin-bottom: 1rem;
}

/* ========================================
   Modern Timeline Section
======================================== */
.timeline-section {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.timeline-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: 
    repeating-linear-gradient(0deg, var(--primary-color) 0px, var(--primary-color) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, var(--primary-color) 0px, var(--primary-color) 1px, transparent 1px, transparent 40px);
}

.timeline-modern {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    var(--primary-color) 10%, 
    var(--primary-color) 90%, 
    transparent 100%
  );
  transform: translateX(-50%);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--gradient-primary);
  animation: timelineProgress 2s ease-out forwards;
}

@keyframes timelineProgress {
  to { height: 100%; }
}

.timeline-events {
  position: relative;
}

.timeline-event {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.timeline-event:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  z-index: 2;
}

.timeline-dot-inner {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(201, 48, 44, 0.2);
  transition: all var(--transition-normal);
}

.timeline-event:hover .timeline-dot-inner {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(201, 48, 44, 0.3);
}

.timeline-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.timeline-card {
  width: calc(50% - 3rem);
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all var(--transition-normal);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 3px;
  background: var(--gradient-primary);
  transform: translateY(-50%);
}

.timeline-event:nth-child(odd) .timeline-card::before {
  right: -33px;
}

.timeline-event:nth-child(even) .timeline-card::before {
  left: -33px;
}

.timeline-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px rgba(201, 48, 44, 0.15);
}

.timeline-card-highlight {
  background: linear-gradient(135deg, 
    rgba(201, 48, 44, 0.05) 0%, 
    rgba(243, 156, 18, 0.05) 100%
  );
  border: 2px solid rgba(201, 48, 44, 0.2);
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(201, 48, 44, 0.3);
}

.timeline-year {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 48, 44, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-badge-special {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(201, 48, 44, 0.3);
}

/* ========================================
   Modern Faculty Section
======================================== */
.faculty-section {
  background: var(--bg-secondary);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.faculty-card-wrapper {
  position: relative;
}

.faculty-card {
  position: relative;
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
  height: 100%;
}

.faculty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.faculty-card:hover::before {
  transform: scaleX(1);
}

.faculty-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(201, 48, 44, 0.2);
}

.faculty-card-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.faculty-image-container {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.faculty-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.faculty-card:hover .faculty-image {
  transform: scale(1.1);
}

.faculty-placeholder-modern {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-size: 5rem;
}

.faculty-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.faculty-social {
  display: flex;
  gap: 1rem;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.faculty-card:hover .faculty-social {
  transform: translateY(0);
}

.faculty-social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.faculty-social-link:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.faculty-expertise-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faculty-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.faculty-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.faculty-education,
.faculty-nidn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.faculty-education i,
.faculty-nidn i {
  color: var(--primary-color);
  font-size: 1rem;
}

.faculty-view-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.faculty-view-profile:hover {
  gap: 1rem;
  color: var(--secondary-color);
}

.faculty-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.faculty-card:hover .faculty-card-glow {
  opacity: 0.1;
}

.no-faculty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-faculty i {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  margin-bottom: 1rem;
}

/* ========================================
   Modern Buttons
======================================== */
.btn-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  overflow: hidden;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-modern-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.btn-modern-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left var(--transition-normal);
}

.btn-modern:hover .btn-modern-bg {
  left: 0;
}

.btn-modern-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-modern-primary .btn-modern-bg {
  background: var(--gradient-secondary);
}

.btn-modern-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(201, 48, 44, 0.3);
  color: white;
}

.btn-modern-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-modern-secondary .btn-modern-bg {
  background: var(--gradient-primary);
}

.btn-modern-secondary:hover {
  transform: translateY(-3px);
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 35px rgba(201, 48, 44, 0.3);
}

/* Responsive Design for Front Page Sections */
@media (max-width: 1024px) {
  .timeline-line {
    left: 30px;
  }
  
  .timeline-event {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: 80px;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-card {
    width: 100%;
  }
  
  .timeline-card::before {
    top: 50%;
    left: -50px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .faculty-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-title-modern {
    font-size: 2rem;
  }
  
  .timeline-year {
    font-size: 2.5rem;
  }
}

/* ========================================
   Hero Statistics Section
======================================== */
.hero-stats {
  margin-top: 4rem;
  animation: fadeInUp 1s ease 0.6s backwards;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(201, 48, 44, 0.3);
  border-color: var(--primary-color);
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.stat-item:hover .stat-glow {
  opacity: 0.15;
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stat-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(201, 48, 44, 0.4);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.stat-icon::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) rotateY(180deg);
  box-shadow: 0 15px 40px rgba(201, 48, 44, 0.6);
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(201, 48, 44, 0.2);
}

.stat-label {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

[data-theme="dark"] .stat-label {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.5rem;
    margin-bottom: 0;
  }
}

/* ========================================
   Gallery Slideshow Section
======================================== */
.gallery-slideshow-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 100%, #ffffff 100%);
    overflow: hidden;
    padding: 6rem 0 !important;
}


.gallery-slideshow-section .container {
    position: relative;
    z-index: 1;
}

.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: #000;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.slide-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out !important;
    display: flex !important;
    align-items: flex-end !important;
}

.slide-item.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
}

.slide-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 5s ease-out;
}

.slide-item.active .slide-image {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease-out 0.3s, opacity 0.6s ease-out 0.3s;
}

.slide-item.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slide-category i {
    font-size: 16px;
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.slide-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.slide-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.slide-date,
.slide-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
    color: #fff;
}

.slide-date i,
.slide-location i {
    font-size: 14px;
}

/* Navigation Arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.slideshow-container:hover .slide-nav {
    opacity: 1;
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slide-prev {
    left: 20px;
}

.slide-next {
    right: 20px;
}

.slide-nav i {
    font-size: 20px;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
}

/* Autoplay Button */
.slide-autoplay-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
}

.slideshow-container:hover .slide-autoplay-btn {
    opacity: 1;
    transform: translateY(0);
}

.slide-autoplay-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.slide-autoplay-btn.active {
    background: rgba(201, 48, 44, 0.9);
    border-color: rgba(201, 48, 44, 0.9);
}

.slide-autoplay-btn.active:hover {
    background: rgba(201, 48, 44, 1);
    border-color: rgba(201, 48, 44, 1);
}

.slide-autoplay-btn i {
    font-size: 0.9rem;
}

/* Fullscreen Button */
.slide-fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 160px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
}

.slideshow-container:hover .slide-fullscreen-btn {
    opacity: 1;
    transform: translateY(0);
}

.slide-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.slide-fullscreen-btn i {
    font-size: 0.9rem;
}

/* Fullscreen Mode */
.slideshow-container.is-fullscreen {
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
}

.slideshow-container.is-fullscreen .slideshow-wrapper {
    padding-top: 0;
    height: 100%;
}

.slideshow-container.is-fullscreen .slide-item {
    height: 100vh !important;
}

.slideshow-container.is-fullscreen .slide-nav {
    opacity: 1;
    width: 60px;
    height: 60px;
}

.slideshow-container.is-fullscreen .slide-prev {
    left: 30px;
}

.slideshow-container.is-fullscreen .slide-next {
    right: 30px;
}

.slideshow-container.is-fullscreen .slide-autoplay-btn,
.slideshow-container.is-fullscreen .slide-fullscreen-btn {
    opacity: 1;
    transform: translateY(0);
    bottom: 30px;
}

.slideshow-container.is-fullscreen .slide-fullscreen-btn {
    right: 180px;
}

.slideshow-container.is-fullscreen .slide-autoplay-btn {
    right: 30px;
}

.slideshow-container.is-fullscreen .slide-indicators {
    bottom: 30px;
}

.slideshow-container.is-fullscreen .slide-content {
    padding: 60px;
    max-width: 1000px;
}

.slideshow-container.is-fullscreen .slide-title {
    font-size: 42px;
}

.slideshow-container.is-fullscreen .slide-description {
    font-size: 20px;
}

/* Dark Mode - Gallery Slideshow Section */
[data-theme="dark"] .gallery-slideshow-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-theme="dark"] .gallery-slideshow-section .section-title-modern {
    color: #ffffff;
}

[data-theme="dark"] .gallery-slideshow-section .section-description {
    color: #a0aec0;
}

[data-theme="dark"] .slideshow-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Progress Bar */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.slide-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
}

/* Responsive Design for Gallery Slideshow */
@media (max-width: 768px) {
    .slide-content {
        padding: 24px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-description {
        font-size: 16px;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
    }
    
    .slide-prev {
        left: 10px;
    }
    
    .slide-next {
        right: 10px;
    }
    
    .slide-meta {
        gap: 16px;
    }
    
    .slide-fullscreen-btn {
        right: 150px;
    }
    
    .slideshow-container.is-fullscreen .slide-fullscreen-btn {
        right: 170px;
    }
    
    .slideshow-container.is-fullscreen .slide-content {
        padding: 40px;
    }
    
    .slideshow-container.is-fullscreen .slide-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 20px;
    }

    .slide-title {
        font-size: 20px;
    }

    .slide-description {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .slide-category {
        font-size: 12px;
        padding: 6px 12px;
    }

    .slide-date,
    .slide-location {
        font-size: 12px;
    }

    .slide-autoplay-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .slide-fullscreen-btn {
        bottom: 15px;
        right: 125px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .slideshow-container.is-fullscreen .slide-fullscreen-btn {
        right: 140px;
    }
    
    .slideshow-container.is-fullscreen .slide-content {
        padding: 25px;
    }
    
    .slideshow-container.is-fullscreen .slide-title {
        font-size: 24px;
    }
    
    .slideshow-container.is-fullscreen .slide-description {
        font-size: 14px;
    }
}

/* ========================================
   ALUMNI SHOWCASE SECTION STYLES
   Compatible with archive-alumni.php design
======================================== */

.alumni-showcase-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.alumni-showcase-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 48, 44, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.alumni-showcase-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 48, 44, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Alumni Grid Layout */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .alumni-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Alumni Showcase Card */
.alumni-showcase-card {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: alumniCardFadeIn 0.6s ease forwards;
}

@keyframes alumniCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alumni-showcase-inner {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.alumni-showcase-card:hover .alumni-showcase-inner {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Alumni Image */
.alumni-showcase-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.alumni-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.alumni-showcase-card:hover .alumni-showcase-image img {
    transform: scale(1.1);
}

/* Alumni Year Badge */
.alumni-year-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c9302c;
    box-shadow: 0 4px 15px rgba(201, 48, 44, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.alumni-year-badge i {
    font-size: 0.9rem;
}

.alumni-showcase-card:hover .alumni-year-badge {
    transform: scale(1.05);
    background: rgba(201, 48, 44, 0.95);
    color: #ffffff;
}

/* Alumni Overlay */
.alumni-showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(201, 48, 44, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.alumni-showcase-card:hover .alumni-showcase-overlay {
    opacity: 1;
}

.alumni-view-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #ffffff;
    color: #c9302c;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.alumni-showcase-card:hover .alumni-view-btn {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.alumni-view-btn:hover {
    background: #c9302c;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201, 48, 44, 0.4);
}

.alumni-view-btn i {
    font-size: 1rem;
}

/* Alumni Content */
.alumni-showcase-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.alumni-showcase-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.alumni-showcase-card:hover .alumni-showcase-name {
    color: #c9302c;
}

/* Alumni Info Items */
.alumni-showcase-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.alumni-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #4a5568;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.alumni-info-item:last-child {
    border-bottom: none;
}

.alumni-info-item i {
    color: #c9302c;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.alumni-showcase-card:hover .alumni-info-item i {
    transform: scale(1.1);
}

.alumni-info-item span {
    flex: 1;
    font-weight: 500;
}

/* Alumni Glow Effect */
.alumni-showcase-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 48, 44, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.alumni-showcase-card:hover .alumni-showcase-glow {
    opacity: 1;
}

/* No Alumni Message */
.no-alumni {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(201, 48, 44, 0.05);
    border-radius: 20px;
    border: 2px dashed rgba(201, 48, 44, 0.2);
}

.no-alumni i {
    font-size: 4rem;
    color: rgba(201, 48, 44, 0.3);
    margin-bottom: 1rem;
}

.no-alumni p {
    font-size: 1.1rem;
    color: #718096;
    margin: 0;
}

/* Responsive Design for Alumni Section */
@media (max-width: 992px) {
    .alumni-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .alumni-showcase-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .alumni-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .alumni-showcase-image {
        height: 220px;
    }
    
    .alumni-showcase-content {
        padding: 1.25rem;
    }
    
    .alumni-showcase-name {
        font-size: 1.15rem;
    }
    
    .alumni-info-item {
        font-size: 0.85rem;
    }
}

/* Animation Delays for Alumni Cards */
.alumni-showcase-card:nth-child(1) { animation-delay: 0.1s; }
.alumni-showcase-card:nth-child(2) { animation-delay: 0.2s; }
.alumni-showcase-card:nth-child(3) { animation-delay: 0.3s; }
.alumni-showcase-card:nth-child(4) { animation-delay: 0.4s; }
.alumni-showcase-card:nth-child(5) { animation-delay: 0.5s; }
.alumni-showcase-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading State for Alumni Cards */
.alumni-showcase-card.loading {
    opacity: 0.5;
    pointer-events: none;
}

.alumni-showcase-card.loading .alumni-showcase-inner {
    animation: alumniPulse 1.5s ease-in-out infinite;
}

@keyframes alumniPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Print Styles for Alumni Section */
@media print {
    .alumni-showcase-overlay,
    .alumni-view-btn {
        display: none;
    }
    
    .alumni-showcase-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Dark Mode - Alumni Showcase Section */
[data-theme="dark"] .alumni-showcase-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-theme="dark"] .alumni-showcase-section .section-title-modern {
    color: #ffffff;
}

[data-theme="dark"] .alumni-showcase-section .section-description {
    color: #a0aec0;
}

[data-theme="dark"] .alumni-showcase-inner {
    background: #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .alumni-showcase-card:hover .alumni-showcase-inner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .alumni-showcase-name {
    color: #ffffff;
}

[data-theme="dark"] .alumni-info-item {
    color: #a0aec0;
}

[data-theme="dark"] .alumni-info-item i {
    color: #c9302c;
}

[data-theme="dark"] .alumni-year-badge {
    background: rgba(45, 55, 72, 0.95);
    color: #fc8181;
}

[data-theme="dark"] .alumni-showcase-card:hover .alumni-year-badge {
    background: rgba(201, 48, 44, 0.95);
    color: #ffffff;
}

[data-theme="dark"] .no-alumni {
    color: #a0aec0;
}

/* ========================================
   ALUMNI TESTIMONIALS SECTION STYLES
======================================== */

.testimonials-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    overflow: hidden;
}

.testimonials-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 48, 44, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 48, 44, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Testimonials Container */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
    height: 100%;
}

.testimonial-inner {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover .testimonial-inner {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(201, 48, 44, 0.15);
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(201, 48, 44, 0.1);
}

.testimonial-image {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(201, 48, 44, 0.2);
    transition: all 0.4s ease;
}

.testimonial-card:hover .testimonial-image {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(201, 48, 44, 0.3);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-verified {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.testimonial-verified i {
    color: #ffffff;
    font-size: 0.75rem;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-name {
    color: #c9302c;
}

.testimonial-role {
    font-size: 0.95rem;
    color: #718096;
    margin: 0 0 0.6rem 0;
    font-weight: 500;
}

.testimonial-year {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #c9302c;
    background: rgba(201, 48, 44, 0.08);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

.testimonial-year i {
    font-size: 0.9rem;
}

/* Testimonial Content */
.testimonial-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-quote-icon {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 3.5rem;
    color: rgba(201, 48, 44, 0.08);
    line-height: 1;
    pointer-events: none;
    transition: all 0.4s ease;
}

.testimonial-card:hover .testimonial-quote-icon {
    color: rgba(201, 48, 44, 0.15);
    transform: scale(1.1);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Testimonial Rating */
.testimonial-rating {
    display: flex;
    gap: 0.3rem;
    margin-top: auto;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-rating i {
    transform: scale(1.1);
}

.testimonial-card:hover .testimonial-rating i:nth-child(1) {
    transition-delay: 0s;
}

.testimonial-card:hover .testimonial-rating i:nth-child(2) {
    transition-delay: 0.05s;
}

.testimonial-card:hover .testimonial-rating i:nth-child(3) {
    transition-delay: 0.1s;
}

.testimonial-card:hover .testimonial-rating i:nth-child(4) {
    transition-delay: 0.15s;
}

.testimonial-card:hover .testimonial-rating i:nth-child(5) {
    transition-delay: 0.2s;
}

/* Testimonial Glow Effect */
.testimonial-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 48, 44, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.testimonial-card:hover .testimonial-glow {
    opacity: 1;
}

/* Testimonials Stats */
.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(201, 48, 44, 0.1);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(201, 48, 44, 0.12);
}

.stats-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(201, 48, 44, 0.1) 0%, rgba(201, 48, 44, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.stats-item:hover .stats-icon {
    background: linear-gradient(135deg, #c9302c 0%, #a02622 100%);
    transform: rotate(5deg) scale(1.05);
}

.stats-icon i {
    font-size: 2rem;
    color: #c9302c;
    transition: color 0.4s ease;
}

.stats-item:hover .stats-icon i {
    color: #ffffff;
}

.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 2rem;
    font-weight: 900;
    color: #2d3748;
    margin: 0 0 0.3rem 0;
    line-height: 1;
    background: linear-gradient(135deg, #c9302c 0%, #a02622 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonials-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .testimonials-stats {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-inner {
        padding: 1.5rem;
    }
    
    .testimonial-header {
        gap: 1rem;
    }
    
    .testimonial-image {
        width: 70px;
        height: 70px;
    }
    
    .testimonial-name {
        font-size: 1.05rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonials-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-icon {
        width: 60px;
        height: 60px;
    }
    
    .stats-icon i {
        font-size: 1.5rem;
    }
    
    .stats-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .testimonial-inner {
        padding: 1.25rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .testimonial-image {
        width: 80px;
        height: 80px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .stats-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
}

/* Animation Effects */
@keyframes testimonialFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.testimonial-card:nth-child(1) {
    animation: testimonialFloat 6s ease-in-out infinite;
    animation-delay: 0s;
}

.testimonial-card:nth-child(2) {
    animation: testimonialFloat 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.testimonial-card:nth-child(3) {
    animation: testimonialFloat 6s ease-in-out infinite;
    animation-delay: 1s;
}

/* Dark Mode - Testimonials Section */
[data-theme="dark"] .testimonials-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
}

[data-theme="dark"] .testimonials-bg-overlay {
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 48, 44, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 48, 44, 0.08) 0%, transparent 50%);
}

[data-theme="dark"] .testimonials-section .section-title-modern {
    color: #ffffff;
}

[data-theme="dark"] .testimonials-section .section-description {
    color: #a0aec0;
}

[data-theme="dark"] .testimonial-inner {
    background: #2d3748;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial-card:hover .testimonial-inner {
    box-shadow: 0 20px 60px rgba(201, 48, 44, 0.25);
}

[data-theme="dark"] .testimonial-header {
    border-bottom-color: rgba(201, 48, 44, 0.2);
}

[data-theme="dark"] .testimonial-name {
    color: #ffffff;
}

[data-theme="dark"] .testimonial-card:hover .testimonial-name {
    color: #fc8181;
}

[data-theme="dark"] .testimonial-role {
    color: #a0aec0;
}

[data-theme="dark"] .testimonial-year {
    background: rgba(201, 48, 44, 0.15);
    color: #fc8181;
}

[data-theme="dark"] .testimonial-text {
    color: #cbd5e0;
}

[data-theme="dark"] .testimonial-quote-icon {
    color: rgba(201, 48, 44, 0.15);
}

[data-theme="dark"] .testimonial-card:hover .testimonial-quote-icon {
    color: rgba(201, 48, 44, 0.25);
}

[data-theme="dark"] .testimonial-glow {
    background: radial-gradient(circle, rgba(201, 48, 44, 0.15) 0%, transparent 50%);
}

[data-theme="dark"] .stats-item {
    background: #2d3748;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .stats-item:hover {
    box-shadow: 0 15px 40px rgba(201, 48, 44, 0.2);
}

[data-theme="dark"] .stats-icon {
    background: linear-gradient(135deg, rgba(201, 48, 44, 0.2) 0%, rgba(201, 48, 44, 0.1) 100%);
}

[data-theme="dark"] .stats-number {
    color: #ffffff;
}

[data-theme="dark"] .stats-label {
    color: #a0aec0;
}

/* Hover Effects Disable on Touch Devices */
@media (hover: none) {
    .testimonial-card:hover .testimonial-inner {
        transform: none;
    }
    
    .stats-item:hover {
        transform: none;
    }
}

/* ========================================
   MOBILE & TABLET OPTIMIZATION
   Modern, Clean, Responsive Layout
======================================== */

/* ----------------------------------------
   TABLET LANDSCAPE (max-width: 1024px)
---------------------------------------- */
@media (max-width: 1024px) {
    /* Container adjustments */
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    /* Section spacing */
    .section-spacing {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Section headers */
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title-modern {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }
    
    .section-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    /* Hero stats grid */
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* News grid */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Alumni grid */
    .alumni-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Faculty grid */
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Slideshow adjustments */
    .slideshow-container {
        border-radius: 16px;
    }
    
    .slide-content {
        padding: 30px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    /* Buttons */
    .btn-modern {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

/* ----------------------------------------
   TABLET PORTRAIT (max-width: 900px)
---------------------------------------- */
@media (max-width: 900px) {
    /* Hero stats - 3 columns still work here */
    .stats-container {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.75rem 1.25rem;
    }
    
    .stat-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Features - 2 columns */
    .features-grid {
        gap: 1.25rem;
    }
    
    .feature-item {
        padding: 1.75rem 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 0.875rem;
    }
    
    .feature-item h3 {
        font-size: 1.15rem;
    }
    
    /* News adjustments */
    .news-image-wrapper {
        height: 220px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .news-title {
        font-size: 1.25rem;
    }
}

/* ----------------------------------------
   MOBILE LANDSCAPE / SMALL TABLET (max-width: 768px)
---------------------------------------- */
@media (max-width: 768px) {
    /* Global */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-spacing {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-label {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .section-title-modern {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content .section-title-modern {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .hero-content .section-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 0.875rem;
        align-items: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    /* Hero Stats - Stack to single column on mobile */
    .hero-stats {
        margin-top: 3rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stat-item {
        flex-direction: row;
        text-align: left;
        padding: 1.5rem;
        gap: 1.25rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .stat-content {
        align-items: flex-start;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        text-align: left;
    }
    
    /* Features Grid - Single column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .feature-item {
        padding: 1.5rem;
        display: flex;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0;
        min-width: 50px;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }
    
    /* Slideshow */
    .slideshow-container {
        border-radius: 12px;
        margin: 0 -10px;
        width: calc(100% + 20px);
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
        opacity: 1;
    }
    
    .slide-prev {
        left: 8px;
    }
    
    .slide-next {
        right: 8px;
    }
    
    .slide-nav i {
        font-size: 16px;
    }
    
    .slide-content {
        padding: 20px 16px;
    }
    
    .slide-category {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
    
    .slide-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .slide-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .slide-meta {
        gap: 12px;
        flex-direction: column;
    }
    
    .slide-date,
    .slide-location {
        font-size: 12px;
    }
    
    .slide-indicators {
        bottom: 12px;
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 24px;
    }
    
    /* Slideshow buttons - Make always visible on mobile */
    .slide-autoplay-btn,
    .slide-fullscreen-btn {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 6px 10px;
        font-size: 0.75rem;
        bottom: 10px;
    }
    
    .slide-autoplay-btn {
        right: 10px;
    }
    
    .slide-fullscreen-btn {
        right: 100px;
    }
    
    /* News Section */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        border-radius: 16px;
    }
    
    .news-image-wrapper {
        height: 200px;
    }
    
    .news-category {
        top: 12px;
        left: 12px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .news-meta {
        gap: 1rem;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
    
    .news-title {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-footer {
        padding-top: 1rem;
    }
    
    .news-link {
        font-size: 0.9rem;
    }
    
    /* Timeline */
    .timeline-modern {
        padding: 1rem 0;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-event {
        padding-left: 60px;
        margin-bottom: 2.5rem;
    }
    
    .timeline-dot {
        left: 20px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-card {
        width: 100%;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .timeline-card::before {
        width: 20px;
        left: -38px !important;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .timeline-year {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    .timeline-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Alumni Section */
    .alumni-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .alumni-showcase-inner {
        border-radius: 16px;
    }
    
    .alumni-showcase-image {
        height: 220px;
    }
    
    .alumni-year-badge {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .alumni-showcase-content {
        padding: 1.25rem;
    }
    
    .alumni-showcase-name {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    
    .alumni-info-item {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    /* Faculty Section */
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .faculty-card {
        border-radius: 16px;
    }
    
    .faculty-image-container {
        height: 250px;
    }
    
    .faculty-expertise-badge {
        top: 12px;
        right: 12px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .faculty-info {
        padding: 1.5rem;
    }
    
    .faculty-name {
        font-size: 1.2rem;
    }
    
    /* Modern Buttons */
    .btn-modern {
        padding: 0.875rem 1.75rem;
        font-size: 0.85rem;
    }
    
    .text-center.mt-5 {
        margin-top: 2rem !important;
    }
    
    /* Testimonials */
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .testimonial-inner {
        padding: 1.25rem;
        border-radius: 16px;
    }
}

/* ----------------------------------------
   MOBILE PORTRAIT (max-width: 576px)
---------------------------------------- */
@media (max-width: 576px) {
    /* Global */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .section-spacing {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-label {
        font-size: 0.75rem;
        letter-spacing: 1px;
        gap: 0.35rem;
    }
    
    .section-label i {
        font-size: 0.85rem;
    }
    
    .section-title-modern {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero-section {
        padding: 90px 0 50px;
    }
    
    .hero-bg-animation::before {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }
    
    .hero-bg-animation::after {
        width: 150px;
        height: 150px;
        bottom: -30px;
        left: -30px;
    }
    
    .hero-content .section-title-modern {
        font-size: 1.35rem;
    }
    
    .hero-content .section-description {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        max-width: 280px;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Stats */
    .hero-stats {
        margin-top: 2.5rem;
    }
    
    .stats-container {
        max-width: 100%;
    }
    
    .stat-item {
        padding: 1.25rem;
        gap: 1rem;
        border-radius: 14px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    /* Features */
    .features-grid {
        gap: 0.875rem;
    }
    
    .feature-item {
        padding: 1.25rem;
        border-radius: 14px;
    }
    
    .feature-icon {
        font-size: 1.75rem;
        min-width: 45px;
    }
    
    .feature-item h3 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.85rem;
    }
    
    /* Slideshow */
    .gallery-slideshow-section {
        padding: 3rem 0 !important;
    }
    
    .slideshow-container {
        border-radius: 10px;
        margin: 0 -8px;
        width: calc(100% + 16px);
    }
    
    .slideshow-wrapper {
        padding-top: 75%; /* More square-ish for mobile */
    }
    
    .slide-nav {
        width: 36px;
        height: 36px;
    }
    
    .slide-prev {
        left: 6px;
    }
    
    .slide-next {
        right: 6px;
    }
    
    .slide-content {
        padding: 16px 14px;
    }
    
    .slide-category {
        font-size: 10px;
        padding: 5px 10px;
        margin-bottom: 8px;
    }
    
    .slide-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .slide-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .slide-meta {
        gap: 8px;
    }
    
    .slide-date,
    .slide-location {
        font-size: 11px;
    }
    
    .slide-indicators {
        bottom: 8px;
        gap: 6px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
    
    .indicator.active {
        width: 18px;
        border-radius: 4px;
    }
    
    .slide-autoplay-btn,
    .slide-fullscreen-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
        bottom: 8px;
    }
    
    .slide-autoplay-btn {
        right: 8px;
    }
    
    .slide-fullscreen-btn {
        right: 85px;
    }
    
    /* News */
    .news-grid {
        gap: 1.25rem;
    }
    
    .news-card {
        border-radius: 14px;
    }
    
    .news-image-wrapper {
        height: 180px;
    }
    
    .news-category {
        top: 10px;
        left: 10px;
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-meta {
        gap: 0.75rem;
        font-size: 0.75rem;
    }
    
    .news-title {
        font-size: 1.05rem;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .news-link {
        font-size: 0.85rem;
    }
    
    /* Timeline */
    .timeline-line {
        left: 15px;
    }
    
    .timeline-event {
        padding-left: 50px;
        margin-bottom: 2rem;
    }
    
    .timeline-dot {
        left: 15px;
        width: 14px;
        height: 14px;
    }
    
    .timeline-card {
        padding: 1.25rem;
        border-radius: 14px;
    }
    
    .timeline-card::before {
        width: 15px;
        left: -30px !important;
    }
    
    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .timeline-year {
        font-size: 1.75rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-description {
        font-size: 0.85rem;
    }
    
    .timeline-badge {
        font-size: 0.7rem;
    }
    
    /* Alumni */
    .alumni-grid {
        gap: 1rem;
    }
    
    .alumni-showcase-inner {
        border-radius: 14px;
    }
    
    .alumni-showcase-image {
        height: 200px;
    }
    
    .alumni-year-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .alumni-showcase-content {
        padding: 1rem;
    }
    
    .alumni-showcase-name {
        font-size: 1.05rem;
    }
    
    .alumni-info-item {
        font-size: 0.8rem;
    }
    
    .alumni-view-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* Faculty */
    .faculty-card {
        border-radius: 14px;
    }
    
    .faculty-image-container {
        height: 220px;
    }
    
    .faculty-info {
        padding: 1.25rem;
    }
    
    .faculty-name {
        font-size: 1.1rem;
    }
    
    .faculty-education,
    .faculty-nidn {
        font-size: 0.85rem;
    }
    
    /* Buttons */
    .btn-modern {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .text-center.mt-5 {
        margin-top: 1.5rem !important;
    }
    
    /* Testimonials */
    .testimonial-inner {
        padding: 1rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .testimonial-image {
        width: 70px;
        height: 70px;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .testimonials-stats {
        gap: 0.875rem;
        margin-top: 2.5rem;
        padding-top: 2rem;
    }
    
    .stats-item {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
}

/* ----------------------------------------
   EXTRA SMALL DEVICES (max-width: 400px)
---------------------------------------- */
@media (max-width: 400px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .section-title-modern {
        font-size: 1.35rem;
    }
    
    /* Hero */
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-content .section-title-modern {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        max-width: 260px;
    }
    
    .hero-buttons .btn {
        font-size: 0.85rem;
    }
    
    /* Stats */
    .stat-item {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Features */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-bottom: 0.75rem;
    }
    
    /* Slideshow */
    .slideshow-wrapper {
        padding-top: 85%;
    }
    
    .slide-title {
        font-size: 14px;
    }
    
    .slide-description {
        font-size: 11px;
    }
    
    .slide-autoplay-btn,
    .slide-fullscreen-btn {
        font-size: 0;
        padding: 8px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }
    
    .slide-autoplay-btn i,
    .slide-fullscreen-btn i {
        font-size: 12px;
        margin: 0;
    }
    
    .slide-fullscreen-btn {
        right: 50px;
    }
    
    /* News */
    .news-image-wrapper {
        height: 160px;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    /* Timeline */
    .timeline-year {
        font-size: 1.5rem;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    /* Alumni */
    .alumni-showcase-image {
        height: 180px;
    }
    
    .alumni-showcase-name {
        font-size: 1rem;
    }
}

/* ----------------------------------------
   TOUCH DEVICE OPTIMIZATIONS
---------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    /* Make touch targets larger */
    .slide-nav {
        opacity: 1 !important;
        width: 44px;
        height: 44px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
        padding: 2px;
    }
    
    .indicator.active {
        width: 28px;
    }
    
    .slide-autoplay-btn,
    .slide-fullscreen-btn {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Disable hover effects on touch */
    .feature-item:hover {
        transform: none;
    }
    
    .news-card:hover {
        transform: none;
    }
    
    .faculty-card:hover {
        transform: none;
    }
    
    .alumni-showcase-card:hover .alumni-showcase-inner {
        transform: none;
    }
    
    .stat-item:hover {
        transform: none;
    }
    
    .timeline-card:hover {
        transform: none;
    }
    
    /* Keep overlay effects accessible via tap */
    .alumni-showcase-overlay {
        opacity: 0.9;
        background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    }
    
    .alumni-view-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------
   LANDSCAPE ORIENTATION FIXES
---------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    .stat-icon {
        margin-bottom: 0.5rem;
    }
    
    .slideshow-wrapper {
        padding-top: 45%;
    }
}

/* ----------------------------------------
   HIGH RESOLUTION MOBILE FIXES
---------------------------------------- */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px),
       (min-resolution: 192dpi) and (max-width: 768px) {
    /* Sharper borders and shadows */
    .stat-item,
    .feature-item,
    .news-card,
    .timeline-card,
    .alumni-showcase-inner,
    .faculty-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* ----------------------------------------
   SAFE AREA INSETS (for notched devices)
---------------------------------------- */
@supports (padding: max(0px)) {
    .hero-section {
        padding-top: max(100px, env(safe-area-inset-top, 100px));
    }
    
    .container {
        padding-left: max(16px, env(safe-area-inset-left, 16px));
        padding-right: max(16px, env(safe-area-inset-right, 16px));
    }
}

/* ----------------------------------------
   REDUCED MOTION PREFERENCE
---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .slide-image {
        transition: none;
    }
    
    .slide-item {
        transition: opacity 0.3s ease !important;
    }
    
    .slide-content {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .slide-item.active .slide-image {
        transform: none;
    }
    
    .timeline-pulse {
        animation: none;
    }
    
    .testimonial-card {
        animation: none;
    }
    
    .alumni-showcase-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .stat-item:hover .stat-glow,
    .faculty-card:hover .faculty-card-glow,
    .testimonial-card:hover .testimonial-glow {
        animation: none;
    }
}

/* ----------------------------------------
   PRINT STYLES (for completeness)
---------------------------------------- */
@media print {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-bg-animation,
    .slide-nav,
    .slide-indicators,
    .slide-autoplay-btn,
    .slide-fullscreen-btn,
    .timeline-pulse,
    .stat-glow {
        display: none !important;
    }
    
    .stats-container,
    .features-grid,
    .news-grid,
    .alumni-grid,
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-version-badge {
    margin: 1.5rem 0 2rem;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.version-badge-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.version-badge-link:hover {
    transform: translateY(-3px);
}

.version-badge-inner {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 48, 44, 0.2);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(201, 48, 44, 0.1);
    transition: all 0.3s ease;
}

.version-badge-link:hover .version-badge-inner {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(201, 48, 44, 0.2);
    border-color: rgba(201, 48, 44, 0.4);
}

/* Dark mode support */
[data-theme="dark"] .version-badge-inner {
    background: rgba(30, 30, 50, 0.9);
    border-color: rgba(201, 48, 44, 0.3);
}

[data-theme="dark"] .version-badge-label {
    color: #a0aec0;
}

[data-theme="dark"] .version-badge-date {
    color: #a0aec0;
    border-left-color: rgba(255, 255, 255, 0.1);
}

.version-badge-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color, #c9302c) 0%, #a52824 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(201, 48, 44, 0.3);
    flex-shrink: 0;
}

.version-badge-icon i {
    color: #fff;
    font-size: 1rem;
}

.version-badge-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.version-badge-label {
    font-size: 0.7rem;
    color: var(--text-secondary, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    line-height: 1.2;
}

.version-badge-number {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color, #c9302c);
    line-height: 1.2;
}

.version-badge-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
    padding-left: 1rem;
    border-left: 1px solid var(--border-color, #e9ecef);
}

.version-badge-date i {
    color: var(--primary-color, #c9302c);
    font-size: 0.8rem;
}

.version-badge-tag {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.version-badge-tag.stable {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.version-badge-tag.beta {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.version-badge-tag.alpha {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.version-badge-tag.latest {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

/* ========================================
   Dev Log Button Style
======================================== */
.btn-devlog {
    background: transparent !important;
    border: 2px solid var(--primary-color, #c9302c) !important;
    color: var(--primary-color, #c9302c) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-devlog:hover {
    background: var(--primary-color, #c9302c) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 48, 44, 0.3);
}

.btn-devlog i {
    transition: transform 0.3s ease;
}

.btn-devlog:hover i {
    transform: rotate(-360deg);
}

/* Dark mode for button */
[data-theme="dark"] .btn-devlog {
    border-color: var(--primary-color, #c9302c) !important;
    color: #fff !important;
}

[data-theme="dark"] .btn-devlog:hover {
    background: var(--primary-color, #c9302c) !important;
}

/* ========================================
   Responsive Version Badge
======================================== */
@media (max-width: 768px) {
    .hero-version-badge {
        margin: 1.25rem 0 1.5rem;
    }
    
    .version-badge-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.75rem 1.25rem;
        border-radius: 16px;
    }
    
    .version-badge-icon {
        width: 36px;
        height: 36px;
    }
    
    .version-badge-icon i {
        font-size: 0.9rem;
    }
    
    .version-badge-number {
        font-size: 1.1rem;
    }
    
    .version-badge-date {
        padding-left: 0;
        border-left: none;
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color, #e9ecef);
        margin-top: 0.25rem;
    }
    
    .version-badge-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
    }
    
    .btn-devlog {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .version-badge-inner {
        padding: 0.625rem 1rem;
        gap: 0.5rem;
    }
    
    .version-badge-info {
        text-align: center;
    }
    
    .version-badge-label {
        font-size: 0.65rem;
    }
    
    .version-badge-number {
        font-size: 1rem;
    }
    
    .version-badge-date {
        font-size: 0.75rem;
    }
    
    .version-badge-icon {
        width: 32px;
        height: 32px;
    }
    
    .version-badge-icon i {
        font-size: 0.8rem;
    }
}