/* ==================================================
   About Quick Action Details
================================================== */

.about-action-details {
    background: #f8f8f8;
}

/*
   نخلي المحتوى متماسك ومركزي.
   ما نخليه يتمدد على الشاشة كلها.
*/
.about-action-details .container {
    max-width: 1050px;
}


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

.about-action-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e2e7e8;
}

.about-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;

    color: #657477;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.about-back-link:hover {
    color: #036268;
}

.about-action-title {
    margin: 0;

    color: #032f3c;

    font-size: 34px;
    font-weight: 800;
    line-height: 1.45;
}


/* ==================================================
   Description
================================================== */

.about-action-description {
    max-width: 100%;

    margin-bottom: 10px;

    color: #333;

    font-size: 16px;
    line-height: 1.95;
}

.about-action-description p {
    margin: 0 0 15px;
    line-height: 1.95;
}

.about-action-description p:last-child {
    margin-bottom: 0;
}

.about-action-description h1,
.about-action-description h2,
.about-action-description h3,
.about-action-description h4,
.about-action-description h5,
.about-action-description h6 {
    margin-top: 25px;
    margin-bottom: 12px;

    color: #032f3c;

    font-weight: 700;
    line-height: 1.5;
}

.about-action-description ul,
.about-action-description ol {
    margin: 15px 0;
    padding-inline-start: 25px;
}

.about-action-description li {
    margin-bottom: 7px;
    line-height: 1.8;
}

.about-action-description img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 22px auto;

    border-radius: 6px;
}

.about-action-description table {
    display: block;

    width: 100%;

    margin: 20px 0;

    overflow-x: auto;

    border-collapse: collapse;
}

.about-action-description th,
.about-action-description td {
    padding: 10px 12px;

    border: 1px solid #dfe4e5;

    text-align: start;
}


/* ==================================================
   Main Link
================================================== */

.about-action-main-link {
    margin-top: 25px;
    margin-bottom: 10px;
}

.about-action-main-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 16px;

    border: 1px solid #036268;
    border-radius: 5px;

    color: #036268;
    background: transparent;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: 0.2s ease;
}

.about-action-main-link a:hover {
    color: #fff;
    background: #036268;
}


/* ==================================================
   Shared Attachment Section
================================================== */

.attachment-section {
    margin-top: 42px;
}

.attachment-section + .attachment-section {
    margin-top: 45px;
}

.attachment-section-header {
    display: flex;
    align-items: center;

    margin-bottom: 18px;
    padding-bottom: 10px;

    border-bottom: 1px solid #dfe5e6;
}

.attachment-section-header h2 {
    position: relative;

    margin: 0;
    padding-inline-start: 13px;

    color: #032f3c;

    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
}

.attachment-section-header h2::before {
    content: "";

    position: absolute;

    inset-inline-start: 0;
    top: 4px;

    width: 4px;
    height: 22px;

    border-radius: 4px;

    background: #036268;
}


/* ==================================================
   PDF Documents
================================================== */

/*
   الـ Bootstrap columns الموجودة بالـ HTML
   نخليها عرض كامل حتى تظهر الوثائق كسطور
   مرتبة بدل كروت موزعة.
*/
.attachment-section .row {
    margin-left: 0;
    margin-right: 0;
}

.attachment-section .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/*
   الوثيقة صف واحد:
   Icon | Title | Actions
*/
.document-card {
    display: grid;

    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;

    gap: 15px;

    min-height: 78px;

    padding: 13px 15px;

    margin-bottom: 10px !important;

    border: 1px solid #e0e6e7;
    border-radius: 6px;

    background: #fff;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.document-card:hover {
    border-color: #bdcdcf;
    background: #fbfcfc;
}

.document-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin: 0;

    border-radius: 5px;

    background: #edf4f4;
    color: #036268;

    font-size: 21px;
}

.document-content {
    min-width: 0;
}

.document-content h3 {
    margin: 0 0 3px;

    color: #032f3c;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.document-type {
    display: block;

    color: #8a9597;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.document-actions {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0;
    padding: 0;

    border: 0;
}

