/* EduKalam Brand Typography Styles */
.navbar-brand {
  font-size: 28px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 1px;
  font-family: 'Playfair Display', serif;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: #8490ff !important;
  text-decoration: none;
}

.navbar-brand img {
  display: none !important;
}

/* Prevent flash of unstyled content */
body:not(.js-loaded) .dynamic-content {
  opacity: 0;
}

body.js-loaded .dynamic-content {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Course Card Grid Styles */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.course-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.course-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-card-body {
  padding: 20px;
}

.course-card-category {
  font-size: 12px;
  color: #8490ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.course-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
  line-height: 1.4;
}

.course-card-title a {
  color: #222;
  text-decoration: none;
}

.course-card-title a:hover {
  color: #8490ff;
}

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  margin-top: 15px;
}

.course-card-price {
  font-size: 20px;
  font-weight: 700;
  color: #8490ff;
}

.course-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .navbar-brand {
    font-size: 24px;
  }
}

/* Testimonial Section Enhanced Styles */
.testimonials-area {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
  padding: 60px 0 !important;
  position: relative;
  overflow: hidden;
}

.testimonials-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(132, 144, 255, 0.05) 0%, rgba(98, 189, 252, 0.05) 100%);
  pointer-events: none;
}

.testimonials-area .container {
  position: relative;
  z-index: 1;
}

.testi-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testi-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.testi-item .text p {
  color: #555;
  font-size: 18px;
  line-height: 1.8;
  font-style: normal;
}

.testi-item h4 {
  color: #222;
  font-size: 22px;
  font-weight: 700;
  margin-top: 30px;
}

.testi-item > p {
  color: #8490ff;
  font-size: 16px;
  font-weight: 500;
  margin-top: 10px;
}

.testi-item img[src*="quote"] {
  width: 50px;
  height: auto;
  opacity: 0.2;
  margin-bottom: 20px;
}

/* Testimonial Avatar - Square with Rounded Corners */
.testimonial-avatar {
  width: 380px;
  height: 380px;
  min-width: 380px;
  min-height: 380px;
  border-radius: 24px;
  background: linear-gradient(135deg, #8490ff 0%, #62bdfc 50%, #b347d1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 120px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(132, 144, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.testimonial-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(132, 144, 255, 0.4);
}

.testimonial-avatar:hover::before {
  left: 100%;
}

.testimonial-avatar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.testimonials-area .row.align-items-center {
  align-items: stretch !important;
}

.testimonials-area .offset-lg-1.col-lg-6 {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .testimonials-area {
    padding: 40px 0 !important;
  }
  
  .testimonial-avatar {
    width: 280px;
    height: 280px;
    min-width: 280px;
    min-height: 280px;
    font-size: 90px;
    border-radius: 20px;
  }
  
  .testi-item {
    padding: 40px 30px;
    margin-bottom: 30px;
  }
}

@media (max-width: 575px) {
  .testimonials-area {
    padding: 30px 0 !important;
  }
  
  .testimonial-avatar {
    width: 250px;
    height: 250px;
    min-width: 250px;
    min-height: 250px;
    font-size: 72px;
    border-radius: 16px;
  }
  
  .testi-item {
    padding: 30px 20px;
  }
  
  .testi-item .text p {
    font-size: 16px;
  }
}

