:root {
    --main-background: #1c2f4f;
    --complementary-background: #e9ecef;
    --button-color: #d089bd;
    --button-background: #d089bd;
    --main-border: #1c2f4f;
}

.font-bahij-mitra {
    font-family: "Bahij Mitra" !important;
}

.font-baran {
    font-family: "Baran" !important;
    font-size: 18px;
    line-height: 1;
}

.font-en {
    font-family: "Open Sans" !important;
}

.max-width-300 {
    max-width: 300px;
    overflow-wrap: break-word; /* Break long words */
    word-wrap: break-word; /* Older browsers */
    overflow: hidden; /* Hide overflow */
    white-space: normal; /* Allow normal line breaks */
    text-overflow: ellipsis;
}

.max-width-200 {
    max-width: 200px;
    overflow-wrap: break-word; /* Break long words */
    word-wrap: break-word; /* Older browsers */
    overflow: hidden; /* Hide overflow */
    white-space: normal; /* Allow normal line breaks */
    text-overflow: ellipsis;
}

/* Hide scrollbar for Chrome, Safari, and Opera */
#kt_aside_menu_wrapper::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Firefox */
#kt_aside_menu_wrapper {
    overflow: -moz-hidden-unscrollable; /* Firefox */
    scrollbar-width: none; /* Firefox */
}

/* Custom focus border for inputs */
.form-control:focus {
    border-color: #007bff; /* Change border color on focus */
}

.accordion-button {
    padding: 15px 15px !important;
}

.nav-tabs .nav-link.active {
    border: 1px solid rgb(201, 201, 201);
    border-bottom: none;
    color: rgb(36, 36, 36);
}

.nav-tabs {
    padding: 0;
}

.nav-link {
    color: rgb(151, 151, 151);
}
.numbered-list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 0;
}
.custom-table {
    padding: 6px;
    font-size: 14px;
    font-family: "XBYas" !important;
    color: #000;
}

.file {
    overflow: hidden;
    height: 280px;
    width: 210px;
    position: relative;
    cursor: pointer;
    margin: 0 15px;
    box-shadow: 0 0 25px 0.5px rgba(0, 0, 0, 0.3);
    transition: 0.5s;
    background-color: #555;
}

.file:after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-140%, -50%);
    background-color: gray;
    opacity: 0.8;
    border-radius: 50%;
    transition: 0.8s;
}

.file:hover:after {
    transform: translate(-50%, -50%);
}

.file:hover img {
    transform: translate(-50%, -50%) scale(1.3) rotate(20deg);
}

.file img {
    position: absolute;
    height: 110%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.8s;
}

.file i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-2000px, -50%);
    color: #fff;
    font-size: 30px;
    transition: 0.8s;
    transition-timing-function: ease-in;
}

.file i:hover {
    color: #007bff;
}

.file:hover i {
    transform: translate(-50%, -50%);
    transition-timing-function: ease;
}

.public-btn {
    color: #fff;
    background-color: var(--button-color);
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.5s all ease;
    border: none;
}

.public-btn:hover {
    color: #fff;
    background-color: var(--main-background);
    transform: translate(0, -5px);
}

.ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
}

.title-hover:hover {
    text-decoration: underline;
}

/*-- dep-intro --*/
.dep-intro-area {
    padding-top: 50px;
}
.dep-intro-area .dep-intro-accordion {
    margin-bottom: 30px;
}

.dep-intro-area .accordion-content {
    display: none;
    padding: 20px 25px 20px;
    margin-bottom: 0;
}

.dep-intro-area .accordion-item {
    position: relative;
    list-style-type: none;
    margin-bottom: 10px;
    display: block;
    box-shadow: 0px 0px 30px 0px rgba(221, 221, 221, 0.2588235294);
    border-radius: 5px;
}

.dep-intro-area .accordion-item:first-child {
    border-top: 0;
}

.dep-intro-area .accordion-item:last-child {
    margin-bottom: 0;
}

.dep-intro-area .accordion-link {
    width: 100%;
    display: block;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: var(--main-background);
    padding: 13px 38px 13px 20px;
    border-radius: 5px;
}

.dep-intro-area .accordion-link.active {
    color: #fff;
    background-color: var(--button-color);
}

.dep-intro-area .accordion-link.active .accordion-icon {
    color: #fff;
    opacity: 0;
}

.dep-intro-area .accordion-link.active .accordion-icon.two {
    opacity: 1;
}

