/* Normal Inter (variable weight 100–900) */

/*  GENERAL */
@font-face {
    font-family: 'Inter';
    src: url('/Fonts/Inter/Inter-Variable.ttf') format('truetype');
    font-weight: 100 900; /* full variable weight range */
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Inter';
    src: url('/Fonts/Inter/Inter-VariableItalic.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

:root {
    --accent-color: #01ADF3; /* your custom color */
    --box-radius: 10px;
    --device-radius: 45px;
}

body a {
    color: var(--accent-color);
}

    body a:hover {
        color: var(--accent-color) !important;
    }

/*  MAIN NAVIGATION */
.navbar {
    font-size: 1.1rem;
}

    .navbar .navbar-nav .nav-link {
        font-size: 1.05rem; /* ~16.8px */
        font-weight: 500;
    }

/* Tight width zone: 576–767.98px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar .navbar-nav .nav-link {
        font-size: .95rem; /* reduce just enough to fit */
    }
    /* Optional: reduce horizontal padding a bit */
    .navbar .navbar-nav .nav-link {
        padding-left: .6rem;
        padding-right: .6rem;
    }
}

@media (max-width: 767.98px) {

    .navbar .navbar-nav .nav-link {
        font-size: 1.15rem; /* ~18.4px */
    }

    .navbar .navbar-collapse {
        padding-top: .5rem;
    }

    .navbar .navbar-nav {
        gap: .35rem;
    }

        .navbar .navbar-nav .nav-link {
            padding: .65rem .9rem;
            border-radius: var(--box-radius);
        }

            .navbar .navbar-nav .nav-link:not(.pill-active):hover {
                background: rgba(0,0,0,.04);
            }

            .navbar .navbar-nav .nav-link.pill-active {
                display: inline-flex;
                align-items: center;
                width: fit-content;
            }

        .navbar .navbar-nav .nav-item:last-child {
            display: flex;
            align-items: flex-start;
        }
}
.hero-container {
    position: relative;
    z-index: 1;
}
.container {
    background: radial-gradient(white 70%, transparent 90%);
}
.container p {
    font-size: 1.1rem;
}

.container ul li a {
    font-size: 0.8rem;
}

.nav-link {
    font-weight: bold;
}

.title-container {
    margin-top: 50px;
}

    .title-container h2 {
        font-size: 1.5rem;
        margin-top: 30px;
        margin-bottom: 20px;
        color: rgb(107 114 128 / 1);
    }

/*  BUTTONS */

.btn-pill {
    border-radius: var(--device-radius);
    padding: 0.75rem 1.5rem;
    white-space: nowrap; /* prevent wrapping */
    font-weight: 600;
}

.btn-pill {
    background-color: var(--accent-color);
    border: var(--accent-color);
    transition: transform .12s ease, box-shadow .12s ease;
}

    .btn-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0,0,0,.12);
        color: #000 !important;
        background-color: var(--accent-color) !important;
    }

/* active (pill) effect */
.pill-active {
    background-color: var(--accent-color);
    color: #fff !important;
    border-radius: var(--box-radius)
}

    .pill-active:hover {
        color: #000000 !important;
    }

/*  FOOTER */


