@font-face {
    font-family: DIN Next Regular;
    src: url("/fonts/fontawesome/Linotype - DIN Next LT Arabic Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: DIN Next Bold;
    src: url("/fonts/fontawesome/Linotype - DIN Next LT Arabic Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal
}

body {
    font-family: DIN Next Regular, sans-serif
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9cebc8, #6dd5b0);
    border: none;
    box-shadow: 0 8px 30px #9cebc866;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s cubic-bezier(.25, .8, .25, 1);
    position: relative
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px #9cebc899
}

.chatbot-toggle:active {
    transform: scale(.95)
}

.chatbot-toggle .chat-icon {
    display: block
}

.chatbot-toggle .close-icon,
.chatbot-toggle.active .chat-icon {
    display: none
}

.chatbot-toggle.active .close-icon {
    display: block
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    inset-inline-start: -5px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    display: none
}

.chatbot-badge.show {
    display: block;
    animation: badgePulse 1s infinite
}

@keyframes badgePulse {

    0%,
    to {
        transform: scale(1)
    }

    50% {
        transform: scale(1.2)
    }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    inset-inline-end: 0;
    width: 400px;
    height: 600px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px #0000004d;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp .4s cubic-bezier(.25, .8, .25, 1)
}

.chatbot-window.active {
    display: flex
}

.chatbot-window.minimized {
    height: 60px
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(.95)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #2f3133, #66686a);
    color: #fff;
    border: 2px solid #8a8c8f
}

.chatbot-header {
    background: linear-gradient(135deg, #2f3133, #66686a);
    color: #fff;
    border: 2px solid #8a8c8f;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #8a8c8f;
    flex-shrink: 0
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.bot-info h3 {
    font-size: 16px;
    margin-bottom: 3px
}

.status {
    color: #aebdbb;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: statusPulse 2s infinite
}

@keyframes statusPulse {

    0%,
    to {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

.header-actions {
    display: flex;
    gap: 8px
}

.header-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff1a;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s
}

.header-btn:hover {
    background: #e57e3a33
}

.quick-actions {
    display: flex;
    gap: 2px;
    justify-content: center;
    padding: 4px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
    scrollbar-width: none
}

.quick-actions::-webkit-scrollbar {
    display: none
}

.quick-action {
    padding: 8px;
    background: #8a8c8f;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .3s;
    flex-shrink: 0
}

.quick-action:hover {
    background: #9cebc8;
    border-color: #9cebc8;
    color: #002b28;
    transform: translateY(-2px)
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #e9ecef
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #9cebc8;
    border-radius: 3px
}

.message {
    display: flex;
    gap: 10px;
    animation: messageSlide .3s ease
}

@keyframes messageSlide {
    0% {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.bot-message {
    align-self: flex-start
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #9cebc8, #6dd5b0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002b28;
    font-size: 18px;
    font-weight: 700
}

.message-content {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    gap: 5px
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 14px
}

.bot-message .message-bubble {
    background: #fff;
    color: #212529;
    border-end-end-radius: 4px;
    box-shadow: 0 2px 8px #00000014
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #9cebc8, #6dd5b0);
    color: #002b28;
    border-end-start-radius: 4px
}

.message-bubble p {
    margin: 0 0 8px
}

.message-bubble p:last-child {
    margin-bottom: 0
}

.message-bubble ul {
    margin: 8px 0;
    padding-inline-start: 20px
}

.message-bubble li {
    margin: 5px 0
}

.message-time {
    font-size: 11px;
    color: #6c757d;
    align-self: flex-end
}

.user-message .message-time {
    align-self: flex-start
}

.send-btn {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: #fff
}

.send-btn:hover {
    box-shadow: 0 4px 12px #ff8c4266
}

button:not(.header-btn):not(.action-btn):not(.send-btn) {
    background: #ff8c42;
    color: #fff
}

.send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ffb072, #f3741f);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    flex-shrink: 0
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px #9cebc866
}

.send-btn:active {
    transform: scale(.95)
}

.send-btn:disabled {
    opacity: .5;
    cursor: not-allowed
}

.emoji-picker {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto
}

.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 24px
}

.emoji-grid>* {
    flex: 0 0 calc(10% - 4.5px);
    max-width: calc(10% - 4.5px);
    min-width: calc(10% - 4.5px)
}

.emoji-grid span {
    cursor: pointer;
    transition: transform .2s
}

.emoji-grid span:hover {
    transform: scale(1.3)
}

.welcome-message .message-bubble {
    background: #fff;
    color: #212529;
    border: 2px solid #9a9c9e
}

.bot-info h3 {
    color: var(--accent-orange)
}

.bottom-nav-extended {
    position: fixed;
    bottom: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    background: rgba(81, 76, 82, 0.7) !important;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px 5px;
    border-top: 1px solid rgba(229, 126, 58, .2);
    z-index: 1000;
    box-shadow: 0 -5px 20px #0000004d
}

.bottom-nav-extended>* {
    flex: 0 0 calc(10% - 1.8px);
    max-width: calc(10% - 1.8px);
    min-width: calc(10% - 1.8px)
}

.nav-item-ext {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 10px;
    transition: all .3s ease;
    color: #c9c9c9;
    position: relative
}

.nav-item-ext:hover {
    background: #ffa25a29;
    color: #c6c6c6;
    transform: translateY(-2px)
}

.nav-item-ext.active {
    background: #ffa25a29;
    color: #c6c6c6
}

.nav-item-ext svg {
    flex-shrink: 0
}

.nav-item-ext span {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap
}

.nav-item-ext.nav-more:after {
    content: "";
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: pulse 2s infinite
}

.extended-menu-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease
}

.extended-menu-popup.active {
    pointer-events: auto;
    opacity: 1
}

.extended-menu-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000c;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px)
}

.extended-menu-content {
    position: absolute;
    bottom: 60px;
    inset-inline-end: 0;
    inset-inline-start: 0;
    max-height: 75vh;
    background: var(--primary-dark);
    border-radius: 25px 25px 0 0;
    padding: 25px 20px;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.25, .8, .25, 1);
    overflow-y: auto;
    box-shadow: 0 -10px 40px #00000080
}

.extended-menu-popup.active .extended-menu-content {
    transform: translateY(0)
}

.extended-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(229, 126, 58, .2)
}

