/* Education Page Specific Styles */

/* Hero Section */
.education-hero {
  /* Layered background: Overlay gradient, Dot pattern, Base gradient */
  background:
    linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1)), /* Subtle overlay */
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px), /* Dot pattern */
    linear-gradient(135deg, #1a233a 0%, #263a53 100%); /* Original base gradient */
  background-size: auto, 10px 10px, cover; /* Sizes for each layer */
  background-position: center;
  min-height: 40vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.education-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 123, 255, 0.08), rgba(0, 86, 179, 0.08));
  z-index: 1;
}

.education-hero .container {
  position: relative;
  z-index: 2;
}

.education-hero .hero-content {
  max-width: 800px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: rgba(77, 171, 247, 0.2);
  color: #4dabf7;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(77, 171, 247, 0.3);
}

.education-hero .hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.education-hero .hero-title .accent {
  color: #4dabf7;
  position: relative;
  display: inline-block;
}

.education-hero .hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #4dabf7, transparent);
  border-radius: 2px;
}

.education-hero .hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.education-hero .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.education-hero .primary-button,
.education-hero .secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.education-hero .primary-button {
  background: #4dabf7;
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(77, 171, 247, 0.3);
}

.education-hero .primary-button:hover {
  background: #339af0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 171, 247, 0.4);
}

.education-hero .secondary-button {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.education-hero .secondary-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  display: none; /* Removing the scroll indicator for a more compact look */
}

