/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
*/

/*Mohammad Ashraf*/
@font-face {
    font-family: 'NotoSans';
    src: url('/css/fonts/NotoSansArabic-VariableFont_wdth,wght.ttf') format('ttf');
}

.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;
}


.table-container {
    width: 90%;
    max-width: 1000px;
    overflow-x: auto;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    text-align:center;
}

thead {
    background: #4a90e2;
    color: #fff;
}

th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eaeaea;
}

tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

tbody tr:hover {
    background: #f1f7ff;
    transition: background 0.3s ease;
}

th {
    position: sticky;
    top: 0;
}

caption {
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }
}


.portfolio-filters .filter-item {
    cursor: pointer;
    display: inline-block;
    margin: 0 10px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .portfolio-filters .filter-item:hover {
        background-color: #f0f0f0;
    }

    .portfolio-filters .filter-item.active {
        background-color: #007bff;
        color: #fff;
        border-color: #007bff;
    }
/* Custom card styling */
.event-card {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    margin-bottom: 20px;
}

    .event-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    }

/* For infinite scroll loading spinner */
#loading {
    text-align: center;
    margin: 20px 0;
    display: none;
}


/* Styling for the gallery images */
.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Modal (lightbox) Styling */
.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .modal-container:target {
        display: flex;
    }

.modal-content {
    max-width: 80%;
    max-height: 80vh;
    margin: auto;
    background-color: white;
}

    .modal-content img {
        width: 100%;
        height: auto;
    }

/* Next and Previous Arrow */
.arrow {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
}

.arrow-left {
    left: 10px;
    transform: translateY(-50%);
}

.arrow-right {
    right: 10px;
    transform: translateY(-50%);
}

/* Gallery Layout - 3 Columns */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

    .gallery img {
        cursor: pointer;
    }

/* PDF Gallery Container */
.pdf-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* PDF Box */
.pdf-box {
    width: 150px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .pdf-box:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.pdf-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 8px;
}

/* Modal (Lightbox) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    direction: ltr; /* Ensures iframe renders correctly */
}

    .modal iframe {
        width: 80%;
        height: 80%;
        border: none;
    }

.close {
    position: absolute;
    top: 20px;
    left: 30px; /* RTL alignment */
    color: white;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
}

.maqal{
    font-family:NotoSans;
    font-style:normal;
    font-size-adjust:0.58;
}

.definition {
    font-family: NotoSans;
    font-style: oblique;
    color:darkslategray;
}

table, input, .form-control {
    color: #000000;
    font-weight: bold;
}


/* Style for the outer container */
div[style="display:inline-block;"] {
    display: flex; /* Enable horizontal alignment */
    flex-wrap: wrap; /* Allow wrapping if items overflow */
    gap: 16px; /* Add spacing between items */
    justify-content: flex-start; /* Align items to the left */
}

/* Style for the individual PDF gallery container */
.pdf-gallery {
    display: inline-block; /* Keep gallery items inline */
    text-align: center; /* Center the content */
}

/* Style for individual PDF boxes */
.pdf-box {
    display: flex;
    flex-direction: column; /* Stack the thumbnail and text vertically */
    align-items: center; /* Center the thumbnail and text */
    width: 500px; /* Fixed width for the box */
}

/* Style for the canvas (thumbnail) */
.pdf-thumbnail {
    width: 500px;
    height: 500px;
    cursor: pointer; /* Indicate clickable thumbnails */
}

/* Style for the text below the thumbnail */
.pdf-box p {
    width: inherit; /* Match the width of the container */
    word-wrap: break-word; /* Wrap text if it's too long */
    margin-top: 8px; /* Add space between the thumbnail and text */
}



/* Banner container */
.banner {
    width: 100%; /* Full width */
    background: linear-gradient(90deg, #e0e0eb, #f1caa9); /* Beautiful gradient */
    padding: 20px 0; /* Top and bottom padding */
    text-align: center; /* Center-align the title */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin-bottom: 10px;
}

/* Title styling */
.banner-title {
    color: white; /* Text color */
    font-size: 2rem; /* Adjust size as needed */
    font-weight: bold; /* Bold text */
    text-transform: uppercase; /* Make text uppercase for emphasis */
    margin: 0; /* Remove default margin */
    letter-spacing: 2px; /* Add spacing between letters */
}


/* Container for the table */
.delete-table-container {
    max-width: 700px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Table styles */
.delete-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.delete-table-header {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
}

.delete-table-col {
    font-size: 1rem;
    color: #721c24;
    padding: 12px 20px;
}

.delete-table-field {
    font-weight: bold;
    color: #6c757d;
}

.delete-table tbody tr:hover {
    background-color: rgba(255, 240, 240, 0.9);
    transition: background-color 0.3s ease;
}

/* Header and subheader */
.delete-header {
    text-align: center;
    margin-bottom: 20px;
}

.delete-subheader {
    text-align: center;
}

/* Buttons */
.delete-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    border: none;
}

.delete-btn-danger {
    background: linear-gradient(45deg, #dc3545, #bd2130);
    color: white;
}

    .delete-btn-danger:hover {
        background: #c82333;
    }

.delete-btn-secondary {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
}

    .delete-btn-secondary:hover {
        background: #545b62;
    }

/* Action container */
.delete-action-container {
    margin-top: 20px;
}
