* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #f5f5f5;
    color: #111;
}

a {
    text-decoration: none;
}

/* ✅ Background + frame */
.site-bg {
    padding: 50px 0;
    display: flex;
    justify-content: center;
}

.site-bg{
  padding: 0;
}

.site-frame{
  width: 100%;
  border-radius: 0;
}



/* ✅ Navbar */
.navbar-jue {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #050913, #0b1a3a);
    padding: 18px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: all 0.35s ease;
}

.nav-left,
.nav-balance {
    flex: 0 0 40px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(217, 182, 124, 0.45);
}

.nav-links a {
    color: #fff;
    font-size: 14px;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

/* ✅ Hero (fix half-grey issue) */
.hero-jue {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 20px;
    color: #fff;
}

.hero-content h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-gold {
    background: #d9b67c;
    border-color: #d9b67c;
    color: #111;
    font-weight: 600;
}

.btn-hero-dark {
    background: #111;
    border-color: #111;
    color: #fff;
    font-weight: 600;
}

.btn-hero-light {
    background: rgba(255, 255, 255, 0.95);
    border-color: #fff;
    color: #111;
    font-weight: 600;
}

/* ✅ Divisions */
.divisions-jue {
    background: #f3f3f3;
    padding: 70px 50px;
    text-align: center;
}

.divisions-jue h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    margin-bottom: 35px;
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.division-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.division-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.division-body {
    padding: 15px;
}

.division-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.division-body p {
    font-size: 12px;
    color: #555;
    min-height: 45px;
}

.division-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: #111;
    font-weight: 600;
}

.divisions-see-more {
    text-align: center;
    margin-top: 30px;
}

.btn-see-more {
    display: inline-block;
    padding: 12px 28px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-see-more:hover {
    background: #d9b67c;
    color: #111;
}

/* ✅ Signature */
.signature-jue {
    padding: 70px 50px;
    background: #f3f3f3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.signature-image img {
    width: 100%;
    border-radius: 10px;
    height: 220px;
    object-fit: cover;
}

.signature-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    margin-bottom: 10px;
}

.signature-content p {
    font-size: 13px;
    color: #444;
    max-width: 420px;
}

.btn-signature {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 4px;
    background: #d9b67c;
    color: #111;
    font-size: 13px;
    font-weight: 700;
}

