/* =====================================================
   SECTOR PAGE STYLES – SINGLE SOURCE OF TRUTH
   Any duplicate selectors elsewhere must be removed
   ===================================================== */



/* ===== Sector Page Base ===== */

.sector-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Sector Header ===== */

.sector-header {
  padding: 28px 0 12px;
  border-bottom: 1px solid #e6eaee;
}

.sector-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: #0f2a44;
}

.sector-description {
  max-width: 720px;
  color: #4b5563;
  margin: 0;
}


/* ===== Breadcrumb ===== */

.sector-breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin: 10px 0 18px;
}

.sector-breadcrumb a {
  color: #0f2a44;
  text-decoration: none;
}

.sector-breadcrumb span {
  margin: 0 6px;
}


/* ===== Layout ===== */

.sector-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}


/* ===== Main Content ===== */

.sector-main {
  min-width: 0;
}

.sector-section {
  margin-bottom: 24px;
}



/* ===== Sidebar ===== */

.sector-sidebar {
  position: relative;
}

.sector-leader-card {
  position: sticky;
  top: 96px; /* تحت الهيدر */
  background: #ffffff;
  border: 1px solid #e6eaee;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


.sector-leader-avatar img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
}

.sector-leader-info {
  text-align: center;
}

.sector-leader-name {
  margin: 0;
  font-size: 16px;
  color: #0f2a44;
}

.sector-leader-title {
  font-size: 13px;
  color: #6b7280;
}

.sector-leader-contact {
  margin-top: 12px;
  text-align: center;
}

.sector-leader-bio {
  display: inline-block;
  font-size: 13px;
  color: #0f2a44;
  text-decoration: underline;
  margin-bottom: 6px;
}

.sector-leader-email {
  display: block;
  font-size: 13px;
  color: #374151;
}


/* ===== Footer Info Bar ===== */

.sector-footer-bar {
  margin-top: 32px;
  padding: 14px 0;
  border-top: 1px solid #e6eaee;
}

.sector-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sector-footer-links a {
  margin-left: 12px;
  color: #0f2a44;
  text-decoration: none;
  font-size: 13px;
}

.sector-footer-meta {
  font-size: 12px;
  color: #6b7280;
}


/* ===== Mobile ===== */

@media (max-width: 992px) {
  .sector-layout {
    grid-template-columns: 1fr;
  }

  .sector-leader-card {
    position: static;
    margin-bottom: 20px;
  }
}


/* ===== Leader Name & Title (Forced Two Lines) ===== */

.sector-leader-name-title {
  text-align: center;
}

.sector-leader-name-title .leader-title {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #0f2a44;
  font-weight: 600;
}

.sector-leader-name-title .leader-role {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.sector-leader-name-title .leader-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0f2a44;
}


/* ===== Enhanced Sector Header ===== */

.sector-header {
  background: linear-gradient(
    to left,
    rgba(15, 42, 68, 0.04),
    rgba(184, 134, 11, 0.05)
  );
  border-radius: 16px;
  padding: 36px 28px 24px;
  margin-bottom: 20px;
}

.sector-title {
  font-size: 30px;
  font-weight: 700;
}

.sector-description {
  font-size: 15px;
}


/* ===== Enhanced Leader Card ===== */

.sector-leader-card {
  border-top: 4px solid #b8860b; /* ذهبي هادئ */
  background: #fff;
}

.sector-leader-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.sector-leader-avatar img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #f0f2f5;
}



.sector-leader-contact {
  margin-top: 10px;
  font-size: 13px;
  color: #374151;
}


.sector-leader-cv {
  text-align: center;
  margin-top: 12px;
}

.sector-leader-cv a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid #b8860b;
  border-radius: 20px;
  color: #b8860b;
  text-decoration: none;
}

.sector-leader-cv a:hover {
  background: #b8860b;
  color: #fff;
}


/* ===== Content Sections Enhancement ===== */

.sector-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}


.sector-layout {
  margin-top: 10px;
}

.sector-main .sector-section + .sector-section {
  margin-top: 18px;
}


/* ===== Enhanced Breadcrumb ===== */

.sector-breadcrumb {
  background: rgba(15, 42, 68, 0.06);
  padding: 8px 14px;
  border-radius: 20px;
  display: inline-block;
  font-size: 13px;

  backdrop-filter: blur(2px);
  box-shadow: inset 0 0 0 1px rgba(15,42,68,0.06);
}


.sector-breadcrumb a {
  color: #0f2a44;
  text-decoration: none;
}

.sector-breadcrumb a:hover {
  text-decoration: underline;
}


/* ===== Unified Content Lists ===== */

.sector-section ul,
.sector-section ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sector-section li {
  position: relative;
  padding-right: 26px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.sector-section li::before {
  content: "▪";
  position: absolute;
  right: 0;
  top: 2px;
  color: #b8860b;
  font-size: 18px;
}



/* ===== Enhanced Footer Info Bar ===== */

.sector-footer-bar {
  background: linear-gradient(
    to left,
    rgba(15, 42, 68, 0.06),
    rgba(184, 134, 11, 0.08)
  );
  border-radius: 16px;
  padding: 18px 22px;
}

.sector-footer-links a {
  position: relative;
}

.sector-footer-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #b8860b;
  transition: width 0.3s ease;
}

.sector-footer-links a:hover::after {
  width: 100%;
}


/* ===== Section Headings – Light Brush + Side Line (FINAL) ===== */

