@font-face {
    font-family: 'Cairo';
    src: url('/fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Cairo', Arial;
}

.formal-color {
    color: #0d3a7a;
}
.bg-formal-color {
    background-color: #0d3a7a !important;
}
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #003366;
    font-weight: 700;
}

/* === Swiper Container === */
.news-min-swiper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 3rem;
        padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background: #fff;

}


.news-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 15px;
   /* box-shadow: 0 4px 10px rgba(0,0,0,0.10);*/
    transition: box-shadow 0.3s ease;
}

    .news-card-row:hover {
        box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    }

/* Image on right side */
.news-card__img {
    flex: 0 0 40%;
    max-width: 40%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
}

    .news-card__img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        border-radius: inherit;
    }

/* Text on left */
.news-card__body {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: start;
}

/* Title */
.news-card__title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 0.75rem;
    line-height: 1.4;

}

/* Button */
.news-card__btn {
    align-self: flex-start;
    background-color: #003366;
    color: #fff;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

    .news-card__btn:hover {
        background-color: #00509e;
    }

/* Responsive: stack on mobile */
/* ✅ FORCE MOBILE STACK EVEN IN RTL */
@media (max-width: 768px) {

    /* override this: [dir="rtl"] .news-card-row { flex-direction: row-reverse; } */
    [dir="rtl"] .news-card-row,
    [dir="ltr"] .news-card-row {
        flex-direction: column !important;
    }

    /* image first */
    .news-card__img {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
        height: auto !important;
    }

        .news-card__img img {
            width: 100% !important;
            height: 190px !important;
            object-fit: cover !important;
            border-radius: 12px !important;
            display: block !important;
        }

    /* text after image */
    .news-card__body {
        order: 2 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 12px 10px 14px !important;
    }

    .news-card__btn {
        width: 100% !important;
        align-self: center !important;
        text-align: center !important;
    }

    /* optional: arrows usually look bad on mobile */
    .news-min-swiper .swiper-button-prev,
    .news-min-swiper .swiper-button-next {
        display: none !important;
    }
}





/* Swiper buttons (rounded style) */
.news-min-swiper .swiper-button-next,
.news-min-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
   /* top: 50%;*/
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.news-min-swiper .swiper-button-prev {
    left: 10px;
}

.news-min-swiper .swiper-button-next {
    right: 10px;
}

@media (hover: hover) {
    .news-min-swiper .swiper-button-next:hover,
    .news-min-swiper .swiper-button-prev:hover {
        background: rgba(0, 0, 0, 0.7);
        transform: translateY(-50%) scale(1.05);
    }
}

.news-min-swiper .swiper-pagination-bullet {
    background-color: #003366;
    opacity: 0.4;
}

.news-min-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* RTL: flip the layout */
[dir="rtl"] .news-card-row {
    flex-direction: row-reverse;
    text-align: right;
}


/* === Swiper Controls === */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

@media (hover: hover) {
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background-color: rgba(0, 0, 0, 0.7);
        transform: translateY(-50%) scale(1.05);
    }
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Pagination Bullets */
.swiper-pagination-bullet {
    background-color: #003366;
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 32px; /* smaller circle */
        height: 32px;
        top: 70%; /* adjust vertical position slightly lower */
    }

        .swiper-button-next::after,
        .swiper-button-prev::after {
            font-size: 13px; /* smaller icon */
        }
}

/* RTL Arrows */
[dir="rtl"] .swiper-button-prev {
    right: 10px;
    left: auto;
}

[dir="rtl"] .swiper-button-next {
    left: 10px;
    right: auto;
}
/*end of swipper*/
/*spinner*/
/* Overlay background */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(245, 247, 250, 0.8);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Activate when .show-spinner-active is on body */
.show-spinner-active .spinner-overlay {
    display: flex;
    opacity: 1;
}

