/* --- CLEANED NAVIGATION AND DROPDOWN STYLES --- */
/* Main navigation bar */


.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 10% 20%, rgba(0, 118, 255, 0.08), transparent 50%), radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.08), transparent 50%), #f8faff;
}

.page main {
    margin-top: 20px;
    display: block;
    width: 100%;
}

.page-header-shell {
    position: relative;
    z-index: 10;
}

.page-main {
    position: relative;
    padding: clamp(0.5rem, 2vw, 1.5rem) 0 clamp(1rem, 3vw, 2rem);
    flex: 1;
    display: flex;
}

.page-backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background: url('/img/site-global/background-rectangular.png') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    mix-blend-mode: multiply;
}

.page-backdrop .page-blob,
.page-backdrop .blob-one,
.page-backdrop .blob-two {
    display: none;
}

.page-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.page-content-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 30, 80, 0.06), 0 4px 12px rgba(0, 30, 80, 0.02);
    padding: clamp(1.75rem, 4vw, 3rem);
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-main {
        padding-top: 1rem;
    }

    .page-content-card {
        border-radius: 18px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}
.navbar {
    background: linear-gradient(rgba(13, 35, 79, 0.65), rgba(13, 35, 79, 0.85)), url('/img/site-global/background-rectangular.png') center center / cover no-repeat !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(13, 35, 79, 0.2);
    padding-bottom: 0.5rem !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-nav {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
}

/* Menu items: white by default, yellow on hover/active, blue background on hover/active */
.navbar-nav .nav-link {
    color: #fff !important;
    background: transparent !important;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
    /* base */
    .navbar-nav .nav-link {
        position: relative;
        color: #fff !important;
        background: transparent !important;
        border-radius: 0 !important;
        transition: color .20s ease;
    }

        /* remove the bubble on hover/active/focus */
        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link:focus,
        .navbar-nav .nav-link.active {
            background: transparent !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            transform: none !important;
            color: #FFD600 !important; /* your yellow accent */
        }

        /* subtle animated underline */
.navbar-nav .nav-link::after {
            content: "";
            position: absolute;
            left: .4rem;
            right: .4rem;
            bottom: -6px;
            height: 2px;
            background: #FFD600;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .22s ease-in-out;
        }

        .navbar-nav .nav-link:hover::after,
        .navbar-nav .nav-link:focus::after,
        .navbar-nav .nav-link.active::after {
            transform: scaleX(1);
        }

        /* keep accessibility focus visible but not bubbly */
        .navbar-nav .nav-link:focus-visible {
            outline: 2px solid rgba(255,255,255,.55);
            outline-offset: 2px;
        }

/* Dropdown menu: blue background, white text by default, yellow on hover/active */
.navbar-nav .dropdown-menu,
.cv-dropdown-menu {
    min-width: 270px !important;
    right: 5px !important; /* Move away from viewport edge */
    left: auto !important;
    background: linear-gradient(135deg, #00b4d8 80%, #48cae4 100%) !important;
    color: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.18), 0 2px 8px rgba(0,0,0,0.08) !important;
    border: none !important;
    padding: 18px 0 18px 0 !important;
    font-size: 1.08rem !important;
    font-weight: 500 !important;
    margin-top: 8px !important;
    animation: shineDrop 0.4s cubic-bezier(.4,2,.3,1) both !important;
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(255,255,255,.5); /* subtle white glow */
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
    .cv-dropdown-menu li {
        padding: 0 22px !important;
        margin-bottom: 8px !important;
    }

.cv-dropdown-menu li:last-child {
    margin-bottom: 0 !important;
}

.cv-dropdown-item {
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 1.08rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s !important;
    box-shadow: none !important;
    padding: 8px 10px !important;

}

.cv-dropdown-item i {
    font-size: 1.2em !important;
    color: #ffd700 !important;
    filter: drop-shadow(0 0 2px #fff6) !important;
}

.cv-dropdown-item:hover, .cv-dropdown-item:focus {
    background: rgba(255,255,255,0.12) !important;
    color: #ffd700 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

@keyframes shineDrop {
    0% { opacity: 0; transform: translateY(-16px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Preserve all other styles for dropdowns outside NavMenu */
.navbar-nav .dropdown-menu:not(.cv-dropdown-menu),
.navbar-nav .dropdown-item:not(.cv-dropdown-item) {
    background-color: #009fd4 !important;
    color: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0, 181, 226, 0.12) !important;
    border: none !important;
    min-width: 220px !important;
    margin-top: 0.5rem !important;
}

.navbar-nav .dropdown-item:not(.cv-dropdown-item) {
    color: #fff !important;
    background: transparent !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s !important;
    font-size: 1.08rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.7em !important;
    box-shadow: none !important;
    white-space: normal !important;
}

.navbar-nav .dropdown-item:hover:not(.cv-dropdown-item),
.navbar-nav .dropdown-item:focus:not(.cv-dropdown-item),
.navbar-nav .dropdown-item.active:not(.cv-dropdown-item) {
    color: #FFD600 !important;
    background: #1976d2 !important;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.15) !important;
    transform: scale(1.04) !important;
}

/* Mobile styles: consistent with desktop, blue backgrounds, white text, yellow on hover/active */
@media (max-width: 768px) {
    .navbar {
        background: linear-gradient(rgba(13, 35, 79, 0.85), rgba(13, 35, 79, 0.95)), url('/img/site-global/background-ribbon.png') center center / cover no-repeat !important;
        box-shadow: 0 4px 20px rgba(13, 35, 79, 0.2);
    }
    .navbar-nav {
        background: rgba(20, 45, 95, 0.95) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        padding: 1.2rem 0.7rem;
        margin-top: 1.2rem;
    }
    .navbar-nav .nav-link {
        color: #fff !important;
        background: transparent !important;
        border-radius: 8px;
        margin-bottom: 0.7rem;
        font-size: 1.15rem;
        font-weight: 600;
        box-shadow: none;
        padding: 0.7rem 1.2rem;
        transition: background 0.2s, color 0.2s;
    }
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        /*background: #1976d2 !important;*/
        color: #FFD600 !important;
        font-weight: bold;
        box-shadow: 0 2px 12px rgba(0, 181, 226, 0.15);
    }
    .navbar-nav .dropdown-menu,
    .cv-dropdown-menu {
        /*background: #1976d2 !important;*/
        border-radius: 12px;
        box-shadow: 0 4px 24px rgba(0, 181, 226, 0.18);
        left: 0;
        right: auto;
        min-width: 220px;
        max-width: 95vw;
        margin-top: 0.2rem;
        padding: 0.5rem 0;
    }
    .navbar-nav .dropdown-item,
    .cv-dropdown-item {
        color: #fff !important;
        background: transparent !important;
        font-size: 1.08rem;
        font-weight: 600;
        border-radius: 8px;
        padding: 0.7rem 1.2rem;
        margin-bottom: 0.2rem;
        display: flex;
        align-items: center;
        gap: 0.7em;
        transition: background 0.2s, color 0.2s;
    }
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus,
    .navbar-nav .dropdown-item.active,
    .cv-dropdown-item:hover,
    .cv-dropdown-item:focus,
    .cv-dropdown-item.active {
        background: #FFD600 !important;
        color: #1976d2 !important;
        box-shadow: 0 2px 12px rgba(0, 181, 226, 0.15);
        transform: scale(1.04);
    }
}
/* --- END CLEANED NAVIGATION AND DROPDOWN STYLES --- */

/* All other non-navigation styles remain unchanged below this line */

/* General Styles */
:root {
    --brand-blue: #1d7ff4;
    --brand-blue-dark: #0d57c3;
    --brand-blue-light: #e5f3ff;
    --brand-yellow: #ffd600;
    --primary: #1d7ff4;
    --secondary: #37517e;
}
html, body {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: #334155;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8faff;
}

/* Links and Buttons */
a, .btn-link {
    color: #006bb7;
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover, .btn-link:hover {
        color: #004a8f;
    }

.btn,
.cookie-actions .btn,
.hero-cta button,
.hero-cta a,
.footer-privacy-settings .btn,
.home-cta button,
.home-cta a,
.home-cta-btn,
button[id="btnSubmit"],
.btn-send {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.65rem 1.6rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:hover,
.cookie-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.2);
}

.btn-primary,
.cookie-actions .btn-outline-primary.active,
.hero-cta .btn-primary,
.hero-cta button.btn-primary,
.home-cta .btn-primary,
.home-cta button.btn-primary,
.home-cta-btn.btn-primary,
.btn-send {
    color: #fff;
    background: linear-gradient(135deg, #1d7ff4, #0d57c3);
    border: none;
}

.btn-primary:hover,
.cookie-actions .btn-outline-primary.active:hover {
    background: linear-gradient(135deg, #2d8fff, #0c4fb0);
    color: #fff;
}

.btn-success,
.cookie-actions .btn-success,
.home-cta .btn-success,
.home-cta-btn.btn-success {
    color: #1b3360;
    background: linear-gradient(135deg, #ffd600, #f6c200);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #ffe24f, #f7c933);
    color: #0d224a;
}

.btn-outline-primary,
.privacy-settings-link,
.cookie-actions .btn-outline-primary,
.hero-cta .btn-outline-primary,
.hero-cta a.btn-outline-primary,
.home-cta .btn-outline-primary,
.home-cta a.btn-outline-primary,
.cookie-actions .btn-outline-primary,
.home-cta-btn.btn-outline-primary {
    color: #1d7ff4;
    border: 2px solid #1d7ff4;
    background: transparent;
}

.btn-outline-primary:hover,
.privacy-settings-link:hover,
.cookie-actions .btn-outline-primary:hover {
    background: var(--brand-blue-light);
    color: #0d57c3;
}

.btn-outline-secondary,
.cookie-actions .btn-outline-secondary {
    color: #5f6880;
    border: 2px solid #c3cad8;
    background: transparent;
}

.btn-outline-secondary:hover,
.cookie-actions .btn-outline-secondary:hover {
    background: #eef2f8;
    color: #1b3360;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Content */
.content {
    margin-top: 1.1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

h1:focus {
    outline: none;
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Error Boundary */
.blazor-error-boundary {
    background: #ffcccc;
}
.key-offerings h3{color:#333;font-weight:600;margin-bottom:2rem}.key-offerings .btn{font-size:0.95rem;padding:0.6rem 1rem;border-radius:30px;background:white;color:#333;border:1px solid #ccc;transition:all 0.3s ease}.key-offerings .btn:hover{background-color:var(--accent-color);color:white;box-shadow:0 0 10px rgba(13,110,253,0.3)}.key-offerings .btn.active{background-color:var(--accent-color);color:white;font-weight:600;border:none;box-shadow:0 4px 15px rgba(79, 172, 254, 0.3)}.e-card{position:relative;overflow:hidden;border-radius:0.75rem;box-shadow:0 4px 12px rgba(0, 0, 0, 0.06);padding:0.5rem;transition:all 0.3s ease-in-out;background-color:rgba(255,255,255,0.95);border:1px solid rgba(255,255,255,0.8);backdrop-filter:blur(10px)}.e-card::before{content:"";position:absolute;inset:0;background:url('/img/site-global/background-ribbon.png') center center no-repeat;background-size:cover;opacity:0;transition:opacity 0.4s ease;z-index:0;pointer-events:none}.e-card:hover::before{opacity:0.15}.e-card > *{position:relative;z-index:1}.e-card .d-flex{display:flex;justify-content:space-between;align-items:center;gap:0.5rem}.e-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0, 30, 80, 0.1)}.e-card .e-card-header .e-card-header-image{opacity:0.65;height:48px;width:48px}.e-card .e-card-header .e-card-header-caption .e-card-sub-title{padding-top:0px}.e-card .e-card-header .e-card-header-caption .e-card-header-title{font-weight:bold}.e-card .e-card-content{padding-top:0.5rem}.main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-summary-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: clamp(2.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
    text-align: center;
    background: rgba(255, 255, 255, 0.75) url('/img/site-global/background-ribbon.png') no-repeat center right;
    background-size: cover;
    background-blend-mode: overlay;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 30, 80, 0.05);
    margin-bottom: 0.5rem;
}

.hero-summary-wrapper .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
    filter: brightness(1.1);
}

.hero-summary-wrapper > * {
    position: relative;
    z-index: 1;
}

.hero-summary-wrapper h1 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.08);
    color: #143861;
}

.hero-summary-wrapper .hero-subtitle,
#welcome-text {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    max-width: 760px;
    margin: 0.5rem auto 0;
    color: rgba(13, 35, 79, 0.75);
}
.key-offerings h3{color:#333;font-weight:600;margin-bottom:2rem}

.key-offerings .btn {
    font-size: .95rem;
    padding: .6rem 1rem;
    border-radius: 30px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    transition: all .3s ease;
}

    .key-offerings .btn:hover {
        background-color: var(--accent-color);
        color: #fff;
        box-shadow: 0 0 10px rgba(13,110,253,.3);
    }

    .key-offerings .btn.active {
        background-color: var(--accent-color);
        color: #fff;
        font-weight: 600;
        border: none;
        box-shadow: 0 4px 15px rgba(79,172,254,.3);
    }

/* REMOVE these two debug rules entirely if they still exist */
/* section .hero-summary-wrapper{padding-top:10px!important;padding-bottom:10px!important;background-color:orange!important}
    .hero-summary-wrapper{position:relative;overflow:hidden;height:60px!important} */
    .cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 30, 80, 0.1);
    padding: 1rem;
    z-index: 10990; /* above footer & page content */
    font-size: .95rem;
}

@media (max-width: 480px) {
    .cookie-banner {
        max-width: calc(100% - 2rem);
    }
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Footer “Privacy settings” button bubble */
.cookie-privacy-fab {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 10995;
}

/* Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
}

    .cookie-modal.open {
        display: block;
    }

    .cookie-modal .modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.45);
    }

    .cookie-modal .modal-body {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: min(560px, 92vw);
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 16px 48px rgba(0,0,0,.18);
        padding: 1.25rem 1.25rem 1rem;
        z-index: 11001; /* ensure above backdrop */
    }

    .cookie-modal .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e3eaf3;
    }

    .cookie-modal .modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid #e3eaf3;
    }

    .cookie-modal .modal-body-content {
        padding-top: 1rem;
    }
/* Button styles to match your “before” look */
.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .65rem 1.25rem;
    border: 1px solid #ced4da;
    background: #fff;
    color: #333;
    font-weight: 600;
    transition: transform .06s ease, box-shadow .2s ease;
}

    .cookie-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0,0,0,.06);
    }

.cookie-btn-outline {
    background: #fff;
    border: 2px solid #e5e7eb;
}

.cookie-btn-warning {
    background: #FFD600;
    border: 0;
    color: #1f2937;
}

.cookie-btn-primary {
    background: #2e7d32;
    border: 0;
    color: #fff;
}

.cookie-btn-lg {
    padding: .8rem 1.4rem;
    font-size: 1.02rem;
}

/* ===== Hero / Get In Touch faint background ===== */
.hero-bg-wrap {
    position: relative;
    overflow: hidden;
}

    .hero-bg-wrap .hero-bg {
        position: absolute;
        inset: 0;
        background-image: url('/images/bg/engineering-abstract.png'); /* adjust path */
        background-repeat: no-repeat;
        background-position: center top;
        background-size: 1200px auto; /* not full-bleed */
        opacity: .12;
        pointer-events: none;
        z-index: 0;
    }

    .hero-bg-wrap > * {
        position: relative;
        z-index: 1;
    }

.section-cta {
    padding: 2.5rem 0;
}

/* --- CHAT POPUP & DIALOG STYLES --- */
#chat-popup {
    position: fixed;
    right: 32px;
    bottom: 150px;
    width: 350px;
    max-width: 95vw;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 1060;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e3eaf3;
    font-family: 'Open Sans', sans-serif;
}
#chat-popup.active {
    display: flex;
}
#chat-header {
    background: #29abe2;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3eaf3;
    font-size: 1.08rem;
}
#chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: 8px;
}
#chat-messages {
    padding: 1rem;
    background: #f7fbfd;
    min-height: 80px;
    max-height: 220px;
    overflow-y: auto;
    font-size: 0.98rem;
}
.text-end.user-cursor {
    text-align: right;
    color: #1976d2;
}
.text-start.ai-cursor {
    text-align: left;
    color: #444;
}
.loading-dots {
    color: #29abe2;
    font-style: italic;
    font-size: 0.95rem;
}
#chat-input {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    background: #f7fbfd;
    border-top: 1px solid #e3eaf3;
}
#user-input {
    flex: 1;
    border-radius: 30px;
    border: 1px solid #cfd8dc;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    margin-right: 0.5rem;
    background: #fff;
    transition: border-color 0.2s;
}
#user-input:focus {
    border-color: #29abe2;
    outline: none;
}
#send-message {
    background: #29abe2;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
}
#send-message:disabled {
    background: #b3e0f7;
    cursor: not-allowed;
}
#chat-button {
    display: flex;
}

