:root {
    --blue: #5564aa;
    --hoverTransparent: #a0a0a080;
    --darkGray: #a0a0a0;
    --orange: #efd74f;
    --background: white;
    --lightGray: #f0f0f0;
    --navy: #102d59;
    --ink: #192c46;
    --muted: #61738a;
    --line: #e1e8f1;
    --bg: #f5f8fc;
    --soft: #eaf1fb;
}

* {
    font-family: Calibri, Carlito, Candara, Segoe UI, Optima, Arial, sans-serif;
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    background-image: url("/public/media/pictures/background.webp");
    background-position: center;
    background-repeat: repeat;

    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

.blueBackground {
    background: var(--blue);
}

.grayBackground {
    background: var(--darkGray);
}

.lightGrayBackground {
    background: var(--lightGray);
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.inline {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}

.inline > * {
    margin-left: 10px;
}

.inline *:first-child {
    margin-left: 0;
!important;
}

.field {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.3);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--blue);
    text-align: start;
}

.left {
    text-align: left;
!important;
}

ul {
    list-style: outside "❱ ";
    padding-left: 20px;
    margin: 10px;
}


li::marker {
    color: var(--blue);
    margin-right: 5px;
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    h3 {
        font-size: 1.0em;
        margin-bottom: 5px;
    }

    h6 {
        font-size: 3em;
    }

    p, a, .productAttribute li {
        font-size: 1.1em;
    }

}

@media screen and (min-width: 600px){
    h1 {
        font-size: 3em;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 1.5em;
        margin-bottom: 7px;
    }

    h6 {
        font-size: 4em;
        margin-bottom: 15px;
    }

    p, a, .productAttribute li {
        font-size: 1.3em;
    }
}



p {
    color: #454545;
}

.clickable {
    transition: 0.2s;

    transform: scale(1);
    opacity: 1;
}

.clickable:hover {
    transition: 0.2s;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    transform: scale(1.05);
    opacity: 0.9;

}

.clickable h1, .clickable h2, .clickable h3, .clickable h4, .clickable h5, .clickable h6 {
    transition: 0.2s;
}

.clickable:hover h1, .clickable:hover h2, .clickable:hover h3, .clickable:hover h4, .clickable:hover h5, .clickable:hover h6 {
    transition: 0.2s;
}

.grid {
    position: relative;

    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;
    justify-content: center;
    align-items: center;
    justify-items: center;

    gap: 4dvw;
}


@media screen and (max-width: 1050px) {
    .grid {
        grid-template-columns: 90%;
    }
}

@media screen and (min-width: 1050px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }

    .specialSpan {
        grid-column: span 2;
        width: 50% !important;
        justify-self: center;
    }

    .span {
        grid-column: 1 / span 2;
        width: 100% !important;
    }
}

/* ==========================================================================
   Shared Components & Utility Layouts
   ========================================================================== */

/* Card Grids & Galleries */
.roundGallery,
.roundCards,
.nextCards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
    gap: 16px;
    margin: 20px 0;
}

.roundGallery figure,
.roundCards article,
.nextCards article {
    margin: 0;
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    overflow: hidden;
}

.roundCards article,
.nextCards article {
    padding: 20px;
}

.roundCards img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.roundCards h3,
.nextCards h3 {
    margin: 12px 0 6px;
}

.nextCards h3 {
    margin-top: 0;
}

.roundGallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 24px 0;
}

.roundGallery img {
    display: block;
    width: 100%;
    height: 110px;
    padding: 14px;
    box-sizing: border-box;
    object-fit: contain;
}

/* Feature & Example Split Layout */
.roundExample {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 4vw, 44px);
    background: #eff5fc;
    border-radius: 12px;
    margin: 32px 0;
    padding: clamp(18px, 4vw, 36px);
}

.roundExample img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.roundExample p {
    line-height: 1.65;
}

.roundExample.taiwanProjectFeature {
    width: min(1200px, calc(100% - 40px));
    margin: clamp(30px, 5vw, 72px) auto;
}

.roundExample.taiwanProjectFeature > img {
    display: block;
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

/* Badges / Pill Links Navigation */
.roundLinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

/* Technical Specification List (Key-Value Pairs) */
.roundSpecs {
    display: grid;
    grid-template-columns: minmax(125px, 1fr) 2fr;
    gap: 0;
    background: #f4f8fc;
    border-radius: 8px;
    padding: 8px 18px;
}

.roundSpecs dt,
.roundSpecs dd {
    margin: 0;
    padding: 12px;
    border-bottom: 1px solid #dce5ef;
}

.roundSpecs dt {
    font-weight: 700;
    color: #173b72;
}

/* FAQs and Accordions */
.roundFaq,
.solutionFaq {
    scroll-margin-top: 110px;
}

.roundFaq {
    width: min(1200px, calc(100% - 40px));
    margin: clamp(30px, 5vw, 72px) auto;
}

.solutionFaq {
    box-sizing: border-box;
    padding: clamp(18px, 3vw, 32px);
    background: #eff5fc;
    border-radius: 14px;
}

.roundFaq details,
.solutionFaq details {
    background: #f4f8fc;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    margin: 10px 0;
    padding: 16px 20px;
}

.solutionFaq details {
    background: #ffffff;
}

.roundFaq summary,
.solutionFaq summary {
    cursor: pointer;
    color: #173b72;
    font-weight: 700;
}

.roundFaq p,
.solutionFaq p {
    line-height: 1.45;
    font-size: 16px;
}

.roundMaterialNav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.roundMaterialNav a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eff5fc;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    padding: 8px 12px;
}

.roundMaterialNav img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Responsive Overrides */
@media (max-width: 680px) {
    .roundGallery,
    .roundGallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .roundExample,
    .roundSpecs {
        grid-template-columns: minmax(0, 1fr);
    }
}