/* ✅ Testimonial */
.testimonial-jue {
    padding: 80px 50px;
    background: linear-gradient(180deg, #081122, #050913);
    color: #fff;
    text-align: center;
}

/* ✅ Footer */
.footer-jue {
    background: #050913;
    color: #cfcfcf;
    padding: 25px 45px 10px 45px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cfcfcf;
    font-size: 13px;
    opacity: 0.9;
}

.footer-socials {
    display: flex;
    gap: 12px;
    font-size: 18px;
}

.footer-socials a {
    color: #cfcfcf;
}

/* Social links embed shortcode */
.social-links-embed {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 16px 0;
}

.social-links-embed a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111;
    font-size: 15px;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.social-links-embed a:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.social-links-embed a i {
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.6;
}

/* ✅ Responsive */
@media (max-width: 992px) {
    .division-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .signature-jue {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 36px;
    }
    .divisions-jue,
    .signature-jue,
    .testimonial-jue {
        padding: 50px 20px;
    }
}
.footer-jue {
    background-image: none !important;
    background: #050913 !important;
}
.site-frame {
    background-image: none !important;
}

@media (max-width: 768px) {
    .navbar-jue {
        padding: 14px 18px;
        gap: 14px;
        flex-wrap: wrap;
    }

    .nav-left {
        flex: 1 1 auto;
    }

    .nav-balance {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 10px;
        border-radius: 18px;
        background: rgba(4, 10, 22, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a.active {
        background: rgba(217, 182, 124, 0.14);
    }

    .navbar-jue.nav-open .nav-toggle {
        background: rgba(217, 182, 124, 0.14);
        border-color: rgba(217, 182, 124, 0.4);
    }

    .navbar-jue.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar-jue.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar-jue.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
.footer {
    background-image: none !important;
    background: #020b1c !important;
}
.footer-logo{
    height: 200px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
    display: block;
}
.testimonial-jue{
    padding: 90px 50px;
    background: linear-gradient(180deg,#081122,#050913);
    color: #fff;
    text-align: center;
}

.testimonial-jue h2{
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    margin-bottom: 30px;
    color: #d9b67c;
}

.testimonial-box{
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 35px 25px 15px 25px;
}

.testimonial-box p{
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.95;
    margin: 0;
}

.testimonial-box small{
    display: block;
    margin-top: 18px;
    font-size: 14px;
    opacity: 0.85;
}

/* ✅ Big faded quotes */
.quote{
    position: absolute;
    font-size: 80px;
    opacity: 0.35;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
    color: #d9b67c;
}

.quote-left{
    left: 0;
    top: -15px;
}

.quote-right{
    right: 0;
    bottom: -25px;
}
/* ================= NAV LINKS HOVER ================= */
.nav-links a{
    position: relative;
    padding: 8px 4px;
    transition: all 0.25s ease;
}

/* underline animation */
.nav-links a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #d9b67c;
    transition: width 0.25s ease;
}

.nav-links a:hover{
    color: #fff;
    opacity: 1;
}

.nav-links a:hover::after{
    width: 100%;
}

/* ================= LOGO HOVER ================= */
.nav-logo{
    transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-logo:hover{
    transform: scale(1.03);
    filter: brightness(1.1);
}
.navbar-jue.scrolled{
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.btn-hero{
    transition: all 0.25s ease;
}

.btn-hero:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
/* ✅ Active link highlight */
.nav-links a.active{
    color: #d9b67c;
    opacity: 1;
}

/* underline stays visible for active link */
.nav-links a.active::after{
    width: 100%;
}
.layout-left{
    grid-template-columns: 1fr 1fr;
}
.layout-right{
    grid-template-columns: 1fr 1fr;
}
.layout-left .signature-image{
    order:2;
}
.layout-full{
    grid-template-columns: 1fr;
    text-align:center;
}
/* =========================
   FLIP CLOCK CONTAINER
========================= */
.flip-clock {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* =========================
   UNIT
========================= */
.flip-unit {
    text-align: center;
}

.flip-label {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 2px;
    color: #aaa;
    text-transform: uppercase;
}

/* =========================
   CARD
========================= */
.flip-card {
    position: relative;
    width: 90px;
    height: 110px;
    perspective: 900px;
}

/* =========================
   STATIC HALVES
========================= */
.upper,
.lower {
    position: absolute;
    width: 100%;
    height: 50%;
    background: linear-gradient(#222, #111);
    color: #fff;
    font-size: 54px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
}

.upper {
    top: 0;
    border-bottom: 1px solid #000;
}

.lower {
    bottom: 0;
    align-items: flex-start;
}

/* =========================
   FLIP PANELS
========================= */
.flip {
    position: absolute;
    width: 100%;
    height: 50%;
    left: 0;
    background: linear-gradient(#333, #111);
    color: #fff;
    font-size: 54px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transform-origin: bottom;
    border-radius: 8px;
}

/* Top flipping down */
.upper-flip {
    top: 0;
    transform-origin: bottom;
    transform: rotateX(0deg);
}

/* Bottom flipping up */
.lower-flip {
    bottom: 0;
    align-items: flex-start;
    transform-origin: top;
    transform: rotateX(90deg);
}

/* =========================
   ANIMATIONS
========================= */
.flip-upper-animate {
    animation: flipUpper 0.25s ease-in forwards;
}

.flip-lower-animate {
    animation: flipLower 0.25s ease-out 0.25s forwards;
}

@keyframes flipUpper {
    0%   { transform: rotateX(0deg); }
    100% { transform: rotateX(-90deg); }
}

@keyframes flipLower {
    0%   { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

/* =========================
   GOLD CENTER LINE
========================= */
.flip-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d9b67c, transparent);
    z-index: 5;
}
/* Hide flip layers until animation */
.upper-flip,
.lower-flip {
    visibility: hidden;
}
.flip-upper-animate {
    visibility: visible;
    animation: flipUpper 0.25s ease-in forwards;
}

.flip-lower-animate {
    visibility: visible;
    animation: flipLower 0.25s ease-out 0.25s forwards;
}

.careers-page-shell {
    margin-top: 18px;
}

.careers-page-intro {
    line-height: 1.9;
}

.careers-listing-block {
    padding: 18px 0 6px;
}

.careers-listing-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.careers-vacancy-list {
    display: grid;
    gap: 22px;
}

.careers-vacancy-card {
    border-radius: 14px;
    overflow: hidden;
}

.careers-vacancy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(240px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.careers-vacancy-main {
    min-width: 0;
}

.careers-vacancy-aside {
    display: flex;
    justify-content: flex-end;
}

.careers-apply-box {
    width: 100%;
    max-width: 280px;
    padding: 18px;
    background: linear-gradient(180deg, #f8f9fb, #eef2f6);
    border: 1px solid #dde4ee;
    border-radius: 12px;
}

.careers-meta-line {
    letter-spacing: 0.01em;
}

.careers-summary {
    font-size: 1rem;
    color: #243247;
    margin: 0 0 12px;
}

.careers-description {
    color: #3f4a59;
    line-height: 1.8;
}

.careers-empty-state {
    border-radius: 14px;
}

/* CMS Studio sections rendered on the public site */
.cms-sections {
    background: #070b13;
}

.cms-section {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    background:
        radial-gradient(circle at 85% 14%, rgba(217, 182, 124, 0.1), transparent 26%),
        linear-gradient(180deg, #080d17 0%, #101827 100%);
    color: #eef2f7;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cms-section:nth-child(even) {
    background:
        radial-gradient(circle at 14% 18%, rgba(74, 144, 226, 0.1), transparent 25%),
        linear-gradient(180deg, #101827 0%, #0a101b 100%);
}

.cms-section--type-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background: #070b13;
}

.cms-section-hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(8, 13, 23, 0.62), rgba(8, 13, 23, 0.9)),
        url("../img/JUE_Logo_White_on_black.png") center/cover no-repeat;
    transform: scale(1.02);
}

.cms-section-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 9, 19, 0.88), rgba(5, 9, 19, 0.46), rgba(5, 9, 19, 0.86)),
        radial-gradient(circle at 76% 38%, rgba(217, 182, 124, 0.18), transparent 24%);
}

.cms-section-hero-inner,
.cms-section .container {
    position: relative;
    z-index: 2;
}

.cms-section-hero-copy {
    max-width: 760px;
}

.cms-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #d9b67c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cms-section-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.82;
}

.cms-section h2 {
    margin: 0 0 18px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.cms-section:not(.cms-section--type-hero) h2 {
    font-size: clamp(1.75rem, 3vw, 3.2rem);
}

.cms-section-body {
    color: #cbd3df;
    font-size: 1rem;
    line-height: 1.85;
}

.cms-section-body p:last-child {
    margin-bottom: 0;
}

.cms-section-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.cms-section-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(5, 9, 19, 0.34));
    pointer-events: none;
}

.cms-section-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cms-section-media--wide img {
    aspect-ratio: 16 / 7;
}

.cms-section-copy {
    max-width: 650px;
}

.cms-section--layout-center .cms-section-copy,
.cms-section--layout-full .cms-section-copy,
.cms-section .text-center .cms-section-copy {
    margin-inline: auto;
}

.cms-section-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    margin-top: 24px;
    padding: 0 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(217, 182, 124, 0.42);
    color: #f4dfae;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cms-section-btn--gold {
    background: linear-gradient(90deg, #b8860b, #d9b67c);
    border-color: transparent;
    color: #111827;
}

.cms-section-btn:hover {
    transform: translateY(-2px);
    background: #d9b67c;
    color: #111827;
}

@media (max-width: 992px) {
    .careers-vacancy-layout {
        grid-template-columns: 1fr;
    }

    .careers-vacancy-aside {
        justify-content: flex-start;
    }

    .cms-section {
        padding: 64px 0;
    }

    .cms-section--type-hero {
        min-height: 480px;
        padding: 90px 0;
    }

    .cms-section-copy {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .cms-section {
        padding: 48px 0;
    }

    .cms-section--type-hero {
        min-height: 420px;
        padding: 70px 0;
    }

    .cms-section h2 {
        font-size: 2rem;
    }

    .cms-section-btn {
        width: 100%;
    }
}

/* =========================
   Public Light Theme Fixes
========================= */
html[data-theme="light"] .site-bg,
html[data-theme="light"] .site-frame {
    background: #f5f5f5 !important;
    color: #111827;
}

html[data-theme="light"] .testimonial-jue {
    background: #f7f8fb !important;
    color: #111827 !important;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

html[data-theme="light"] .testimonial-jue h2 {
    color: #111827 !important;
}

html[data-theme="light"] .testimonial-box p,
html[data-theme="light"] .testimonial-box small {
    color: #243247 !important;
    opacity: 1;
}

html[data-theme="light"] .quote {
    color: #b8860b;
    opacity: 0.28;
}

html[data-theme="light"] .footer-jue {
    background: #ffffff !important;
    color: #243247 !important;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
}

html[data-theme="light"] .footer-links a,
html[data-theme="light"] .footer-socials a {
    color: #243247 !important;
}

html[data-theme="light"] .footer-bottom {
    color: #5f6673 !important;
    opacity: 1;
}

html[data-theme="light"] .footer-logo {
    width: 108px !important;
    height: 108px !important;
    max-width: 108px !important;
    padding: 8px;
    border-radius: 999px;
    background: #050913;
    border: 1px solid rgba(17, 24, 39, 0.14);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.14);
}

html[data-theme="light"] .cms-sections {
    background: #f5f5f5;
}

html[data-theme="light"] .cms-section {
    background:
        radial-gradient(circle at 85% 14%, rgba(217, 182, 124, 0.12), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%) !important;
    color: #111827 !important;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

html[data-theme="light"] .cms-section:nth-child(even) {
    background:
        radial-gradient(circle at 14% 18%, rgba(74, 144, 226, 0.1), transparent 25%),
        linear-gradient(180deg, #f4f6f9 0%, #ffffff 100%) !important;
}

html[data-theme="light"] .cms-section h2 {
    color: #111827 !important;
}

html[data-theme="light"] .cms-section-body {
    color: #3f4a59 !important;
}

html[data-theme="light"] .cms-section-media {
    background: #f3f4f6;
    border-color: rgba(17, 24, 39, 0.1);
    box-shadow: 0 24px 54px rgba(17, 24, 39, 0.14);
}

html[data-theme="light"] .cms-section-btn {
    background: #ffffff;
    color: #111827;
    border-color: rgba(184, 134, 11, 0.36);
}

html[data-theme="light"] .cms-section-btn--gold,
html[data-theme="light"] .cms-section-btn:hover {
    background: #d9b67c;
    color: #111827;
}
