:root {
    --primary: #006C35;
    /* Saudi Green - Professional */
    --secondary: #B38A4E;
    /* Premium Gold/Bronze */
    --accent: #1E3A8A;
    /* Royal Blue */
    --light: #F8FAFC;
    --dark: #0F172A;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

.bg-gradient-premium {
    background: linear-gradient(135deg, #006C35 0%, #1E3A8A 100%);
}

.footer.container-fluid,
.copyright.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.hero-header h1,
.hero-header p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


/*** Premium Loader ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    background: #fff !important;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.premium-loader {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-rings {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid transparent;
    border-radius: 50%;
}

.ring-1 {
    width: 200px;
    height: 200px;
    border-top-color: var(--primary);
    border-bottom-color: var(--primary);
    animation: rotate-loader 2s cubic-bezier(0.53, 0.21, 0.29, 0.67) infinite;
}

.ring-2 {
    width: 150px;
    height: 150px;
    border-right-color: var(--secondary);
    border-left-color: var(--secondary);
    animation: rotate-loader-reverse 1.5s linear infinite;
}

.ring-3 {
    width: 100px;
    height: 100px;
    border-top-color: var(--dark);
    border-bottom-color: var(--dark);
    animation: rotate-loader 1s ease-in-out infinite;
}

.loader-logo-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: pulse-loader-logo 2s ease-in-out infinite;
}

.loader-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes rotate-loader {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-loader-reverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes pulse-loader-logo {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(0, 108, 53, 0));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(0, 108, 53, 0.2));
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

html[dir="rtl"] .back-to-top {
    right: auto;
    left: 45px;
}


/*** Heading ***/
h1,
h2,
h3,
.fw-bold {
    font-weight: 700 !important;
}

h4,
h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Navbar ***/
/*** Navbar Overhaul ***/
.header-cinematic {
    background: linear-gradient(135deg, #006C35 0%, #1E3A8A 100%);
    min-height: 90px;
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar-light {
    padding: 20px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
}

.sticky-top.navbar-light {
    position: fixed;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin: 0 15px;
    padding: 12px 0;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.3px;
    transition: 0.4s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: 0.4s;
    border-radius: 10px;
}

html[dir="rtl"] .navbar-light .navbar-nav .nav-link::after {
    left: auto;
    right: 0;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--secondary) !important;
    transform: translateY(-1px);
}

/* Premium Logo Styling */
.navbar-brand img {
    max-height: 90px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: 0.5s;
}

.navbar-brand .logo-black {
    display: none;
}

.sticky-top .navbar-brand .logo-white {
    display: none;
}

.sticky-top .navbar-brand .logo-black {
    display: block;
    max-height: 75px;
}

.sticky-top .navbar-brand img {
    max-height: 75px;
}

/* Auth Buttons */
.nav-btn-login {
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 10px 25px !important;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 5px;
    transition: 0.4s;
}

.nav-btn-login:hover {
    background: #fff;
    color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.nav-btn-register {
    background: var(--secondary);
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 10px 25px !important;
    border-radius: 100px;
    border: none;
    box-shadow: 0 10px 20px rgba(179, 138, 78, 0.3);
    transition: 0.4s;
}

.nav-btn-register:hover {
    background: #fff;
    color: var(--secondary) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.sticky-top .nav-btn-login {
    color: var(--dark) !important;
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.05);
}

.sticky-top .nav-btn-login:hover {
    background: var(--primary);
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }

    .navbar-light .navbar-brand h1 {
        color: var(--primary);
    }

    .navbar-light .navbar-brand img {
        max-height: 60px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }

    .sticky-top.navbar-light {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--secondary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-light .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Hero Header ***/
.hero-header {
    background-image: url(../img/bg-bottom-hero.png);
    background-position: center bottom -1px;
    background-repeat: no-repeat;
    background-size: 100% 180px;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* Force hero parent (the container-fluid with bg image) to show full image stretched to fill */
.container-fluid:has(> .hero-header) {
    background-size: 100% 100% !important;
    background-position: center center !important;
}

/* Watermarks removed */

.hero-header .container {
    position: relative;
    z-index: 2;
}

/* Additional watermark layers for depth */
.hero-header .recruitment-watermark {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-header .recruitment-watermark i {
    position: absolute;
    color: rgba(255, 255, 255, 0.04);
    font-size: 5rem;
}

.hero-header .recruitment-watermark .icon-1 {
    top: 15%;
    right: 15%;
    transform: rotate(15deg);
}

.hero-header .recruitment-watermark .icon-2 {
    bottom: 25%;
    left: 15%;
    font-size: 8rem;
    transform: rotate(-20deg);
}

.hero-header .recruitment-watermark .icon-3 {
    top: 40%;
    left: 5%;
    font-size: 4rem;
    transform: rotate(10deg);
}

.hero-header .recruitment-watermark .icon-4 {
    bottom: 10%;
    right: 10%;
    font-size: 6rem;
    transform: rotate(-10deg);
}

/* Home Slider Specific Height */
.hero-header:has(.heroSwiper) {
    min-height: 850px;
    /* Increased height */
    padding-bottom: 45px;
}

.heroSwiper .swiper-slide {
    padding: 100px 0;
    /* More breathing room for text */
}

/* Premium Hero Breadcrumbs */
.hero-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-header .breadcrumb-item {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.hero-header .breadcrumb-item,
.hero-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.hero-header .breadcrumb-item a:hover {
    color: #fff !important;
}

.hero-header .breadcrumb-item.active {
    color: #fff !important;
    font-weight: 700;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    content: " \f105 ";
    /* angle-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 15px;
}

html[dir="rtl"] .hero-header .breadcrumb-item+.breadcrumb-item::before {
    content: " \f104 ";
    /* angle-left */
}

/* Swiper Premium Customizations */
.heroSwiper {
    width: 100%;
    height: 100%;
}

.heroSwiper .swiper-pagination {
    bottom: 30px !important;
}

.heroSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.heroSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary);
    /* Gold */
    width: 30px;
    border-radius: 10px;
}

.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.heroSwiper .swiper-button-next:after,
.heroSwiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.1);
}

@media (max-width: 991.98px) {

    .heroSwiper .swiper-button-next,
    .heroSwiper .swiper-button-prev {
        display: none;
    }
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -25px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: 25px;
}

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(33, 66, 177, .5);
}

.section-title h6::after {
    top: 5px;
    left: 3px;
}


/*** Service ***/
.service-item {
    position: relative;
    height: 350px;
    padding: 30px 25px;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: url(../img/icon-shape-primary.png) center center no-repeat;
    transition: .5s;
}

.service-item:hover .service-icon {
    color: var(--primary);
    background: url(../img/icon-shape-white.png);
}

.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover h5,
.service-item:hover p {
    color: var(--light);
}

.service-item a.btn {
    position: relative;
    display: flex;
    color: var(--primary);
    transition: .5s;
    z-index: 1;
}

.service-item:hover a.btn {
    color: var(--primary);
}

.service-item a.btn::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    top: 0;
    left: 0;
    border-radius: 35px;
    background: #DDDDDD;
    transition: .5s;
    z-index: -1;
}

.service-item:hover a.btn::before {
    width: 100%;
    background: var(--light);
}


/*** Project Portfolio ***/
.portfolio-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px;
    top: 0;
    left: 0;
    background: var(--primary);
    transition: .5s;
    z-index: 1;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item .btn {
    position: absolute;
    width: 90px;
    height: 90px;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/icon-shape-white.png) center center no-repeat;
    border: none;
    transition: .5s;
    opacity: 0;
    z-index: 2;
}

.portfolio-item:hover .btn {
    opacity: 1;
    transition-delay: .15s;
}


/*** Footer ***/
.footer {
    background: linear-gradient(135deg, #004d26 0%, #152a63 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer .footer-logo {
    max-height: 150px;
    filter: brightness(0) invert(1);
    margin-bottom: 25px;
}

.footer h5 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 10px;
}

html[dir="rtl"] .footer h5::after {
    left: auto;
    right: 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer .btn.btn-social {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-right: 8px;
}

html[dir="rtl"] .footer .btn.btn-social {
    margin-right: 0;
    margin-left: 8px;
}

.footer .btn.btn-social:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(179, 138, 78, 0.3);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 12px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

html[dir="rtl"] .footer .btn.btn-link {
    text-align: right;
}

.footer .btn.btn-link::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    font-size: 12px;
    transition: 0.3s;
    color: var(--secondary);
}

html[dir="rtl"] .footer .btn.btn-link::before {
    content: "\f104";
    margin-right: 0;
    margin-left: 10px;
}

.footer .btn.btn-link:hover {
    color: #fff !important;
    padding-left: 10px;
}

html[dir="rtl"] .footer .btn.btn-link:hover {
    padding-left: 0;
    padding-right: 10px;
}

.footer .footer-gallery img {
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
    background: rgba(255, 255, 255, 0.03);
}

.footer .footer-gallery img:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.footer .newsletter-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
    display: flex;
}