/* Content container (centers spinner + text vertically) */
.spinner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Spinner circle animation */
.spinner-circle {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #0d3a7a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Text style */
.spinner-text {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #0d3a7a;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.3px;
}

/* Spinner rotation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*end spinner*/
.conditions {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.75rem;
    line-height: 1.8;
    color: #333;
    max-height: 60vh;
    overflow-y: auto;
}

    /* Headings */
    .conditions h2 {
        font-size: 1.1rem;
        color: #003366;
        border-bottom: 2px solid #003366;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }

    .conditions h3 {
        font-size: 1.1rem;
        color: #00558a;
        margin-top: 1.5rem;
    }

    /* List styling */
    .conditions ol {
        padding-right: 1.5rem;
    }

        .conditions ol li {
            margin-bottom: 0.75rem;
            line-height: 1.8;
        }


/*pdfs*/
.pdf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.pdf-card {
    width: 150px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
}

    .pdf-card:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .pdf-card img {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }
.hover-card {
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

    .hover-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.12);
    }

/* Image container ensures equal sizing */
.image-container {
    width: 100%;
    height: 220px; /* adjust as needed (e.g., 200px–250px) */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* The image itself */
.card-img-fixed {
    height: 100%;
    width: auto;
    object-fit: contain; /* use 'cover' if you prefer full fill */
    border-radius: 8px;
}
.card-img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* optional */
}

@media (max-width: 576px) {
    .card-img {
        width: 100%;
        max-height: none;
        object-fit: cover;
    }
}

.about-text {
    color: black;
    font-size: 1.5rem; /* base size for normal screens */
    text-align: justify;
    text-justify: inter-word;
}

/* Medium screens (tablets) */
@media (max-width: 992px) {
    .about-text {
        font-size: 0.95rem;
    }
}

/* Small screens (phones) */
@media (max-width: 576px) {
    .about-text {
        font-size: 0.9rem; /* or try 1rem if still small */
        line-height: 1.6;
    }
}
/*gallery*/
.list-group-item.active {
    background-color: #0d3a7a;
    border-color: #00509e;
    color: #fff;
}

/* Modern, responsive image grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    display: block;
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .gallery-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,.12);
    }

.gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3; /* consistent card shape */
    object-fit: cover;
    display: block;
}

/* Tidy breadcrumb spacing in RTL too */
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-left: .5rem;
    padding-right: 0;
}

/*end of gallery*/

.pdf-title {
    display: block; /* so it can wrap inside the card */
    white-space: normal;
    word-wrap: break-word; /* older name */
    overflow-wrap: anywhere; /* modern, very effective */
    text-align:center; /* or right for RTL: right; */
    direction: rtl; /* since it’s Arabic */
   
}
/*CV */

.cv-wrapper {
    width: 100%; /* always take full available width */
    max-width: 980px;
    
    margin: 30px auto;
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    font-family: "Cairo", "Noto Kufi Arabic", Tahoma, Arial;
    overflow: hidden;
}

    /* Direction + alignment by language */
    .cv-wrapper.rtl {
        direction: rtl;
    }

    .cv-wrapper.ltr {
        direction: ltr;
    }

.cv-text {
    white-space: pre-wrap;
    line-height: 2;
    font-size: 15px;
    color: #222;
}

.cv-wrapper.rtl .cv-text {
    text-align: right;
}

.cv-wrapper.ltr .cv-text {
    text-align: left;
}

/* Header */
.cv-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
    margin-bottom: 18px;
}

.cv-wrapper.rtl .cv-header {
    justify-content: flex-start;
}

.cv-wrapper.ltr .cv-header {
    justify-content: flex-start;
}

.cv-photo img {
    width: 140px;
    height: 180px;
    object-fit: fill;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: block;
    background: #fafafa;
}

@media (max-width: 576px) {
    .cv-wrapper {
        padding: 18px;
    }

    .cv-photo img {
        width: 110px;
        height: 145px;
    }
}
@media (max-width: 992px) {
    .cv-wrapper {
        min-width: auto; /* allow shrinking on small screens */
        max-width: 100%;
    }
}
.cv-nav {
    margin-bottom: 15px;
}

.cv-wrapper.rtl .cv-nav {
    text-align: right;
}

.cv-wrapper.ltr .cv-nav {
    text-align: left;
}

.cv-back-link {
    font-size: 14px;
    color: #432904;
    text-decoration: none;
    font-weight: 600;
}

    .cv-back-link:hover {
        text-decoration: underline;
    }
.pill-item {
    display: block;
    position: relative;
    padding-inline-end: 26px; /* space for arrow */
}

    .pill-item::after {
        content: "›"; /* small arrow */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        opacity: 0.6;
    }

/* Arabic (RTL): arrow on the LEFT */
html[dir="rtl"] .pill-item::after {
    left: 12px;
}

/* English (LTR): arrow on the RIGHT */
html[dir="ltr"] .pill-item::after {
    right: 12px;
}

/* Hover effect (optional but nice) */
.pill-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
}

/*end of cv*/