.extended-menu-header h3 {
    color: var(--accent-teal);
    font-size: 20px;
    font-weight: 700
}

.close-extended-menu {
    background: #ffffff1a;
    border: none;
    color: var(--text-white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all .3s
}

.close-extended-menu:hover {
    background: var(--accent-teal);
    color: var(--primary-dark);
    transform: rotate(90deg)
}

.extended-menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px
}

.extended-menu-grid>* {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-width: calc(50% - 10px)
}

.extended-menu-section h4 {
    color: var(--accent-teal);
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600
}

.extended-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #ffffff0d;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-white);
    transition: all .3s;
    border: 1px solid transparent;
    margin-bottom: 8px
}

.extended-menu-link:hover {
    background: #ee8b4a1a;
    border-color: #e57e3a;
    transform: translate(-3px);
    color: #fff
}

.extended-menu-link .link-icon {
    font-size: 22px;
    flex-shrink: 0
}

.extended-menu-link span:last-child {
    font-size: 14px;
    font-weight: 500
}

.extended-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1)
}

.extended-quick-actions>* {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    min-width: calc(50% - 5px)
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--accent-teal);
    color: var(--primary-dark);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all .3s
}

.quick-action-btn:hover {
    background: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #9cebc84d
}

.extended-menu-content::-webkit-scrollbar {
    width: 6px
}

.extended-menu-content::-webkit-scrollbar-track {
    background: #0000001a
}

.extended-menu-content::-webkit-scrollbar-thumb {
    background: var(--accent-teal);
    border-radius: 3px
}