.footer .newsletter-form .form-control {
    background: transparent;
    border: none;
    color: #fff;
    padding-left: 20px;
}

.footer .newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer .newsletter-form .btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.footer .newsletter-form .btn:hover {
    background: #fff;
    color: var(--secondary);
}

@media (max-width: 767.98px) {
    .footer h5::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }

    html[dir="rtl"] .footer h5::after {
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%);
    }

    .footer .btn.btn-link {
        text-align: center !important;
    }

    .footer .btn.btn-link:hover {
        padding-left: 0;
        padding-right: 0;
    }

    .footer .contact-info p {
        justify-content: center !important;
    }
}

.footer .copyright {
    padding: 10px 0;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.2);
    /* Semi-transparent to show footer gradient */
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .copyright a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.footer .footer-menu a {
    margin-left: 25px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer .footer-menu a:hover {
    color: #fff;
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Authentication Premium Styles - Theme Respectful */
.auth-page-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50px;
    padding: 60px 20px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.auth-card-premium {
    background: #FFFFFF;
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
}

.auth-logo-wrap {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo-wrap img {
    height: 70px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 25px;
    text-align: center;
}

.auth-input-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-input-group label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
}

.auth-control {
    width: 100%;
    height: 52px;
    background: #F8FAFC;
    border: 2px solid #F1F5F9;
    border-radius: 12px !important;
    padding: 0 45px !important;
    font-weight: 500;
    transition: 0.3s;
}

.auth-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 15px rgba(0, 108, 53, 0.1);
    outline: none;
}

.auth-input-icon {
    position: absolute;
    bottom: 16px;
    left: 15px;
    color: #94A3B8;
    font-size: 1rem;
    pointer-events: none;
}

html[dir="rtl"] .auth-input-icon {
    left: auto;
    right: 15px;
}

.auth-btn {
    width: 100%;
    height: 52px;
    background: var(--primary);
    color: #FFFFFF !important;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 108, 53, 0.2);
}

.auth-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 108, 53, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* Premium Profile Dropdown */
.profile-dropdown-btn:focus {
    box-shadow: none;
}

.profile-avatar-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 3px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-dropdown-btn:hover .profile-avatar-wrapper {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border: 2px solid #fff;
    border-radius: 50%;
}

.shadow-premium {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 108, 53, 0.05);
    color: var(--primary);
}

