:root {
  --color-primary: #1a237e;
  --color-primary-light: #3949ab;
  --color-primary-dark: #0d1642;
  --secondary-color: #bd9d6c;
  --text-color: #333;
  --bg-light: #f8f9fa;
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 6px 15px rgba(0, 0, 0, 0.1);

  /* Shadows */
  --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 6px 15px rgba(0, 0, 0, 0.1);
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  /* Transition */
  --transition-fast: 0.3s ease-out;
  --transition-scroll: 0.8s ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* *********************************statistic page****************************************** */
.organizational-section {
  padding: 30px;
  margin-bottom: 40px;
  background-color: #e9ecef;
  border-radius: 10px;
  box-shadow: var(--shadow-subtle);
  border-top: 5px solid var(--secondary-color);
}

.organizational-section .section-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: right;
}

.section-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  padding-right: 15px;
  border-right: 3px solid var(--secondary-color);
}

.table-container {
  overflow-x: auto;
}

.organizational-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  box-shadow: var(--shadow-subtle);
}

.organizational-section th,
.organizational-section td {
  padding: 15px;
  text-align: right;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.organizational-section th {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-color: var(--primary-color);
}

.organizational-section tbody tr:nth-child(even) {
  background-color: #f1f3f5;
}

.organizational-section tbody tr:hover {
  background-color: #e2e6ea;
  transition: background-color 0.3s ease;
}

.table-row-primary {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color);
  font-weight: 600;
}
.table-row-secondary {
  background-color: #ddd !important;
  color: var(--primary-color);
}

.duties-section,
.meetings-section,
.manager-duties-section {
  border-right: 5px solid var(--secondary-color);
}

.duties-list {
  list-style: none;
  padding: 0;
}

.duties-list li {
  position: relative;
  padding-right: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.5;
}

.duties-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.meetings-section .card-title .icon-align {
  color: var(--primary-color);
}

.duties-section .card-title .icon-align {
  color: var(--primary-color);
}

.manager-duties-section .card-title .icon-align {
  color: var(--primary-color);
}

@media (max-width: 600px) {
  .organizational-section th,
  .organizational-section td {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* صفحة أحصائيات الخريجين */

.unit-section {
  padding: 60px 0;
  background-color: #fff;
}

.unit-header {
  background-color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 60px;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.unit-header h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 700;
}

.unit-header .subtitle {
  font-size: 1.2rem;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto;
}

.unit-header .icon-wrapper {
  color: var(--secondary-color);
  background-color: #fff;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  border: 4px solid var(--secondary-color);
}

.content-wrapper {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.content-card {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow-subtle);
  border-right: 5px solid var(--primary-color);
  transition: all 0.3s ease;
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
}

.icon-align {
  margin-left: 10px;
  color: var(--secondary-color);
}

.content-card p {
  font-size: 1.1rem;
  color: var(--text-color);
}

.goals-section {
  padding: 40px 0;
  background-color: var(--bg-light);
  border-radius: 10px;
}

.section-title-goal {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
}

.goals-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.goal-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-subtle);
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.goal-item:hover {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-card);
}

.goal-icon {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin-left: 15px;
  flex-shrink: 0;
}

.goal-item p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.contact-card {
  text-align: center;
  background: var(--primary-color);
  color: #fff;
  padding: 50px;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: var(--shadow-card);
}