@media (max-width: 1024px) {
    .bottom-nav-extended>* {
        flex: 0 0 calc(20% - 20px);
        max-width: calc(20% - 20px);
        min-width: calc(20% - 20px)
    }

    .nav-item-ext:nth-child(n+6) {
        display: none
    }

    .nav-item-ext.nav-more {
        display: flex
    }
}

@media (max-width: 768px) {
    .bottom-nav-extended {
        padding: 6px 3px
    }

    .bottom-nav-extended>* {
        flex: 0 0 calc(20% - 20px);
        max-width: calc(20% - 20px);
        min-width: calc(20% - 20px)
    }

    .nav-item-ext {
        padding: 6px 2px
    }

    .nav-item-ext span {
        font-size: 9px
    }

    .nav-item-ext svg {
        width: 18px;
        height: 18px
    }

    .extended-menu-grid>* {
        flex: 1 1 auto
    }

    .extended-menu-content {
        padding: 20px 15px;
        max-height: 80vh
    }

    .extended-quick-actions>* {
        flex: 1 1 auto
    }

    body {
        padding-top: 60px;
        height: 100vh
    }
}

@media (max-width: 480px) {
    .bottom-nav-extended>* {
        flex: 0 0 calc(16.6667% - (25px * 5 / 6));
        max-width: calc(16.6667% - (25px * 5 / 6));
        min-width: calc(16.6667% - (25px * 5 / 6))
    }

    .nav-item-ext span {
        font-size: 8px
    }

    .extended-menu-header h3 {
        font-size: 18px
    }

    .extended-menu-link {
        padding: 10px
    }

    .quick-action-btn {
        font-size: 12px;
        padding: 10px
    }
}

.bottom-nav {
    display: none
}

.extended-menu-note {
    background: #8a8c8f33;
    border: 1px solid #ffa25ad1;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center
}

.extended-menu-note p {
    color: var(--accent-teal);
    font-size: 12px;
    margin: 0;
    line-height: 1.5
}

.extended-menu-link.main-page {
    background: #9cebc814;
    border: 1px solid rgba(229, 126, 58, .2)
}

@media (max-width: 768px) {
    .nav-item-ext span {
        font-size: 12.5px;
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .bottom-nav-extended {
        justify-content: space-evenly
    }
}

@media (max-width: 380px) {
    .bottom-nav-extended {
        padding: 5px 2px
    }

    .bottom-nav-extended>* {
        flex: 0 0 calc(20% - 20px);
        max-width: calc(20% - 20px);
        min-width: calc(20% - 20px)
    }

    .nav-item-ext {
        padding: 5px 1px
    }

    .nav-item-ext svg {
        width: 16px;
        height: 16px
    }

    .nav-item-ext span {
        font-size: 7.5px
    }

    .nav-item-ext:nth-child(n+6):not(.nav-more) {
        display: none
    }
}

.nav-item-ext:nth-child(-n+9) {
    position: relative
}

.nav-item-ext:nth-child(-n+9):hover:before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-end: 50%;
    transform: translate(-50%);
    width: 30px;
    height: 2px;
    background: #f3741f;
    border-radius: 2px
}

@media (max-width: 1024px) and (min-width: 769px) {
    .bottom-nav-extended>* {
        flex: 0 0 calc(20% - 20px);
        max-width: calc(20% - 20px);
        min-width: calc(20% - 20px)
    }

    .nav-item-ext:nth-child(n+6):not(.nav-more) {
        display: none
    }

    .nav-item-ext.nav-more {
        display: flex
    }
}

@media (min-width: 991px) {
    .bottom-nav-extended {
        padding: 10px 20px;
        max-width: 1400px;
        margin: 0 auto;
        width: min-content;
        inset-inline-end: 74%;
        transform: translate(-45%);
        border-radius: 20px 20px 0 0
    }

    .nav-item-ext {
        padding: 10px 8px
    }

    .nav-item-ext span {
        font-size: 11px
    }

    .sidebar {
        width: auto !important;
        padding: 5px 10px !important
    }

    .nav-icons {
        justify-content: space-evenly
    }

    .sidebar-nav-btn {
        height: 12% !important;
        width: auto !important
    }

    .content-section.active {
        padding: 10vh 25vh 11vh 18vh !important;
    }
}

