.services-section {
  width: 100%; /* Full viewport width */
  margin-top: 60px; /* Push away from the header */
  background-color: #0a1c54;
  color: white;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
}

.services-section * {
  background-color: transparent; /* Ensure children don't override blue */
  color: inherit; /* Ensure white text flows through */
}


.services-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center;
}

.services-section p.subtext {
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.stat-box {
  flex: 1;
  min-width: 200px;
  padding: 10px;
}

.stat-box .number {
  font-size: 28px;
  font-weight: bold;
}

.stat-box .label {
  font-size: 14px;
  margin-top: 6px;
}

.service-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.service-highlight img {
  max-width: 100%;
  width: 400px;
  height: auto;
  border-radius: 4px;
}

.service-content {
  flex: 1;
  min-width: 300px;
}

.service-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.service-content p {
  font-size: 16px;
  margin-bottom: 15px;
}

.service-content a {
  font-size: 15px;
  color: #96c0ff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
    gap: 20px;
  }

  .service-highlight {
    flex-direction: column;
  }
}

/*====================================Next Section============================================*/

.company-services-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  color: #111;
}

.collapsible-toggle {
  background: white;
  color: #0a1c54; /* dark blue text */
  font-weight: 600;
  font-size: 1.25rem;
  border: 2px solid #0a1c54; /* blue outline */
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.collapsible-toggle:hover {
  background: #e1e7ff; /* subtle light blue hover */
  color: #06203a; /* darker blue text on hover */
  border-color: #06203a;
}

.arrow {
  transition: transform 0.3s ease;
  font-weight: bold;
  font-size: 1.3rem;
  color: #0a1c54; /* blue arrow */
}

.collapsible-toggle[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
  color: #06203a; /* darker blue arrow when expanded */
}

.services-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background-color: #f9f9f9;
  border-left: 4px solid #0a1c54;
  padding-left: 20px;
  margin-top: 10px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.services-list.expanded {
  max-height: 1000px; /* large enough to show content */
  padding: 15px 20px 20px 20px;
}

.service-item {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  color: #333;
  position: relative;
  padding-left: 20px;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0a1c54;
  font-size: 20px;
  line-height: 1;
}

.general-services-text {
  margin: 20px 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  font-weight: 700; /* changed from 100 to 700 for bold */
  display: flex;
  flex-direction: column;
  gap: 12px;  /* space between <p> tags */
}

.project-management-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.project-description {
  flex: 1 1 320px;
  text-align: center;
}

.project-description h2 {
  margin-bottom: 16px;
  font-weight: 600;
}

.project-description p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

.project-photo {
  flex: 1 1 320px;
  max-width: 400px;
  text-align: center;
}

.project-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .project-management-section {
    flex-direction: column;
  }
  .project-description,
  .project-photo {
    max-width: 100%;
  }
}

/* Collapsibles=================================================================== */

.nested-collapsible-section {
  width: 100%;            
  background-color: #6C4193;
  padding: 40px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nested-collapsible-section details {
  margin-bottom: 16px;
  border: 3px solid #4b5588;
  border-radius: 8px;
  padding: 24px 24px;
  background: #f9f9ff;
  box-shadow: 0 2px 8px rgba(29, 31, 74, 0.1);
}

.nested-collapsible-section summary {
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  outline: none;
  list-style: none;

  display: flex;
  justify-content: space-between; /* title left, arrow right */
  align-items: center;
  gap: 10px;
}

.nested-collapsible-section summary::-webkit-details-marker {
  display: none; /* remove default arrow */
}

/* FontAwesome arrow on right */
.nested-collapsible-section summary::before {
  content: none; /* remove arrow from before */
}

.nested-collapsible-section summary::after {
  font-family: "Font Awesome 6 Free";
  content: "\f105"; /* fa-angle-right */
  font-weight: 900;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #4b5588;
  line-height: 1;
}

/* Rotate arrow when open */
.nested-collapsible-section details[open] > summary::after {
  transform: rotate(90deg);
}

/* Inner collapsibles styling */
.nested-collapsible-section details details {
  margin-top: 12px;
  margin-left: 20px;
  background: #eef0ff;
  border-color: #aab0d0;
  padding: 20px 24px;
}

.nested-collapsible-section details details summary {
  font-weight: 500;
  font-size: 1rem;

  display: flex;
  justify-content: space-between; /* title left, arrow right */
  align-items: center;
  gap: 10px;
}

.nested-collapsible-section details details summary::before {
  content: none;
}

.nested-collapsible-section details details summary::after {
  font-family: "Font Awesome 6 Free";
  content: "\f105"; /* fa-angle-right */
  font-weight: 900;
  font-size: 1rem;
  color: #4b5588;
  transition: transform 0.3s ease;
}

/* Rotate inner arrow on open */
.nested-collapsible-section details details[open] > summary::after {
  transform: rotate(90deg);
}

/*=====================================Technology Solutions=========================================*/

.technology-solutions-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  color: #111;
}

.tech-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.tech-text {
  flex: 1;
}

.tech-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #0a1c54;
}

.tech-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #333;
}

.lrn-more-btnn {
  background-color: #0a1c54;
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lrn-more-btnn:hover {
  background-color: #07243c;
}

.tech-image {
  flex: 1;
  text-align: right;
}

.tech-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