/* --- PRIVACY MODAL OVERLAY FIX --- */
.cookie-modal .modal-backdrop {
    background: rgba(0,0,0,0.18) !important;
}

/* --- END CHAT POPUP & DIALOG STYLES --- */

/* CV Skills Section Grid - Responsive, Consistent Spacing */
.cv-section-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 1.2rem; /* row-gap, col-gap */
    margin-bottom: 2.5rem;
}
.cv-skill-card {
    flex: 1 1 48%; /* 2 columns on desktop */
    min-width: 320px;
    max-width: 48%;
    box-sizing: border-box;
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .cv-skill-card {
        flex-basis: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .cv-section-grid {
        gap: 1.2rem 0.7rem;
    }
}
.category-section {
    margin-bottom: 2.5rem;
}
.category-section h4 {
    margin-bottom: 1.2rem;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.category-icon {
    font-size: 1.3em;
    margin-right: 0.2em;
    color: #1976d2;
}
.e-card.cv-skill-card {
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
    border-radius: 0.75rem;
    padding: 0.7rem 1.1rem;
    transition: box-shadow 0.18s, transform 0.18s;
}
.e-card.cv-skill-card:hover {
    box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13);
    transform: translateY(-2px) scale(1.012);
}
.e-badge {
    font-size: 0.92em;
    padding: 0.22em 0.7em;
    border-radius: 12px;
}

/* CV Qualifications Section Grid - Responsive, Consistent Spacing */
.cv-qualifications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 1.2rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}
.cv-qualification-card {
    flex: 1 1 48%;
    min-width: 320px;
    max-width: 48%;
    box-sizing: border-box;
    margin-bottom: 0;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
    padding: 0.7rem 1.1rem;
    transition: box-shadow 0.18s, transform 0.18s;
    background: #fff;
}
.cv-qualification-card:hover {
    box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13);
    transform: translateY(-2px) scale(1.012);
}
.qual-icon-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 38px;
    margin-bottom: 0.5rem;
}
.qual-icon {
    height: 32px;
    width: 32px;
    opacity: 0.7;
}
@media (max-width: 900px) {
    .cv-qualification-card {
        flex-basis: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .cv-qualifications-grid {
        gap: 1.2rem 0.7rem;
    }
}
.highlight-badge {
    background: #ffd600;
    color: #333;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.22em 0.7em;
    font-size: 0.92em;
    margin-top: 0.5em;
    display: inline-block;
}


/* 🔹 BLOG TITLE & SUBTITLE */
.blog-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1976d2;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: fadeInTop 1s ease-out;
}

