/* Custom CSS for Dastoor Al Majed */
:root {
    --theme-color: #60005f;
}

/* Header Text Color - White for Dark BG */
.header-links li,
.header-links a,
.header-links i {
    color: #ffffff !important;
}

/* Main Menu Links */
.main-menu>ul>li>a {
    color: black !important;
    transition: color 0.3s ease;
}

.main-menu>ul>li>a:hover {
    color: var(--theme-color) !important;
}

/* Specific Logo Adjustment if needed */
/* .header-logo img {
    filter: brightness(0) invert(1);
} */

/* Footer Social Icons */
.social-style1 a {
    color: #ffffff;
}

.social-style1 a:hover {
    background-color: #bfa885;
    color: #ffffff;
}

/* Gallery Grid Fixes */
.gallery-style2 .gallery-img img {
    transition: transform 0.4s ease;
}

.gallery-style2:hover .gallery-img img {
    transform: scale(1.05);
}

/* Popup Image Cursor */
.popup-image {
    cursor: zoom-in;
    display: block;
    position: relative;
}

.footer-logo-img {
    width: 100px !important;
    background-color: white !important;
    border-radius: 10px !important;
}

/* Certificate Gallery - Disable Zoom on Hover */
.gallery-style1:hover .gallery-img img {
    transform: scale(1.0) !important;
}

.service-style4 .service-icon,
.service-style3 .service-icon {
    background-color: #f3f3f4 !important;
}

/* Gallery Section Background with Light Overlay */
.gallery-section-bg {
    position: relative;
    background-image: url('../img/bg/gallery-section-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.gallery-section-bg>* {
    position: relative;
    z-index: 1;
}

.footer-widget.widget_pages a:hover,
.footer-widget.widget_archive a:hover,
.footer-widget.widget_categories a:hover,
.footer-widget.widget_nav_menu a:hover {
    color: #a53b1f !important;
}

button:disabled,
.vs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc;
    color: #666;
}

/* Mobile Header Logo Center */
@media (max-width: 991px) {
    .header-logo {
        text-align: center;
        width: 42%;
    }

    .header-logo img {
        max-height: 154px;
        margin-left: 20px;
    }

    .menu-area .row {
        justify-content: center !important;
    }

    .vs-menu-toggle {
        position: absolute;
        right: 15px;
        top: 20px;
    }

    .vs-menu-toggle {
        width: 40px;
        height: 40px;
    }
}

/* Slider Description Desktop Width */
.ls-responsive-desc {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Slider Full Screen */
@media (max-width: 767px) {

    .vs-hero-carousel,
    .ls-slide,
    .ls-bg,
    .ls-inner,
    .ls-wrapper {
        height: 600px !important;
        min-height: 650px !important;


    }

    .vs-hero-wrapper h1 {
        margin-bottom: 50px !important;
        font-size: 35px !important;

    }


    .vs-hero-wrapper p {
        margin-top: 153px !important;
        margin-left: 25px !important;
        font-size: 17px !important;

    }


    .ls-bg {
        object-fit: cover !important;
        height: 600px !important;
    }

    /* Adjust caption position for full height */
    .ls-text-layer {
        top: 30% !important;
    }

    /* Mobile Visibility Utility */
    .ls-custom-mobile {
        display: block !important;
    }

    .ls-custom-desktop {
        display: none !important;
    }

    .mb-responsive {
        height: 100% !important;
        /* Fixed invalid height:none */
        object-fit: cover !important;
        filter: brightness(60%);
        /* Darken mobile image */
    }

    /* Consolidated Responsive Layers */
    .ls-responsive-title {
        font-size: 32px !important;
        line-height: 1.3 !important;
        top: 90px !important;
        /* Fixed pixel value */
        width: 90% !important;
        left: 50% !important;
        text-align: center !important;
        white-space: normal !important;
        text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.7);
        /* Improved readability */
        background-color: transparent !important;
        margin-top: 26px !important;
        margin-left: 21px !important;

        /* Ensure no background */
    }

    .ls-responsive-desc {
        font-size: 15px !important;
        top: 210px !important;
        /* Fixed pixel value, giving space after title */
        width: 85% !important;
        left: 50% !important;
        text-align: center !important;
        white-space: normal !important;

        /* Removed individual background for unified wrapper */
        text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8);
    }

    .ls-responsive-btn {
        top: 450px !important;
        /* Fixed pixel value, strictly below description */
        /* Lower than title */
        left: 50% !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Ensure button inside has room */
    .ls-responsive-btn .vs-btn {
        margin-top: 330px !important;
        /* Reset any previous large margins */
    }

    /* h1 {
        margin-top: 50px !important;
    } */




    /* Desktop Visibility Utility (Default) */
    .ls-custom-mobile {
        display: none !important;
    }

    .ls-custom-desktop {
        display: block !important;
    }

    /* Header Logo Responsive Styles */
    .shj {
        width: 160px !important;
        height: auto;
        transition: width 0.3s ease;
    }

    .sticky-image {
        width: 90px !important;
    }

    .vs-hero-wrapper p {
        margin-top: 178px !important;
    }

    .vs-hero-carousel,
    .ls-slide,
    .ls-bg,
    .ls-inner,
    .ls-wrapper {
        /* height: 600px !important; */
        min-height: 680px !important;
    }

    .sticky-image-side {
        max-width: 50% !important;
    }

}