.sector-section h2 {
  position: relative;
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  padding: 6px 14px 6px 18px;
  margin-bottom: 18px;
  line-height: 1.4;
  background-color: #52452c1c;
}

.sector-section h2::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 65%;
  background: linear-gradient(to bottom, #b8860b, #0f2a44);
  border-radius: 2px;
}

.sector-section h2::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 2px;
  bottom: 2px;
  left: 0;
  background:
    linear-gradient(
      -2deg,
      rgba(184, 134, 11, 0.12),
      rgba(184, 134, 11, 0.05)
    );
  border-radius: 10px 6px 10px 6px;
  z-index: -1;
}



/* ===== Numbered Vertical List (Sector Services) ===== */

.sector-services ol {
  counter-reset: sector-step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sector-services ol li {
  counter-increment: sector-step;
  position: relative;
  padding-right: 48px;
  margin-bottom: 16px;
}

.sector-services ol li::before {
  content: counter(sector-step);
  position: absolute;
  right: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.15);
  color: #0f2a44;
  font-weight: 700;
  text-align: center;
  line-height: 28px;
}

.sector-services ol li::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 32px;
  width: 2px;
  height: calc(100% - 28px);
  background: linear-gradient(
    to bottom,
    rgba(184, 134, 11, 0.6),
    rgba(184, 134, 11, 0)
  );
}


/* ===== Faux Numbered List – Plain Text Field (FINAL) ===== */

.sector-services {
  counter-reset: service-step;
}

.sector-services p {
  position: relative;
  padding-right: 48px;
  margin-bottom: 14px;
}

.sector-services p::before {
  counter-increment: service-step;
  content: counter(service-step);
  position: absolute;
  right: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.18);
  color: #0f2a44;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  line-height: 26px;
}


/* ===== Footer Info Bar – Mobile Fix ===== */

@media (max-width: 768px) {

  .sector-footer-bar {
    padding: 20px 16px;
    text-align: center;
  }

  .sector-footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  .sector-footer-links a {
    display: inline-block;
    margin: 0 6px;
  }
}



/* ====== Sector Departments Timeline ====== */

.sector-departments {
  background: #f2fbf9;
  border-radius: 22px;
  padding: 0.5rem;
  position: relative;
}

/*
.sector-departments-timeline {
  position: relative;
  padding-right: 64px;
  counter-reset: dept;
}

.sector-departments-timeline::before {
  content: "";
  position: absolute;
  right: 34px;          
  top: 0;
  bottom: 0;
  width: 2px;
  background: #7fcfc0;
}



.sector-department-item {
  position: relative;
  display: flex;
  align-items: center;  
  min-height: 48px;
}


.sector-department-item::before {
  counter-increment: dept;
  content: counter(dept);

  position: absolute;
  right: 16px;           
  top: 50%;
  transform: translateY(-50%);

  width: 36px;
  height: 36px;

  background: #f28c28;
  color: #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.9rem;
  font-weight: 700;

  box-shadow: 0 4px 10px rgba(242, 140, 40, 0.35);
}


.sector-department-item a {
  padding-right: 64px;
  line-height: 1.6;
  font-weight: 500;
  color: #0b5ed7;
  text-decoration: none;
}

.sector-department-item a:hover {
  text-decoration: underline;
}



@media (max-width: 768px) {

  .sector-department-item {
    min-height: 42px;
  }

  .sector-department-item::before {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    right: 10px;
  }

  .sector-departments-timeline::before {
    right: 25px;
  }

  .sector-department-item a {
    padding-right: 48px;
  }
}

*/

/* container */
.view-departments-of-sector {
  position: relative;
  padding-right: 30px;
}

/* الخط العمودي */
.view-departments-of-sector::before {
  content: "";
  position: absolute;
  right: 34px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #7fcfc0;
}

/* reset counter */
.view-departments-of-sector .view-content {
  counter-reset: dept;
}

/* كل إدارة */
.view-departments-of-sector .views-row {
  position: relative;
  margin: 22px 0;
}

/* الرابط */
.view-departments-of-sector .views-field-title a {
  display: inline-block;
  padding-right: 80px;
  line-height: 1.6;
  font-weight: 500;
  color: #0b5ed7;
  text-decoration: none;
}

/* hover */
.view-departments-of-sector .views-field-title a:hover {
  text-decoration: underline;
}

/* الدائرة + الرقم */
.view-departments-of-sector .views-row::before {
  counter-increment: dept;
  content: counter(dept);

  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);

  width: 36px;
  height: 36px;
  border-radius: 50%;

  background: #f28c28;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.9rem;
  font-weight: 700;

  box-shadow: 0 4px 10px rgba(242, 140, 40, 0.35);
}


/* إلغاء marker الافتراضي نهائياً */
.view-departments-of-sector ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.view-departments-of-sector li::marker {
  content: none !important;
}


.view-departments-of-sector li {
  position: relative;
  margin: 22px 0;
}

.view-departments-of-sector li::before {
  counter-increment: dept;
  content: counter(dept);

  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);

  width: 36px;
  height: 36px;
  border-radius: 50%;

  background: #f28c28;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.9rem;
  font-weight: 700;
}

.view-departments-of-sector ul {
  counter-reset: dept;
}


.view-departments-of-sector .views-field-title a {
  padding-right: 56px; /* تقليل المسافة */
}


.view-departments-of-sector .views-field-title a {
  text-decoration: none;
  color: #0b5ed7;
  font-weight: 600;
  transition: color 0.2s ease;
}

.view-departments-of-sector .views-field-title a:hover {
  color: #5fa8ff;
  text-decoration: none;
}



