﻿/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.integrity-section {
  position: relative;
  height: 400px;
  background: url('../img/am.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

/* Overlay */
.integrity-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.integrity-section span {
    position: relative;
    padding: 60px 0 0 40px;
    font-family: var(--heading-font);
    color: #fff;
    font-size: 2.5rem;
    z-index: 1;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 50px  20px;
}

/* Base styles (mobile-first) */
.sidebar {
  width: 100%;
  position: static;
  background-color: #f1f1f1;
  padding: 15px 10px;
  border-radius: 8px;
  height: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.sidebar h3 {
  font-size: 1.4rem;
  color: #0066cc;
  margin-bottom: 15px;
}

.service-group {
  margin-bottom: 15px;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sideH {
  color: #19194f;
  padding: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  text-decoration: none;
  font-family: var(--body-font);
  flex-grow: 1;
}

.collapsible {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  font-size: 0.8rem;
  color: #19194f;
  transition: transform 0.3s;
}

.collapsible::after {
  content: '▼';
  display: inline-block;
  transition: transform 0.3s;
}

.collapsible.active::after {
  transform: rotate(-180deg);
}

.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin-left: 10px;
}

.content li a {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.6rem;
}

.content li a:hover {
  text-decoration: underline;
}


.services {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.service {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 12px;
    gap: 1.5rem;
    background: #fff;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.service-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


.service-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    font-family: var(--body-font);
}

.service-text h2 {
    font-size: 1.7rem;
    color: #19194f;
}

.service-text p{
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.read-more {
    display: flex;
    align-items: center;
    background-color: #0066cc;
    color: white;
    padding: 15px 20px;
    border: none;
    width: 122px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    font-family: var(--body-font);
    text-decoration: none;
}

.read-more:hover {
    background-color: #004d99;
}

@media (min-width: 768px) {
    .main-content {
        flex-direction: row;
        align-items: flex-start;
    }

   .sidebar {
    width: 60%;
    position: sticky;
    top: 20%;
    margin-bottom: 0;
  }

  .sidebar h3 {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .collapsible {
    font-size: 0.6rem;
  }

  .content li {
    margin: 8px 0;
  }

 .service {
    flex-direction: row;
    align-items: center;
  }

  .service:nth-child(even) {
    flex-direction: row-reverse;
  }

  .service-img,
  .service-text {
    flex: 1;
    width: 50%;
  }

    .service-text {
        padding: 0 20px;
    }
}
