/* Homepage Optimized Styles - Consolidated from inline styles */

/* Main Banner Styles */
.main-banner-area {
  position: relative;
  background-color: #0a1849; /* Fallback color */
  padding: 120px 0 100px; /* Increased top padding */
  min-height: 88vh; /* Slightly increased viewport-based height */
  max-height: 850px; /* Increased maximum height */
  display: flex;
  align-items: center;
  overflow: hidden; /* Prevent any content overflow */
}

/* Load the background image after the page has rendered for better performance */
.main-banner-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: image-set(
    url("../front/images/banner/banner.webp") type("image/webp"),
    url("../front/images/banner/banner.png") type("image/png")
  );
  background-image: -webkit-image-set(
    url("../front/images/banner/banner.webp") type("image/webp"),
    url("../front/images/banner/banner.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  z-index: 0;
  will-change: opacity, transform; /* Performance hint for browsers */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Modern Gradient Overlay */
.banner-overlay {
  background: linear-gradient(135deg, rgba(16, 37, 106, 0.85) 0%, rgba(9, 18, 54, 0.85) 100%);
}

.banner-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 380px; /* Minimum height to ensure content has room */
}

/* Animation Effects */
.banner-content {
  padding: 40px 0 30px; /* More padding on top */
  color: #fff;
  position: relative;
  width: 100%;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Improved Banner Text Legibility */
.banner-title {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-weight: 700;
  line-height: 1.3;
}

.banner-text {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  line-height: 1.6;
  max-width: 600px;
}

/* Professional Badge Styling */
.banner-badge {
  background: linear-gradient(135deg, #cc9933 0%, #b88a2c 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  display: inline-block;
  margin-bottom: 20px;
}

.banner-title {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 15px 0;
  letter-spacing: -0.5px;
}

.title-underline {
  width: 70px;
  height: 3px;
  background: #cc9933;
  margin-bottom: 15px;
}

.banner-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}

.banner-btn {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  background: #cc9933;
  border: 2px solid #cc9933;
  color: #fff;
  transition: all 0.3s ease;
}

.banner-btn:hover {
  background: #b88a2c;
  color: #fff;
  text-decoration: none;
}

.banner-btn-outline {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  transition: all 0.3s ease;
}

.banner-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

/* Responsive Banner Styles */
@media (max-width: 1200px) {
  .banner-title {
    font-size: 32px;
  }
  
  .banner-text {
    margin-bottom: 18px;
  }
}

@media (max-width: 991px) {
  .banner-title {
    font-size: 28px;
    margin: 12px 0;
  }
  
  .main-banner-area {
    padding: 100px 0 80px; /* Increased top padding */
    min-height: 83vh;
  }
  
  .banner-text {
    margin-bottom: 15px;
  }
  
  .title-underline {
    margin-bottom: 12px;
  }
  
  .banner-row {
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  .banner-title {
    font-size: 26px;
    margin-top: 8px;
  }
  
  .banner-text {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 15px;
  }
  
  .banner-actions {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .banner-btn, .banner-btn-outline {
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .main-banner-area {
    padding: 90px 0 60px; /* Increased top padding */
    min-height: 78vh;
  }
  
  .banner-row {
    min-height: 280px;
  }
  
  .title-underline {
    width: 60px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .banner-title {
    font-size: 24px;
    margin: 8px 0;
  }
  
  .main-banner-area {
    padding: 80px 0 50px; /* Significantly increased top padding for mobile */
    min-height: 73vh;
  }
  
  .banner-row {
    min-height: 240px;
  }
  
  .banner-text {
    font-size: 14px;
    margin-bottom: 12px;
    max-width: 100%;
  }
  
  .banner-badge {
    font-size: 12px;
    padding: 4px 12px;
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .main-banner-area {
    padding: 80px 0 60px;
    min-height: 70vh;
  }
  
  .banner-title {
    font-size: 28px;
  }
}

/* Mobile Text Optimization */
@media (max-width: 768px) {
  .banner-title {
    font-size: 32px;
  }
  
  .banner-text {
    font-size: 18px;
  }
}

/* Client Showcase Styles */
.client-showcase {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.client-card {
  height: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.client-heading {
  font-size: 24px;
  font-weight: 700;
  color: #0a1849;
  margin-bottom: 15px;
}

.client-divider {
  border-top: 2px solid #cc9933;
  width: 60px;
  margin: 0 0 20px 0;
}

.client-description {
  color: #6c757d;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.client-count {
  font-size: 48px;
  font-weight: 800;
  color: #cc9933;
  line-height: 1;
  margin-bottom: 10px;
}

.client-count sup {
  font-size: 24px;
  top: -15px;
}

.client-count-label {
  color: #495057;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.client-logos-title-wrapper {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.client-logos-title {
  font-size: 18px;
  font-weight: 700;
  color: #0a1849;
}

.client-carousel {
  margin-top: 20px;
}

.client-slide {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.client-logo-wrapper {
  flex: 0 0 calc(50% - 7.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  padding: 10px;
  height: 100px;
  border: 1px solid #f1f3f5;
}

.client-logo {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}

.client-message {
  font-size: 16px;
  line-height: 1.7;
  color: #495057;
}

.client-message strong {
  color: #0a1849;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .client-showcase {
    padding: 60px 0;
  }
  
  .client-card {
    margin-bottom: 30px;
  }
}

/* Client Showcase Section */
.client-showcase {
  padding: 70px 0 50px;
  background-color: #fff;
  position: relative;
}

.client-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.client-count-card {
  background: linear-gradient(145deg, #0a1849 0%, #141f52 100%);
  color: white;
  position: relative;
}

.client-heading {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.client-divider {
  background-color: #cc9933;
  height: 3px;
  width: 60px;
  margin: 0;
  opacity: 1;
}

.client-description {
  color: #ccd0e0;
  margin: 20px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.client-count {
  color: #cc9933;
  font-size: 4rem;
  font-weight: 800;
  margin: 25px 0 5px;
  line-height: 1;
}

.client-count-label {
  color: #fff;
  font-size: 1rem;
  opacity: 0.9;
}

.client-logos-card {
  padding: 0;
  overflow: hidden;
}

.client-logos-title-wrapper {
  padding: 15px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.client-logos-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a1849;
}

.client-carousel {
  padding: 25px 20px;
  height: calc(100% - 52px);
}

.client-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  height: 100%;
}

.client-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 180px;
  padding: 15px;
  position: relative;
}

.client-logo-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #cc9933;
  transition: width 0.3s ease;
}

.client-logo-wrapper:hover::after {
  width: 80%;
}

.client-logo {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.9;
  transition: all 0.4s ease;
}

.client-logo-wrapper:hover .client-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.client-message-card {
  background: linear-gradient(135deg, #0a1849 0%, #192456 100%);
  padding: 40px 30px;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.client-message-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(204, 153, 51, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

.client-message {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.client-message strong {
  color: #cc9933;
  font-weight: 600;
}

/* Hide controls for cleaner UX */
.client-controls {
  display: none;
}

/* Responsive styles */
@media (max-width: 1199px) {
  .client-slide {
    gap: 15px;
  }
}

@media (max-width: 991px) {
  .client-card {
    margin-bottom: 25px;
  }
  
  .client-heading {
    font-size: 1.8rem;
  }
  
  .client-count {
    font-size: 3.5rem;
  }
  
  .client-showcase {
    padding: 50px 0 30px;
  }
}

@media (max-width: 767px) {
  .client-showcase {
    padding: 40px 0 25px;
  }
  
  .client-heading {
    font-size: 1.6rem;
  }
  
  .client-count {
    font-size: 3rem;
  }
  
  .banner-title {
    font-size: 28px;
  }
  
  .banner-text {
    font-size: 16px;
  }
  
  .banner-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Venues Section */
.venues-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #edf0f5 100%);
}

.venue-heading {
  color: #0a1849;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.venue-divider {
  border-top: 3px solid #cc9933;
  width: 80px;
  margin: 0 auto 20px;
}

.venue-subtitle {
  color: #6c757d;
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.venue-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venue-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.venue-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.venue-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.venue-card:hover .venue-image {
  transform: scale(1.05);
}

.venue-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,24,73,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venue-card:hover .venue-overlay {
  opacity: 1;
}

.venue-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #cc9933;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  text-decoration: none;
}

.venue-content {
  padding: 20px;
}

.venue-name {
  color: #0a1849;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.venue-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #f0f4f9;
  color: #0a1849;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.venue-btn:hover {
  background: #cc9933;
  color: white;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  background: #0a1849;
  color: white;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #cc9933;
  transform: translateY(-3px);
}

.view-all-btn i {
  margin-left: 8px;
}

@media (max-width: 768px) {
  .venue-grid {
    grid-template-columns: 1fr;
  }
}

/* Training Images Section */
.training-image-container {
  position: relative;
  height: 500px;
}

.image-wrapper {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.primary-wrapper {
  width: 70%;
  height: 70%;
  top: 0;
  right: 0;
  z-index: 1;
}

.secondary-wrapper {
  width: 60%;
  height: 60%;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(10,24,73,0.85), transparent);
}

.overlay-text {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.training-image-badge {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: #cc9933;
  color: white;
  padding: 20px 15px;
  border-radius: 50%;
  z-index: 3;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.training-image-badge span {
  font-size: 24px;
  font-weight: 700;
  display: block;
}

.training-image-badge small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .training-image-container {
    height: 400px;
  }
}

/* Homepage Specific Styles */
.course-categories-section {
  position: relative;
  background: linear-gradient(135deg, #f6f6f0 0%, #eeeee4 100%);
  padding: 100px 0 80px;
  overflow: hidden;
}

.category-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#cc9933 0.5px, transparent 0.5px), radial-gradient(#cc9933 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.1;
}

/* Testimonials Section */
.testimonials-section {
  background-color: #f8f9fa;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.testimonial-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.view-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0a1849;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 30px;
  border: 2px solid #0a1849;
  transition: all 0.3s ease;
  background-color: transparent;
}

.view-map-btn:hover {
  background-color: #0a1849;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 24, 73, 0.2);
}

.view-map-btn i {
  margin-right: 10px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.view-map-btn:hover i {
  transform: translateX(-3px);
  color: #cc9933;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(135deg, rgba(204, 153, 51, 0.05) 0%, rgba(10, 24, 73, 0.05) 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 0;
}

.testimonial-heading {
  color: #0a1849;
  font-weight: 700;
  margin-bottom: 15px;
}

.testimonial-divider {
  background-color: #cc9933;
  height: 3px;
  width: 80px;
  margin: 0 auto;
  opacity: 1;
}

.testimonial-subtitle {
  color: #000000;
  font-size: 1.1rem;
  margin: 20px 0 0;
}

/* Image optimization classes */
.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid #f0f0f0;
}

.source-logo {
  height: 30px;
  width: 80px;
  object-fit: contain;
}

.venue-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
