/* =============================================================
   UWM Single-Page Website — Custom Overrides
   ============================================================= */

/* ---------- Global ---------- */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(46, 139, 87, 0.25);
    color: #1d2230;
}

body {
    overflow-x: hidden;
}

/* Offset anchors for sticky header */
section[id] {
    scroll-margin-top: 80px;
}


/* ---------- Slider ISO Badge ---------- */
/* ---------- Header Top Layout Fixes (Zoom Issues) ---------- */
.header-top .auto-container {
    padding-left: 20px !important; /* Reduced from 80px to prevent overlap */
}

.header-top .outer-box {
    flex-wrap: nowrap !important;
}

.header-top__right {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    height: 100%;
    padding: 0 !important;
    flex-shrink: 0; /* Keep buttons/badges together */
}

.header-top__left {
    flex-shrink: 1;
    min-width: 0;
}

.header-contact-info-style1 ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
}

.header-contact-info-style1 ul li {
    float: none !important;
    white-space: nowrap !important;
    margin-right: 15px !important; /* Reduced from 30px */
}

.header-contact-info-style1 ul li .text p {
    font-size: 13px !important; /* Slightly smaller to fit everything */
}

.header-top .btn-one {
    padding-left: 20px !important; /* Reduced width as requested */
    padding-right: 20px !important;
    font-size: 13px !important;
}

.slider-iso-badge {
    position: relative;
    display: flex;
    align-items: center;
    margin: 4px 8px 4px 0; /* Reduced right margin */
}

.slider-iso-badge img {
    height: 45px !important; /* Matches Request A Pickup button height */
    width: auto;
    display: block;
    object-fit: contain;
}

/* ---------- Header / Navigation ---------- */
.main-header.header-style-one {
    position: relative;
    width: 100%;
    z-index: 999;
}

/* Disable template's default sticky to avoid white-on-white conflicts */
.sticky-header {
    display: none !important;
}

/* Fail-safe Sticky Header Fix */
.main-header.fixed-header .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #1d2230 !important;
    /* solid navy for high visibility */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    z-index: 99999 !important;
    animation: slideInDown 0.3s ease-out !important;
    padding: 0 !important;
}

.main-header.fixed-header .header-middle,
.main-header.fixed-header .header-left,
.main-header.fixed-header .header-right {
    background: transparent !important;
}

.main-header.fixed-header .header .main-logo-box img {
    max-height: 45px !important;
}

/* Hide top bar in sticky mode */
.main-header.fixed-header .header-top {
    display: none !important;
}

/* Force menu links to be white on dark background */
.main-header.fixed-header .navigation>li>a {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.main-header.fixed-header .navigation>li:hover>a,
.main-header.fixed-header .navigation>li.active>a,
.main-header.fixed-header .navigation>li.current>a {
    color: #2e8b57 !important;
}

/* Adjust logo sizing for main header */
.main-logo-box img {
    max-height: 110px !important;
    padding: 5px 0;
    transition: all 0.3s ease;
    mix-blend-mode: multiply;
}

/* Lighten the logo box background */
.header-left {
    background: #ffffff !important;
}

.main-logo-box {
    background-color: #ffffff !important;
    width: auto !important;
    padding-right: 8px; /* Reduced space */
}

.header-brand-info {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(0,0,0,0.05);
    padding-left: 15px;
}

.header-brand-img {
    max-height: 85px; /* Increased from 55px for better visibility */
    width: auto;
    display: block;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.2); /* Brightens background and darkens text for clarity */
}

/* Mobile Alignment Fix for Branding */
@media (max-width: 768px) {
    .header-left {
        justify-content: center !important;
        width: 100% !important;
        flex-direction: row !important;
        padding: 10px 0 !important;
    }
    
    .header-brand-info {
        margin-left: 10px !important; /* Balanced spacing for mobile */
        padding-left: 10px !important;
    }
}

