
  /** admin pages css global */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html,
    body {
        height: 100%;
        width: 100%;
        background-color: black;
    }

    .cover {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        position: relative;
        background: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)),
            url("../images/statics/cover.png") center/cover no-repeat fixed;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 40px 0;
    }

    .cover::before {
        content: "";
        position: absolute;
        inset: 0;
    }

    @keyframes move {
        0% {
            transform: translateY(0);
            opacity: 0.5;
        }

        100% {
            transform: translateY(15px);
            opacity: 1;
        }
    }

    .container {
        padding-right: 25px;
    }

    .page-wrapper {
        width: 90%;
        max-width: 1100px;
        margin: 40px auto;
        background: rgba(10, 10, 10, 0.94);
        border-radius: 22px;
        padding: 32px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
        z-index: 1;
    }

    .custom-alert {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        min-width: 300px;
        text-align: center;
        border-radius: 10px;
        padding: 12px 20px;
        font-weight: bold;
        animation: fadeIn 0.5s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translate(-50%, -20px);
        }

        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }

    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 10px 0;
        flex-wrap: wrap;
        margin-bottom: 25px;
        border-bottom: 1px 0 solid rgba(255, 255, 255, 0.08);
        color: white;
        text-align: center;
        padding-left: 25px;
    }

    .page-title {
        font-size: 32px;
        font-weight: bold;
        margin: 0;
        position: relative;
        padding-bottom: 10px;
    }

    .page-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 70px;
        height: 3px;
        background: #e63946;
        border-radius: 5px;
    }

    .page-container {
        width: 92%;
        max-width: 1350px;
        margin: 40px auto;
    }

    .herosCount {
        color: white;
        font-weight: bold;
        font-size: 14px;
    }

.toolbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    direction: rtl;
}

.admin-filter-form {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 14px;
    align-items: center;
}

.filter-group {
    width: 100%;
}

.filter-select {
    width: 100%;
    height: 52px;
    background: #151515;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
    font-size: 15px;
}

.search-box {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 140px 120px;
    gap: 12px;
    align-items: center;
}

.search-group {
    width: 100%;
    position: relative;
}

.search-group input {
    width: 100%;
    height: 52px;
    background: #151515;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0 48px 0 16px;
    outline: none;
    font-size: 15px;
    text-align: right;
}

.search-group input::placeholder {
    color: #aaa;
}

.search-group i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 22px;
    pointer-events: none;
}



.empty-box {
    background: #111;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #bbb;
    margin-top: 20px;
}


    /*. buttons css */

    .btn-login {
            background-color: #e63946;
            width: 100%;
            border: none;
            padding: 10px;
            font-weight: bold;
    }

    .btn-login:hover {
            background-color: #c92f3a;
            color: white;
    }
    .btn-enter {
            background-color: #000000;
            width: 100%;
            border: none;
            padding: 10px;
            font-weight: bold;
            color: #fff;
    }
    .btn.btn-secondary {
    background: #2b2b2b !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    min-width: 85px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none !important;
    transition: .3s;
}