/* Mobile Devices (Portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .shj {
        width: 80px;
        /* Smaller logo on very small screens */
    }

    .header-logo {
        text-align: left;
        /* Keep left or center depending on preference, aligning with simple layout */
        width: auto;
    }
}

/* Tablet and Large Phones (576px to 991px) */
@media (min-width: 767px) and (max-width: 991px) {
    .shj {
        width: 185px !important;
        margin-right: 182px !important;
    }

    .header-logo {
        text-align: center;
        width: 100%;

    }

    .vs-hero-wrapper h1 {
        font-size: 26px !important;
        margin-left: 38px !important;

    }


    .vs-hero-wrapper p {
        margin-top: 20px !important;
        margin-left: 62px !important;
    }

    .ls-responsive-btn .vs-btn {
        margin-top: 70px !important;
        /* Reset any previous large margins */
    }

    .vs-menu-toggle {
        top: 43px !important;
    }

    /* Apply mobile text spacing to tablet as well */
    .ls-responsive-title {
        font-size: 44px !important;
        top: 160px !important;
        width: 80% !important;
        left: 50% !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .ls-responsive-desc {
        top: 300px !important;
        width: 80% !important;
        left: 50% !important;
        text-align: center !important;
        white-space: normal !important;
        font-size: 16px !important;
    }

    .ls-responsive-btn {
        top: 480px !important;
        /* Lower than title */
        left: 50% !important;
        width: 100% !important;
        text-align: center !important;
    }
}

.shj {
    max-width: 35% !important;
}

/* Gallery Filter Button Fix */
.vs-btn.style4 {
    color: var(--title-color);
    /* Dark color from theme */
    background-color: #f3f3f4;
    /* Light box background */
    border: none;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 30px;
    /* Radius */
    margin: 0 5px;
    transition: all 0.3s ease;
}

.vs-btn.style4:hover,
.vs-btn.style4.active {
    color: var(--theme-color);
    /* Highlight color */
    background-color: transparent;
}

/* Career Card Styles */
.career-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--theme-color);
}

.career-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: var(--theme-color);
    font-size: 32px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-card:hover .career-icon {
    background-color: var(--theme-color);
    color: #fff;
    transform: scale(1.1) rotateY(180deg);
}

.career-card:hover .career-icon i {
    transform: rotateY(-180deg);
    /* Counter rotate icon to keep it readable if needed, or just let it spin */
}


.career-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
    /* Assuming Outfit is available/used elsewhere */
}

.career-text {
    color: #666;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    flex-grow: 1;
}

.career-card .vs-btn {
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 200px;
}

/* Center Gallery Grid */
.filter-active {
    margin: 0 auto !important;
}

/* Laptop Screen Fixes (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {

    /* Reduce logo size slightly */
    .shj {
        width: 130px !important;
    }

    /* Reduce menu padding/spacing to fit everything */
    .menu-style1>ul>li {
        margin: 0 5px !important;
    }

    .menu-style1>ul>li>a {
        font-size: 14px !important;
        padding: 0 !important;
    }

    /* Ensure header middle container has enough space */
    .header-middle .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Adjust button padding if needed */
    .header-btn .vs-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* Apply brightness filter to all hero background images */
.ls-bg-img {
    filter: brightness(0.5) !important;
}

/* Custom File Input */
.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f3f3f4;
    color: #333;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.custom-file-upload:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.custom-file-upload i {
    margin-right: 8px;
    color: var(--theme-color);
}

#file-name-display {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    word-break: break-all;
}