/* ===================================
   ENHANCED HISTORY SECTION
   =================================== */

.enhanced-history {
  padding: 10px 0;
  background: #f8f9ff;
  position: relative;
  overflow: hidden;
}

.enhanced-history::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(102, 100, 212, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.enhanced-history::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Title Styling */
.history-main-title {
  font-size: 48px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 20px 0 15px;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}

.history-subtitle {
  font-size: 15px;
  color: #667eea;
  font-weight: 600;
  margin-top: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.decorative-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  margin: 0 auto 15px;
  border-radius: 2px;
  position: relative;
}

.decorative-line::before,
.decorative-line::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #667eea;
  border-radius: 50%;
  top: -1.5px;
}

.decorative-line::before {
  left: -12px;
}

.decorative-line::after {
  right: -12px;
}

/* Content Row */
.history-content-row {
  display: flex;
  align-items: stretch;
  margin-top: 60px;
  gap: 50px;
}

/* Image Column */
.history-image-col {
  position: relative;
  z-index: 1;
  flex: 0 0 45%;
  max-width: 45%;
}

.history-image-wrapper {
  position: relative;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.history-main-image {
  width: 100%;
  height: 750px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.history-image-wrapper:hover .history-main-image {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}

/* Image Decorations */
.image-decoration-1 {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  z-index: 1;
  opacity: 0.15;
}

.image-decoration-2 {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  border-radius: 20px;
  z-index: 1;
  opacity: 0.12;
}

/* Image Badge */
.image-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(102, 100, 212, 0.35);
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.badge-content {
  text-align: center;
  color: #ffffff;
}

.badge-year {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 3px;
}

.badge-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

/* Text Column */
.history-text-col {
  position: relative;
  z-index: 1;
  flex: 0 0 55%;
  max-width: 55%;
  display: flex;
  align-items: center;
}

.history-text-wrapper {
  padding: 0;
  width: 100%;
}

.history-header {
  margin-bottom: 25px;
}

.history-title {
  font-size: 38px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 12px;
}

.highlight-text {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 38px;
  margin-left: 10px;
}

.title-underline {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Stats Section */
.history-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.stat-item {
  background: #ffffff;
  padding: 20px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 100, 212, 0.18);
  border-color: #667eea;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px rgba(102, 100, 212, 0.25);
}

.stat-icon i {
  font-size: 24px;
  color: #ffffff;
  display: block;
  line-height: 1;
}

.stat-icon i::before {
  display: block;
}

.stat-content h3 {
  font-size: 26px;
  font-weight: 800;
  color: #667eea;
  margin: 0 0 3px 0;
  line-height: 1;
}

.stat-content p {
  font-size: 12px;
  color: #5a5a6e;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

/* Description */
.history-description {
  margin-bottom: 20px;
}

.intro-text {
  font-size: 16px;
  line-height: 1.6;
  color: #2c2c3e;
  margin-bottom: 12px;
  font-weight: 500;
}

.main-text {
  font-size: 15px;
  line-height: 1.6;
  color: #5a5a6e;
  margin-bottom: 18px;
}

.history-description strong {
  color: #667eea;
  font-weight: 700;
}

/* Feature Points */
.history-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.feature-point {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.feature-point:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(102, 100, 212, 0.12);
}

.feature-point i {
  color: #667eea;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-point span {
  font-size: 14px;
  color: #2c2c3e;
  font-weight: 600;
  line-height: 1.3;
}

/* CTA Button */
.history-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(102, 100, 212, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.history-cta-btn::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.6s ease;
}

.history-cta-btn:hover::before {
  left: 100%;
}

.history-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 100, 212, 0.45);
  color: #ffffff;
}

.history-cta-btn i {
  transition: transform 0.3s ease;
}

.history-cta-btn:hover i {
  transform: translateX(5px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  .enhanced-history {
    padding: 35px 0;
  }
  
  .history-main-title {
    font-size: 40px;
  }
  
  .history-title {
    font-size: 32px;
  }
  
  .highlight-text {
    font-size: 32px;
  }
  
  .history-content-row {
    gap: 40px;
  }
  
  .history-image-col,
  .history-text-col {
    flex: 0 0 48%;
    max-width: 48%;
  }
  
  .history-main-image {
    height: 600px;
  }
  
  .history-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .stat-item {
    padding: 18px 10px;
  }
  
  .stat-content h3 {
    font-size: 22px;
  }
  
  .stat-content p {
    font-size: 11px;
  }
  
  .intro-text {
    font-size: 15px;
  }
  
  .main-text {
    font-size: 14px;
  }
  
  .feature-point span {
    font-size: 13px;
  }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
  .enhanced-history {
    padding: 30px 0;
  }
  
  .history-main-title {
    font-size: 32px;
  }
  
  .history-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
  }
  
  .history-content-row {
    flex-direction: column;
    gap: 40px;
  }
  
  .history-image-col,
  .history-text-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .history-title {
    font-size: 28px;
  }
  
  .highlight-text {
    font-size: 28px;
    display: block;
    margin-left: 0;
    margin-top: 5px;
  }
  
  .history-main-image {
    height: 350px;
    border-radius: 16px;
  }
  
  .image-badge {
    width: 85px;
    height: 85px;
    top: 20px;
    left: 20px;
  }
  
  .badge-year {
    font-size: 10px;
  }
  
  .badge-number {
    font-size: 24px;
  }
  
  .history-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
  }
  
  .stat-item {
    padding: 18px 15px;
  }
  
  .stat-content h3 {
    font-size: 24px;
  }
  
  .stat-content p {
    font-size: 12px;
  }
  
  .history-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .intro-text,
  .main-text {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .history-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 28px;
    font-size: 14px;
  }
  
  .image-decoration-1 {
    width: 80px;
    height: 80px;
    top: -15px;
    left: -15px;
  }
  
  .image-decoration-2 {
    width: 100px;
    height: 100px;
    bottom: -15px;
    right: -15px;
  }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  .enhanced-history {
    padding: 25px 0;
  }
  
  .history-main-title {
    font-size: 28px;
  }
  
  .history-subtitle {
    font-size: 11px;
  }
  
  .history-title {
    font-size: 24px;
  }
  
  .highlight-text {
    font-size: 24px;
  }
  
  .history-main-image {
    height: 280px;
  }
  
  .image-badge {
    width: 75px;
    height: 75px;
    top: 15px;
    left: 15px;
  }
  
  .badge-year {
    font-size: 9px;
    letter-spacing: 1px;
  }
  
  .badge-number {
    font-size: 20px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
  }
  
  .stat-icon i {
    font-size: 18px;
  }
  
  .stat-content h3 {
    font-size: 20px;
  }
  
  .stat-content p {
    font-size: 11px;
  }
  
  .intro-text,
  .main-text {
    font-size: 13px;
  }
  
  .feature-point {
    padding: 8px 10px;
  }
  
  .feature-point i {
    font-size: 16px;
  }
  
  .feature-point span {
    font-size: 12px;
  }
  
  .history-cta-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  
  .image-decoration-1,
  .image-decoration-2 {
    opacity: 0.08;
  }
}
