/* Institutional Training - Professional Style
   Learning Hub - 2025
*/

:root {
  /* Matte color palette with educational theme */
  --primary-color: #2d6a4f;     /* Matte deep green - same as corporate */
  --primary-light: #40916c;     /* Matte medium green */
  --primary-dark: #1b4332;      /* Matte dark green */
  --secondary-color: #52b788;   /* Matte green accent */
  --accent-color: #74c69d;      /* Matte light green */
  --dark-color: #081c15;        /* Very dark green-black */
  --light-color: #f1f5f3;       /* Off-white with slight green tint */
  --text-color: #263d33;        /* Dark green-gray for text */
  --bg-light: #e9f0ed;          /* Background with green tint */
  
  /* Matte gradients */
  --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  
  /* Border radius */
  --border-radius: 8px;
}

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-width: 320px;
}

/* Section styles */
section {
  padding: 80px 5%;
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.3;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-subtitle {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 15px;
  position: relative;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
}

.animated-bar {
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  margin: 0 auto;
  border-radius: 3px;
}

/* Hero Section */
.hero-banner {
  background-color: var(--light-color);
  text-align: center;
  padding: 100px 5% 80px;
  width: 100%;
  position: relative;
}

.hero-content {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero-banner h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
  line-height: 1.2;
  position: relative;
}

.hero-banner h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 3px;
  background: var(--accent-gradient);
  transform: translateX(-50%);
  border-radius: 4px;
}

.hero-banner p {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.btn-primary, .btn-secondary {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Introduction Section */
.intro-section {
  background-color: white;
  position: relative;
}

.intro-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.intro-text p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #36454f;
  line-height: 1.7;
}

.intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--light-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(45, 106, 79, 0.05);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 26px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Ensure Font Awesome icons display properly */
.feature-icon i {
  display: inline-block;
  color: white;
  font-size: 26px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  z-index: 2;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.feature-card p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

/* Training Areas */
.training-areas {
  background-color: var(--bg-light);
  position: relative;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.training-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  border: 1px solid rgba(45, 106, 79, 0.05);
}

.card-icon {
  flex: 0 0 80px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  position: relative;
}

/* Ensure Font Awesome icons display properly */
.card-icon i {
  display: inline-block;
  color: white;
  font-size: 28px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  z-index: 2;
}

.card-content {
  padding: 25px;
  flex: 1;
}

.card-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 12px;
}

.card-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.card-content p {
  font-size: 15px;
  color: #475569;
  margin: 0;
  line-height: 1.7;
}

/* Benefits Section */
.benefits-section {
  background-color: white;
  position: relative;
}

.benefits-content {
  margin-top: 30px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  gap: 25px;
  align-items: center;
  background: var(--light-color);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(45, 106, 79, 0.05);
}

.benefit-icon {
  flex: 0 0 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Ensure Font Awesome icons display properly */
.benefit-icon i {
  display: inline-block;
  color: white;
  font-size: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  z-index: 2;
}

.benefit-text h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.benefit-text p {
  font-size: 15px;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

/* Process Section */
.process-section {
  background-color: var(--bg-light);
  position: relative;
}

.process-timeline {
  margin: 40px auto;
  max-width: 800px;
  position: relative;
  padding: 0 10px;
}

.timeline-progress {
  position: absolute;
  top: 45px;
  left: 30px;
  width: 3px;
  height: calc(100% - 90px);
  background: var(--primary-color);
  opacity: 0.3;
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.timeline-number {
  flex: 0 0 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.timeline-content {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-left: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(45, 106, 79, 0.05);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 24px;
  width: 24px;
  height: 24px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid rgba(45, 106, 79, 0.05);
  border-bottom: 1px solid rgba(45, 106, 79, 0.05);
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.timeline-content p {
  font-size: 15px;
  color: #475569;
  margin: 0;
  line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--bg-light);
  position: relative;
}

.testimonial-slider {
  display: flex;
  overflow: hidden;
  margin: 0 auto;
  max-width: 800px;
  position: relative;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 20px;
}

.testimonial-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  border: 1px solid rgba(45, 106, 79, 0.05);
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 80px;
  line-height: 1;
  font-family: serif;
  color: rgba(45, 106, 79, 0.07);
}

.testimonial-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-gradient);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-light);
}

.client-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-details h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px;
  color: var(--dark-color);
}

