/*
Theme Name: Pendidikan Sejarah Modern
Theme URI: https://pendidikansejarah.edu
Author: Program Studi Pendidikan Sejarah
Author URI: https://pendidikansejarah.edu
Description: Tema WordPress modern dan interaktif untuk Program Studi Pendidikan Sejarah dengan mode gelap/terang, animasi modern, dan fitur-fitur khusus pendidikan
Version: 1.0.0
License: GPL v2 or later
Text Domain: pendidikan-sejarah
*/

/* ========================================
   Root Variables & Color Schemes
======================================== */
:root {
  /* Light Mode Colors */
  --primary-color: #c9302c;
  --secondary-color: #f39c12;
  --accent-color: #27ae60;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #ecf0f1;
  --border-color: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --gradient-primary: linear-gradient(135deg, #c9302c 0%, #f39c12 100%);
  --gradient-secondary: linear-gradient(135deg, #bc0909ff 0%, #370909ff 100%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Dark Mode */
[data-theme="dark"] {
  --primary-color: #e74c3c;
  --secondary-color: #f1c40f;
  --accent-color: #2ecc71;
  --text-primary: #ecf0f1;
  --text-secondary: #bdc3c7;
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f3460;
  --border-color: #2c3e50;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
}

/* ========================================
   Global Styles
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: color var(--transition-normal);
}

h1 { 
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--secondary-color);
}

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

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

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

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

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

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease forwards;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  transition: left var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  color: white;
  border-color: transparent;
}

/* Header Styles */
.site-header {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  transition: transform var(--transition-normal);
}

.logo-icon:hover {
  transform: rotate(360deg) scale(1.1);
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition-fast);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  transition: width var(--transition-normal);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  width: 80%;
}

/* 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;
}

/* Cards */
.card {
  background: var(--bg-primary);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
  animation: pulse 2s ease infinite;
}

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

.card-description {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 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);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  z-index: 1;
}

/* Footer */
.site-footer {
  background: var(--bg-tertiary);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
  display: inline-block;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform var(--transition-fast);
}

.social-links a:hover {
  transform: translateY(-5px) rotate(360deg);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle i {
  font-size: 1.5rem;
  color: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
    z-index: 999;
  }
  
  .main-navigation.active {
    left: 0;
  }
  
  .main-navigation ul {
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
  
  .timeline-date {
    left: 30px;
    transform: translateX(-50%);
  }
}

/* Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-inner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 998;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top i {
  color: white;
  font-size: 1.2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ========================================
   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 New 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: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}

/* ========================================
   CTA Section Redesign
======================================== */
.cta-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9302c 0%, #d84b42 50%, #f39c12 100%);
  overflow: hidden;
}

.cta-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

.cta-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: floatParticle 20s infinite ease-in-out;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 30%;
  left: 70%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 70%;
  left: 20%;
  animation-delay: 6s;
}