.nav-icons {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    width: 100%;
    align-items: center;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 10px 0
}

.nav-icons::-webkit-scrollbar {
    display: none
}

.sidebar-nav-btn {
    width: 66%;
    height: 7%;
    border-radius: 50%;
    background: transparent !important;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px !important;
    position: relative
}

.sidebar-nav-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor
}

.sidebar-nav-btn:hover {
    background: #f37521 !important;
    color: var(--accent-teal)
}

.sidebar-nav-btn.active {
    background: #f37521 !important;
    color: var(--primary-dark);
    box-shadow: 0 0 15px #9cebc84d
}

.sidebar-nav-btn:after {
    content: attr(title);
    position: absolute;
    inset-inline-start: 70px;
    background: var(--accent-teal);
    color: var(--primary-dark);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 1000
}

.sidebar-nav-btn:hover:after {
    opacity: 1
}

.back-home-btn {
    margin-top: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff1a;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s
}

.back-home-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark)
}

.back-home-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor
}

.search-bar {
    position: fixed;
    top: 70px;
    inset-inline-end: 50%;
    transform: translate(-50%) translateY(-150%);
    width: 90%;
    max-width: 500px;
    z-index: 999;
    transition: transform .4s ease
}

.search-bar input {
    width: 85%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: transparent;
    color: var(--text-white);
    font-size: 16px;
    font-family: inherit;
    box-shadow: var(--shadow)
}

.content-area {
    flex: 1;
    position: relative;
    padding: 0;
    background: transparent;
    overflow: hidden
}

.content-section {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .5s cubic-bezier(.25, .8, .25, 1);
    overflow-y: auto;
    padding: 40px
}

.content-section.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 70px 94px 0 10px;
    height: 95%
}

[dir="ltr"] .care-input-select {
    background-position: right 15px center !important;
    padding-left: 15px !important;
    padding-right: 40px !important;
}

/* --- حقل رفع الملف المخصص --- */
.custom-file-input {
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    margin-bottom: 15px;
    flex-direction: row-reverse;
}

.custom-file-input .file-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    padding: 11.2px;
}

.custom-file-input .file-btn {
    flex: 0 0 25%;
    background: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 0 10px 10px 0;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    font-size: 0.85rem;
    white-space: nowrap;
    height: 100%;
}

[dir="ltr"] .custom-file-input {
    flex-direction: row;
}

[dir="ltr"] .custom-file-input .file-name {
    text-align: left;
}

[dir="ltr"] .custom-file-input .file-btn {
    border-radius: 10px 0 0 10px;
}

.custom-file-input .file-btn:hover {
    background: #d66418;
}

.main-header {
    background: transparent !important;
    border-bottom: none !important;
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    width: 100%;
    z-index: 998;
    transition: all .3s ease
}

.main-header.scrolled {
    border-bottom: 1px solid rgba(229, 126, 58, .3) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: #66686ad9 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important
}

.content-section::-webkit-scrollbar {
    width: 6px
}

.content-section::-webkit-scrollbar-track {
    background: #0000001a
}

.content-section::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px
}

.section-header {
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.custom-title,
.section-header h1 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 40px 15px;
    ;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    border: 2px solid var(--accent-orange);
    /* background-color: #0000004d; */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    color: #fff;
    /* padding: 12px 32px; */
    /* border-radius: 50px; */

    font-size: 30px;
    font-weight: bold;

    position: relative;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.35);

    margin: 20px;
    transition: all 0.3s ease;
}

/* .custom-title:hover,
.section-header h1:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
} */

@media (max-width: 768px) {

    .custom-title,
    .section-header h1 {
        font-size: 24px !important;
        padding: 10px 24px !important;
    }
}