.client-details p {
  font-size: 13px;
  margin: 0;
  font-style: normal;
  color: #64748b;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(45, 106, 79, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-dot.active, .control-dot:hover {
  background-color: var(--primary-color);
}

/* Case Studies Section (using delivery styles) */
.delivery-section {
  background-color: white;
  position: relative;
}

.delivery-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.delivery-card {
  background: var(--light-color);
  border-radius: 10px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(45, 106, 79, 0.05);
}

.delivery-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Ensure Font Awesome icons display properly */
.delivery-icon i {
  display: inline-block;
  color: white;
  font-size: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  z-index: 2;
}

.delivery-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.delivery-card p {
  font-size: 15px;
  color: #475569;
  text-align: left;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Responsive styles */
@media screen and (max-width: 992px) {
  .section-title {
    font-size: 28px;
  }
  
  .hero-banner h1 {
    font-size: 36px;
  }
  
  .training-grid, 
  .delivery-methods {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .card-icon {
    flex: 0 0 70px;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 60px 5%;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .hero-banner {
    padding: 60px 5%;
  }
  
  .hero-banner h1 {
    font-size: 30px;
  }
  
  .hero-banner p {
    font-size: 16px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 15px;
    max-width: 250px;
    margin: 30px auto 0;
  }
  
  .btn-primary {
    width: 100%;
    text-align: center;
  }
  
  .training-card {
    flex-direction: column;
  }
  
  .card-icon {
    flex: 0 0 auto;
    height: 60px;
    width: 100%;
  }
  
  .benefit-item {
    padding: 20px;
  }
}

@media screen and (max-width: 576px) {
  .section-title {
    font-size: 22px;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }
  
  .benefit-icon {
    margin-bottom: 15px;
  }
  
  .benefit-text {
    text-align: center;
  }
  
  .timeline-item {
    margin-bottom: 35px;
  }
  
  .timeline-number {
    flex: 0 0 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .timeline-content {
    padding: 15px;
    margin-left: 15px;
  }
  
  .timeline-content h3 {
    font-size: 18px;
  }
}
/* Fix for Benefits Section on Mobile */

/* Ensure the entire benefits section is fully visible */
.benefits-section {
  width: 100%;
  overflow: visible;
  padding: 60px 5% 70px;
}

/* Fix for benefit icons to ensure they're visible on mobile */
.benefit-icon {
  position: relative;
  flex: 0 0 60px;
  height: 60px;
  min-width: 60px; /* Ensures the icon maintains width */
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced icon styling */
.benefit-icon i {
  display: inline-block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: white !important;
  width: auto;
  height: auto;
  z-index: 5;
}

/* Ensure specific FontAwesome icons display properly */
.benefit-icon .fa-chart-line,
.benefit-icon .fa-lightbulb,
.benefit-icon .fa-brain,
.benefit-icon .fa-heart,
.benefit-icon .fa-rocket,
.benefit-icon .fa-user-tie,
.benefit-icon .fa-cogs,
.benefit-icon .fa-sync-alt,
.benefit-icon .fa-users {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-style: normal;
}

/* Mobile-specific styles */
@media screen and (max-width: 767px) {
  .benefits-list {
    gap: 20px;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
    border-radius: 10px;
  }
  
  .benefit-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
  }
  
  .benefit-text {
    text-align: center;
  }
  
  .benefit-text h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .benefit-text p {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Small mobile refinements */
@media screen and (max-width: 480px) {
  .benefits-section {
    padding: 50px 4% 60px;
  }
  
  .benefit-item {
    padding: 20px 15px;
  }
  
  .benefit-icon {
    width: 50px;
    height: 50px;
  }
  
  .benefit-icon i {
    font-size: 20px;
  }
}

/* Force font-face loading for FontAwesome */
@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2") format("woff2");
}