/* Education Intro Section */
.education-intro {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.education-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.education-intro-item {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.education-intro-item:hover {
  transform: translateY(-5px);
}

.education-intro-icon {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 1.5rem;
}

.education-intro-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.education-intro-item p {
  color: #666;
  line-height: 1.6;
}

/* Services Section */
.education-services {
  padding: 5rem 0;
  background-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  background: #007bff;
  color: #fff;
  transform: translateY(-5px);
}

.service-card:hover h3,
.service-card:hover p {
  color: #fff;
}

.service-icon {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 1.5rem;
}

.service-card:hover .service-icon {
  color: #fff;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.section-header .accent {
  color: #0066cc;
}

.section-header p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.feature-item h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 15px;
}

.feature-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-buttons .primary-button {
  background: #fff;
  color: #007bff;
}

.cta-buttons .secondary-button {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .education-hero .hero-title {
    font-size: 2.5rem;
  }

  .education-hero .hero-desc {
    font-size: 1.1rem;
  }

  .education-intro-grid,
  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons a {
    width: 100%;
    text-align: center;
  }

  .section-header {
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    padding: 20px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.education-intro-item,
.service-card,
.feature-item {
  animation: fadeIn 0.6s ease-out forwards;
}

.education-intro-item:nth-child(2) {
  animation-delay: 0.2s;
}

.education-intro-item:nth-child(3) {
  animation-delay: 0.4s;
}

.education-intro-item:nth-child(4) {
  animation-delay: 0.6s;
}

/* Section Header Styling */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Button Styling */
.primary-button,
.secondary-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-button {
  background: #007bff;
  color: #fff;
}

.secondary-button {
  background: transparent;
  border: 2px solid #007bff;
  color: #007bff;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Education Intro Modern Section */
.education-intro-modern {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.education-intro-modern::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="1" fill="%234dabf7" opacity="0.1"/></svg>') repeat;
  opacity: 0.5;
  z-index: 0;
}

.education-intro-modern-flex {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.education-intro-modern-left {
  flex: 1;
  max-width: 600px;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(77, 171, 247, 0.1);
  color: #4dabf7;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(77, 171, 247, 0.2);
}

.education-intro-modern-left h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: #1a233a;
  line-height: 1.2;
  font-weight: 700;
}

.education-intro-modern-left .accent {
  color: #4dabf7;
  position: relative;
}

.education-intro-modern-left .accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #4dabf7, transparent);
  border-radius: 2px;
}

.intro-features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.intro-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.intro-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.intro-feature .feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(77, 171, 247, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4dabf7;
  font-size: 1.1rem;
}

.intro-feature span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a233a;
}

.education-intro-modern-left p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 2.5rem;
}

.education-intro-modern-contact-cards {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(77, 171, 247, 0.2);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(77, 171, 247, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4dabf7;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  background: #4dabf7;
  color: white;
}

.contact-card-title {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 0.3rem;
}

.contact-card-link {
  color: #4dabf7;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.contact-card-link:hover {
  color: #2b96f1;
  gap: 0.75rem;
}

.education-intro-modern-right {
  flex: 1.2;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem 0;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  width: 36px;
  height: 36px;
  background: rgba(77, 171, 247, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4dabf7;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.accordion-item.active .header-icon {
  background: #4dabf7;
  color: white;
}

.accordion-header:hover {
  color: #4dabf7;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  font-size: 1rem;
  line-height: 1.6;
  color: #718096;
  padding-right: 2rem;
  margin-left: 3.5rem;
}

.accordion-item.active .accordion-body {
  max-height: 200px;
  margin-top: 1rem;
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: #4dabf7;
  font-size: 0.9rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

@media (max-width: 1200px) {
  .education-intro-modern-flex {
    gap: 3rem;
    padding: 0 1.5rem;
  }
  
  .intro-features {
    flex-wrap: wrap;
  }
  
  .intro-feature {
    flex: 1 1 calc(50% - 0.75rem);
  }
}

@media (max-width: 900px) {
  .education-intro-modern {
    padding: 4rem 0;
  }
  
  .education-intro-modern-flex {
    flex-direction: column;
    gap: 3rem;
  }

  .education-intro-modern-left, 
  .education-intro-modern-right {
    max-width: 100%;
  }

  .education-intro-modern-contact-cards {
    flex-direction: column;
  }

  .contact-card {
    width: 100%;
  }
  
  .education-intro-modern-left h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .education-intro-modern-left h2 {
    font-size: 2rem;
  }

  .education-intro-modern {
    padding: 3rem 0;
  }

  .education-intro-modern-flex {
    padding: 0 1rem;
  }
  
  .intro-features {
    flex-direction: column;
  }
  
  .intro-feature {
    width: 100%;
  }
}

.education-services-abtec {
  background: #0f1e2d;
  color: #fff;
  padding: 80px 0;
  min-height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-main-title {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.services-main-title .accent {
  color: #36a2e0;
  position: relative;
}

.services-main-title .accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #36a2e0, transparent);
  border-radius: 2px;
}

.services-intro {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
}

.intro-text {
  color: #b0c4d4;
  line-height: 1.7;
}

.intro-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.services-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
  .services-main-title {
    font-size: 2.4rem;
  }
  
  .services-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .service-nav-item {
    min-width: 180px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .services-main-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .education-services-abtec {
    padding: 60px 0;
  }
  
  .services-intro {
    margin-bottom: 3rem;
  }
  
  .intro-text p {
    font-size: 1rem;
  }
  
  .services-content {
    padding: 1.5rem;
  }
  
  .service-item {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .services-main-title {
    font-size: 1.8rem;
  }
  
  .education-services-abtec {
    padding: 40px 0;
  }
  
  .services-content {
    padding: 1rem;
  }
}

/* Navigation Styling */
.services-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-nav-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.service-nav-item:hover {
  background: rgba(54, 162, 224, 0.15);
  transform: translateX(5px);
}

.service-nav-item.active {
  background: #36a2e0;
  transform: translateX(5px);
}

.service-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #36a2e0;
  opacity: 0.9;
}

.service-nav-item.active .service-icon {
  color: #fff;
}

.service-nav-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #b0c4d4;
}

.service-nav-item.active span {
  color: #fff;
}

/* Service Details Styling */
.services-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 6px;
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #fff;
  font-weight: 500;
}

.service-category {
  display: block;
  font-size: 0.8rem;
  color: #36a2e0;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.service-item p {
  color: #b0c4d4;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