.dep-intro-area .accordion-icon {
    position: absolute;
    top: 19px;
    right: 20px;
    color: var(--main-background);
    display: inline-block;
    font-size: 18px;
    opacity: 1;
    transition: 0.5s all ease;
}

.dep-intro-area .accordion-icon.two {
    opacity: 0;
}

.dep-intro-area .dep-intro-img {
    margin-bottom: 30px;
}

.dep-intro-area .accordion-child {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.dep-intro-area .accordion-child:hover {
    color: var(--button-color);
}

.dep-intro-area .child-icon {
    font-size: 8px;
    color: #28a745;
}

.dep-intro-area .dep-intro-desc {
    width: 100%;
}

.accordion-child.active {
    font-weight: bold;
    color: #d089bd;
}

.dep-intro-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 10px;
}

.dep-intro-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #d089bd;
}

.dep-intro-desc {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.pagination-area {
    text-align: center;
}

.pagination-area .pagination-list {
    padding: 0;
    margin: 0;
}

.pagination-area .pagination-item {
    list-style-type: none;
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
}

.pagination-area .pagination-link {
    display: block;
    color: var(--button-color);
    background-color: #fff;
    box-shadow: 0px 0px 20px 0px rgba(221, 221, 221, 0.5490196078);
    padding: 5px 15px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    min-width: 35px;
    height: 35px;
    border-radius: 8px 8px 0 8px !important;
}

.pagination-area .pagination-link:hover,
.pagination-area .pagination-link.active {
    color: #fff;
    outline: none;
    border: none;
    background-color: var(--button-color);
}
/* Documents Container */
.documents-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Document Row */
.document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background-color: #e7e7e7; */
    border-bottom: 1px solid var(--main-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: box-shadow 0.3s ease;
}

.document-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Document Icon */
.document-icon {
    margin-inline-end: 15px; /* Logical property for RTL/LTR */
}

.document-icon i {
    font-size: 3em;
    color: var(--main-background);
}

/* Document Info */
.document-info {
    flex: 1;
    text-align: start; /* Logical property for RTL/LTR */
}

.document-title {
    color: var(--main-background);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.document-title:hover {
    color: var(--button-color);
}

.document-date {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between icon and date */
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.document-date i {
    color: var(--button-color); /* Icon color */
}

/* Document Downloads */
.document-downloads {
    display: flex;
    align-items: center;
    gap: 30px;
}

.download-count {
    color: var(--main-background);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-count i {
    font-size: 1.2em;
    color: var(--main-background);
}

.download-icon {
    color: var(--button-color);
    text-decoration: none;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.download-icon:hover {
    color: var(--main-background);
}

/* Responsive Design */
@media (max-width: 768px) {
    .document-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .document-icon {
        margin-inline-end: 0; /* Reset margin for mobile */
        margin-block-end: 10px; /* Logical property for RTL/LTR */
    }

    .document-downloads {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    .icons {
        display: none !important;
    }
}

/* RTL-specific adjustments */
[dir="rtl"] .document-info {
    text-align: right; /* Align text to the right for RTL */
}

[dir="rtl"] .document-icon {
    margin-inline-start: 15px; /* Adjust margin for RTL */
    margin-inline-end: 15px; /* Remove end margin for RTL */
}

/* Search Container */
.search-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Search Form */
.search-form {
    width: 30%;
}

/* Search Wrapper */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--main-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Search Icon */
.search-icon {
    position: absolute;
    left: 0; /* Position icon on the left for LTR */
    color: var(--button-color);
    font-size: 20px;
    pointer-events: none; /* Ensure the icon doesn't interfere with input */
    transition: color 0.3s ease;
}

/* Search Input */
.search-input {
    flex: 1;
    padding: 10px 10px 10px 30px; /* Add padding for the icon */
    font-size: 16px;
    border: none;
    outline: none;
    color: var(--main-background);
    background-color: transparent;
    transition: color 0.3s ease;
}

.search-input::placeholder {
    color: #999;
}

/* RTL Styles */
[dir="rtl"] .search-icon {
    left: auto; /* Reset left position */
    right: 0; /* Position icon on the right for RTL */
}

[dir="rtl"] .search-input {
    padding: 10px 30px 10px 10px; /* Adjust padding for RTL */
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Search Container */
    .search-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    /* Search Form */
    .search-form {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .search-input {
        font-size: 14px;
        padding: 8px 8px 8px 28px; /* Adjust padding for smaller screens */
    }

    .search-icon {
        font-size: 18px;
    }
}

.document-detail-date::before {
    content: "\13adb";
    display: inline-block;
    color: var(--button-color);
    font-weight: bolder;
    font-size: 0.9em;
}

/* Download Count */
.document-detail-download-count {
    margin: 0 10px;
    color: var(--main-background);
    font-size: 16px;
}

.document-detail-download-count i {
    color: var(--main-background); /* Icon color */
    font-size: 18px;
}

.document-detail-download-count .font-baran {
    font-weight: bold; /* Make the number stand out */
}

/* Download Button */
.document-detail-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: var(--button-background);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.document-detail-download-icon:hover {
    background-color: var(--main-background); /* Change color on hover */
    color: var(--button-color);
}

.document-detail-download-icon i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .document-detail-downloads {
        flex-direction: row; /* Stack items vertically on small screens */
        justify-content: end;
        gap: 10px;
    }

    .document-detail-download-count {
        font-size: 14px;
    }

    .document-detail-download-icon {
        padding: 8px 12px;
        font-size: 16px;
    }
}
/* Custom Select Container */
.custom-select {
    position: relative !important;
    width: 100% !important;
    max-width: 300px !important;
}

/* Hide the default select arrow */
.custom-select #form_type {
    appearance: none !important; /* Remove default arrow */
    -webkit-appearance: none !important; /* For Safari */
    -moz-appearance: none !important; /* For Firefox */
    width: 100% !important;
    padding: 10px 36px 10px 12px !important; /* Default padding for LTR */
    font-size: 16px !important;
    border: 2px solid var(--main-border) !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: var(--main-background) !important;
    cursor: pointer !important;
    outline: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Hover and Focus Effects */
.custom-select #form_type:hover,
.custom-select #form_type:focus {
    border-color: var(--button-color) !important;
    box-shadow: 0 0 8px rgba(244, 162, 97, 0.5) !important;
}

/* Custom Arrow */
.custom-arrow {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important; /* Default position for LTR */
    transform: translateY(-50%) !important;
    pointer-events: none !important; /* Ensure the arrow doesn't interfere with clicks */
    color: var(--main-background) !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
}

/* Change arrow color on hover/focus */
.custom-select #form_type:hover ~ .custom-arrow,
.custom-select #form_type:focus ~ .custom-arrow {
    color: var(--button-color) !important;
}

/* RTL Styles */
[dir="rtl"] .custom-select #form_type {
    padding: 10px 12px 10px 36px !important; /* Adjust padding for RTL */
}

[dir="rtl"] .custom-arrow {
    right: auto !important; /* Reset right position */
    left: 16px !important; /* Position arrow on the left for RTL */
}

/* Responsive Design */
@media (max-width: 600px) {
    .custom-select #form_type {
        font-size: 14px !important;
    }
    .custom-arrow {
        font-size: 12px !important;
    }
}

.related-programs-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 3px;
}

.program-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.program-view-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    /* margin-top: 2em; */
}
@media (max-width: 768px) {
    /* Tablet and below */
    .program-view-img {
        height: auto; /* Allow height to adjust */
        max-height: 300px; /* Optional: Set a max height for smaller devices */
    }
}