.section-header p {
    color: #fff;
    font-size: 16px
}

.sidebar {
    width: 4%;
    background: #4a4c4f;
    position: absolute;
    top: 15%;
    inset-inline-start: 27px;
    height: fit-content;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-inline-end: 1px solid var(--border-color);
    z-index: 100;
    padding: 5px 0
}

.header-box h1 {
    color: var(--accent-orange-dark)
}

.text-block h3 {
    color: #ff7826
}

.extended-menu-content {
    background: #4f5153
}

.extended-menu-link {
    background: #66686a
}

#home-view {
    padding: 0 !important
}

#main-container {
    flex: 1;
    position: relative;
    overflow: hidden
}

#menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    --brand-gray: #66686a;
    --brand-orange: #f3741f;
    --menu-mid: #4f5153;
    --menu-panel: #66686a;
    --menu-card: #6f7173;
    --menu-border: rgba(255, 255, 255, .12);
    --menu-text: rgba(255, 255, 255, .95);
    --menu-dim: rgba(255, 255, 255, .72);
    background: var(--menu-mid)
}

#menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    --brand-gray: #66686a;
    --brand-orange: #f3741f;
    --menu-mid: #4f5153;
    --menu-panel: #66686a;
    --menu-card: #6f7173;
    --menu-border: rgba(255, 255, 255, .12);
    --menu-text: rgba(255, 255, 255, .95);
    --menu-dim: rgba(255, 255, 255, .72);
    background: var(--menu-mid)
}

#menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
    display: block
}

#menu-overlay .menu-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding-top: 0;
    padding-bottom: 0
}

#menu-overlay .menu-brand img {
    height: 44px;
    width: auto;
    display: block
}

#menu-overlay .menu-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff14;
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--menu-text);
    font-size: 22px;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease
}

#menu-overlay .menu-close:hover {
    transform: rotate(90deg);
    background: #f3741f33;
    border-color: #f3741f8c;
    display: flex;
    justify-content: center;
}

#menu-overlay .menu-body {
    background: var(--menu-mid);
    padding: 18px 22px;
    overflow: auto;
    min-height: 0
}

#menu-overlay .menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 0;
    width: 100%
}

.menu-grid>* {
    flex: 0 0 calc(33% - 15px);
    max-width: calc(32% + -0px);
    min-width: calc(25% - 15px)
}

.menu-grid-2>* {
    flex: 0 0 calc(50% - 12.5px);
    max-width: calc(50% - 12.5px);
    min-width: calc(50% - 12.5px)
}

.menu-card {
    background: #ffffff0d;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 140, 66, .2)
}

.menu-card:hover {
    border-color: #ff8c42;
    background: #ff8c421a
}

.menu-card:hover h3,
.menu-card:hover .menu-card-icon {
    color: #fff
}

.menu-card-icon {
    font-size: 35px
}

.menu-card h3 {
    font-size: 18px
}

.menu-grid {
    display: flex;
    flex-wrap: wrap
}

[dir=ltr] .menu-grid {
    flex-direction: row-reverse
}

#menu-overlay .menu-card {
    height: 128px;
    padding: 18px 16px
}

#menu-overlay .menu-card {
    height: 128px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    text-decoration: none;
    background: var(--menu-card);
    border: 1px solid var(--menu-border);
    color: var(--menu-text);
    border-radius: 14px;
    box-shadow: 0 10px 26px #00000038;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease
}

#menu-overlay .menu-card:hover,
#menu-overlay .menu-card:focus-visible {
    transform: translateY(-2px);
    background: var(--brand-orange);
    border-color: #f3741fd9;
    box-shadow: 0 14px 32px #00000047;
    outline: none
}

#menu-overlay .card-ico {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    place-items: center;
    color: #ffffffeb;
    transition: background .18s ease, border-color .18s ease, color .18s ease
}

#menu-overlay .card-ico svg {
    width: 55px;
    height: 55px
}