.footer-links .nav-link {
    color: #333;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: all .18s ease-in-out;
}

    /* hover effect */
    .footer-links .nav-link.link-accent:hover {
        background-color: rgba(13, 110, 253, .12);
        color: var(--lexi-accent);
    }

  .cookie-banner, .cookie-modal {
    position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center;
    background: rgba(0,0,0,.35); padding: 16px; z-index: 9999;
  }
  .cookie-modal { align-items: center; }
  .cookie-card {
    width: min(720px, 100%); background: #fff; border-radius: 14px; padding: 18px 18px 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.22); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }

 .cookie-actions { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
    .cookie-actions .btn {
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid #111;
        background: #111;
        color: #fff;
        cursor: pointer;
    }
    .cookie-actions .btn-secondary {
        background: #fff;
        color: #111;
    }
    .cookie-actions .btn-link {
        background: transparent;
        border: none;
        color: #111;
        text-decoration: underline;
        padding: 10px 0;
    }
  .cookie-option { display:flex; align-items:center; justify-content:space-between; padding: 12px 0; border-top: 1px solid #eee; gap: 18px; }
/*  .muted { color: #666; font-size: 0.92rem; }*/


/*        visual style effects            */
@media (max-width: 768px) {

    #particles {
        display: none !important;
    }

    .ambient-glow {
        display: none !important;
    }

    .mouse-glow {
        display: none !important;
    }
}
main[role="main"] {
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.page-content {
    position: relative;
    z-index: 1;
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.effects-container {
    position: relative;
    overflow: hidden;
    isolation: isolate; /* important for stacking */
}
    .effects-container::before {
        content: "";
        position: absolute;
        inset: 0;
        /*        background: linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px);*/
        background: linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px), transparent 1px);
        background-size: 56px 56px;
        /* fades out toward bottom */
        mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 88%);
        pointer-events: none;
        z-index: 0;
    }

.square-effect {
    background: radial-gradient( circle at center, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 45%, rgba(255,255,255,0.85) 55%, #ffffff 60% ), conic-gradient( from 90deg at 1px 1px, rgba(198,198,198,0) 90deg, rgb(237,237,237) 0 ) center -1px / 50px 50px;
}
.ambient-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}

/* variants */
.ambient-1 {
    width: 380px;
    height: 380px;
    left: -80px;
    top: 80px;
    background: rgba(103, 164, 255, 0.22);
    animation: floatA 10s ease-in-out infinite alternate;
}

.ambient-2 {
    width: 340px;
    height: 340px;
    right: -60px;
    top: 150px;
    background: rgba(107, 228, 201, 0.14);
    animation: floatB 12s ease-in-out infinite alternate;
}

/*.ambient-3 {
    width: 420px;
    height: 420px;
    left: 50%;
    bottom: -200px;
    transform: translateX(-50%);
    background: rgba(178, 144, 255, 0.12);
    animation: floatC 14s ease-in-out infinite alternate;
}*/

/* motion */
@keyframes floatA {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(38px, -14px) scale(1.08);
    }
}

@keyframes floatB {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-24px, 20px) scale(1.06);
    }
}

@keyframes floatC {
    from {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    to {
        transform: translateX(-50%) translateY(-24px) scale(1.08);
    }
}
/*        END visual style effects            */

/*        START articles style            */
.article-card {
    border-radius: var(--box-radius);
    border: 1px solid #e5e7eb;
    background-color: #fff;
    overflow: hidden;
    height: 330px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out, background-color 0.18s ease-out;
}

.article-image-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

    .article-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* fills container, crops excess */
        object-position: center; /* centers crop */
        display: block;
    }

.article-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.article-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 or 3 lines, your choice */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-tile:hover .article-card {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    border-color: var(--accent-color);
    background-color: #ffffff;
}
.article-list-card--with-thumb {
    display: flex;
    gap: 1rem; /* consistent spacing */
    align-items: center; /* vertical alignment */
}

/* fixed thumbnail column */
.article-list-media {
    flex: 0 0 160px; /* thumbnail width on desktop */
    aspect-ratio: 16 / 9; /* stable crop box, prevents layout shift */
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,.06);
    position: relative;
}

/* the key to correct centering + cropping */
.article-list-media__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* optional placeholder when no image */
.article-list-media__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.12));
}

/* let text take remaining width */
.article-list-content {
    min-width: 0; /* prevents flex overflow; enables truncation if needed */
    flex: 1 1 auto;
}

