/* ========================================
   MODERN BLOG SECTION
   Enhanced Animations & Hover Effects
   ======================================== */

/* Blog Section */
.blog-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.blog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(33, 150, 243, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(100, 181, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.blog-section .container {
  position: relative;
  z-index: 1;
}

/* Section Title */
.blog-section .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #0a1929;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
}

/* Blog Section Header - Same format as Study Experiences */
.blog-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(33, 150, 243, 0.1);
  border: 2px solid rgba(33, 150, 243, 0.3);
  border-radius: 50px;
  color: #1565c0;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.15);
  transition: all 0.3s ease;
}

.blog-section-badge:hover {
  background: rgba(33, 150, 243, 0.15);
  border-color: #2196f3;
  transform: translateY(-2px);
}

.blog-section-badge i {
  color: #2196f3;
}

.blog-section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #033270 0%, #2196f3 50%, #1565c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.blog-section-subtitle {
  font-size: 18px;
  color: #6b7280;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
}

/* Divider - line removed per design */
.divider {
  display: none;
}

/* Section Subtitle */
.section-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto;
}

/* Modern Blog Card */
.modern-blog-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  position: relative;
  cursor: pointer;
}

.modern-blog-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(33, 150, 243, 0.25);
  border-color: #2196f3;
}

/* Individual Card Color Variations */
.blog-card-1:hover {
  box-shadow: 0 20px 60px rgba(33, 150, 243, 0.3);
  border-color: #2196f3;
}

.blog-card-2:hover {
  box-shadow: 0 20px 60px rgba(100, 181, 246, 0.3);
  border-color: #64b5f6;
}

.blog-card-3:hover {
  box-shadow: 0 20px 60px rgba(66, 165, 245, 0.3);
  border-color: #42a5f5;
}

/* Blog Image Wrapper */
.blog-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f3f4f6;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.modern-blog-card:hover .blog-img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1);
}

/* Image Overlay */
.blog-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.modern-blog-card:hover .blog-image-overlay {
  opacity: 1;
}

/* Category Badge */
.blog-category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.95) 0%, rgba(100, 181, 246, 0.95) 100%);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
  transition: all 0.4s ease;
}

.modern-blog-card:hover .blog-category-badge {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}

/* Hover Shine Effect */
.blog-hover-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.modern-blog-card:hover .blog-hover-shine {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Blog Content */
.blog-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  transition: all 0.4s ease;
}

.modern-blog-card:hover .blog-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

/* Blog Title */
.blog-title {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.blog-title a {
  color: #0a1929;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  position: relative;
}

.blog-title a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2196f3, #64b5f6);
  transition: width 0.4s ease;
}

.modern-blog-card:hover .blog-title a {
  color: #2196f3;
}

.modern-blog-card:hover .blog-title a::after {
  width: 100%;
}

/* Blog Description */
.blog-description {
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0 0 20px 0;
  flex: 1;
  transition: color 0.3s ease;
}

.modern-blog-card:hover .blog-description {
  color: #4b5563;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.modern-blog-card:hover .blog-meta {
  border-color: #d1d5db;
  color: #6b7280;
}

.blog-date,
.blog-comments {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-date i,
.blog-comments i {
  font-size: 12px;
  color: #2196f3;
  transition: all 0.3s ease;
}

.modern-blog-card:hover .blog-date i,
.modern-blog-card:hover .blog-comments i {
  transform: scale(1.2);
  color: #64b5f6;
}

/* Read More Link */
.blog-read-more {
  margin-top: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-blog-card:hover .blog-read-more {
  opacity: 1;
  transform: translateY(0);
}

.blog-read-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.blog-read-more a::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;
}

.blog-read-more a:hover::before {
  left: 100%;
}

.blog-read-more a:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
  background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
}

.blog-read-more a i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.blog-read-more a:hover i {
  transform: translateX(5px);
}

/* Card Color Variations on Hover */
.blog-card-1:hover .blog-category-badge {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.95) 0%, rgba(66, 165, 245, 0.95) 100%);
}

.blog-card-2:hover .blog-category-badge {
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.95) 0%, rgba(144, 202, 249, 0.95) 100%);
}

.blog-card-3:hover .blog-category-badge {
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.95) 0%, rgba(33, 150, 243, 0.95) 100%);
}

.blog-card-1:hover .blog-read-more a {
  background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
}

.blog-card-2:hover .blog-read-more a {
  background: linear-gradient(135deg, #64b5f6 0%, #90caf9 100%);
}

.blog-card-3:hover .blog-read-more a {
  background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
}

/* Responsive Design */
@media (max-width: 992px) {
  .blog-section {
    padding: 80px 0;
  }
  
  .blog-image-wrapper {
    height: 220px;
  }
  
  .blog-content {
    padding: 24px;
  }
  
  .blog-title {
    font-size: 18px;
  }
  
  .blog-description {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 60px 0;
  }
  
  .blog-image-wrapper {
    height: 200px;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  .blog-title {
    font-size: 17px;
    margin-bottom: 14px;
  }
  
  .blog-description {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .blog-meta {
    font-size: 12px;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
  }
  
  .blog-read-more a {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .modern-blog-card:hover {
    transform: translateY(-8px) scale(1.01);
  }
}

@media (max-width: 576px) {
  .blog-section {
    padding: 50px 0;
  }
  
  .section-subtitle {
    font-size: 15px;
  }
  
  .blog-image-wrapper {
    height: 180px;
  }
  
  .blog-category-badge {
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .blog-content {
    padding: 18px;
  }
  
  .blog-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .blog-description {
    font-size: 12px;
    margin-bottom: 14px;
  }
  
  .blog-meta {
    font-size: 11px;
    gap: 12px;
    margin-bottom: 14px;
    padding-top: 14px;
  }
  
  .blog-read-more a {
    padding: 7px 14px;
    font-size: 12px;
  }
  
  .modern-blog-card:hover {
    transform: translateY(-6px);
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-blog-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.modern-blog-card:nth-child(1) { animation-delay: 0.1s; }
.modern-blog-card:nth-child(2) { animation-delay: 0.2s; }
.modern-blog-card:nth-child(3) { animation-delay: 0.3s; }

/* Accessibility */
.modern-blog-card:focus {
  outline: 3px solid #2196f3;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .modern-blog-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
  
  .blog-read-more {
    display: none;
  }
}

