body {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  background: #f8fafc;
}

#categoryFilter {
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2327AFBA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center; 
    background-size: 18px;
    padding-left: 40px !important; 
    cursor: pointer;
}

.certs-table-container {
    min-height: 400px; 
}
.page-hero {
  color: #fff;
background: linear-gradient(38deg,#ffffff, #a1cac8);
padding: 90px 20px;
  text-align: center;
}
.page-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 15px;
  opacity: .9;
}
.search-section {
    max-width: 1200px;
    margin: -30px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    min-width: 280px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    border-color: #27AFBA;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: 0.3s;
}

.filter-btn.active {
    background: #27AFBA;
    color: #fff;
}

.certs-table-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    overflow-x: auto;
}

.certs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.certs-table th {
    background: #014f54;
    color: #fff;
    padding: 15px;
    text-align: right;
    border-radius: 0;
}

.certs-table tr {
    transition: 0.3s;
}

.certs-table td {
    background: #fff;
    padding: 15px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.certs-table tr:hover td {
    background: #fcfdf3;
    transform: translateY(-2px);
}

.cert-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: #e0f2fe;
    color: #0369a1;
}

.breadcrumbs {
  background: #fff;
  padding: 14px 20px;
  font-size: 14px;
}
.breadcrumbs a {
  color: #2882C5;
  text-decoration: none;
}
.breadcrumbs span {
  margin: 0 6px;
  color: #aaa;
}


.about-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.about-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.about-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
}


.about-content h2 {
  color: #014f54;
  margin-bottom: 18px;
  font-size: 26px;
}

.about-content p {
  font-size: 15px;
  line-height: 2;
  color: #444;
  margin-bottom: 20px;
}


.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat {
  background: #fcfdf3;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.stat h3 {
  color: #27AFBA;
  font-size: 32px;
  margin-bottom: 6px;
}

.stat span {
  font-size: 14px;
  color: #555;
}


.quote {
  background: #e0f2fe;
  border-right: 6px solid #27AFBA;
  padding: 20px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.9;
  color: #014f54;
}


@media (max-width: 768px) {
  .about-card {
    grid-template-columns: 1fr;
    padding: 25px;
  }
  
  .page-hero h1 {
    font-size: 28px;
  }
  .certs-table thead { display: none; } 

    .certs-table, .certs-table tbody, .certs-table tr, .certs-table td {
        display: block;
        width: 100%;
    }

    .certs-table tr {
        background: #fff;
        margin-bottom: 20px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        padding: 10px;
    }

    .certs-table td {
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        padding: 12px 10px;
        border-bottom: 1px solid #f1f5f9;
        text-align: left;
        direction: rtl;
    }

    .certs-table td:last-child { border-bottom: none; }

    .certs-table td::before {
        content: attr(data-label); 
        font-weight: bold;
        color: #27AFBA;
        font-size: 13px;
        margin-left: 15px; 
    }

    .certs-table td[data-label="اسم الشهادة"] {
        flex-direction: column; 
        align-items: flex-start;
        background: #f8fafc;
        margin: -10px -10px 10px -10px;
        padding: 15px;
        border-radius: 12px 12px 0 0;
    }
    
    .certs-table td[data-label="اسم الشهادة"]::before {
        margin-bottom: 5px;
    }
}