html[dir="rtl"] .dropdown-item:hover {
    padding-right: 1.5rem !important;
}

.btn-premium-sm {
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-premium-sm:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.sticky-top .btn-premium-sm {
    color: var(--dark) !important;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.sticky-top .btn-premium-sm:hover {
    background: var(--primary);
    color: #fff !important;
}

/* Password Toggle Style */
.password-toggle {
    position: absolute;
    bottom: 16px;
    right: 15px;
    color: #94A3B8;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

html[dir="rtl"] .password-toggle {
    right: auto;
    left: 15px;
}

.password-toggle:hover {
    color: var(--primary);
}

.auth-card-premium.wide {
    max-width: 800px;
}

/* Account Type Professional Cards */
.account-type-input {
    display: none;
}

.account-type-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #F8FAFC;
    border: 2px solid #F1F5F9;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

html[dir="rtl"] .account-type-card {
    flex-direction: row;
    /* In RTL: Right to Left */
}

/* We want Radio on Right, Text on Left */
.card-selector {
    order: 1;
    /* First on the right in RTL */
}

.card-info {
    order: 2;
    /* Second on the left in RTL */
    display: flex;
    align-items: center;
    gap: 20px;
    /* Space between icon and text */
}

.icon-box {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.type-name {
    font-weight: 700;
    color: #475569;
    font-size: 1.05rem;
    transition: 0.3s;
}

.card-selector {
    width: 24px;
    height: 24px;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    background: #fff;
}

.selector-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    transform: scale(0);
    transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover & Checked States */
.account-type-card:hover {
    border-color: rgba(0, 108, 53, 0.3);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.account-type-input:checked+.account-type-card {
    border-color: var(--primary);
    background: rgba(0, 108, 53, 0.02);
    box-shadow: 0 15px 35px rgba(0, 108, 53, 0.1);
}

.account-type-input:checked+.account-type-card .icon-box {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.account-type-input:checked+.account-type-card .type-name {
    color: var(--primary);
}

.account-type-input:checked+.account-type-card .card-selector {
    border-color: var(--primary);
}

.account-type-input:checked+.account-type-card .selector-dot {
    transform: scale(1);
}

/* Wide screen adjustments for the cards */
/* Futuristic Glass Discovery Center */
.premium-search-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 40px;
    padding: 60px 40px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.1),
        0 10px 40px rgba(0, 108, 53, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-top: -120px;
    position: relative;
    z-index: 100;
}

.discovery-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
}

.search-console {
    background: #fff;
    border-radius: 25px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.search-field {
    background: #f8fafc;
    border-radius: 20px;
    padding: 15px 25px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-field:focus-within {
    background: #fff;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(181, 143, 85, 0.1);
    transform: translateY(-2px);
}

.search-field i {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 20px;
}

html[dir="rtl"] .search-field i {
    margin-right: 0;
    margin-left: 20px;
}

.search-field input,
.search-field select {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.search-submit-btn {
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--primary) 0%, #004d26 100%);
    border: none;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 15px 30px rgba(0, 108, 53, 0.3);
    transition: 0.4s;
    overflow: hidden;
    position: relative;
}

.search-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.search-submit-btn:hover::before {
    left: 100%;
}

.search-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 108, 53, 0.4);
}

/* Glass Category Cards */
.cat-glass-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.cat-glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: 0.5s;
}

.cat-glass-card:hover {
    background: #fff;
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.cat-glass-card:hover::after {
    opacity: 1;
}

.cat-neon-icon {
    width: 85px;
    height: 85px;
    background: #fff;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: rotate(-5deg);
    transition: 0.5s;
}

.cat-glass-card:hover .cat-neon-icon {
    transform: rotate(0) scale(1.1);
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 20px 40px rgba(181, 143, 85, 0.3);
}

.cat-glass-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.cat-glass-badge {
    background: rgba(0, 108, 53, 0.05);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Counter Statistics Center */
.stats-floating-grid {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 50px;
    padding-top: 50px;
}

.stat-premium-box {
    position: relative;
    padding: 30px;
}

.stat-gradient-icon {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #8d6226 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 15px rgba(181, 143, 85, 0.2));
}

.stat-premium-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-premium-label {
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-premium-box::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    height: 80px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
    transform: translateY(-50%);
}

html[dir="rtl"] .stat-premium-box::before {
    right: auto;
    left: -15px;
}

.col-md-4:last-child .stat-premium-box::before {
    display: none;
}


/* Premium Section Headers */
.section-premium-title {
    margin-bottom: 60px;
}

.premium-badge {
    background: rgba(181, 143, 85, 0.1);
    color: var(--secondary);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(181, 143, 85, 0.2);
}

.premium-h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -1.5px;
}

/* Hyper-Job Card */
.hyper-job-card {
    background: #fff;
    border-radius: 30px;
    padding: 35px;
    border: 1px solid #f1f5f9;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hyper-job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, rgba(181, 143, 85, 0.03), transparent);
    transition: 0.5s;
}

.hyper-job-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

.hyper-job-card:hover::before {
    height: 100%;
}

.job-type-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.job-icon-wrap {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: 0.4s;
}

.hyper-job-card:hover .job-icon-wrap {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
}

.job-title-link {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: 0.3s;
}

.job-title-link:hover {
    color: var(--secondary);
}

.job-meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.job-meta-item {
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.job-meta-item i {
    color: var(--secondary);
    margin-right: 8px;
}

html[dir="rtl"] .job-meta-item i {
    margin-right: 0;
    margin-left: 8px;
}

.hyper-job-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.job-title-link,
.job-type-badge,
.job-icon-wrap {
    position: relative;
    z-index: 2;
}

/* Company Glass Card */
.company-hyper-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 35px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #fff;
    transition: 0.5s;
    height: 100%;
}

.company-hyper-card:hover {
    background: #fff;
    transform: translateY(-10px);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.06);
}

.company-logo-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto 25px;
    position: relative;
}

.company-logo-ring img,
.company-logo-ring .placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    padding: 10px;
}

.company-job-count-pill {
    background: #000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    position: absolute;
    bottom: 0;
    right: 0;
}

/* Newsletter Bordered Container */
.newsletter-container-bordered {
    background: linear-gradient(135deg, #004d26 0%, #152a63 100%);
    border-radius: 50px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

/* CV Submission Card */
.cv-submission-card {
    perspective: 1500px;
    max-width: 500px;
    margin: 0 auto;
}

.cv-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 45px 40px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Paper Texture */
.cv-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px);
    pointer-events: none;
}

/* Hover Effect */
.cv-card-inner:hover {
    transform: translateY(-15px) rotateX(8deg) rotateY(-8deg) scale(1.03);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(0, 108, 53, 0.2);
}

.cv-card-inner:hover .cv-card-avatar {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(0, 108, 53, 0.5);
}

.cv-card-inner:hover .cv-card-badge {
    transform: scale(1.2) rotate(360deg);
    background: linear-gradient(135deg, #006C35 0%, #28a745 100%);
}

/* CV Header */
.cv-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

/* CV Avatar */
.cv-card-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006C35 0%, #28a745 100%);
    margin-bottom: 18px;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 8px 20px rgba(0, 108, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

/* CV Section */
.cv-card-section {
    margin-bottom: 28px;
}

.cv-text-line {
    position: relative;
}

/* CV Badge */
.cv-card-badge {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #B38A4E 0%, #D4A574 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(179, 138, 78, 0.4);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animations */
@keyframes floatCV {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.cv-submission-card {
    animation: floatCV 8s ease-in-out infinite;
}

/* Newsletter Content */
.newsletter-content-wrapper {
    padding: 20px 0;
}

.line-height-lg {
    line-height: 1.8;
}

/* CTA Button Wrapper */
.cta-button-wrapper {
    margin-top: 40px;
}

/* Start Journey Button */
.btn-start-journey {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 22px 50px;
    background: linear-gradient(135deg, #006C35 0%, #28a745 100%);
    color: white;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
    border-radius: 60px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 108, 53, 0.4),
        0 0 0 0 rgba(0, 108, 53, 0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateY(0);
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Button Content */
.btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

/* Button Icon */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    animation: rotateRocket 4s linear infinite;
}

.btn-icon i {
    font-size: 22px;
}

/* Button Text */
.btn-text {
    font-size: 20px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Button Arrow */
.btn-arrow {
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0.8;
}

.btn-arrow i {
    font-size: 18px;
}

/* Shine Effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s ease;
}

/* Hover Effects */
.btn-start-journey:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 20px 60px rgba(0, 108, 53, 0.6),
        0 0 0 8px rgba(0, 108, 53, 0.2);
    background: linear-gradient(135deg, #28a745 0%, #006C35 100%);
}

.btn-start-journey:hover .btn-shine {
    left: 100%;
}

.btn-start-journey:hover .btn-icon {
    transform: scale(1.2) rotate(15deg);
    background: rgba(255, 255, 255, 0.3);
}

.btn-start-journey:hover .btn-text {
    transform: translateX(5px);
}

.btn-start-journey:hover .btn-arrow {
    transform: translateX(10px);
    opacity: 1;
}

/* Active State */
.btn-start-journey:active {
    transform: translateY(-2px) scale(1.02);
}

/* Pulse Glow Animation */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow:
            0 10px 40px rgba(0, 108, 53, 0.4),
            0 0 0 0 rgba(0, 108, 53, 0.5);
    }

    50% {
        box-shadow:
            0 10px 40px rgba(0, 108, 53, 0.4),
            0 0 0 15px rgba(0, 108, 53, 0);
    }
}

/* Rocket Rotation Animation */
@keyframes rotateRocket {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* RTL Support */
html[dir="rtl"] .btn-start-journey:hover .btn-text {
    transform: translateX(-5px);
}

html[dir="rtl"] .btn-start-journey:hover .btn-arrow {
    transform: translateX(-10px);
}

/* Responsive */
@media (max-width: 992px) {
    .newsletter-container-bordered {
        padding: 60px 40px;
        border-radius: 35px;
    }

    .btn-start-journey {
        padding: 20px 45px;
        font-size: 18px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .btn-icon i {
        font-size: 20px;
    }

    .btn-text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .newsletter-container-bordered {
        padding: 40px 30px;
        border-radius: 25px;
    }

    .cv-card-inner {
        padding: 35px 30px;
    }

    .cv-card-avatar {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }

    .cv-card-badge {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .newsletter-content-wrapper {
        margin-top: 30px;
        text-align: center;
    }

    .cta-button-wrapper {
        display: flex;
        justify-content: center;
    }

    .btn-start-journey {
        padding: 18px 40px;
        font-size: 16px;
    }

    .btn-content {
        gap: 12px;
    }

    .btn-icon {
        width: 35px;
        height: 35px;
    }

    .btn-icon i {
        font-size: 18px;
    }

    .btn-text {
        font-size: 16px;
    }

    .btn-arrow i {
        font-size: 16px;
    }
}

.cv-submission-card {
    perspective: 1500px;
    max-width: 500px;
    margin: 0 auto;
}

.cv-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 45px 40px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Paper Texture */
.cv-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px);
    pointer-events: none;
}

/* Hover Effect */
.cv-card-inner:hover {
    transform: translateY(-15px) rotateX(8deg) rotateY(-8deg) scale(1.03);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(0, 108, 53, 0.2);
}

.cv-card-inner:hover .cv-card-line,
.cv-card-inner:hover .cv-card-section-title,
.cv-card-inner:hover .cv-card-name,
.cv-card-inner:hover .cv-card-title {
    background: linear-gradient(90deg, #006C35 0%, #28a745 100%);
    transform: translateX(8px);
}

.cv-card-inner:hover .cv-card-avatar {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(0, 108, 53, 0.5);
}

.cv-card-inner:hover .cv-card-badge {
    transform: scale(1.2) rotate(360deg);
    background: linear-gradient(135deg, #006C35 0%, #28a745 100%);
}

/* CV Header */
.cv-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

/* CV Avatar */
.cv-card-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006C35 0%, #28a745 100%);
    margin-bottom: 18px;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 8px 20px rgba(0, 108, 53, 0.4);
}

.cv-card-avatar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    opacity: 0.35;
}

/* CV Name & Title */
.cv-card-name {
    width: 200px;
    height: 16px;
    background: linear-gradient(90deg, #adb5bd 0%, #6c757d 100%);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.5s ease;
}

.cv-card-title {
    width: 140px;
    height: 12px;
    background: linear-gradient(90deg, #ced4da 0%, #adb5bd 100%);
    border-radius: 6px;
    transition: all 0.5s ease;
}

/* CV Section */
.cv-card-section {
    margin-bottom: 28px;
}

.cv-card-section-title {
    width: 110px;
    height: 14px;
    background: linear-gradient(90deg, #6c757d 0%, #495057 100%);
    border-radius: 7px;
    margin-bottom: 14px;
    transition: all 0.5s ease;
}

/* CV Lines */
.cv-card-line {
    height: 10px;
    background: linear-gradient(90deg, #dee2e6 0%, #ced4da 100%);
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.5s ease;
    animation: fadeInCV 0.8s ease forwards;
    opacity: 0;
}

.cv-card-line-full {
    width: 100%;
    animation-delay: 0.1s;
}

.cv-card-line-medium {
    width: 70%;
    animation-delay: 0.2s;
}

.cv-card-line-short {
    width: 45%;
    animation-delay: 0.3s;
}

/* CV Badge */
.cv-card-badge {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #B38A4E 0%, #D4A574 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(179, 138, 78, 0.4);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html[dir="rtl"] .cv-card-badge {
    right: auto;
    left: 25px;
}

/* Animations */
@keyframes fadeInCV {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatCV {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.cv-submission-card {
    animation: floatCV 8s ease-in-out infinite;
}

/* Newsletter Content */
.newsletter-content-wrapper {
    padding: 20px 0;
}

.line-height-lg {
    line-height: 1.8;
}

/* Modern Newsletter Form */
.newsletter-form-modern input {
    height: 60px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.newsletter-form-modern input:focus {
    box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.1);
    transform: translateY(-2px);
}

.newsletter-form-modern button {
    height: 60px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.newsletter-form-modern button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 108, 53, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .cv-card-inner {
        padding: 35px 30px;
    }

    .cv-card-avatar {
        width: 70px;
        height: 70px;
    }

    .cv-card-badge {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .newsletter-content-wrapper {
        margin-top: 30px;
        text-align: center;
    }
}

/* Generic Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: 0.4s;
}

.glass-card:hover {
    background: #fff;
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.premium-feature-list {
    list-style: none;
    padding: 0;
}

.premium-feature-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark);
}

html[dir="rtl"] .premium-feature-list li {
    padding-left: 0;
    padding-right: 35px;
}

.premium-feature-list li i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 1.2rem;
}

html[dir="rtl"] .premium-feature-list li i {
    left: auto;
    right: 0;
}

/* Service Premium Card */
.service-premium-card {
    background: #fff;
    border-radius: 35px;
    padding: 50px 40px;
    border: 1px solid #f1f5f9;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-premium-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(181, 143, 85, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transition: 0.5s;
}

.service-premium-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.07);
    border-color: var(--secondary);
}

.service-premium-card:hover::after {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(181, 143, 85, 0.1) 0%, transparent 70%);
}

.service-premium-icon {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 30px;
    transition: 0.5s;
}

.service-premium-card:hover .service-premium-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg) scale(1.1);
}

/* Horizontal Job Card */
.hyper-job-card-horizontal {
    background: #fff;
    border-radius: 25px;
    padding: 25px;
    border: 1px solid #f1f5f9;
    transition: 0.4s;
}

.hyper-job-card-horizontal:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary);
}

html[dir="rtl"] .hyper-job-card-horizontal:hover {
    transform: translateX(-10px);
}

.job-logo-box {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.premium-filter-box {
    background: #fff;
    border-radius: 30px;
    padding: 35px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

/* Premium Form Styling */
.premium-form-card {
    background: #fff;
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.form-control-premium {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px 25px;
    font-weight: 500;
    transition: 0.3s;
}

.form-control-premium:focus {
    background: #fff;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(181, 143, 85, 0.1);
}

/* Cinematic Video Section */
.cinematic-video-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(rgba(0, 77, 38, 0.9), rgba(21, 42, 99, 0.9)), url('../img/about.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 50px;
    margin: 80px 0;
    overflow: hidden;
}

.video-play-btn {
    width: 100px;
    height: 100px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    position: relative;
    transition: 0.5s;
    border: none;
    box-shadow: 0 0 50px rgba(181, 143, 85, 0.5);
    margin: 0 auto 30px;
}

.video-play-btn i {
    z-index: 2;
    margin-left: 5px;
}

html[dir="rtl"] .video-play-btn i {
    margin-left: 0;
    margin-right: 5px;
}

.video-play-btn::before,
.video-play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.3;
    z-index: 1;
    animation: ripple 2s infinite;
}

.video-play-btn::after {
    animation-delay: 1s;
}

@keyframes ripple {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.5;
    }

    100% {
        width: 250px;
        height: 250px;
        opacity: 0;
    }
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: #fff;
    color: var(--secondary);
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.4);
}

/* Advanced About Section Utilities */
.about-image-mesh {
    position: relative;
    padding: 20px;
}

.about-image-mesh::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 20% 30%, rgba(181, 143, 85, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 77, 38, 0.05) 0%, transparent 50%);
    filter: blur(40px);
    z-index: -1;
    border-radius: 50%;
}

.floating-3d-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    transform-style: preserve-3d;
    transition: 0.5s;
}

.floating-3d-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
}

.insight-stat-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 25px;
    padding: 25px 20px;
    transition: 0.4s;
}

.insight-stat-box:hover {
    background: #fff;
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.premium-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.check-icon-wrap {
    width: 38px;
    height: 38px;
    background: var(--secondary-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.social-luxury-group {
    display: flex;
    gap: 12px;
}

.social-luxury-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: 0.3s;
    text-decoration: none;
}

.social-luxury-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Hyper Mission Cards */
.hyper-mission-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.hyper-mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.6s;
}

html[dir="rtl"] .hyper-mission-card::before {
    transform-origin: right;
}

.hyper-mission-card:hover {
    transform: translateY(-20px);
    background: #fff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
}

.hyper-mission-card:hover::before {
    transform: scaleX(1);
}

.mission-icon-nexus {
    width: 100px;
    height: 100px;
    background: #f8fafc;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 30px;
    transition: 0.5s;
    position: relative;
    z-index: 1;
}

.hyper-mission-card:hover .mission-icon-nexus {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary);
    color: #fff;
}

/* Cinematic Nexus Enhancement */
.cinematic-nexus-overlay {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 40px;
    padding: 80px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    width: 100%;
}

.floating-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(2px);
    animation: floatParticle 10s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Premium Filter Enhancement */
.premium-filter-box {
    background: #ffffff;
    border-radius: 30px;
    padding: 35px 25px;
    position: sticky;
    top: 100px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Astronomical Job Card Improvements */
.hyper-job-card-horizontal,
.hyper-job-card-grid {
    background: #ffffff;
    border-radius: 35px;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 108, 53, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Glowing Border Effect on Hover */
.hyper-job-card-horizontal:hover,
.hyper-job-card-grid:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 40px 100px rgba(0, 108, 53, 0.12);
    border-color: var(--primary);
}

/* Logo Box Enhancement */
.job-logo-box,
.hyper-job-card-grid .job-logo {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 40px;
    /* Squircular Look */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    /* Prevent huge logos from escaping */
    position: relative;
}

.job-logo-box img,
.hyper-job-card-grid .job-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hyper-job-card-horizontal:hover .job-logo-box,
.hyper-job-card-grid:hover .job-logo {
    transform: rotate(-5deg) scale(1.1);
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 15px 30px rgba(181, 143, 85, 0.15);
}

/* Badge Styling */
.badge-premium-type {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0, 108, 53, 0.08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-premium-type i {
    font-size: 0.7rem;
}

/* Typography and Content */
.job-title-hyper {
    font-weight: 900;
    color: #1a1a1a;
    transition: 0.3s;
}

.hyper-job-card-horizontal:hover .job-title-hyper,
.hyper-job-card-grid:hover .job-title-hyper {
    color: var(--primary);
}

.company-name-tag {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

/* Stats and Icons */
.job-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: 0.3s;
}

.hyper-job-card-horizontal:hover .job-stat-item,
.hyper-job-card-grid:hover .job-stat-item {
    background: #fff;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.job-stat-item i {
    color: var(--primary);
    font-size: 1rem;
}

/* Action Buttons */
.btn-action-hyper {
    border-radius: 100px;
    padding: 14px 35px;
    font-weight: 900;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 108, 53, 0.2);
}

.btn-action-hyper:hover {
    background: var(--secondary);
    transform: translateX(-5px);
    box-shadow: 0 15px 35px rgba(181, 143, 85, 0.3);
    color: #fff;
}

.btn-outline-hyper {
    border-radius: 100px;
    padding: 12px 30px;
    font-weight: 800;
    border: 2px solid #eee;
    color: #444;
    transition: 0.3s;
}

.btn-outline-hyper:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 108, 53, 0.02);
}

