/* ========================================
   MODERN REGULATORY STUDIES SECTION
   Latest Design with Enhanced Styling
   ======================================== */

/* Section Container */
.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(13, 110, 253, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.blog-section .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.regulatory-header {
  text-align: center;
  margin-bottom: 4rem;
}

.regulatory-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #033270;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  background: linear-gradient(135deg, #033270 0%, #2196f3 50%, #033270 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.regulatory-description {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

/* Regulatory Feature Cards */
.regulatory-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  height: 100%;
  border: 2px solid #f0f0f0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Animated Border */
.regulatory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #033270 0%, #2196f3 50%, #033270 100%);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 1;
}

.regulatory-card:hover::before {
  transform: scaleX(1);
  animation: borderMove 2s ease infinite;
}

@keyframes borderMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Glow Effect */
.regulatory-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.regulatory-card:hover::after {
  width: 150%;
  height: 150%;
}

.regulatory-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: #2196f3;
  box-shadow: 0 20px 60px rgba(33, 150, 243, 0.2);
}

/* Icon Wrapper */
.regulatory-icon-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.regulatory-icon-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(100, 181, 246, 0.1) 100%);
  border: 3px solid rgba(33, 150, 243, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.regulatory-icon-circle::before {
  content: '';
  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: rotate(45deg);
  transition: transform 0.6s ease;
}

.regulatory-card:hover .regulatory-icon-circle::before {
  animation: iconShine 1.5s ease;
}

@keyframes iconShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.regulatory-card:hover .regulatory-icon-circle {
  transform: rotate(360deg) scale(1.1);
  background: linear-gradient(135deg, #033270 0%, #2196f3 100%);
  border-color: transparent;
  box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
}

.regulatory-icon {
  font-size: 36px;
  color: #033270;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.regulatory-card:hover .regulatory-icon {
  color: #ffffff;
  transform: scale(1.1);
}

/* Card Text */
.regulatory-card-text {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 2;
  flex: 1;
  transition: color 0.4s ease;
}

.regulatory-card:hover .regulatory-card-text {
  color: #495057;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-section {
    padding: 80px 0;
  }
  
  .regulatory-card {
    padding: 2rem 1.75rem;
  }
  
  .regulatory-icon-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .regulatory-icon {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  .blog-section {
    padding: 70px 0;
  }
  
  .regulatory-header {
    margin-bottom: 3rem;
  }
  
  .regulatory-card {
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .regulatory-icon-wrapper {
    width: 75px;
    height: 75px;
    margin-bottom: 1.25rem;
  }
  
  .regulatory-icon {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 60px 0;
  }
  
  .regulatory-header {
    margin-bottom: 2.5rem;
  }
  
  .regulatory-card {
    padding: 1.5rem 1.25rem;
  }
  
  .regulatory-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }
  
  .regulatory-icon {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .blog-section {
    padding: 50px 0;
  }
  
  .regulatory-card {
    padding: 1.25rem 1rem;
  }
  
  .regulatory-icon-wrapper {
    width: 65px;
    height: 65px;
  }
  
  .regulatory-icon {
    font-size: 24px;
  }
}

/* Animation on Load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.regulatory-card {
  animation: fadeInUp 0.8s ease-out backwards;
}

.regulatory-card:nth-child(1) {
  animation-delay: 0.1s;
}

.regulatory-card:nth-child(2) {
  animation-delay: 0.25s;
}

.regulatory-card:nth-child(3) {
  animation-delay: 0.4s;
}