/* responsive: stack on small screens */
@media (max-width: 576px) {
    .article-list-card--with-thumb {
        align-items: stretch;
        flex-direction: column;
    }

    .article-list-media {
        width: 100%;
        flex-basis: auto;
    }
}
.article-tile:hover .btn-outline-primary {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.article-list-card {
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out, background-color 0.18s ease-out;
}

.article-list-tile:hover .article-list-card {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(13, 110, 253, 0.35);
    background-color: #ffffff;
}

.article-detail .article-body p {
    line-height: 1.7;
    margin-bottom: 0;
}

.article-detail h2 {
    scroll-margin-top: 6rem; /* nicer anchor behavior if you ever link to sections */
}

/* subtle hover for the breadcrumb link */
nav[aria-label="Breadcrumb"] a:hover {
    color: var(--accent-color);
}
/*        END articles style            */

/*        START article body            */
/*.article-detail {
    max-width: 760px;
    margin: 0 auto;
}*/

/* Main typography */
.article-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #212529;
    word-break: break-word;
}

    /* Paragraphs */
    .article-body p {
        margin: 0 0 1rem;
        line-height: 1.75;
    }

    /* Headings */
    .article-body h1,
    .article-body h2,
    .article-body h3,
    .article-body h4,
    .article-body h5,
    .article-body h6 {
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: -0.02em;
        color: #111;
        margin-top: 3rem;
        margin-bottom: 1rem;
    }

    /* First heading should not create giant spacing */
    .article-body > :first-child {
        margin-top: 0;
    }

    /* Heading sizing */
    .article-body h2 {
        font-size: 2rem;
    }

    .article-body h3 {
        font-size: 1.55rem;
    }

    .article-body h4 {
        font-size: 1.25rem;
    }

    .article-body h5 {
        font-size: 1.1rem;
    }

    /* Paragraph directly after heading */
    .article-body h2 + p,
    .article-body h3 + p,
    .article-body h4 + p {
        margin-top: -0.2rem;
    }

    /* Lists */
    .article-body ul,
    .article-body ol {
        margin: -0.25rem 0 1.5rem;
        padding-left: 1.35rem;
    }

    /* List items */
    .article-body li {
        margin: 0 0 0.2rem;
        padding-left: 0.15rem;
        line-height: 1.65;
    }

        /* Remove extra spacing from last item */
        .article-body li:last-child {
            margin-bottom: 0;
        }

    /* Nested lists */
    .article-body ul ul,
    .article-body ol ol,
    .article-body ul ol,
    .article-body ol ul {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Paragraphs inside list items */
    .article-body li p {
        margin: 0;
    }

    /* Spacing when list follows paragraph */
    .article-body p + ul,
    .article-body p + ol {
        margin-top: 1.5rem;
    }

    /* Spacing after lists */
    .article-body ul + p,
    .article-body ol + p {
        margin-top: 0.5rem;
    }

    /* Images */
    .article-body img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 2.5rem auto;
        border-radius: 1rem;
    }

    /* Links */
    .article-body a {
        color: inherit;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }

        .article-body a:hover {
            opacity: 0.8;
        }

    /* Quotes */
    .article-body blockquote {
        position: relative;
        margin: 2.5rem 0;
        padding: 1.25rem 1.5rem 1.25rem 1.75rem;
        border-left: 4px solid #0d6efd;
        background: rgba(13, 110, 253, 0.05);
        border-radius: 0.85rem;
        color: #495057;
        font-style: italic;
    }

        .article-body blockquote::before {
            content: "“";
            position: absolute;
            top: -0.55rem;
            left: 0.85rem;
            font-size: 4rem;
            line-height: 1;
            color: rgba(13, 110, 253, 0.14);
            font-family: Georgia, serif;
        }

        .article-body blockquote p:last-child {
            margin-bottom: 0;
        }

    /* Code */
    .article-body code {
        padding: 0.15rem 0.4rem;
        border-radius: 0.35rem;
        font-size: 0.92em;
    }

    .article-body pre {
        overflow-x: auto;
        padding: 1rem 1.25rem;
        border-radius: 1rem;
        margin: 2rem 0;
        line-height: 1.6;
    }

        .article-body pre code {
            padding: 0;
            background: transparent;
        }

    /* Tables */
    .article-body table {
        width: 100%;
        margin: 2rem 0;
        border-collapse: collapse;
        overflow: hidden;
        border-radius: 1rem;
    }

    .article-body th,
    .article-body td {
        padding: 0.9rem 1rem;
        border: 1px solid #dee2e6;
        text-align: left;
        vertical-align: top;
    }

    .article-body th {
        font-weight: 600;
    }

    /* Horizontal rules */
    .article-body hr {
        margin: 3rem 0;
        opacity: 0.1;
    }

    /* Empty paragraphs generated by editors */
    .article-body p:empty {
        display: none;
    }

/* Mobile adjustments */
@media (max-width: 768px) {

    .article-body {
        font-size: 1rem;
        line-height: 1.75;
    }

        .article-body h2 {
            font-size: 1.65rem;
        }

        .article-body h3 {
            font-size: 1.35rem;
        }

        .article-body blockquote {
            padding: 1rem 1rem 1rem 1.25rem;
        }

            .article-body blockquote::before {
                font-size: 3rem;
            }
}
/*        END article body            */