.document-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 36px;

    padding: 7px 12px;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition: 0.2s ease;
}

.document-view {
    background: #036268;
    color: #fff;
}

.document-view:hover {
    background: #032f3c;
    color: #fff;
}

.document-download {
    border: 1px solid #d8e0e1;

    background: #fff;
    color: #032f3c;
}

.document-download:hover {
    border-color: #036268;

    color: #036268;
}


/* ==================================================
   Image Gallery
================================================== */

.attachment-gallery {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.attachment-image {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: 6px;

    background: #e8eeee;
}

.attachment-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.3s ease;
}

.attachment-image-overlay {
    position: absolute;
    inset: 0;

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

    background: rgba(3, 47, 60, 0.30);

    opacity: 0;

    transition: opacity 0.25s ease;
}

.attachment-image-overlay a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #fff;
    color: #032f3c;

    font-size: 15px;

    text-decoration: none;
}

.attachment-image:hover img {
    transform: scale(1.035);
}

.attachment-image:hover .attachment-image-overlay {
    opacity: 1;
}


/* ==================================================
   Videos
================================================== */

/*
   الفيديوهات تظل مرتبة داخل نفس عرض المحتوى.
   فيديو واحد يأخذ عرضاً جيداً، وأكثر من فيديو
   يظهروا بشكل منظم.
*/
.attachment-video {
    width: 100%;

    overflow: hidden;

    border: 1px solid #e0e6e7;
    border-radius: 6px;

    background: #fff;
}

.attachment-video video {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;

    object-fit: contain;
}