.particle:nth-child(5) {
  width: 50px;
  height: 50px;
  top: 40%;
  left: 50%;
  animation-delay: 8s;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -30px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translate(-20px, 20px) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translate(20px, 30px) rotate(270deg);
    opacity: 0.7;
  }
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: bounceIn 1s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cta-badge i {
  color: #ffd700;
  font-size: 1.2rem;
  animation: pulse 2s ease infinite;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.cta-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.cta-feature-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-feature-item i {
  font-size: 1.3rem;
  color: #a8ff78;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 3rem;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-cta:hover .btn-shine {
  left: 100%;
}

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

.btn-cta-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.btn-cta-secondary {
  background: transparent;
  color: white;
  border: 3px solid white;
}

.btn-cta-secondary:hover {
  transform: translateY(-5px) scale(1.05);
  background: white;
  color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .cta-section {
    min-height: auto;
  }
  
  .cta-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-cta {
    width: 100%;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* ========================================
   BREADCRUMB MODERN - STYLE 1: Glassmorphism
======================================== */
.breadcrumb-modern {
    margin: 0;
    padding: 0;
    position: relative;
    animation: breadcrumbFadeIn 0.6s ease;
}

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

.breadcrumb-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transition: all 0.3s ease;
}

[data-theme="dark"] .breadcrumb-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb-item-modern {
    display: inline-flex;
    align-items: center;
    position: relative;
    animation: breadcrumbItemFadeIn 0.6s ease backwards;
}

.breadcrumb-item-modern:nth-child(1) { animation-delay: 0.1s; }
.breadcrumb-item-modern:nth-child(3) { animation-delay: 0.2s; }
.breadcrumb-item-modern:nth-child(5) { animation-delay: 0.3s; }
.breadcrumb-item-modern:nth-child(7) { animation-delay: 0.4s; }
.breadcrumb-item-modern:nth-child(9) { animation-delay: 0.5s; }

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

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.breadcrumb-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.breadcrumb-link:hover::before {
    left: 100%;
}

.breadcrumb-link:hover {
    background: rgba(201, 48, 44, 0.1);
    color: var(--primary-color);
    transform: translateX(3px);
}

.breadcrumb-link.home-link {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(201, 48, 44, 0.3);
}

.breadcrumb-link.home-link:hover {
    transform: translateX(3px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 48, 44, 0.4);
}

.breadcrumb-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.breadcrumb-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    opacity: 0.5;
    font-size: 0.75rem;
    margin: 0 0.25rem;
}

.breadcrumb-current {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(201, 48, 44, 0.1);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.breadcrumb-current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    animation: breadcrumbUnderline 1s ease infinite;
}

@keyframes breadcrumbUnderline {
    0%, 100% { transform: scaleX(0.8); }
    50% { transform: scaleX(1); }
}

/* ========================================
   BREADCRUMB MODERN - STYLE 2: Material Design
======================================== */
.breadcrumb-modern.style-material .breadcrumb-wrapper {
    background: var(--bg-primary);
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb-modern.style-material .breadcrumb-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.breadcrumb-modern.style-material .breadcrumb-link.home-link {
    background: var(--primary-color);
    border-radius: 8px;
}

.breadcrumb-modern.style-material .breadcrumb-current {
    border-radius: 8px;
    background: var(--bg-secondary);
}

/* ========================================
   BREADCRUMB MODERN - STYLE 3: Minimal Underline
======================================== */
.breadcrumb-modern.style-minimal .breadcrumb-wrapper {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    padding: 0.75rem 0;
    box-shadow: none;
}

.breadcrumb-modern.style-minimal .breadcrumb-link {
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.breadcrumb-modern.style-minimal .breadcrumb-link:hover {
    background: transparent;
    border-bottom-color: var(--primary-color);
}

.breadcrumb-modern.style-minimal .breadcrumb-link.home-link {
    background: transparent;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    box-shadow: none;
}

.breadcrumb-modern.style-minimal .breadcrumb-current {
    background: transparent;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
}

.breadcrumb-modern.style-minimal .breadcrumb-current::after {
    display: none;
}

/* ========================================
   BREADCRUMB MODERN - STYLE 4: Card Style
======================================== */
.breadcrumb-modern.style-card .breadcrumb-wrapper {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.breadcrumb-modern.style-card .breadcrumb-item-modern {
    position: relative;
}

.breadcrumb-modern.style-card .breadcrumb-link {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
}

.breadcrumb-modern.style-card .breadcrumb-link:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.breadcrumb-modern.style-card .breadcrumb-link.home-link {
    background: var(--gradient-primary);
    border: none;
}

.breadcrumb-modern.style-card .breadcrumb-current {
    border: 2px dashed var(--primary-color);
    background: transparent;
}

/* ========================================
   BREADCRUMB MODERN - STYLE 5: Pill Navigation
======================================== */
.breadcrumb-modern.style-pill .breadcrumb-wrapper {
    background: var(--bg-secondary);
    border: none;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb-modern.style-pill .breadcrumb-list {
    gap: 0.25rem;
}

.breadcrumb-modern.style-pill .breadcrumb-link {
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    background: transparent;
}

.breadcrumb-modern.style-pill .breadcrumb-link:hover {
    background: var(--bg-primary);
    transform: translateX(2px) scale(1.05);
}

.breadcrumb-modern.style-pill .breadcrumb-link.home-link {
    background: var(--gradient-primary);
}

.breadcrumb-modern.style-pill .breadcrumb-current {
    background: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb-modern.style-pill .breadcrumb-separator {
    margin: 0;
}

/* ========================================
   Interactive Hover Effects
======================================== */
.breadcrumb-link {
    position: relative;
}

.breadcrumb-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.breadcrumb-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding: 0.5rem 1rem;
        border-radius: 10px;
        max-width: 100%;
        overflow-x: auto;
    }
    
    .breadcrumb-list {
        flex-wrap: nowrap;
        gap: 0.25rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
    }
    
    .breadcrumb-link span {
        display: none;
    }
    
    .breadcrumb-link i,
    .breadcrumb-link.home-link i {
        margin: 0;
    }
    
    .breadcrumb-link.home-link span {
        display: inline; /* Keep home text */
    }
    
    .breadcrumb-separator {
        font-size: 0.7rem;
        margin: 0 0.125rem;
    }
    
    /* Show only icon on mobile for better space */
    .breadcrumb-item-modern:not(:first-child):not(:last-child) .breadcrumb-link span {
        display: none;
    }
}

@media (max-width: 480px) {
    .breadcrumb-wrapper {
        padding: 0.375rem 0.75rem;
    }
    
    .breadcrumb-current {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .breadcrumb-modern {
        display: none;
    }
}

/* ========================================
   Dark Mode Adjustments
======================================== */
[data-theme="dark"] .breadcrumb-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .breadcrumb-link:hover {
    background: rgba(201, 48, 44, 0.2);
}

[data-theme="dark"] .breadcrumb-current {
    background: rgba(201, 48, 44, 0.2);
}

/* ========================================
   Accessibility
======================================== */
.breadcrumb-modern:focus-within .breadcrumb-link {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.breadcrumb-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 25px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .breadcrumb-modern,
    .breadcrumb-item-modern,
    .breadcrumb-link,
    .breadcrumb-current {
        animation: none !important;
        transition: none !important;
    }
}
/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .theme-toggle,
  .scroll-to-top,
  .mobile-menu-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}