/* ===================================
   OUR DOMAIN SECTION - MODERN DESIGN
   =================================== */

.our-courses {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  position: relative;
  overflow: hidden;
}

.our-courses::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 100, 212, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.our-courses::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Domain Cards Grid */
.our-courses .row {
  margin-top: 50px;
}

/* Domain Card Styling */
.single-course-block {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 30px;
  border: 2px solid transparent;
}

.single-course-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.single-course-block:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(102, 100, 212, 0.2);
  border-color: rgba(102, 100, 212, 0.2);
}

.single-course-block:hover::before {
  transform: scaleX(1);
}

/* Vibrant Background Colors for Each Card */
.our-courses .col-md-4:nth-child(1) .single-course-block {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.our-courses .col-md-4:nth-child(2) .single-course-block {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.our-courses .col-md-4:nth-child(3) .single-course-block {
  background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.our-courses .col-md-4:nth-child(4) .single-course-block {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.our-courses .col-md-4:nth-child(5) .single-course-block {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.our-courses .col-md-4:nth-child(6) .single-course-block {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Optimized text colors for vibrant backgrounds */
.single-course-block .text-box h5,
.single-course-block .text-box h5 a {
  color: #ffffff !important;
}

.single-course-block .text-box p {
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(0, 0, 0, 0.1);
  padding: 12px 15px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

/* Text Box Styling */
.single-course-block .text-box {
  padding: 30px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.single-course-block .text-box h5 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.3;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.single-course-block .text-box h5 a {
  color: #1a1a2e;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.single-course-block .text-box h5 a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: #ffffff;
  transition: width 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.single-course-block:hover .text-box h5 a::after {
  width: 100%;
}

.single-course-block .text-box p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  flex: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Image Container */
.single-course-block .text-box ul {
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
}

.single-course-block .text-box ul center {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.our-domain-img,
.our-domain-img-5 {
  width: 100%;
  height: 280px !important;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.single-course-block:hover .our-domain-img,
.single-course-block:hover .our-domain-img-5 {
  transform: scale(1.08);
}

/* Button Styling */
.single-course-block .theme-line-button {
  display: inline-flex;
  align-items: center;
  height: 50px;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a2e;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.single-course-block .theme-line-button::after {
  content: '→';
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.single-course-block .theme-line-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(102, 100, 212, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: 0;
}

.single-course-block .theme-line-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 1);
  background: #ffffff;
  color: #1a1a2e;
  border-color: rgba(255, 255, 255, 0.6);
}

.single-course-block .theme-line-button:hover::before {
  width: 300px;
  height: 300px;
}

.single-course-block .theme-line-button:hover::after {
  transform: translateX(8px);
}

/* Section Title Enhancement */
.our-courses .theme-title-one h2 {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.our-courses .theme-title-one .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 8px 25px rgba(102, 100, 212, 0.3);
  transform: rotate(45deg);
}

.our-courses .theme-title-one .icon i {
  font-size: 28px;
  color: #ffffff;
  transform: rotate(-45deg);
}

.our-courses .theme-title-one section p {
  font-size: 20px;
  line-height: 1.8;
  color: #2c2c3e;
  max-width: 1000px;
  margin: 0 auto;
}

.our-courses .theme-title-one section em {
  font-size: 20px;
  color: #667eea;
  font-weight: 700;
  font-style: italic;
  display: block;
  margin-bottom: 15px;
  line-height: 1.5;
}

.our-courses .theme-title-one section strong {
  color: #667eea;
  font-weight: 700;
}

/* Responsive Design */

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  .our-courses .theme-title-one h2 {
    font-size: 40px;
  }
  
  .single-course-block .text-box h5 {
    font-size: 22px;
  }
  
  .single-course-block .text-box p {
    font-size: 16px;
    line-height: 1.7;
  }
  
  .our-domain-img,
  .our-domain-img-5 {
    height: 250px !important;
  }
  
  .our-courses .theme-title-one section p {
    font-size: 15px;
  }
  
  .our-courses .theme-title-one section em {
    font-size: 18px;
  }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
  .our-courses {
    padding: 60px 0;
  }
  
  .our-courses .row {
    margin-top: 30px;
  }
  
  .our-courses .theme-title-one h2 {
    font-size: 32px;
  }
  
  .our-courses .theme-title-one .icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }
  
  .our-courses .theme-title-one .icon i {
    font-size: 24px;
  }
  
  .single-course-block {
    margin-bottom: 25px;
  }
  
  .single-course-block .text-box {
    padding: 25px 20px;
  }
  
  .single-course-block .text-box h5 {
    font-size: 21px;
  }
  
  .single-course-block .text-box p {
    font-size: 15px;
    line-height: 1.7;
  }
  
  .our-domain-img,
  .our-domain-img-5 {
    height: 220px !important;
  }
  
  .single-course-block .theme-line-button {
    padding: 9px 20px;
    font-size: 12px;
  }
  
  .our-courses .theme-title-one section p {
    font-size: 14px;
    padding: 0 10px;
  }
  
  .our-courses .theme-title-one section em {
    font-size: 16px;
  }
  
  .our-courses .col-md-4 {
    margin-bottom: 0;
  }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  .our-courses {
    padding: 50px 0;
  }
  
  .our-courses .theme-title-one h2 {
    font-size: 28px;
  }
  
  .single-course-block .text-box {
    padding: 20px 18px;
  }
  
  .single-course-block .text-box h5 {
    font-size: 20px;
  }
  
  .single-course-block .text-box p {
    font-size: 15px;
    margin-bottom: 15px;
  }
  
  .our-domain-img,
  .our-domain-img-5 {
    height: 200px !important;
  }
  
  .single-course-block .theme-line-button {
    padding: 9px 18px;
    font-size: 11px;
    width: 100%;
    justify-content: center;
  }
  
  .our-courses .theme-title-one section p {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .our-courses .theme-title-one section em {
    font-size: 15px;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(45deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
}