#menu-overlay .card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: var(--menu-text);
    transition: color .18s ease
}

#menu-overlay .menu-card:hover .card-ico,
#menu-overlay .menu-card:focus-visible .card-ico {
    color: #fff
}

#menu-overlay .menu-card:hover .card-title,
#menu-overlay .menu-card:focus-visible .card-title {
    color: #fff
}

#menu-overlay .menu-card.is-active {
    background: var(--brand-orange);
    border-color: #f3741fd9
}

#menu-overlay .menu-card.is-active .card-ico,
#menu-overlay .menu-card.is-active .card-title {
    color: #fff
}

#menu-overlay .menu-footer,
.page-footer {
    background: #66686a;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 6px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #fff
}

.page-footer {
    position: fixed;
    bottom: 0;
    width: 100%
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 5px
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 6px
}

#menu-overlay .menu-footer a,
.page-footer a {
    color: #fff;
    text-decoration: none;
    transition: color .18s ease
}

#menu-overlay .menu-footer a:hover,
.page-footer a:hover {
    color: var(--brand-orange)
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff1a;
    font-size: 14px
}

.footer-social-icon {
    margin: 0
}

.social-icon:hover {
    background: #fff3
}

#menu-overlay .menu-footer .sep,
.page-footer .sep,
#menu-overlay .menu-footer .muted,
.page-footer .muted {
    opacity: 1
}

@media (max-width: 980px) {
    #menu-overlay .menu-grid>* {
        flex: 1 1 auto
    }
}

.video-controls {
    position: absolute;
    bottom: 40px;
    inset-inline-start: 40px;
    z-index: 20;
    display: flex;
    gap: 10px
}

.video-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: #0000004d;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition)
}

.video-control-btn:hover {
    background: var(--primary);
    border-color: var(--primary)
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width: 768px) {

    #menu-overlay .menu-footer,
    .page-footer {
        justify-content: center;
        font-size: 10px;
        z-index: 1000;
        padding: 2%
    }

    .content-section.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        padding: 53px 70px 0 10px;
        height: 94%
    }

    .video-controls {
        bottom: 120px !important;
        inset-inline-start: 20px !important
    }

    .section-header h1 {
        font-size: 22px
    }

    .section-header p {
        font-size: 14px
    }

    .content-section.active {
        top: 6%;
        overflow: auto
    }

    .content-section-overview,
    .content-section-application {
        overflow-y: auto !important
    }

    .form-row>* {
        flex: 1 1 auto
    }

    .reasons-grid>* {
        flex: 0 0 calc(100% + -0px);
        max-width: calc(100% + -0px);
        min-width: calc(100% + -0px)
    }

    .opportunities-filters {
        overflow-x: auto
    }

    .glass-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: auto !important
    }

    .content-body,
    .values-container,
    .files-list,
    .content-body-services,
    .service-detail-layout,
    .products-grid,
    .maintenance-services,
    .ev-content,
    .prayer-features,
    .loyalty-content,
    .digital-services,
    .opportunities-grid,
    .space-types,
    .benefits-showcase,
    .requirements-content,
    .services-showcase,
    .success-stories,
    .support-content,
    .faq-container {
        flex: 1;
        display: block;
        height: auto;
        overflow-y: auto
    }

    .value-card,
    .file-item,
    .product-category,
    .maint-card,
    .prayer-item,
    .how-it-works,
    .digital-card,
    .opportunity-card,
    .type-card {
        margin-bottom: 20px
    }

    .content-body::-webkit-scrollbar-thumb,
    .values-container::-webkit-scrollbar-thumb,
    .files-list::-webkit-scrollbar-thumb,
    .content-body-services::-webkit-scrollbar-thumb,
    .service-detail-layout::-webkit-scrollbar-thumb,
    .maintenance-services::-webkit-scrollbar-thumb,
    .products-grid::-webkit-scrollbar-thumb,
    .ev-content::-webkit-scrollbar-thumb,
    .prayer-features::-webkit-scrollbar-thumb,
    .loyalty-content::-webkit-scrollbar-thumb,
    .digital-services::-webkit-scrollbar-thumb,
    .opportunity-grid::-webkit-scrollbar-thumb,
    .space-types::-webkit-scrollbar-thumb,
    .benefits-showcase::-webkit-scrollbar-thumb,
    .requirements-content::-webkit-scrollbar-thumb,
    .services-showcase::-webkit-scrollbar-thumb,
    .success-stories::-webkit-scrollbar-thumb,
    .support-content::-webkit-scrollbar-thumb,
    .faq-container::-webkit-scrollbar-thumb {
        border-radius: 2px;
        background: #57595b6e
    }

    .content-body::-webkit-scrollbar,
    .values-container::-webkit-scrollbar,
    .files-list::-webkit-scrollbar,
    .content-body-services::-webkit-scrollbar,
    .service-detail-layout::-webkit-scrollbar,
    .maintenance-services::-webkit-scrollbar,
    .products-grid::-webkit-scrollbar,
    .ev-content::-webkit-scrollbar,
    .prayer-features::-webkit-scrollbar,
    .loyalty-content::-webkit-scrollbar,
    .digital-services::-webkit-scrollbar,
    .opportunities-grid::-webkit-scrollbar,
    .space-types::-webkit-scrollbar,
    .benefits-showcase::-webkit-scrollbar,
    .requirements-content::-webkit-scrollbar,
    .services-showcase::-webkit-scrollbar,
    .success-stories::-webkit-scrollbar,
    .support-content::-webkit-scrollbar,
    .faq-container::-webkit-scrollbar {
        width: 4px
    }
}

