/* ==========================================================================
   CSDCI - Assessment Agencies Page Styles (Clean Raw CSS)
   ========================================================================== */

/* Main container */
.csdci-aa-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  font-family: Raleway, Arial, sans-serif;
  color: #333333;
}

/* Why Affiliation & Intro Blocks */
.csdci-aa-intro {
  margin-bottom: 45px;
}

.csdci-aa-title {
  font-family: 'Raleway', Georgia, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #4e2300;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #6dbfe8;
  text-align: center;
}

.csdci-aa-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 25px;
  text-align: justify;
}

/* Selection Section with Side Image */
.csdci-aa-selection-wrap {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.csdci-aa-selection-text {
  flex: 1;
}

.csdci-aa-selection-img-wrap {
  flex: 0 0 40%;
  max-width: 40%;
}

.csdci-aa-selection-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Assessor Certificate Highlight Box */
.csdci-aa-cert-highlight {
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: #fcfcfc;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
}

.csdci-aa-cert-img-wrap {
  flex: 0 0 45%;
  max-width: 45%;
}

.csdci-aa-cert-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.csdci-aa-cert-text {
  flex: 1;
  font-size: 15.5px;
  line-height: 1.7;
  color: #444444;
  text-align: justify;
}

/* Download buttons block */
.csdci-aa-downloads {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

/* Responsibilities List block */
.csdci-aa-resp-section {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  position: relative;
}

.csdci-aa-resp-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #6dbfe8;
  border-radius: 8px 8px 0 0;
}

.csdci-aa-resp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 25px;
}

.csdci-aa-resp-card {
  background-color: #fbfbfb;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.csdci-aa-resp-card h4 {
  font-family: 'Raleway', Georgia, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #4e2300;
  margin-top: 0;
  margin-bottom: 10px;
  border-left: 3px solid #6dbfe8;
  padding-left: 10px;
}

.csdci-aa-resp-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #555555;
  margin: 0;
  text-align: justify;
}

/* Table styling */
.csdci-aa-table-section {
  margin-bottom: 60px;
}

/* Logo grid/carousel */
.csdci-aa-logos-section {
  background-color: #f7f7f7;
  padding: 40px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.csdci-aa-logos-title {
  font-family: 'Raleway', Georgia, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #4e2300;
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
}

.csdci-aa-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.csdci-aa-logo-item {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 80px;
}

.csdci-aa-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .csdci-aa-selection-wrap {
    flex-direction: column-reverse;
  }
  
  .csdci-aa-selection-img-wrap {
    max-width: 60%;
    flex: 0 0 100%;
  }

  .csdci-aa-cert-highlight {
    flex-direction: column;
    padding: 20px;
  }

  .csdci-aa-cert-img-wrap {
    max-width: 70%;
    flex: 0 0 100%;
    margin-bottom: 20px;
  }

  .csdci-aa-resp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .csdci-aa-container {
    padding: 40px 15px;
  }

  .csdci-aa-selection-img-wrap {
    max-width: 100%;
  }

  .csdci-aa-cert-img-wrap {
    max-width: 100%;
  }
}
