/* ===== CV Card (View + Apply) ===== */
.cv-card,
.cvm-form {
  max-width: 1000px;
  margin: 30px auto !important; /* وسط الصفحة */
  padding: 30px;
  border: 2px solid #08ACF2;
  border-radius: 12px;
  font-family: sans-serif;
  line-height: 1.7;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #000 !important; /* خط أسود افتراضي */
  display: block;
}

/* ===== Header ===== */
.cv-header,
.cvm-form .cvm-accordion {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: center !important; /* تبويبات في الوسط */
}
.cv-header.rtl {
  flex-direction: row-reverse;
}

/* ===== Profile Photo ===== */
.cv-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #08ACF2;
}

/* ===== Name / Title ===== */
.cv-basic h2,
.cvm-form h2 {
  margin: 0 0 10px;
  font-size: 32px;
  color: #08ACF2 !important;
  text-align: center;
}

/* ===== Section Titles ===== */
.cv-card h3,
.cvm-form .cvm-accordion-header {
  margin-top: 25px;
  font-size: 22px;
  border-bottom: 2px solid #08ACF2;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  color: #fff !important;           /* خط أبيض */
  background: #08ACF2 !important;   /* خلفية سماوي */
  cursor: pointer;
  text-align: center !important;
  font-weight: bold;
}

/* ===== Content Lists ===== */
.cv-card ul {
  padding-left: 25px;
}
.cv-card li {
  margin-bottom: 6px;
}

/* ===== Buttons ===== */
.btn-pdf,
.cvm-submit {
  display: inline-block;
  padding: 12px 24px;
  background: #08ACF2 !important;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 20px;
  font-weight: bold;
  transition: background 0.3s;
  text-align: center;
}
.btn-pdf:hover,
.cvm-submit:hover {
  background: #007bb8 !important;
}

/* ===== Social Media ===== */
.cv-social li {
  display: inline-block;
  margin-right: 15px;
}

/* ===== Accordion (Apply CV) ===== */
.cvm-accordion-body {
  display: none;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-top: 10px;
  color: #000 !important; /* خط أسود داخل المحتوى */
}
.cvm-accordion-header.active + .cvm-accordion-body {
  display: block;
}

/* ===== Form Fields ===== */
.cvm-field {
  margin-bottom: 15px;
}
.cvm-field label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #000 !important; /* نص اللابل أسود */
}
.cvm-field input,
.cvm-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  color: #000 !important;
  background: #fff !important;
}

/* ===== Containers Center ===== */
.apply-cv-container,
.view-cv-container {
  display: flex !important;
  justify-content: center !important;
}

/* ===== Accordion Full Width (Apply CV) ===== */
.cvm-form .cvm-accordion,
.cvm-form .cvm-accordion-header,
.cvm-form .cvm-accordion-body {
  width: 100% !important;
  display: block;
}

.cvm-form .cvm-accordion-header {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.cvm-form .cvm-accordion-body {
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .cv-header,
  .cvm-form .cvm-accordion {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cv-photo {
    width: 140px;
    height: 140px;
  }

  .cv-basic h2 {
    font-size: 26px;
  }

  .cv-card,
  .cvm-form {
    padding: 20px;
  }

  .btn-pdf,
  .cvm-submit {
    width: 100%;
  }
}
/* Force accordion tabs to full block width */
.cvm-form .cvm-accordion {
  display: block !important;
  width: 100% !important;
}

.cvm-form .cvm-accordion-header {
  display: block !important;
  width: 100% !important;
  text-align: center; /* النص في الوسط */
}
/* ===== Fix Accordion Independence ===== */
.cvm-form .cvm-accordion {
  width: 100% !important; 
  display: block !important;
}

.cvm-form .cvm-accordion-header {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  box-sizing: border-box;
}

.cvm-form .cvm-accordion-body {
  width: 100% !important;   /* البودي دايمًا نفس عرض البلوك */
  box-sizing: border-box;
}