/* Sticky Header Styles - Ultra Minimalist (Nav Only) */
.main-header.fixed-header .header {
    background: #1d2230 !important; /* Corporate Dark Background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    height: 65px !important; /* Slightly more prominence */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* Hide logo and side info in sticky state */
.main-header.fixed-header .header-left,
.main-header.fixed-header .header-right {
    display: none !important;
}

/* Force perfectly centered navigation */
.main-header.fixed-header .header-inner {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    text-align: center !important;
}

.main-header.fixed-header .main-menu {
    display: inline-block !important;
    float: none !important;
    vertical-align: middle !important;
}

.main-header.fixed-header .navigation {
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-header.fixed-header .navigation {
    flex-direction: row !important;
    list-style: none !important;
}

.main-header.fixed-header .navigation>li>a {
    padding: 20px 25px !important;
    font-size: 15px !important;
    color: #ffffff !important; /* Lighter links */
    font-weight: 500 !important;
    transition: all 0.3s ease;
}

.main-header.fixed-header .navigation>li.current>a,
.main-header.fixed-header .navigation>li:hover>a {
    color: #4CAF50 !important; /* Keep accent green for active state */
}

/* Ensure footer and mobile logos also blend */
.footer-logo img {
    width: 80px !important; 
    height: 80px !important; /* Forces it into a perfect square */
    background: #ffffff;
    padding: 0; 
    border-radius: 50%; /* Makes it perfectly circular */
    object-fit: cover; /* Hugs the edge */
    margin-bottom: 8px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer-brand-img {
    max-width: 100%;
}

.nav-logo img,
.logo img {
    mix-blend-mode: multiply;
}

/* Active Nav Link */
.main-menu .navigation>li.active>a,
.main-menu .navigation>li.current>a {
    color: #2e8b57 !important;
}

.main-menu .navigation>li.active>a::after,
.main-menu .navigation>li.current>a::after {
    width: 100% !important;
    opacity: 1 !important;
}

/* ---------- Hero / Banner ---------- */
.main-slider.style1 .slide .image-layer {
    filter: brightness(0.55);
    transition: filter 1s ease;
}

.main-slider.style1 .slide:hover .image-layer {
    filter: brightness(0.65);
}

.main-slider .big-title h2 span {
    color: #34d399;
}

/* ---------- Section Spacing ---------- */
.uwm-section {
    position: relative;
    overflow: hidden;
}

/* ---------- Features Bar ---------- */
.features-style1-area {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.single-features-style1 {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    /* Changed to vertical to prevent overlapping */
    align-items: center;
    text-align: center;
    height: 100%;
    border-bottom: 4px solid #2e8b57;
    position: relative;
    z-index: 1;
}

.single-features-style1:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 55px rgba(46, 139, 87, 0.18);
}

.single-features-style1 .icon-holder {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    font-size: 50px;
    color: #2e8b57;
    margin-bottom: 20px;
    display: inline-block;
}

.single-features-style1 .text-holder {
    position: relative !important;
}

.single-features-style1 .text-holder h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1d2230;
    margin-bottom: 15px;
    line-height: 1.2;
    display: block;
}

.single-features-style1 .text-holder p {
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* ---------- About Section ---------- */
.about-style1__image .img-box img {
    transition: transform 0.6s ease;
}

.about-style1__image .img-box:hover img {
    transform: scale(1.05);
}

.progress-box .bar-fill {
    transition: width 2s ease-in-out !important;
}

/* ---------- Service Cards ---------- */
.uwm-service-card {
    background: #fff;
    border-radius: 14px;
    padding: 40px 28px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.uwm-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2e8b57, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.uwm-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(46, 139, 87, 0.12);
}

.uwm-service-card:hover::before {
    transform: scaleX(1);
}

.uwm-service-card .icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), rgba(52, 211, 153, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #2e8b57;
    margin-bottom: 22px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.uwm-service-card:hover .icon-wrap {
    background: linear-gradient(135deg, #2e8b57, #34d399);
    color: #fff;
    transform: scale(1.08);
}

.uwm-service-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1d2230;
}

.uwm-service-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* ---------- Fact Counter ---------- */
.uwm-counter-section {
    background: linear-gradient(135deg, #1d2230 0%, #162218 50%, #1d2a1f 100%);
    position: relative;
}

.uwm-counter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(46,139,87,0.08)"/></svg>') repeat;
    background-size: 40px 40px;
}

.uwm-counter-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.uwm-counter-item .count-num {
    font-size: 52px;
    font-weight: 800;
    color: #34d399;
    line-height: 1;
    font-family: 'Catamaran', sans-serif;
}

.uwm-counter-item .count-num .plus {
    font-size: 32px;
    color: #2e8b57;
}

.uwm-counter-item h5 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    margin-top: 12px;
    font-weight: 500;
}

.uwm-facility-check li {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.btn-cert {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 10px;
    background-color: #f1f5f9;
    color: #2e8b57;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.btn-cert:hover {
    background-color: #2e8b57;
    color: #ffffff;
    border-color: #2e8b57;
}

/* ---------- Facility Cards ---------- */
.uwm-facility-img {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.uwm-facility-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.uwm-facility-img:hover img {
    transform: scale(1.05);
}

.uwm-facility-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uwm-facility-check li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #444;
}

.uwm-facility-check li:last-child {
    border-bottom: none;
}

.uwm-facility-check li .check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e8b57, #34d399);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* ---------- Client Cards ---------- */
.uwm-client-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: #fff;
}

.uwm-client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(46, 139, 87, 0.1);
    border-color: #2e8b57;
}

.uwm-client-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #1d2230;
    margin-bottom: 8px;
}