.btn.btn-secondary:hover {
    background: #e63946 !important;
    border-color: #e63946 !important;
    color: #fff !important;
    transform: translateY(-2px);

}
    .btn-add{
            background: linear-gradient(135deg, #e63946, #c92f3a);
            color: #fff;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 14px;
            font-size: 15px;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all .3s ease;
            box-shadow: 0 6px 18px rgba(230,57,70,.25);
    }

    .btn-add i{
            font-size: 20px;
    } 

    .btn-add:hover{
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(230,57,70,.45);
    }   

    .btn-enter:hover {
            background-color: #ffffff;
            color: #000000;
    }

    .btn-addPage {
        background: #e63946;
        color: white;
    }

    .btn-addPage:hover {
        background: #c92f3a;
        color: white;
    }

    .btn-viewPage {
        border: 1px solid rgba(255, 255, 255, .25);
        color: white;
    }

    .btn-viewPage:hover {
        background: white;
        color: #111;
    }

    .action-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .top-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .action-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        color: white;
        transition: all 0.25s ease;
        border: 1px solid transparent;
    }

    .btn-edit,
    .btn-delete {
        border: none;
        padding: 10px 16px;
        border-radius: 10px;
        color: white;
        font-size: 14px;
        transition: 0.3s;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .btn-edit {
        background: rgba(25, 135, 84, 0.15);
        border-color: rgba(25, 135, 84, 0.4);
        color: #3ddc97;
    }

    .btn-view {
        background: rgba(13, 110, 253, 0.15);
        border-color: rgba(13, 110, 253, 0.4);
        color: #4da3ff;
    }

    .btn-edit:hover {
        background: #198754;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(25, 135, 84, 0.4);
    }

    .btn-view:hover {
        background: #0d6efd;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
    }

    .btn-delete {
        background: rgba(220, 53, 69, 0.15);
        border-color: rgba(220, 53, 69, 0.4);
        color: #ff6b6b;
    }

    .btn-delete:hover {
        background: #dc3545;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(220, 53, 69, 0.4);
    }

    .btn-back {
        background: #1d1d1d;
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: white;
        padding: 10px 18px;
        border-radius: 10px;
        text-decoration: none;
        transition: 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .btn-back:hover {
        background: #2a2a2a;
        color: white;
    }

    .btn-main {
        background: #e63946;
        border: none;
        color: white;
        padding: 10px 18px;
        border-radius: 10px;
        text-decoration: none;
        transition: 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .btn-main:hover {
        background: #c92f3a;
        color: white;
        transform: translateY(-2px);
    }

    .actions {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 28px;
    }

    .btn-save {
        background: #e63946;
        border: none;
        color: white;
        padding: 12px 20px;
        border-radius: 10px;
        transition: 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .btn-save:hover {
        background: #c92f3a;
        color: white;
        transform: translateY(-2px);
    }

    .btn-reset {
        background: #1d1d1d;
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: white;
        padding: 12px 20px;
        border-radius: 10px;
        transition: 0.3s;
    }

    .btn-reset:hover {
        background: #2a2a2a;
        color: white;
    }

    .btn-cansel {
        background: white;
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: black;
        padding: 12px 20px;
        border-radius: 10px;
        transition: 0.3s;
        text-decoration: none;
    }

    .btn-cansel:hover {
        background: #2a2a2a;
        color: white;
    }

    .btn-read {
        background: linear-gradient(135deg, #e63946, #c1121f);
        color: white;
        padding: 12px 22px;
        border-radius: 30px;
        text-decoration: none;
        font-size: 14px;
        font-weight: bold;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: 0.3s;
        box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    }

    .btn-read:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
        color: white;
    }

     .overlay-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .btn-overlay-edit,
    .btn-overlay-delete {
        text-decoration: none;
        border: none;
        padding: 9px 14px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: bold;
        transition: 0.3s;
    }

    .btn-overlay-edit {
        background: rgba(25, 135, 84, 0.15);
        border-color: rgba(25, 135, 84, 0.4);
        color: #3ddc97;
    }

    .btn-overlay-edit:hover {
        background: #198754;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(25, 135, 84, 0.4);
    }

    .btn-overlay-delete {
        background: rgba(220, 53, 69, 0.15);
        border-color: rgba(220, 53, 69, 0.4);
        color: #ff6b6b;
    }

    .btn-overlay-delete:hover {
        background: #dc3545;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(220, 53, 69, 0.4);
    }

    /*. login Page css */

    .login-box {
            position: relative;
            z-index: 2;
            background-color: #000000;
            color: white;
            padding: 35px;
            width: 100%;
            max-width: 420px;
            border-radius: 8px;
            border-top: 4px solid #e63946;
        }

    .login-box h3 {
            margin-bottom: 10px;
            font-weight: bold;
    }

    .login-box {
            max-width: 520px;
            border-radius: 14px;
            text-align: center;
    }

    .login-form {
            width: 100%;
    }

    .login-form label {
            display: block;
            color: #fff;
            font-weight: bold;
            margin-bottom: 8px;
    }

    /* admin dashboard page css*/

    .hero-slider {
        width: 100%;
        position: relative;
    }

    .slider-bg {
        height: 750px;
        width: 100%;
        background-size: cover;
        background-position: center 80%;
        background-repeat: no-repeat;
        background-color: black;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
        opacity: 1;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-size: 70% 70%;
        background-color: rgba(0, 0, 0, 0.35);
        border-radius: 50%;
        padding: 20px;
    }

    .admin-sections {
        direction: rtl;
        background: #050505;
        padding: 70px 22px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .admin-grid {
        width: 92%;
        max-width: 1200px;
        margin: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .admin-grid2 {
        width: 92%;
        max-width: 1200px;
        margin: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .admin-card {
        background: linear-gradient(180deg, #111, #070707);
        border: 1px solid rgba(255, 255, 255, .09);
        border-radius: 24px;
        padding: 32px 22px;
        text-align: center;
        color: white;
        transition: .35s;
    }

    .admin-card:hover {
        transform: translateY(-7px);
        border-color: #e63946;
        box-shadow: 0 0 28px rgba(230, 57, 70, .22);
    }

    .admin-card i {
        font-size: 48px;
        color: #e63946;
        margin-bottom: 18px;
    }

    .admin-card img {
        width: 70px;
        margin-bottom: 25px;
        transition: 0.3s;
    }

    .admin-card h3 {
        font-size: 25px;
        font-weight: 900;
        margin-bottom: 10px;
    }

    .admin-card p {
        color: #bbb;
        margin-bottom: 24px;
    }

    .admin-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .admin-actions a {
        text-decoration: none;
        padding: 10px 18px;
        border-radius: 999px;
        font-weight: bold;
        font-size: 14px;
        transition: .3s;
    }
     
    /* form css (add, update pages) */

    .form-card {
        background: #111;
        border-radius: 18px;
        padding: 28px;
        text-align: right;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .form-label {
        color: #eee;
        margin-bottom: 8px;
        font-weight: bold;
        display: block;
        text-align: right;
        width: 100%;
    }

    .form-control,
    .form-select,
    textarea {
        text-align: right;
        direction: rtl;
        background: #151515 !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: white !important;
        border-radius: 12px !important;
        padding: 12px 14px !important;
        box-shadow: none !important;
    }

    .form-control::placeholder,
    textarea::placeholder {
        color: #999 !important;
    }

    .form-control:focus,
    .form-select:focus,
    textarea:focus {
        border-color: #e63946 !important;
        box-shadow: 0 0 0 0.15rem rgba(230, 57, 70, 0.2) !important;
    }

    .form-select option {
        background: #151515;
        color: white;
    }

    .upload-box {
        background: #151515;
        border: 2px dashed rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        padding: 25px;
        text-align: center;
        color: #bbb;
    }

    .upload-box i {
        font-size: 34px;
        color: #e63946;
        display: block;
        margin-bottom: 10px;
    }

    .current-image-box {
        background: #151515;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 15px;
        text-align: center;
    }

    .current-image-box img {
        width: 220px;
        max-width: 100%;
        height: 280px;
        object-fit: cover;
        border-radius: 16px;
        border: 2px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }



    /* admin stories pages css*/

    .story-meta {
        color: #cfcfcf;
        margin-top: 10px;
        font-size: 15px;
    }


    .stories-table {
        direction: rtl;
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0 10px;
        min-width: 900px;
        overflow: hidden;
        border-radius: 16px;
    }

    .stories-table thead {
        background: #000;
    }

    .stories-table th,
    .stories-table td {
        padding: 16px 14px;
        text-align: center;
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        vertical-align: middle;
    }

    .stories-table th {
        color: #f1f1f1;
        font-size: 15px;
    }

    .stories-table tbody tr {
        background: #111;
        transition: 0.3s;
    }

    .stories-table tbody tr:hover {
        background: #1b1b1b;
    }

    .story-title {
        color: #fff;
        font-weight: bold;
        margin: 0;
        font-size: 15px;
    }

    .story-type {
        color: #fff;
        font-weight: bold;
        margin: 0;
        font-size: 15px;
    }

    .story-desc {
        max-width: 320px;
        max-height: 90px;
        overflow-y: auto;
        overflow-x: hidden;
        font-size: 13px;
        line-height: 1.8;
        color: #bbb;
        padding-left: 6px;
        white-space: normal;
        word-break: break-word;
        text-align: right;
    }

    .story-desc::-webkit-scrollbar {
        width: 6px;
    }

    .story-desc::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 10px;
    }

    .story-desc::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 10px;
    }

    .story-desc::-webkit-scrollbar-thumb:hover {
        background: #e63946;
    }

    .categoryName {
        background: rgba(230, 57, 70, 0.15);
        color: #e63946;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: bold;
    }

    .stories-table td:first-child {
        color: #888;
        font-weight: bold;
    }

    .heroes-sections {
        display: flex;
        flex-direction: column;
        gap: 50px;
        margin-top: 30px;
    }

    .hero-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 24px;
        padding: 30px;
        overflow: hidden;
    }

    .hero-section.reverse {
        flex-direction: row-reverse;
    }

    .hero-section-image {
        flex: 1;
        min-width: 320px;
    }

    .hero-section-image img {
        width: 100%;
        height: 360px;
        object-fit: contain;
        object-position: center;
        border-radius: 18px;
        display: block;
        background: #111;
    }

    .hero-section-content {
        flex: 1;
        text-align: right;
    }

    .hero-badge {
        display: inline-block;
        background: rgba(230, 57, 70, 0.15);
        color: #e63946;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: bold;
        margin-bottom: 16px;
    }

    .hero-section-title {
        font-size: 42px;
        font-weight: bold;
        color: #fff;
        line-height: 1.3;
        direction: rtl;
        margin-bottom: 12px;
    }

    .hero-section-name {
        font-size: 26px;
        color: #f1f1f1;
        margin-bottom: 18px;
        font-weight: bold;
    }

    .hero-section-details {
        color: #d0d0d0;
        font-size: 20px;
        line-height: 2;
        margin-bottom: 25px;
    }

    .hero-section-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 15px;
    }

    .hero-section-details,
    #storyText {
        direction: rtl;
        text-align: right;
        unicode-bidi: plaintext;
    }

    .story-info {
        background: #111;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 16px;
        padding: 18px 20px;
        margin-bottom: 22px;
        text-align: right;
    }

    .story-info h5 {
        color: #fff;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .story-info p {
        color: #bdbdbd;
        margin: 0 0 8px 0;
        line-height: 1.8;
    }

    .story-badge {
        display: inline-block;
        background: rgba(230, 57, 70, 0.15);
        color: #e63946;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: bold;
    }

    .hero-title {
        font-size: 46px;
        line-height: 1.25;
        font-weight: bold;
        margin-bottom: 12px;
        color: #fff;
    }

    .hero-name {
        font-size: 28px;
        color: #e63946;
        font-weight: bold;
        margin-bottom: 24px;
    }

    .hero-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 26px;
    }

    .meta-item {
        background: #151515;
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #ddd;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .hero-details {
        color: #ededed;
        font-size: 18px;
        line-height: 2.1;
        white-space: pre-line;
        margin-bottom: 30px;
    }

    .action-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-layout {
        display: grid;
        grid-template-columns: 1fr 1.05fr;
        gap: 32px;
        align-items: stretch;
    }

    .hero-image-card,
    .hero-content-card {
        background: rgba(10, 10, 10, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    }

    .hero-image-card {
        position: sticky;
        top: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px;
        height: fit-content;
    }

    .hero-image-card img {
        width: 100%;
        max-width: 380px;
        height: 480px;
        object-fit: contain;
        background: #111;
        display: block;
        border-radius: 0px;
        border: 0px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
        transition: 0.4s;
    }

    .hero-image-card img:hover {
        transform: scale(1.03);
    }

    .hero-content-card {
        direction: rtl;
        text-align: right;
        padding: 34px 32px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .main-story-title {
        color: #bdbdbd;
        font-size: 15px;
        margin-bottom: 10px;
        line-height: 1.8;
    }


    /* Admin Photos Pages css */

    .photos-grid {
        direction: rtl;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-top: 30px;
    }

    .photo-card {
        direction: rtl;
        text-align: right;
    }

    .photo-image-box {
        position: relative;
        height: 240px;
        border-radius: 18px;
        overflow: hidden;
        background: #111;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    }

    .photo-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
        cursor: pointer;
    }

    .photo-image-box a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .photo-image-box a img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .photo-overlay {
        pointer-events: none;
    }

    .overlay-actions {
        pointer-events: auto;
        position: relative;
        z-index: 5;
    }

    .photo-card:hover .photo-image-box img {
        transform: scale(1.04);
    }

    .photo-number {
        position: absolute;
        top: 12px;
        right: 12px;
        background: #c92939;
        color: white;
        min-width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: bold;
        z-index: 3;
        box-shadow: 0 8px 15px rgba(201, 41, 57, 0.35);
    }

    .photo-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08));
        opacity: 0;
        transition: 0.35s ease;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 16px;
    }

    .photo-card:hover .photo-overlay {
        opacity: 1;
    }

    .photo-content {
        padding: 14px 6px 0;
    }

    .photo-title {
        color: #fff;
        font-weight: bold;
        font-size: 20px;
        line-height: 1.6;
        margin-bottom: 8px;
        min-height: 64px;
    }

    .photo-desc {
        color: #d3d3d3;
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 50px;
    }

    .photo-category {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(230, 57, 70, 0.14);
        color: #e63946;
        padding: 6px 14px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: bold;
    }

     .photo-view-card {
        background: rgba(10, 10, 10, 0.94);
        border-radius: 24px;
        padding: 25px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .photo-image-wrapper {
        width: 100%;
        min-height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 24px;
        padding: 20px;
    }

    .photo-view-image {
        max-width: 100%;
        max-height: 650px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: auto;
        border-radius: 14px;
    }

    /*Admin Videos Pages css*/

    .table-wrapper {
        overflow-x: auto;
        border-radius: 16px;
    }
    
    .videos-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 900px;
        overflow: hidden;
        border-radius: 16px;
        direction: rtl;
    }

    .videos-table thead {
        background: #000;
    }

    .videos-table th,
    .videos-table td {
        padding: 16px 14px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        vertical-align: middle;
    }

    .videos-table th {
        color: #f1f1f1;
        font-size: 15px;
    }

    .videos-table tbody tr {
        background: #111;
        transition: 0.3s;
    }

    .videos-table tbody tr:hover {
        background: #1b1b1b;
    }

    .video-img {
        width: 80px;
        height: 60px;
        object-fit: cover;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .videoId {
        color: white;
        font-size: 15px;
    }

    .video-title {
        color: #fff;
        font-weight: bold;
        margin: 0;
        font-size: 15px;
    }

    .video-desc {
        max-width: 320px;
        max-height: 90px;
        overflow-y: auto;
        overflow-x: hidden;
        font-size: 13px;
        line-height: 1.8;
        color: #bdbdbd;
        padding-left: 6px;
        white-space: normal;
        word-break: break-word;
        text-align: right;
        margin-top: 5px;
    }

    .video-desc::-webkit-scrollbar {
        width: 6px;
    }

    .video-desc::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 10px;
    }

    .video-desc::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 10px;
    }

    .video-desc::-webkit-scrollbar-thumb:hover {
        background: #e63946;
    }

    .form-card,
    .form-card form,
    .actions,
    .btn-save,
    .btn-reset {
        position: relative;
        z-index: 10;
    }

    /* Admin ShareForm Page css*/

    .table-card {
        background: #111;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        padding: 25px;
        margin-bottom: 30px;
    }

    label {
        margin-bottom: 8px;
        font-weight: bold;
    }

    table {
        color: white !important;
    }

    .table-dark {
        --bs-table-bg: #111;
        --bs-table-striped-bg: #181818;
    }

    .badge-active {
        background: #198754;
    }

    .badge-hidden {
        background: #6c757d;
    }

    .btn-action {
        padding: 6px 10px;
        border-radius: 8px;
        font-size: 14px;
    }

    textarea {
        min-height: 90px;
    }

    /* Admin Team Pages css*/

    .team-list {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin-top: 35px;
    }

    .member-row {
        direction: rtl;
        background: #000;
        border: 1px solid rgba(255, 255, 255, 0.10);
        min-height: 320px;
        padding: 35px 40px;
        display: grid;
        grid-template-columns: 1fr 170px;
        gap: 45px;
        align-items: center;
        transition: 0.3s;
    }

    .member-row:hover {
        border-color: rgba(230, 57, 70, 0.22);
        transform: translateY(-3px);
    }

    .member-story-box {
        text-align: right;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        min-width: 0;
    }

    .member-story {
        color: #f1f1f1;
        direction: rtl;
        unicode-bidi: isolate;
        font-size: 22px;
        line-height: 2.1;
        margin: 0 0 22px 0;
        width: 100%;
        word-break: break-word;
    }

    .member-actions {
        direction: rtl;
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .member-side {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 170px;
    }

    .member-image {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
        margin-bottom: 14px;
    }

    .member-name {
        font-size: 22px;
        font-weight: bold;
        color: #fff;
        margin-bottom: 4px;
        line-height: 1.5;
    }

    .member-role {
        font-size: 15px;
        color: #d6d600;
        font-weight: bold;
        line-height: 1.7;
    }

    .member-view-card {
        direction: rtl;
        background: rgba(10, 10, 10, 0.94);
        border-radius: 24px;
        padding: 35px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        display: grid;
        grid-template-columns: 260px 1fr;
        grid-template-areas:
            "image content"
            "actions content";
        gap: 30px 45px;
        align-items: start;
    }

    .member-name-side {
        font-size: 26px;
        font-weight: bold;
        color: #fff;
        margin-bottom: 6px;
    }

    .member-role-side {
        font-size: 17px;
        color: #d6d600;
        font-weight: bold;
    }

    .current-image {
        text-align: center;
        margin-bottom: 20px;
    }

    .current-image img {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(255, 255, 255, 0.1);
    }


     .profile-card {
        background: #111;
        border-radius: 18px;
        padding: 25px;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .profile-row {
        margin-bottom: 18px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .profile-label {
        color: #bbb;
        font-size: 14px;
        margin-bottom: 6px;
    }

    .profile-value {
        color: #fff;
        font-size: 18px;
        font-weight: bold;
    }


    /* Responsive */
    @media(max-width:992px) {

        /* admin Pages */
        .cover {
            background: #000 !important;
        }

        .container {
            padding-right: 12px;
            padding-left: 12px;
        }

       .page-wrapper {
            width: 100%;
            padding: 18px 14px;
            margin-top: 20px;
            background: #000;
            border-radius: 16px;
        }

        .page-header {
            display: block !important;
            position: static !important;
            width: 100% !important;
            padding: 0 !important;
            margin-bottom: 25px !important;
            text-align: center !important;
        }

        .page-title {
            display: block !important;
            position: static !important;
            width: 100% !important;
            margin: 0 0 18px 0 !important;
            padding: 0 0 12px 0 !important;
            font-size: 22px !important;
            line-height: 1.7 !important;
            text-align: center !important;
        }

        .page-title::after {
            right: 50% !important;
            transform: translateX(50%) !important;
            bottom: 0 !important;
        }

        .toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .toolbar form{
            flex-direction: column;
            align-items: stretch !important;
        }

        .search-box {
            display: flex;
            flex-direction: column;
            width: 100%;
        }
        .admin-filter-form{
            grid-template-columns: 1fr !important;
        }

        .filter-group,
        .search-box,
        .search-box input,
        .filter-select {
            max-width: 100%;
            background: #151515;
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: white;
            border-radius: 10px;
            padding: 10px 14px;
            width: 100%;
            text-align: center;
            outline: none;
        }

        .search-box input::placeholder {
            color: #aaa;
            text-align: center;
        }


        /* forms */

        .form-card {
            width: 100%;
            padding: 20px 14px !important;
        }

        .row.g-4 {
            --bs-gutter-y: 18px;
        }

        .form-label {
            display: block;
            text-align: right !important;
            margin-bottom: 8px;
            font-size: 15px;
        }

        .form-select,
        .form-control,
        textarea {
            width: 100% !important;
            height: auto !important;
            min-height: 52px;
            padding: 12px 14px !important;
            border-radius: 12px !important;
            font-size: 15px !important;
            text-align: right !important;
            direction: rtl !important;
            background-color: #151515 !important;
            color: #fff !important;
        }

        .form-select {
            width: 100% !important;
            max-width: 100% !important;
            min-height: 50px !important;
            font-size: 15px !important;
            text-align: right !important;
            direction: rtl !important;
            background-color: #151515 !important;
            color: #fff !important;
            border-radius: 12px !important;
            padding: 10px 14px !important;
            overflow: hidden !important;
        }

        .form-select option {
            font-size: 15px !important;
            background: #151515 !important;
            color: #fff !important;
        }

        .col-md-6,
        .col-12 {
            width: 100% !important;
            flex: 0 0 100% !important;
        }

        /* buttons */

        .action-buttons {
            flex-direction: column;
            width: 100%;
            margin-top: 12px;
        }

        .action-btn {
            width: 100%;
            justify-content: center;
        }
        
        .btn-back {
            display: flex !important;
            position: static !important;
            width: 100% !important;
            margin: 0 auto !important;
            padding: 12px 15px !important;
            justify-content: center !important;
            align-items: center !important;
            gap: 8px !important;
            border-radius: 10px !important;
        }

        .btn-save,
        .btn-cansel,
        .btn-back {
            width: 100%;
            justify-content: center;
        }
        .btn-secondary,
        .btn-main{
            width: 100% !important;
            justify-content: center;
        }

        .admin-actions{
            width: 100%;
        }

        .btn-add{
            width: 100%;
            justify-content: center;
            padding: 14px;
            font-size: 16px;
        }

        /* admin dashboard */

        .slider-bg {
            height: 260px !important;
            min-height: 260px !important;
            background-size: cover !important;
            background-position: center !important;
        }

        .admin-sections {
            padding: 35px 15px;
        }

        .admin-grid,
        .admin-grid2 {
            width: 100%;
            grid-template-columns: 1fr !important;
            gap: 18px;
        }

        .admin-card {
            padding: 25px 15px;
        }

        .admin-actions {
            flex-direction: column;
        }

        .admin-actions a {
            width: 100%;
            text-align: center;
        }

        /* admin stories page */

        .stories-table {
            min-width: 100%;
            border-collapse: separate;
            border-spacing: 0 14px;
        }

        .stories-table thead {
            display: none;
        }

        .stories-table,
        .stories-table tbody,
        .stories-table tr,
        .stories-table td {
            display: block;
            width: 100%;
        }

        .stories-table tbody tr {
            background: #111;
            border-radius: 16px;
            padding: 14px;
            margin-bottom: 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .stories-table td {
            text-align: right;
            padding: 12px 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            justify-content: space-between;
            gap: 15px;
            align-items: flex-start;
        }

        .stories-table td:last-child {
            border-bottom: none;
            display: block;
        }

        .stories-table td::before {
            color: #e63946;
            font-weight: bold;
            min-width: 110px;
            text-align: right;
        }

        .stories-table td:nth-child(1)::before {
            content: "الرقم";
        }

        .stories-table td:nth-child(2)::before {
            content: "عنوان القصة";
        }

        .stories-table td:nth-child(3)::before {
            content: "التصنيف";
        }

        .stories-table td:nth-child(4)::before {
            content: "نوع القصة";
        }

        .stories-table td:nth-child(5)::before {
            content: "وصف القصة";
        }

        .stories-table td:nth-child(6)::before {
            content: "عدد الأبطال";
        }

        .stories-table td:nth-child(7)::before {
            content: "الإجراءات";
            display: block;
            margin-bottom: 12px;
        }

        .story-desc {
            max-width: 100%;
            max-height: 140px;
            text-align: right;
        }
        .hero-layout {
            grid-template-columns: 1fr;
        }

        .hero-section,
        .hero-section.reverse {
            flex-direction: column;
            padding: 22px;
        }

        .hero-section-image {
            min-width: 100%;
        }

        .hero-section-image img {
            height: 260px;
        }

        .hero-section-title {
            font-size: 30px;
        }

        .hero-section-name {
            font-size: 22px;
        }

        .hero-section-details {
            font-size: 16px;
            line-height: 1.9;
        }
         
        .hero-image {
            height: 190px;
        }
        .hero-image-card {
            order: 1;
            padding: 20px;
        }

        .hero-content-card {
            order: 2;
        }

        .hero-image-card img {
            max-width: 320px;
            height: 400px;
        }

        .hero-title {
            font-size: 32px;
        }

        .hero-name {
            font-size: 22px;
        }

        .hero-details {
            font-size: 16px;
            line-height: 1.9;
        }

        /* admin Photos Pages*/

        .photos-grid {
            grid-template-columns: 2fr;
        }

        .photo-image-box {
            height: 220px;
        }

        .photo-image-wrapper {
            min-height: 300px;
            padding: 12px;
        }

        .photo-title {
            font-size: 26px;
        }

        .photo-desc {
            font-size: 16px;
        }

        /* Admin Videos Pages */

        .videos-table {
            min-width: 100%;
            border-collapse: separate;
            border-spacing: 0 14px;
        }

        .videos-table thead {
            display: none;
        }

        .videos-table,
        .videos-table tbody,
        .videos-table tr,
        .videos-table td {
            display: block;
            width: 100%;
        }

        .videos-table tbody tr {
            background: #111;
            border-radius: 16px;
            padding: 14px;
            margin-bottom: 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .videos-table td {
            text-align: right;
            padding: 12px 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            justify-content: space-between;
            gap: 15px;
            align-items: flex-start;
        }

        .videos-table td:last-child {
            border-bottom: none;
            display: block;
        }

        .videos-table td::before {
            color: #e63946;
            font-weight: bold;
            min-width: 110px;
            text-align: right;
        }

        .videos-table td:nth-child(1)::before {
            content: "الرقم";
        }

        .videos-table td:nth-child(2)::before {
            content: "عنوان الفيديو";
        }

        .videos-table td:nth-child(3)::before {
            content: "وصف الفيديو";
        }

        .videos-table td:nth-child(4)::before {
            content: "التصنيف";
        }

        .videos-table td:nth-child(5)::before {
            content: "الفيديو";
        }

        .videos-table td:nth-child(6)::before {
            content: "الإجراءات";
            display: block;
            margin-bottom: 12px;
        }

        .video-desc {
            max-width: 100%;
            max-height: 140px;
            text-align: right;
        }

        /* Admin ShareForm Page */
        .form-card,
        .table-card {
            padding: 18px;
            border-radius: 16px;
            margin-bottom: 25px;
        }

        .form-card h4,
        .table-card h4 {
            text-align: center;
            font-size: 20px;
        }

        .form-control,
        .form-select,
        textarea {
            width: 100%;
            font-size: 15px;
            text-align: right;
            direction: rtl;
        }

        .form-check {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-right: 0;
        }

        .form-check .form-check-input {
            float: none;
            margin: 0;
        }

         table {
            width: 100% !important;
        }

        table thead {
            display: none;
        }

        table,
        table tbody,
        table tr,
        table td {
            display: block;
            width: 100%;
        }

        table tbody tr {
            background: #111;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 14px;
            margin-bottom: 16px;
        }

        table tbody td {
            text-align: right !important;
            padding: 12px 6px !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        table tbody td:last-child {
            border-bottom: none;
        }

        table tbody td::before {
            display: block;
            color: #e63946;
            font-weight: bold;
            margin-bottom: 7px;
            font-size: 13px;
        }

        table tbody td:nth-child(1)::before {
            content: "الرقم";
        }

        table tbody td:nth-child(2)::before {
            content: "السؤال";
        }

        table tbody td:nth-child(3)::before {
            content: "النوع";
        }

        table tbody td:nth-child(4)::before {
            content: "مطلوب؟";
        }

        table tbody td:nth-child(5)::before {
            content: "الحالة";
        }

        table tbody td:nth-child(6)::before {
            content: "الترتيب";
        }

        table tbody td:nth-child(7)::before {
            content: "التحكم";
        }

        /* Admin Team Pages */

        .member-row {
            grid-template-columns: 1fr;
            padding: 28px 20px;
            gap: 28px;
        }

        .member-side {
            width: 100%;
            order: -1;
        }

        .member-story-box {
            text-align: center;
            align-items: center;
        }

        .member-actions {
            justify-content: center;
        }

        .member-story {
            font-size: 18px;
            line-height: 1.9;
            text-align: right;
        }

        .member-view-card {
            grid-template-columns: 1fr;
            grid-template-areas:
                "image"
                "content"
                "actions";
            padding: 22px;
            gap: 25px;
        }

        .member-side {
            order: 0;
        }

        .member-content {
            text-align: center;
        }

        .member-image {
            width: 170px;
            height: 170px;
        }

        .member-actions {
            flex-direction: column;
        }



    }