/* Grid View Styles */
.jobs-grid-container.grid-view {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 -15px;
    /* Adjust for padding on items */
}

.jobs-grid-container.grid-view .job-item-col {
    width: calc(50% - 15px);
    /* Exactly 2 per row */
    padding: 0;
}

.jobs-grid-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 991px) {
    .jobs-grid-container.grid-view .job-item-col {
        width: 100%;
    }
}

/* Image Error State */
.img-error-fallback {
    filter: grayscale(1) opacity(0.5);
}

.bg-primary {
    background-color: #21b1234a !important;
}










/* Professional Mobile Sidebar (Offcanvas) */
.offcanvas-premium {
    background: linear-gradient(180deg, #004d26 0%, #152a63 100%);
    border: none;
    width: 300px !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

html[dir="rtl"] .offcanvas-premium {
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
}

.offcanvas-premium .offcanvas-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-premium .offcanvas-title img {
    max-height: 80px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.offcanvas-premium .offcanvas-title img:hover {
    transform: scale(1.05);
}

.offcanvas-premium .btn-close-white {
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.offcanvas-premium .btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.offcanvas-premium .offcanvas-body {
    padding: 0;
}

.offcanvas-premium .nav-link-premium {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    font-size: 16px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

html[dir="rtl"] .offcanvas-premium .nav-link-premium {
    border-left: none;
    border-right: 4px solid transparent;
}

.offcanvas-premium .nav-link-premium:hover,
.offcanvas-premium .nav-link-premium.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border-left-color: var(--secondary);
    padding-left: 30px;
}

html[dir="rtl"] .offcanvas-premium .nav-link-premium:hover,
html[dir="rtl"] .offcanvas-premium .nav-link-premium.active {
    border-right-color: var(--secondary);
    padding-right: 30px;
    padding-left: 25px;
}

.offcanvas-premium .nav-link-premium i {
    width: 25px;
    margin-right: 15px;
    font-size: 18px;
    color: var(--secondary);
    transition: all 0.3s ease;
}

html[dir="rtl"] .offcanvas-premium .nav-link-premium i {
    margin-right: 0;
    margin-left: 15px;
}

.offcanvas-premium .nav-link-premium:hover i,
.offcanvas-premium .nav-link-premium.active i {
    transform: scale(1.2);
}

.offcanvas-premium .sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-premium .sidebar-footer .btn-danger {
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.offcanvas-premium .sidebar-footer .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* =========================================
   MOBILE HEADER PROFESSIONAL STYLING
   ========================================= */

/* Mobile Navbar Improvements */
@media (max-width: 991px) {
    .navbar {
        padding: 12px 16px !important;
        min-height: 70px;
    }

    /* Mobile Logo Center */
    .mobile-logo-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    html[dir="rtl"] .mobile-logo-center {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }

    .mobile-logo-center img {
        max-height: 45px;
        width: auto;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        background: transparent;
        padding: 8px 12px !important;
        transition: all 0.3s ease;
        border-radius: 12px;
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }

    .mobile-menu-btn:active {
        transform: scale(0.95);
    }

    .mobile-menu-btn .fa-bars {
        font-size: 1.5rem !important;
        transition: all 0.3s ease;
    }

    /* Mobile Auth Right */
    .mobile-auth-right {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Profile Avatar */
    .mobile-profile-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 2px solid var(--secondary);
        object-fit: cover;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .mobile-profile-avatar:hover {
        transform: scale(1.1);
        border-color: #fff;
        box-shadow: 0 6px 20px rgba(181, 143, 85, 0.4);
    }

    /* Mobile Profile Placeholder */
    .mobile-profile-placeholder {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--secondary), var(--primary));
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .mobile-profile-placeholder:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 6px 20px rgba(181, 143, 85, 0.4);
    }

    /* Mobile Auth Button (Login) */
    .btn-mobile-auth {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--secondary), var(--primary));
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 0;
    }

    .btn-mobile-auth:hover {
        transform: scale(1.1);
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        box-shadow: 0 6px 20px rgba(181, 143, 85, 0.4);
        color: #fff;
    }

    .btn-mobile-auth i {
        font-size: 18px;
        margin: 0;
    }

    /* Ensure proper spacing in mobile layout */
    .navbar .d-flex.w-100 {
        position: relative;
    }
}

/* Universal Icon Spacing */
/* LTR */
:not([dir="rtl"]) i.fa+*:not(:empty),
:not([dir="rtl"]) i.fas+*:not(:empty),
:not([dir="rtl"]) i.far+*:not(:empty),
:not([dir="rtl"]) i.fab+*:not(:empty),
:not([dir="rtl"]) .fa+*:not(:empty),
:not([dir="rtl"]) .fas+*:not(:empty),
:not([dir="rtl"]) .far+*:not(:empty),
:not([dir="rtl"]) .fab+*:not(:empty) {
    margin-right: 8px !important;
}

:not([dir="rtl"]) *:not(:empty)+i.fa,
:not([dir="rtl"]) *:not(:empty)+i.fas,
:not([dir="rtl"]) *:not(:empty)+i.far,
:not([dir="rtl"]) *:not(:empty)+i.fab,
:not([dir="rtl"]) *:not(:empty)+.fa,
:not([dir="rtl"]) *:not(:empty)+.fas,
:not([dir="rtl"]) *:not(:empty)+.far,
:not([dir="rtl"]) *:not(:empty)+.fab {
    margin-left: 8px !important;
}

/* RTL */
[dir="rtl"] i.fa+*:not(:empty),
[dir="rtl"] i.fas+*:not(:empty),
[dir="rtl"] i.far+*:not(:empty),
[dir="rtl"] i.fab+*:not(:empty),
[dir="rtl"] .fa+*:not(:empty),
[dir="rtl"] .fas+*:not(:empty),
[dir="rtl"] .far+*:not(:empty),
[dir="rtl"] .fab+*:not(:empty) {
    margin-left: 8px !important;
}

[dir="rtl"] *:not(:empty)+i.fa,
[dir="rtl"] *:not(:empty)+i.fas,
[dir="rtl"] *:not(:empty)+i.far,
[dir="rtl"] *:not(:empty)+i.fab,
[dir="rtl"] *:not(:empty)+.fa,
[dir="rtl"] *:not(:empty)+.fas,
[dir="rtl"] *:not(:empty)+.far,
[dir="rtl"] *:not(:empty)+.fab {
    margin-right: 8px !important;
}

/* =========================================
   RTL SPACING FIXES (Universal & Utilities)
   ========================================= */

/* Fix Bootstrap Margin Utilities for RTL */
/* Assuming the base CSS is LTR-only, we manually flip these for RTL */

html[dir="rtl"] .me-0 {
    margin-left: 0 !important;
    margin-right: initial !important;
}

html[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: initial !important;
}

html[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: initial !important;
}

html[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: initial !important;
}

html[dir="rtl"] .me-4 {
    margin-left: 1.5rem !important;
    margin-right: initial !important;
}

html[dir="rtl"] .me-5 {
    margin-left: 3rem !important;
    margin-right: initial !important;
}

html[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: initial !important;
}

html[dir="rtl"] .ms-0 {
    margin-right: 0 !important;
    margin-left: initial !important;
}

html[dir="rtl"] .ms-1 {
    margin-right: 0.25rem !important;
    margin-left: initial !important;
}

html[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: initial !important;
}

html[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: initial !important;
}

html[dir="rtl"] .ms-4 {
    margin-right: 1.5rem !important;
    margin-left: initial !important;
}

html[dir="rtl"] .ms-5 {
    margin-right: 3rem !important;
    margin-left: initial !important;
}

html[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: initial !important;
}

/* Universal Icon Spacing Enforcement */

/* LTR: [Icon] + [Text] -> Text gets margin-left */
html[dir="ltr"] i.fa+*,
html[dir="ltr"] i.fas+*,
html[dir="ltr"] i.far+*,
html[dir="ltr"] i.fab+* {
    margin-left: 8px !important;
}

html[dir="ltr"] *+i.fa,
html[dir="ltr"] *+i.fas,
html[dir="ltr"] *+i.far,
html[dir="ltr"] *+i.fab {
    margin-left: 8px !important;
}

/* RTL: [Icon] + [Text] -> Text gets margin-right (because it's visually to left) */
html[dir="rtl"] i.fa+*,
html[dir="rtl"] i.fas+*,
html[dir="rtl"] i.far+*,
html[dir="rtl"] i.fab+* {
    margin-right: 8px !important;
}

/* RTL: [Text] + [Icon] -> Icon gets margin-right */
html[dir="rtl"] *+i.fa,
html[dir="rtl"] *+i.fas,
html[dir="rtl"] *+i.far,
html[dir="rtl"] *+i.fab {
    margin-right: 8px !important;
}

/* Specific Fix for headers with icons inside */
h1 i,
h2 i,
h3 i,
h4 i,
h5 i,
h6 i,
p i,
span i,
div i {
    vertical-align: middle;
}

/* Fix for Summary Section Icons specific */
html[dir="rtl"] .bg-light.rounded-3.p-2.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .job-logo-box.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

/* Fix for Company Profile Icons specifically mentioned */
/* These are .info-icon-box inside .d-flex */
html[dir="rtl"] .info-icon-box.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}


/* Footer Company Gallery Hover Effect */
.transition-all {
    transition: all 0.3s ease;
}

.company-footer-item {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Featured Jobs Premium Styles */
.featured-badge-premium {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: shine 2s infinite;
    z-index: 10;
}

@keyframes shine {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }

    100% {
        filter: brightness(1);
    }
}

.hyper-job-card.featured {
    border: 1px solid #ffd700 !important;
    background-color: #fffdf5 !important;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1) !important;
}

.hyper-job-card-horizontal.featured {
    border: 1px solid #ffd700 !important;
    background-color: #fffdf5 !important;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1) !important;
}

.hyper-job-card-grid.featured {
    border: 1px solid #ffd700 !important;
    background-color: #fffdf5 !important;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1) !important;
}