.uwm-client-card p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

/* ---------- Sector Cards ---------- */
.uwm-sector-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uwm-sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(46, 139, 87, 0.1);
}

.uwm-sector-card .sector-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), rgba(52, 211, 153, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #2e8b57;
    margin: 0 auto 16px;
    transition: background 0.3s ease;
}

.uwm-sector-card:hover .sector-icon {
    background: linear-gradient(135deg, #2e8b57, #34d399);
    color: #fff;
}

/* ---------- Career Role Cards ---------- */
.uwm-role-card {
    background: #fff;
    border-radius: 14px;
    padding: 35px 28px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #2e8b57;
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.uwm-role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(46, 139, 87, 0.12);
}

.uwm-role-card .role-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.12), rgba(52, 211, 153, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #2e8b57;
    margin-bottom: 18px;
}

.uwm-role-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d2230;
}

.uwm-role-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.uwm-role-card .apply-link {
    color: #2e8b57;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.uwm-role-card .apply-link:hover {
    color: #1d6b3f;
}

/* ---------- Contact Info Cards ---------- */
.uwm-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.uwm-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(46, 139, 87, 0.1);
}

.uwm-info-card .info-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e8b57, #34d399);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 18px;
}

.uwm-info-card h5 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d2230;
}

.uwm-info-card p,
.uwm-info-card a {
    font-size: 14px;
    color: #555;
}

.uwm-info-card a:hover {
    color: #2e8b57;
}

/* ---------- Contact Form ---------- */
.uwm-form-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Catamaran', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

.uwm-form-input:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.08);
    background: #fff;
}

.uwm-form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    color: #1d2230;
}

/* ---------- CTA Banners ---------- */
.uwm-cta-gradient {
    background: linear-gradient(135deg, #1d2230 0%, #2e8b57 100%);
    position: relative;
    overflow: hidden;
}

.uwm-cta-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.06);
    pointer-events: none;
}

.uwm-cta-gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

/* ---------- Section Titles ---------- */
.sec-title .sub-title h3 {
    position: relative;
    display: inline-block;
}

/* ---------- Glassmorphism Accent ---------- */
.uwm-glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
}

/* ---------- Section Divider ---------- */
.uwm-divider {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.2), transparent);
    max-width: 200px;
    margin: 0 auto;
}

/* ---------- HMC Expanded Card ---------- */
.uwm-hmc-card {
    background: linear-gradient(135deg, #f8faf9, #f0f7f3);
    border-left: 5px solid #2e8b57;
    border-radius: 12px;
    padding: 30px 35px;
    transition: box-shadow 0.3s ease;
}

.uwm-hmc-card:hover {
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.08);
}

/* ---------- Button Enhancements ---------- */
.btn-one {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.btn-one:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.25) !important;
}

/* ---------- Client Logo Grid ---------- */
.uwm-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.uwm-logo-item {
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
}

.uwm-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(46,139,87,0.1);
    border-color: #2e8b57;
}

.uwm-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.uwm-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .uwm-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .uwm-logo-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


.scroll-top:hover {
    transform: translateY(-3px) !important;
}

/* ---------- Why Choose Cards ---------- */
.uwm-why-card {
    background: #fff;
    border-radius: 14px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.uwm-why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2e8b57, #34d399);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.uwm-why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(46, 139, 87, 0.12);
}

.uwm-why-card:hover::after {
    transform: scaleX(1);
}

.uwm-why-card .why-icon {
    font-size: 42px;
    color: #2e8b57;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.uwm-why-card:hover .why-icon {
    transform: scale(1.15);
}

/* ---------- ISO Badge ---------- */
.uwm-iso-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e8b57, #34d399);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.15;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.25);
}