.attachment-video h3 {
    margin: 0;

    padding: 12px 15px;

    border-top: 1px solid #e6eaeb;

    color: #032f3c;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}


/* ==================================================
   Empty State
================================================== */

.no-attachments {
    margin-top: 35px;

    padding: 30px 20px;

    border-top: 1px solid #e0e5e6;

    text-align: center;

    color: #8a9597;
}

.no-attachments i {
    display: block;

    margin-bottom: 8px;

    color: #a5adaf;

    font-size: 28px;
}

.no-attachments p {
    margin: 0;

    font-size: 14px;
}


/* ==================================================
   RTL / LTR
================================================== */

html[dir="rtl"] .about-action-details {
    text-align: right;
}

html[dir="ltr"] .about-action-details {
    text-align: left;
}


/* ==================================================
   Tablet
================================================== */

@media (max-width: 991px) {

    .about-action-details .container {
        max-width: 100%;
    }

    .attachment-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


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

@media (max-width: 767px) {

    .about-action-title {
        font-size: 26px;
    }

    .about-action-header {
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .about-action-description {
        font-size: 15px;
        line-height: 1.85;
    }

    .about-action-description p {
        font-size: 15px;
        line-height: 1.85;
    }

    .attachment-section {
        margin-top: 35px;
    }

    .attachment-section + .attachment-section {
        margin-top: 38px;
    }

    .attachment-section-header h2 {
        font-size: 18px;
    }


    /* PDF row */

    .document-card {
        grid-template-columns: 42px minmax(0, 1fr);

        gap: 12px;

        padding: 12px;
    }

    .document-icon {
        width: 40px;
        height: 40px;

        font-size: 19px;
    }

    .document-actions {
        grid-column: 1 / -1;

        width: 100%;

        padding-top: 10px;

        border-top: 1px solid #edf0f0;
    }

    .document-actions a {
        flex: 1;
    }


    /* Images */

    .attachment-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .attachment-image-overlay {
        opacity: 1;

        background: rgba(3, 47, 60, 0.12);
    }

}


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

@media (max-width: 480px) {

    .about-action-title {
        font-size: 23px;
    }

    .attachment-gallery {
        grid-template-columns: 1fr;
    }

}




.welcome-item { height: 100%; }

.welcome-item .content{
  display:flex;
  flex-direction:column;
  height:100%;
}

.welcome-item .welcome-btn{
  margin-top:auto;
}

/* slider */

.slider-text {
  position: absolute;
  inset-inline-start: 80px;
  top: 70%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 5;
  text-align: start;
}

:dir(ltr) .slider-overlay {
  background: linear-gradient(
    to right,
    rgba(3, 47, 60, 0.85),
    rgba(3, 47, 60, 0.40),
    rgba(0, 0, 0, 0.05)
  );
}

:dir(rtl) .slider-overlay {
  background: linear-gradient(
    to left,
    rgba(3, 47, 60, 0.85),
    rgba(3, 47, 60, 0.40),
    rgba(0, 0, 0, 0.05)
  );
}


/* about section */

.about-flow-wrapper{
  width:100%;
}

.about-flow-wrapper h3{
  margin-bottom:18px;
}

.about-float-media{
  max-width:42%;
  margin-bottom:14px;
  border-radius:10px;
  overflow:hidden;
}

/* الصورة على الشمال بالعربي */
:dir(rtl) .about-float-media{
  float:left;
  margin-left:0;
  margin-right:24px;
}

/* الصورة على اليمين بالانجليزي */
:dir(ltr) .about-float-media{
  float:right;
  margin-left:24px;
  margin-right:0;
}

.about-media-element{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:520px;
  border-radius:10px;
}

.about-video-frame{
  width:min(100%,520px);
  aspect-ratio:16/9;
  border-radius:10px;
  overflow:hidden;
}

.about-video-frame iframe,
.about-float-media video{
  width:100%;
  height:100%;
  border:0;
}

/* rich text wrapper */
.about-text{
  font-size:16px;
  line-height:1.9;
  word-break:keep-all;
  overflow-wrap:normal;
  white-space:normal;
  hyphens:none;
}

:dir(rtl) .about-text{
  direction:rtl;
  unicode-bidi:plaintext;
}

:dir(ltr) .about-text{
  direction:ltr;
}

/* rich text elements */
.about-text p,
.about-text li,
.about-text blockquote{
  line-height:1.9;
  font-size:16px;
  word-break:keep-all;
  overflow-wrap:normal;
  white-space:normal;
  hyphens:none;
}

.about-text p{
  margin-bottom:14px;
}

.about-text ul,
.about-text ol{
  margin-bottom:16px;
  padding-inline-start:24px;
}

.about-text li{
  margin-bottom:8px;
}

.about-text h1,
.about-text h2,
.about-text h3,
.about-text h4,
.about-text h5,
.about-text h6{
  margin-top:20px;
  margin-bottom:12px;
  line-height:1.5;
  font-weight:700;
}

.about-text h1{ font-size:32px; }
.about-text h2{ font-size:28px; }
.about-text h3{ font-size:24px; }
.about-text h4{ font-size:20px; }
.about-text h5{ font-size:18px; }
.about-text h6{ font-size:16px; }

.about-text strong,
.about-text b{
  font-weight:700;
}

.about-text em,
.about-text i{
  font-style:italic;
}

.about-text a{
  text-decoration:underline;
  word-break:break-word;
}

.about-text blockquote{
  margin:16px 0;
  padding:12px 16px;
  border-inline-start:4px solid #0b6b7a;
  background:#f7f9fb;
  border-radius:6px;
}

.about-text img{
  max-width:100%;
  height:auto;
  border-radius:8px;
}

.about-text table{
  width:100%;
  border-collapse:collapse;
  margin:16px 0;
  display:block;
  overflow-x:auto;
}

.about-text table th,
.about-text table td{
  border:1px solid #ddd;
  padding:10px;
  text-align:start;
}

.about-text iframe{
  max-width:100%;
}

/* موبايل */
@media (max-width:991px){

  .about-float-media{
    float:none !important;
    max-width:100%;
    width:100%;
    margin:0 0 20px 0 !important;
  }

  .about-media-element,
  .about-video-frame,
  .about-float-media video{
    width:100%;
    max-width:100%;
    height:auto;
    max-height:none;
  }

}

