﻿body {
    padding-top: 70px;
    padding-bottom: 20px;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

@media (max-width: 767px) {
    .top-menu {
        top: 6px;
        left: 52px;
        right: auto;
        width: 100%;
    }

        .top-menu > .navbar-nav > li {
            float: none !important;
        }
}

@media (min-width: 768px) {
    .top-menu {
        margin-left: -15px;
        margin-right: 0;
    }

    .top-auth-menu {
        margin-right: auto;
        margin-left: 0;
    }
}

.dx-bs5.bg-light {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background-color: #e9ecef;
    border-radius: .3rem;
}

@media (min-width: 576px) {
    .dx-bs5.bg-light {
        padding: 4rem 2rem;
    }
}

/* 🌈 Custom Header and Footer Styling */
.navbar.bg-light {
    background-color: #4E888F !important;
}

footer {
    background-color: #4E888F;
    color: white;
    padding: 10px;
    text-align: center;
}

.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
    color: white !important;
}

.navbar-light .navbar-toggler {
    border-color: white;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Remove full-width container override */
.container, #ctl01 > div.container {
}

/* Ensure no horizontal overflow */
html, body {
    overflow-x: hidden;
}

/* CardView Specific Styles */
.dxeCardView_Rounded .dxeCardView_Rounded,
.dxeCardView_Rounded .dxeCardView_Rounded * {
    box-sizing: border-box;
}

.dxeCardContentCell {
    width: 100% !important;
    padding: 15px !important;
    text-align: right;
    direction: rtl;
}

.job-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
}

.card-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    text-align: right;
}

.card-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: right;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.apply-button {
    display: block;
    background-color: #4E888F;
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
    width: 100%;
    transition: background-color 0.3s;
}

    .apply-button:hover {
        background-color: #3C6D73;
        color: white;
    }

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .apply-button {
        padding: 7px 10px;
        font-size: 0.9rem;
    }

    .dxeCardContentCell {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
    }
}

/* Fix for DevExpress CardView in RTL */
.dxeCardView_Rounded .dxeCardView_Rounded {
    direction: rtl !important;
}

    .dxeCardView_Rounded .dxeCardView_Rounded .dxeCardViewItem {
        text-align: right !important;
    }