/* ---------- Map Container ---------- */
.uwm-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 991px) {
    section[id] {
        scroll-margin-top: 70px;
    }

    .uwm-counter-item .count-num {
        font-size: 40px;
    }

    .uwm-facility-img {
        margin-bottom: 30px;
    }

    /* scale down branding for tablets */
    .arabic-name-nav {
        font-size: 18px;
    }
    .english-name-nav {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    section[id] {
        scroll-margin-top: 60px;
    }

    .uwm-counter-item .count-num {
        font-size: 34px;
    }

    .uwm-service-card {
        padding: 30px 22px;
    }

    .uwm-cta-gradient .text-right {
        text-align: center !important;
        margin-top: 20px;
    }

    .uwm-hmc-card ul {
        columns: 1 !important;
    }

    /* Mobile Branding Fix: Prevent overflow */
    .header-left {
        padding-left: 10px !important;
    }
    
    /* Mobile Branding: Stacked and Centered */
    .header-left {
        width: 100% !important;
        justify-content: center !important;
        padding: 5px 0 !important;
    }
    
    .main-logo-box {
        padding: 0 !important;
        margin: 0 auto;
        text-align: center;
        width: 100% !important;
    }

    .main-logo-box img {
        max-height: 80px !important;
        width: auto !important;
        display: inline-block;
    }

    .header-brand-info {
        display: block !important;
        width: 100% !important;
        text-align: center;
        padding-bottom: 10px;
        position: static !important;
        transform: none !important;
    }

    .arabic-name-nav {
        font-size: 18px;
    }

    .english-name-nav {
        font-size: 14px;
    }

    /* Restore text labels in top bar per user request */
    .header-contact-info-style1 ul li .text p strong,
    .header-contact-info-style1 ul li .text p span:not(.icon) {
        display: inline-block !important; 
    }
    
    .header-contact-info-style1 ul li {
        margin-bottom: 5px;
        width: 100%;
        margin-right: 0;
    }

    /* ISO badge visibility on mobile */
    .slider-iso-badge {
        margin: 10px auto;
        justify-content: center;
    }

    /* Images should fill mobile view */
    .uwm-map-wrap iframe,
    .uwm-facility-img img,
    .about-style1__image ul li,
    .about-style1__image ul li .img-box,
    .about-style1__image,
    img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .about-style1__image ul {
        display: block !important;
        width: 100% !important;
    }

    .about-style1__image ul li {
        margin-bottom: 20px;
    }
}

/* Branding flows naturally within .header-left on desktop */
.header-brand-info {
    position: relative;
    text-align: left;
    z-index: 5;
}

@media (max-width: 480px) {
    /* Responsive stacking for smaller phones */
    .header-brand-info {
        display: block !important;
        width: 100% !important;
        text-align: center;
        padding-top: 5px;
    }
    
    .main-logo-box {
        padding-right: 0;
        text-align: center;
    }
    
    .header-left {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.uwm-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ---------- Footer Helpers ---------- */
.uwm-footer-name {
    display: block;
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 5px;
}

.uwm-footer-desc {
    font-size: 14px;
    line-height: 1.6;
}

.uwm-footer-arabic {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 2px;
}
/* ---------- Visitor Counter ---------- */
.visitor-counter-wrap {
    display: inline-block;
    margin-bottom: 5px;
}

.visitor-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 5px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.visitor-badge:hover {
    background: rgba(46, 139, 87, 0.15);
    border-color: #34d399;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.visitor-badge i {
    color: #34d399;
    font-size: 14px;
}

#visitor-count {
    color: #34d399;
    font-size: 15px;
    font-family: 'Catamaran', sans-serif;
}

/* ---------- Career Application Form ---------- */
#career {
    background-image: linear-gradient(rgba(248, 249, 250, 0.92), rgba(248, 249, 250, 0.92)), url('../images/resources/Image-1.jpeg');
    background-size: 180% auto;
    background-position: 120% 50%;
    background-attachment: fixed;
}

.uwm-career-form-wrap {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(46, 139, 87, 0.05);
}

.uwm-career-form-wrap h4 {
    color: #1d2230;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
}

.career-file-input-wrap {
    position: relative;
    margin-bottom: 25px;
}

.career-file-input-wrap input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.career-file-custom {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    background: #f8faf9;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    transition: all 0.3s ease;
}

.career-file-input-wrap:hover .career-file-custom {
    border-color: #2e8b57;
    background: #f0f7f3;
    color: #1d6b3f;
}

.career-file-custom i {
    font-size: 20px;
}

/* Custom Role Grid for 5 items */
.uwm-role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .uwm-role-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .uwm-role-grid {
        grid-template-columns: 1fr;
    }
    
    .uwm-career-form-wrap {
        padding: 25px;
    }
}

/* ---------- Career Gallery ---------- */
.career-gallery-wrap {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.career-gallery-item {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: 180px;
}

.career-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.career-gallery-item:hover img {
    transform: scale(1.08);
}