@media (max-width: 576px) {
    .video-controls {
        bottom: 90pxv !important;
        inset-inline-start: 16px !important
    }
}

.bg-img {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    bottom: 0;
    background-image: url(/images/slideDark.png);
    background-size: 100% 100%;
    background-position: center;
    background-attachment: fixed;
    z-index: 0
}

@media (max-width: 767px) {
    .bg-img {
        background-image: url(/images/slideDarkMobile.png);
        background-size: contain
    }
}

.bg-img:before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4a4c4fb3, #494b4e7f, #4a4c4fb3)
}

.glass-card {
    background: #57595b6e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 25px 50px #0000004d;
    position: relative;
    overflow: hidden
}

.glass-card:before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent)
}

.icon-btn {
    font-size: 15px
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #fff
}

.breadcrumb a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: .3s
}

.breadcrumb a:hover {
    color: var(--accent-orange-light)
}

.section-header:after {
    display: none !important;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #66686a99;
    color: #ededed;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(229, 126, 58, .3)
}

.search-bar {
    position: fixed;
    top: 88px;
    inset-inline-end: 50%;
    transform: translate(-50%) translateY(-150%);
    width: 90%;
    max-width: 500px;
    z-index: 999;
    transition: transform .4s ease
}

.search-bar.active {
    transform: translate(-50%) translateY(0)
}

.search-bar input {
    width: 78%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: transparent;
    color: var(--text-white);
    font-size: 10px;
    font-family: inherit;
    box-shadow: var(--shadow)
}

.search-close-btn {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px
}

.search-close-btn {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: #00000040;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: flex;
    flex-wrap: wrap;
    place-items: center;
    cursor: pointer;
    z-index: 2
}

.search-close-btn:hover {
    background: #f3741f40;
    border-color: #f3741f8c
}

.search-bar input::placeholder {
    color: #c9c9c9
}

.search-results {
    background: var(--primary-medium);
    border-radius: 15px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    display: none
}

.search-results.active {
    display: block
}

.search-result-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: background .3s
}

.search-result-item:hover {
    background: #9cebc81a
}

.search-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #00000073;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
    z-index: 99998
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .25s ease, visibility 0s
}

.header-search {
    position: relative;
    width: min(560px, 100%)
}

.header-search input {
    width: 100%;
    padding: 12px 48px 12px 18px
}

