:root {
    --primary-blue: #2c76d2;
    --dark-text: #333;
    --light-text: #777;
    --bg-light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero {
    display: flex;
    align-items: center;
    min-height: 84vh;
    position: relative;
    max-width: 1260px;
}
.hero-content {
    flex: 1;
    max-width: 50%;
    z-index: 2;
    text-align: left;
}
h2 {
        color: #333;
}
.hero-content h1 {
    font-size: 2.65em;
    font-weight: 700;
    line-height: 1.15;
    margin: 20px 0;
    color: #0560a0;
}
.hero-content p {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.2em;
    line-height: 1.5;
    /* width: 30em; */
    /* text-align: justify; */
}
.btn-main {
    background: white;
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 14px;
    transition: 0.3s;
}
.btn-main i {
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    border-radius: 50%;
    margin-left: 15px;
    font-size: 10px;
}
.hero-image {
    flex: 1;
    position: absolute;
    right: -18%;
    top: 0;
    width: 74%;
    height: 80%;
    background: url(../images/abou_main1.png) bottom / cover;
    border-bottom-left-radius: 18em;
    z-index: 1;
    background-repeat: no-repeat!important;
}
section {
    padding: 10vh 0;
    margin: auto;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.collage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 150px;
    gap: 15px;
}
.collage-item {
    border-radius: 10px;
    overflow: hidden;
}
.blue-box {
    background: var(--primary-blue);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 2.5em;
    font-weight: 200;
    align-items: flex-start;
}
.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.span-wide {
    grid-column: span 2;
}
#plp .solutions-grid {
    display: flex;
    gap: 50px;
}
.card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #aacde5;
    box-shadow: 0 10px 30px #4b5e6d0d;
    transition: 0.3s;
    text-align: center;
    z-index: 1;
}
.card::after {
    content: '';
    width: 70px;
    height: 1px;
    background-color: #539cce;
    position: absolute;
    right: -70px;
    top: 50%;
    z-index: 0;
}
#plp .card:last-child::after {
    display: none;
}
.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    margin-bottom: .5em;
    font-size: 2em;
}
.card strong {
    color: #0073d1;
        font-size: 1.7em;
        margin-bottom: 0em;
        display: block;
}
.card p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
}
.card .btn-small {
    font-size: 12px;
    text-decoration: none;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card .btn-small i {
    color: var(--primary-blue);
}

/* --- Logos --- */
.logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 40px 8%;
    opacity: 0.6;
    filter: grayscale(1);
}

.logos i, .logos span {
    font-size: 24px;
    font-weight: 700;
}

/* --- Contact / Footer --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 40px;
    background: #fff;
}

.contact-blue-card {
    background: var(--primary-blue);
    color: white;
    padding: 40px;
    border-radius: 15px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.info-section h4 {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--light-text);
}

.info-item {
    margin-bottom: 20px;
    font-size: 13px;
}

.info-item i {
    margin-right: 10px;
    color: var(--primary-blue);
}

.map-placeholder {
    background: #eee url('https://upload.wikimedia.org/wikipedia/commons/e/e0/Placeholder_LC_Map.png') center/cover;
    border-radius: 15px;
    min-height: 300px;
}

.wrap {
    height: 90vh;
}
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    padding-top: 76px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}
a.btn-scroll {
    transition-delay: 0.4s;
    display: block;
    text-align: center;
    margin-top: 3em;
}
a.btn-scroll i {
    font-size: 36px;
    color: #09629d;
}
.btn-scroll {
    display: inline-block;
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
    opacity: 0.8;
    margin-left: 30%;
}

.btn-scroll:hover {
    opacity: 1;
    color: var(--accent-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}
#tyne {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}
#tyne .grid-2 {
    max-width: 1320px;
}
#tyne div {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.5;
}
#tyne div p {
    margin-top: 1em;
}
#tyne h2 {
    font-size: 28px; 
    margin-bottom: 20px;
    color: #333;
}
#tyne h2 span {
    color: #0561da;
}
#tyne .collage-item.blue-box {
    color: #fff;
    font-size: 1.7em;
    font-weight: 400;
}
#whyTYNE,#plp {
    background-color: #deebf9;
}

#plp h3 {
    background-color: #0073d1;
    color: #fff;
    width: 2em;
    height: 2em;
    line-height: 2em;
    border-radius: 20em;
    margin: auto;
}
#plp > div {
    max-width: 1314px;
    margin: auto;
}
.line {
    width: 60px;
    height: 5px;
    background: #2c76d2;
    margin: 0 auto 1.2em!important;
    border-radius: 5px;
}
#plp h2 {
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

#whyTYNE > div {
    max-width: 1314px;
    margin: auto;
}
#whyTYNE h3 {
    font-size: 1.5em;
    color: #0073d1;
    text-align: center;
}
#whyTYNE .box  {
    display: flex;
    gap:40px
}
#whyTYNE .box > div {
    color: #333;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
    width: 33%;
}
#whyTYNE h2 {
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}
#whyTYNE P {
    margin: 0;
    font-size: 1.1em;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
html[lang="en"] .hero-content h1 br{ display: none;}
html[lang="en"] #tyne h2 {
    white-space: nowrap;
}
html[lang="en"] .hero-content h1 {
    font-size: 2.35em;
}

/* --- Responsive Queries --- */
@media screen and (max-width:1366px) {
    .hero {
        max-width: 1160px;
    }
    .hero-image {
        width: 70% !important;
    }
    #tyne .grid-2 {
        max-width: 1200px!important;
    }
    #tyne h2 {
        white-space: nowrap!important;
    }
    .hero-content {
        padding: 0;
    }
    .hero h1 {
        font-size: 2.35em !important;
    }
    .hero h1 + p {
        width: 50vw;
    }
    #plp h2 {
        font-size: 1.7em;
    }
    html[lang="en"] #whyTYNE P,
    html[lang="en"] #tyne div {
        font-size: 1em;
    }
}
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 10%;
        text-align: center;
    }
    .hero-image {
        position: relative;
        width: 100%;
        height: 300px;
        margin-top: 50px;
        border-radius: 50px;
    }
    .hero-content {
        max-width: 100%;
    }
    .grid-2, .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .wrap {
        height: initial;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .logos {
        gap: 20px;
        justify-content: center;
    }
    #plp .solutions-grid {
        flex-direction: column;
        gap: 1em;
    }
    section {
        padding: 10% 0 0; 
    }
    .card {
        padding: 5%;
        width: 90%;
        margin: auto;
    }
    .card::after {
        display: none;
    }
    #plp h2 {
        width: 90%;
        margin: 0 auto 5%;
    }
    .card h3 {
        font-size: 1.75em;
    }
    .card strong {
        font-size: 1.5em;
    }
    #tyne .grid-2 {
        max-width: 90% !important;
        margin: auto;
    }
    .grid-2 .collage-grid {
        display: none;
    }
    #plp .solutions-grid {
        padding: 0 0 10%;
    }
    #tyne h2 {
        font-size: 1.5rem;
        white-space: initial !important;
    }
    #whyTYNE P,
    #tyne div,
    #tyne div p,
    .card p,
    .hero-content p {
        font-size: 1rem!important;
    }
    #whyTYNE .box {
        gap: 1em;
        flex-direction: column;
        padding: 0 0 1em;
    }
    #whyTYNE .box > div {
        width: 90%;
        margin: auto;
    }
    #whyTYNE h2 {
        width: 95%;
        margin: 0 auto 5%;
    }
    .hero-image {
        display: none !important;
    }
    .hero {
        min-height: initial;
    }
    .hero h1 {
        font-size: 1.5em !important;
    }
}