@media (max-width: 480px) {
    /* Mobile devices */
    .program-view-img {
        max-height: 200px; /* Optional: Further reduce max height */
    }
}
.general-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.general-view-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.item-padding {
    padding: 30px 25px 40px;
}
.program-card-title {
    height: 60px;
    overflow: hidden;
}

.share-icons {
    margin-bottom: 30px;
}
.share-icons .left ul li {
    list-style-type: none;
    display: inline-block;
    margin-right: 3px;
}
.share-icons .left ul li:last-child {
    margin-right: 0;
}
.share-icons .left ul li span {
    display: inline-block;
    font-weight: 600;
    margin-right: 5px;
}
.share-icons .left ul li a {
    display: block;
    width: 30px;
    height: 30px;
    text-align: center;
    color: var(--button-color);
    border: 1px solid var(--main-border);
    border-radius: 50%;
    font-size: 15px;
}
.share-icons .left ul li a i {
    line-height: 30px;
}
.share-icons .left ul li a:hover {
    color: #fff;
    background-color: var(--button-color);
}
.share-icons .right {
    text-align: right;
}
.share-icons .right ul li {
    list-style-type: none;
    display: inline-block;
    margin-right: 10px;
    position: relative;
}
.share-icons .right ul li:before {
    position: absolute;
    content: ",";
    color: var(--button-color);
    top: -5px;
    right: -7px;
    font-size: 20px;
}
.share-icons .right ul li:first-child:before {
    display: none;
}
.share-icons .right ul li:last-child {
    margin-right: 0;
}
.share-icons .right ul li:last-child:before {
    display: none;
}
.share-icons .right ul li span {
    display: inline-block;
    font-weight: 600;
}
.share-icons .right ul li a {
    display: inline-block;
    color: var(--button-color);
}
.share-icons .right ul li a:hover {
    color: var(--main-background);
}