.header-search input {
    width: 100%;
    padding: 12px 48px 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: #0000002e;
    color: #fff;
    box-shadow: 0 12px 35px #00000047;
    outline: none
}

.header-search .search-close-btn {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px
}

.header-search input::placeholder {
    color: #ffffffb3
}

.header-search .search-close-btn {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: #00000038;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: flex;
    flex-wrap: wrap;
    place-items: center;
    cursor: pointer
}

.header-search .search-results {
    position: absolute;
    top: calc(100% + 10px)
}

.header-search .search-results {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    inset-inline-start: 0;
    background: #0000008c;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000
}

.header-search .search-results.active {
    display: block
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(0, 43, 40, .95) 0%, rgba(0, 43, 40, .7) 50%, transparent 100%), center/cover;
    z-index: -1
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        inset-inline-start: 0;
        inset-inline-end: 0;
        top: auto;
        width: 100%;
        height: 64px;
        background: #66686a;
        border-radius: 0;
        border-inline-end: none;
        border-top: 1px solid rgba(229, 126, 58, .2);
        padding: 4px 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000
    }

    .nav-icons {
        flex-direction: row;
        gap: 4px;
        width: 100%;
        justify-content: space-around;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none
    }

    .nav-icons::-webkit-scrollbar {
        display: none
    }

    .sidebar-nav-btn {
        width: 79px;
        height: 50px;
        border-radius: 10px;
        padding: 5px 7px !important;
        background: transparent !important
    }

    .sidebar-nav-btn svg {
        width: 22px;
        height: 22px
    }

    .sidebar-nav-btn:after {
        display: none
    }

    .back-home-btn {
        display: none
    }

    .content-section {
        padding: 20px 15px 90px
    }

    .content-section.active {
        padding: 10px 15px
    }

    .sidebar-nav-btn {
        flex-direction: column
    }

    .sidebar-nav-btn .tab-label {
        display: block;
        font-size: 11px;
        margin-top: 2px;
        color: #c9c9c9
    }

    .sidebar-nav-btn.active .tab-label {
        color: #fff
    }

    .footer-social-icon {
        width: 25px;
        height: 25px
    }

    .footer-social-icon img {
        width: 14px;
        height: 14px
    }
}

@media (max-width: 420px) {
    .content-section.active {
        height: 82%;
        top: 7%
    }
}

#menu-overlay .menu-top {
    border-bottom: 1px solid var(--menu-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: relative;
    background: #66686a;
    height: 8vh;
    flex-direction: row
}

#menu-overlay .menu-shell {
    height: 100%;
    display: grid;
    grid-template-rows: 74px 1fr auto
}

#menu-overlay .menu-body {
    overflow: auto;
    min-height: 0
}

#menu-overlay .menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 20px;
    justify-items: center;
    width: 100%
}

#menu-overlay .menu-grid>* {
    width: 100%;
    max-width: 100%;
    min-width: 0
}

[dir=rtl] .menu-grid {
    direction: rtl
}

[dir=ltr] .menu-grid {
    direction: ltr
}

@media (max-width: 768px) {
    #menu-overlay .menu-grid {
        grid-template-columns: 1fr
    }

    #menu-overlay .menu-grid>* {
        width: 100%;
        max-width: 100%;
        min-width: 0
    }
}

html[dir=rtl] input,
html[dir=rtl] textarea,
html[dir=rtl] select {
    text-align: right !important
}

html[dir=ltr] input,
html[dir=ltr] textarea,
html[dir=ltr] select {
    text-align: left !important
}

html[dir=rtl] input::placeholder,
html[dir=rtl] textarea::placeholder {
    text-align: right !important
}

html[dir=ltr] input::placeholder,
html[dir=ltr] textarea::placeholder {
    text-align: left !important
}

input[type=number],
input[type=tel] {
    text-align: inherit !important
}

input,
textarea,
select {
    direction: inherit !important
}

.menu-video-bg.menu-bg-mobile {
    z-index: -2
}