﻿/* --- CLEANED NAVIGATION AND DROPDOWN STYLES --- */
/* Main navigation bar */


.page main {
    margin-top: 120px; /* Add space below header/NavMenu */
    display: block;

}
.navbar {
    background: #00B5E2 !important;
    box-shadow: 0 2px 12px rgba(0, 181, 226, 0.10);
    padding-bottom: 0.5rem !important;
}

.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: #00B5E2 !important;
        box-shadow: 0 2px 12px rgba(0, 181, 226, 0.10);
    }
    .navbar-nav {
        background: #009fd4 !important;
        border-radius: 12px;
        box-shadow: 0 4px 24px rgba(0, 181, 226, 0.18);
        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: #00B6F1;
    --primary: #47b2e4;
    --secondary: #37517e;
}
html, body {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #fff;
}

/* Links and Buttons */
a, .btn-link {
    color: #006bb7;
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover, .btn-link:hover {
        color: #004a8f;
    }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

    .btn-primary:hover {
        background-color: #155a99;
        border-color: #134e87;
    }

.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: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NyIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA9Ny40NjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45OTcgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA9NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA6maximize_spacing_1.2rem;color:rgb(51, 51, 51)}.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{border-radius:0.75rem;box-shadow:0 4px 12px rgba(0, 0, 0, 0.06);padding:0.5rem;transition:transform 0.2s ease-in-out;background-color:#fff}.e-card .d-flex{display:flex;justify-content:space-between;align-items:center;gap:0.5rem}.e-card:hover{transform:scale(1.015)}.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}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}.hero-summary-wrapper .hero-bg{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;opacity:0.12;z-index:0;filter:brightness(1.2) contrast(1.2)}.hero-summary-wrapper > *{position:relative;z-index:1}.hero-summary{padding:0.5rem 1rem;position:relative;z-index:1}.hero-summary h1{font-size:2.25rem;font-weight:700;text-shadow:1px 1px 3px rgba(0, 0, 0, 0.1)}.hero-summary p{font-size:1.25rem;max-width:800px;margin:0 auto;text-shadow:0 1px 2px rgba(0,0,0,0.2)}.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: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -6px 24px rgba(0,0,0,.06);
    padding: .75rem 1rem;
    z-index: 10990; /* above footer & page content */
    font-size: .95rem;
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* 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: none;
}

/* --- 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---------*/
/* Transparent footer background */
.footer {
    background-color: transparent !important;
    backdrop-filter: none; /* optional: ensure no blur effect */
    box-shadow: none; /* optional: remove drop shadows */
}

    /* Make sure the inner text stands out above animations */
    .footer .container,
    .footer .footer-content,
    .footer .footer-top,
    .footer .copyright {
        position: relative;
        z-index: 1; /* lifts text above animated canvas/svg */
    }

    /* Optional: subtle background overlay if readability is an issue */
    .footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.05); /* very light white overlay */
        z-index: 0;
    }



/*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;
}



/* === 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;
}