/* Jobs index */

.job-container {
    margin: 0 auto;
}

.job-heading {
    font-size: 24px;
    font-weight: bold;
    margin-top: 50px;
    text-align: center;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    border-bottom: 2px solid var(--main-border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    justify-content: space-between;
}

.job-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.job-company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-inline-end: 15px;
}

.job-info {
    flex: 1;
    text-align: start;
    padding-top: 10px;
}

.job-title {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: var(--main-background);
}

.job-title:hover {
    text-decoration: underline;
    color: var(--main-border);
}

.job-company-name {
    color: gray;
    display: flex;
    align-items: center;
}

.job-separator {
    margin: 0 5px;
    color: var(--main-border);
}

.job-end-date {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.job-end-date i {
    margin: 0 3px;
    color: var(--main-border);
}

.job-view-button {
    background: var(--button-background);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.job-view-button:hover {
    background: var(--main-background);
    color: var(--main-border);
}

[dir="rtl"] .job-info {
    text-align: right;
}

[dir="rtl"] .job-company-logo {
    margin-inline-start: 15px;
    margin-inline-end: 15px;
}

@media (max-width: 600px) {
    .job-card {
        flex-direction: column;
        text-align: center;
    }

    .job-title {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .job-company-logo {
        margin: 0 0 10px 0;
    }
}

/* Job Times (current and expired jobs) */
.job-times-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    margin-top: 20px;
}

.job-times-wrapper > h4 {
    position: relative;
    z-index: 5;
}

.job-times-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    height: 70px;
    width: 400px;
    border-radius: 15px;
    background: #f2f2ff;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.07),
        -10px -10px 20px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.job-times-container::after {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    display: block;
    height: 50px;
    width: 170px;
    border-radius: 5px;
    background: #f2f2ff;
    box-shadow: inset 2px 2px 11px #e5e5e5, inset -5px -5px 11px #ffffff;
    z-index: 1;
    top: calc(50% - 25px);
    left: calc(50% - 170px);
    transition: all 0.4s cubic-bezier(1, 0.04, 0.66, 1.23);
}

.cash-selected {
    animation: pressed-left 0.4s cubic-bezier(1, 0.04, 0.66, 1.23);
}

.card-selected {
    animation: pressed-right 0.4s cubic-bezier(1, 0.04, 0.66, 1.23);
}

.cash-selected::after {
    left: calc(50% - 170px);
}

.card-selected::after {
    left: calc(50% - 0px);
}

.job-times-container label {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #d089bd;
    width: 50%;
    cursor: pointer;
    height: 100%;
    z-index: 2;
}

.job-times-container span {
    position: relative;
    z-index: 2;
}

.job-times-container input {
    display: none;
}

.job-times-container input:checked + label {
    color: var(--main-border);
}

.job-times-container input:checked + label::after {
    display: block;
}

@keyframes pressed-left {
    0% {
        transform: scale(1, 1);
    }
    50% {
        transform: scale(0.98, 0.98);
    }
    100% {
        transform: scale(1, 1);
    }
}

@keyframes pressed-right {
    0% {
        transform: scale(1, 1);
    }
    50% {
        transform: scale(0.98, 0.98);
    }
    100% {
        transform: scale(1, 1);
    }
}

[dir="rtl"] .job-times-container::after {
    position: absolute;
    top: 0;
    right: 0;
    content: "";
    display: block;
    height: 50px;
    width: 170px;
    border-radius: 5px;
    background: #f2f2ff;
    box-shadow: inset 2px 2px 11px #e5e5e5, inset -5px -5px 11px #ffffff;
    z-index: 1;
    top: calc(50% - 25px);
    right: calc(50% - 170px);
    transition: all 0.4s cubic-bezier(1, 0.04, 0.66, 1.23);
}

[dir="rtl"] .cash-selected::after {
    right: calc(50% - 170px);
}

[dir="rtl"] .card-selected::after {
    right: calc(50% - 0px);
}