.blog-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #555;
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInTop 1.2s ease-out;
}

/* 🔹 BLOG CARD CONTAINER */
.blog-card {
    border-radius: 16px;
    border: 1px solid #e3e3e3;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
    animation: fadeInUp 0.6s ease-out;
}

    .blog-card:hover {
        box-shadow: 0 4px 24px rgba(25, 118, 210, 0.12);
        transform: translateY(-3px);
    }

    /* 🔹 BADGES */
    .blog-card .badge {
        font-size: 0.75rem;
        padding: 0.4em 0.6em;
        border-radius: 8px;
        text-transform: uppercase;
        font-weight: 500;
        margin-right: 0.25rem;
    }

    /* 🔹 COMMENT BLOCK */
    .blog-card .card-footer {
        border-top: 1px solid #eee;
    }

        .blog-card .card-footer h6 {
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

/* 🔹 ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*---------TESTING---------*/
/* Footer polish to match turquoise / yellow palette */
.footer {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(240,247,255,0.95));
    color: #1b3360;
    font-size: .97rem;
    padding: 40px 0 28px 0;
    margin-top: clamp(2rem, 5vw, 4.5rem);
    box-shadow: 0 -18px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Booking layout cards */
.info-wrap {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.booking-panel {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.booking-card {
    background: #f7fbff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(13, 35, 79, 0.08);
    border: 1px solid rgba(13, 35, 79, 0.08);
    height: 100%;
}

.calendar-card {
    background: linear-gradient(180deg, rgba(0, 181, 226, 0.08), rgba(255, 255, 255, 0));
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.info-card {
    background: linear-gradient(180deg, rgba(71, 178, 228, 0.08), rgba(255, 255, 255, 0));
}

.slots-card {
    background: linear-gradient(180deg, rgba(255, 214, 0, 0.08), rgba(255, 255, 255, 0));
}

.empty-slot {
    padding: 1rem 0;
    border-radius: 12px;
    background: rgba(13, 35, 79, 0.03);
}

.loading-gear {
    max-width: 120px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .booking-panel {
        flex-direction: column;
        align-items: center;
    }

    .booking-panel .booking-card {
        width: min(420px, 100%);
        margin: 0 auto;
    }
}

    .footer .container,
    .footer .footer-content,
    .footer .footer-top,
    .footer .copyright {
        position: relative;
        z-index: 1;
    }

    .footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(0,181,226,0.18), transparent 45%),
                    radial-gradient(circle at top right, rgba(255,214,0,0.16), transparent 40%);
        z-index: 0;
        opacity: 0.75;
        pointer-events: none;
    }

.footer h4 {
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 1.08rem;
    color: #004a8f;
}

.footer p,
.footer li,
.footer span {
    color: rgba(17, 34, 68, 0.85);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer a {
    color: #0b63c4;
    transition: color 0.2s ease-in-out;
}

.footer a:hover {
    color: #ffd600;
}

.footer .social-links {
    gap: 0.65rem;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    background: #00a6d6;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out, background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.footer .social-links a:hover {
    background: #ffd600;
    color: #004a8f;
    transform: translateY(-3px);
}

.copyright {
    color: #3b4f73;
}



/*Testing area*/
/* Make it behave like a background layer */
.vanta-globe {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
/* Ensure the parent is a positioning context */
.hero-summary-wrapper, .footer-newsletter {
    position: relative;
}

.footer-newsletter {
    height: auto;
    padding: 2.5rem 0;
    background: transparent;
    border-top: 1px solid rgba(15, 59, 130, .08);
}

.footer-bg-img {
    display: none !important;
}

.footer-top {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}



/* === Card-style Page Header === */
.card.page-header {
    position: relative;
    margin: 1.5rem auto 2rem auto;
    border-radius: 14px;
    overflow: hidden;
    background: #fff; /* fallback */
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.08);
    padding: clamp(16px, 3vh, 22px) clamp(18px, 3vw, 24px);
}

    /* Background effect container */
    .card.page-header .as-bg {
        position: absolute !important;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: .12; /* faint effect */
    }

/* Foreground layout */
.page-header-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 6px 1fr;
    align-items: center;
    gap: 12px;
}

/* Accent bar */
.page-header .page-accent {
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(180deg, #3B82F6, #22C55E);
    opacity: .85;
}

/* Text styles */
.page-header .page-text {
    text-align: left;
}

.page-header .page-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    color: #0f172a;
}

.page-header .page-subtitle {
    margin: .25rem 0 0 0;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: #475569;
    opacity: .9;
}



/*--------------Hero ---------------*/

.hero-summary-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical alignment inside available space */
    align-items: center; /* center horizontally */
    text-align: center;
    margin: 0 auto;
    padding: 0rem 1rem;
    max-width: 980px;
    height: auto; /* adjust to fit content */
    min-height: fit-content; /* ensure it grows with children */
    box-sizing: border-box; /* padding included in size */
}
.loading-gear {
    display: inline-block;
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain; /* keeps aspect ratio */
}



/* Limit width and center */
.welcome-text {
    max-width: 820px;
    margin: 1.5rem auto;
    line-height: 1.8;
    font-size: 1.15rem;
    color: #2e3440;
    text-align: left;
}

    /* Add subtle animation when the text appears */
    .welcome-text span {
        display: block;
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInUp 0.6s ease forwards;
    }

        .welcome-text span:nth-child(1) {
            animation-delay: 0.1s;
        }

        .welcome-text span:nth-child(2) {
            animation-delay: 0.3s;
        }

        .welcome-text span:nth-child(3) {
            animation-delay: 0.5s;
        }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight keywords inside sentences */
.welcome-text strong {
    color: #1a73e8; /* use your brand color */
    font-weight: 600;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.35rem 0.1rem;
    margin-left: 0.6rem;
    text-decoration: none;
}

.nav-brand-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
}

.nav-brand-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 64px;
    max-height: 64px;
    object-fit: cover;
    filter: saturate(1.05);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.nav-brand-role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.015em;
}

@media (max-width: 768px) {
    .nav-brand {
        gap: 0.6rem;
    }

    .nav-brand-avatar {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-width: 2px;
    }

    .nav-brand-name {
        font-size: 1rem;
    }

    .nav-brand-role {
        font-size: 0.78rem;
    }
}