.contact-card h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.contact-link {
  color: #fff;
  text-decoration: none;
  /* font-size: 1.2rem; */
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-link i {
  margin-left: 10px;
  font-size: 1.5rem;
}

.contact-link:hover {
  color: var(--secondary-color);
}

.btn-main {
  display: inline-block;
  padding: 14px 40px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.btn-main:hover {
  background-color: #a38658;
  transform: translateY(-2px);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.scrolled {
  opacity: 1;
  transform: translateY(0);
}

.stats-card:nth-child(2) {
  transition-delay: 0.1s;
}
.stats-card:nth-child(3) {
  transition-delay: 0.2s;
}
.stats-card:nth-child(4) {
  transition-delay: 0.3s;
}
.stats-card:nth-child(5) {
  transition-delay: 0.4s;
}
.stats-card:nth-child(6) {
  transition-delay: 0.5s;
}
.stats-card:nth-child(7) {
  transition-delay: 0.6s;
}
.stats-card:nth-child(8) {
  transition-delay: 0.7s;
}
.stats-card:nth-child(9) {
  transition-delay: 0.8s;
}
.stats-card:nth-child(10) {
  transition-delay: 0.9s;
}
.stats-card:nth-child(11) {
  transition-delay: 1s;
}
.stats-card:nth-child(12) {
  transition-delay: 1.1s;
}
.total-stats-section {
  transition-delay: 1.2s;
}

@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .unit-header h1 {
    font-size: 2.2rem;
  }
  .goals-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .unit-header h1 {
    font-size: 2rem;
  }

  .unit-header .subtitle {
    font-size: 1rem;
  }

  .card-title {
    font-size: 1.6rem;
  }

  .section-title-goal,
  .total-stats-section .section-title {
    font-size: 2rem;
  }

  .goals-list {
    grid-template-columns: 1fr;
  }

  .contact-details {
    flex-direction: column;
    gap: 20px;
  }

  .contact-link {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .unit-section {
    padding: 30px 0;
  }

  .unit-header {
    margin-bottom: 30px;
    padding: 20px 10px;
  }

  .unit-header h1 {
    font-size: 1.6rem;
  }

  .content-card {
    padding: 20px;
  }

  .btn-main {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

.organizational-section {
  padding: 30px;
  margin-bottom: 40px;
  background-color: #e9ecef;
  border-radius: 10px;
  box-shadow: var(--shadow-subtle);
  border-top: 5px solid var(--secondary-color);
}

.organizational-section .section-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: right;
}

.section-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  padding-right: 15px;
  border-right: 3px solid var(--secondary-color);
}

.table-container {
  overflow-x: auto;
}

.organizational-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  box-shadow: var(--shadow-subtle);
}

.organizational-section th,
.organizational-section td {
  padding: 15px;
  text-align: right;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.organizational-section th {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-color: var(--primary-color);
}

.organizational-section tbody tr:nth-child(even) {
  background-color: #f1f3f5;
}

.organizational-section tbody tr:hover {
  background-color: #e2e6ea;
  transition: background-color 0.3s ease;
}

.table-row-primary {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color);
  font-weight: 600;
}
.table-row-secondary {
  background-color: #ddd !important;
  color: var(--primary-color);
}

.duties-section,
.meetings-section,
.manager-duties-section {
  border-right: 5px solid var(--secondary-color);
}

.duties-list {
  list-style: none;
  padding: 0;
}

.duties-list li {
  position: relative;
  padding-right: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.5;
}

.duties-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.meetings-section .card-title .icon-align {
  color: var(--primary-color);
}

.duties-section .card-title .icon-align {
  color: var(--primary-color);
}

.manager-duties-section .card-title .icon-align {
  color: var(--primary-color);
}

@media (max-width: 600px) {
  .organizational-section th,
  .organizational-section td {
    padding: 10px;
    font-size: 0.9rem;
  }
}

.statistics-section {
  padding: 60px 0;
  background-color: #fff;
}

.statistics-section .section-title-goal {
  color: var(--primary-color);
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.stats-card {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-subtle);
  border-right: 5px solid var(--secondary-color);
  transition: transform 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stats-year {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--primary-color);
}

.statistics-section .table-container {
  overflow-x: auto;
}

.statistics-section table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.statistics-section th,
.statistics-section td {
  padding: 12px;
  text-align: center;
  border: 1px solid #dee2e6;
  font-size: 1rem;
}

.statistics-section th {
  background-color: var(--primary-color);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.statistics-section td {
  background-color: #fff;
  color: var(--text-color);
}

.statistics-section tbody tr:nth-child(even) td {
  background-color: #f8f9fa;
}

.statistics-section th:last-child,
.statistics-section td:last-child {
  font-weight: bold;
  color: var(--secondary-color);
  background-color: #fff8e1;
  border-left: 3px solid var(--secondary-color);
}

@media (max-width: 768px) {
  .stats-year {
    font-size: 1.5rem;
  }
}

/******************************** جدول الأحصائيات الكلية ******************************************/
.total-stats-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  border-top: 1px solid #ddd;
}

.total-stats-section .section-title {
  color: var(--secondary-color);
  margin-bottom: 40px;
  font-size: 2.2rem;
  text-align: center;
}

.total-table-container {
  overflow-x: auto;
  padding: 10px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  background-color: #fff;
}

.total-stats-section table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1500px;
}

.total-stats-section th,
.total-stats-section td {
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

.total-stats-section thead th {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
}

.specialization-header {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-size: 1.1rem !important;
}

.years-header {
  background-color: #3f5d81 !important;
  color: #fff !important;
}

.total-column-header,
.total-column-cell {
  background-color: #e6f7ff !important;
  color: var(--primary-color);
  font-weight: bold;
  border-left: 3px solid var(--secondary-color) !important;
}

.total-stats-section tbody td {
  background-color: #fff;
}

.total-stats-section tbody tr:nth-child(even) td {
  background-color: #f7f7f7;
}

.specialization-cell {
  text-align: right !important;
  font-weight: 600;
  padding-right: 20px !important;
  background-color: #f1f3f5 !important;
}

.footer-row {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 700;
  border-top: 3px solid var(--primary-color);
}

.footer-row td {
  font-weight: 700;
  background-color: inherit !important;
  color: inherit !important;
}

.footer-row .final-total-cell {
  background-color: var(--primary-color) !important;
  color: var(--secondary-color) !important;
  font-size: 1.2rem;
}

.final-summary-row td {
  text-align: center !important;
  padding: 15px !important;
  font-size: 1.3rem;
  font-weight: 700;
  background-color: #fff !important;
}

.final-number {
  color: #0d6efd;
  font-size: 1.5rem;
}

@media (max-width: 1500px) {
  .total-stats-section table {
    min-width: 1200px;
  }
}

@media (max-width: 768px) {
  .total-stats-section table {
    min-width: 100%;
    display: block;
  }

  .total-table-container {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .total-stats-section thead {
    display: none;
  }

  .total-stats-section table tbody,
  .total-stats-section table tfoot,
  .total-stats-section table tr {
    display: block;
  }

  .total-stats-section table tr {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .total-stats-section td {
    display: block;
    text-align: right;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
    padding-right: 50% !important;
    padding-left: 10px !important;
  }

  .total-stats-section td:last-child {
    border-bottom: 0;
  }

  .total-stats-section td:before {
    content: attr(data-label);
    position: absolute;
    right: 10px;
    width: 45%;
    padding-left: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
  }

  .specialization-cell {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 1.1rem;
    padding: 15px !important;
    border-radius: 8px 8px 0 0;
  }

  .specialization-cell:before {
    content: none;
  }

  .total-column-cell {
    background-color: #f1f3f5 !important;
    font-size: 1.1rem;
  }

  .footer-row {
    margin-top: 40px;
    border: none;
    background-color: #fff;
  }

  .footer-row td {
    display: block;
    background-color: #fff !important;
    color: var(--text-color) !important;
    border: none;
  }

  .footer-row .final-total-cell {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    font-size: 1.2rem;
    text-align: center !important;
  }

  .final-summary-row {
    margin-top: 20px;
    border-top: 2px solid var(--secondary-color);
  }
}

/*******************************************ملتقي الخريجين **************************************/
.hero-section {
  background: linear-gradient(90deg, var(--color-primary) 0%, #5286bd 100%);
  color: var(--color-text-light);
  padding: var(--spacing-lg) 0;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.hero-section h1 {
  color: var(--secondary-color);
  font-size: 3rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
}

.hero-section h2 {
  color: var(--bg-light);
  font-size: 1.5rem;
  border: none;
  display: block;
  font-weight: 400;
}

.intro-section {
  padding: var(--spacing-lg) 0;
}
.intro-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  background-color: var(--color-background-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
  border-right: 5px solid var(--color-secondary);
  color: var(--color-text-dark);
}

.partners-section {
  background-color: var(--color-background-light);
  padding: var(--spacing-lg) 0;
}

.partners-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--color-background-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-card);
}
.partners-list:hover {
  border: 1px solid var(--secondary-color);
}

.partners-list h3 {
  text-align: right;
  color: var(--color-primary);
  margin-top: var(--spacing-sm);
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 10px;
  display: block;
}

.partners-list ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-md);
}

.partners-list li {
  padding: var(--spacing-xs) 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  color: var(--color-text-dark);
  cursor: pointer;
}
.partners-list li:hover {
  background-color: rgba(173, 141, 94, 0.123);
}

.partners-list li:last-child {
  border-bottom: none;
}

.role {
  font-weight: bold;
  color: var(--color-primary);
}

.name {
  margin-right: 5px;
  font-weight: 500;
}

.application-section {
  padding: var(--spacing-lg) 0;
}
.application-section h2 {
  margin-bottom: var(--spacing-md);
  border-bottom: 3px solid var(--color-secondary);
  padding-bottom: 5px;
}

.image-placeholder {
  max-width: 400px;
  margin: 0 auto;
  background-color: var(--color-background-light);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-medium);
  text-align: center;
  border: solid 1px var(--secondary-color);
}

.image-placeholder img {
  width: 100%;
  align-items: center;
  height: auto;
  display: block;
  border-radius: var(--border-radius-sm);
  border: 1px solid #ddd;
}

/* -------------------- Responsivenesive -------------------- */
@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }

  .hero-section h2 {
    font-size: 1.8rem;
  }

  .partners-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .partners-list {
    grid-template-columns: 1fr 1fr;
  }
}

[data-animate="fade-in"] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--transition-scroll),
    transform var(--transition-scroll);
}

[data-animate="fade-in"].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-in-list"] {
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

[data-animate="fade-in-list"]:nth-child(2) {
  transition-delay: 0.1s;
}
[data-animate="fade-in-list"]:nth-child(3) {
  transition-delay: 0.2s;
}
[data-animate="fade-in-list"]:nth-child(4) {
  transition-delay: 0.3s;
}
[data-animate="fade-in-list"]:nth-child(5) {
  transition-delay: 0.4s;
}
[data-animate="fade-in-list"]:nth-child(6) {
  transition-delay: 0.5s;
}
[data-animate="fade-in-list"]:nth-child(7) {
  transition-delay: 0.6s;
}
[data-animate="fade-in-list"]:nth-child(8) {
  transition-delay: 0.7s;
}
[data-animate="fade-in-list"]:nth-child(9) {
  transition-delay: 0.8s;
}
[data-animate="fade-in-list"]:nth-child(10) {
  transition-delay: 0.9s;
}
[data-animate="fade-in-list"]:nth-child(11) {
  transition-delay: 1s;
}

[data-animate="fade-in-list"].visible {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 768px) {
}
