/* =======   GLOBAL RESET & FONT SYSTEM ========= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans Thai', sans-serif;
}


body {
    background: #ffffff;
    color: #374151;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .65em;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

/* Hero / Main Title */
h1 {
    font-size: clamp(2.1rem, 5vw, 2.5rem);
    font-weight: 700;
}

/* Section Title */
h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
}

/* Card / Content Title */
h3 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700;
}

/* Sub Heading */
h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
}

h5 {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 600;
}

h6 {
    font-size: clamp(1);
    font-weight: 600;
}

/* Paragraph */
p {
    font-size: clamp(1rem);
    line-height: 1.85;
    margin: 0 0 1.2em;
}

/* Lead Text */
.lead {
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.9;
}

p {
    margin: 0 0 1.2em;
    font-size: 16px;
    line-height: 1.9;
}

/* =========================
   ABOUT HERO
========================= */

.about-hero {
    position: relative;
    width: 100%;
    padding: 70px 24px 0;

    background:
        radial-gradient(circle at 85% 20%,
            rgba(0, 132, 255, .18),
            transparent 35%),
        linear-gradient(135deg,
            #f7fbff 0%,
            #ffffff 60%,
            #eef7ff 100%);

    overflow: hidden;
    border-radius: 0 0 40px 40px;
}


/* =========================
   CONTAINER
========================= */

.about-hero-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: center;
}


/* =========================
   CONTENT
========================= */

.about-hero-content {
    min-width: 0;
}

.about-label {
    display: inline-block;
    margin-bottom: 18px;

    color: #0084FF;
    font-weight: 800;
    letter-spacing: .16em;
}

.about-hero-content h1 {
    margin: 0 0 25px;

    color: #0F172A;
    line-height: 1.06;
    font-weight: 800;
}

.about-hero-content h1 span {
    display: block;

    background: linear-gradient(90deg,
            #0084FF,
            #38BDF8,
            #7C3AED);

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-content p {
    max-width: 680px;
    margin: 0;

    color: #64748B;
    line-height: 1.8;
}


/* =========================
   ACTION BUTTONS
========================= */

.about-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 35px;
}

.about-primary-btn,
.about-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 24px;

    border-radius: 999px;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.about-primary-btn {
    background: #0084FF;
    color: #fff;

    box-shadow:
        0 15px 35px rgba(0, 132, 255, .22);
}

.about-secondary-btn {
    border: 1px solid #D9E3EE;

    background: #fff;
    color: #0F172A;
}

.about-primary-btn:hover,
.about-secondary-btn:hover {
    transform: translateY(-3px);
}


/* =========================
   HERO VISUAL
========================= */

.about-hero-visual {
    position: relative;

    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   HERO IMAGE
========================= */

.googleads-hero-image {
    width: 100%;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    overflow: hidden;
}

.googleads-hero-image img {
    display: block;

    width: 80%;
    max-width: 800px;
    height: auto;

    margin: 0 auto;

    animation: heroZoom 5s ease-in-out infinite;
}

@keyframes heroZoom {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}


/* =========================
   FLOATING CARDS
========================= */

.about-float-card {
    position: absolute;
    z-index: 2;

    min-width: 190px;
    padding: 18px 20px;

    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 18px;

    background: rgba(255, 255, 255, .85);

    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);

    box-shadow:
        0 18px 50px rgba(15, 23, 42, .12);
}

.about-float-card small {
    display: block;
    margin-bottom: 5px;

    color: #0084FF;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.about-float-card strong {
    color: #0F172A;

    font-size: 15px;
}

.about-card-1 {
    top: 30px;
    left: 10px;
}

.about-card-2 {
    top: 170px;
    right: 0;
}

.about-card-3 {
    bottom: 35px;
    left: 30px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 991px) {

    .about-hero {
        padding: 70px 24px 0;
    }

    .about-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-hero-content {
        max-width: 700px;
    }

    .about-hero-visual {
        max-width: 700px;
        margin: 0 auto;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .about-hero {
        padding: 60px 20px 0;
        border-radius: 0 0 30px 30px;
    }

    .about-hero-container {
        grid-template-columns: 1fr;
        gap: 35px;

        /* ไม่ใส่ padding ตรงนี้ */
    }

    .about-hero-content {
        width: 100%;
    }

    .about-actions {
        margin-top: 25px;
        gap: 10px;
    }

    .about-primary-btn,
    .about-secondary-btn {
        padding: 12px 18px;
    }

    .googleads-hero-image img {
        width: 100%;
        max-width: 500px;
    }

    /* Floating card เล็กลงบนมือถือ */
    .about-float-card {
        min-width: 140px;
        padding: 12px 14px;

        border-radius: 14px;
    }

    .about-float-card strong {
        font-size: 13px;
    }

    .about-card-1 {
        top: 15px;
        left: 0;
    }

    .about-card-2 {
        top: 110px;
        right: 0;
    }

    .about-card-3 {
        bottom: 20px;
        left: 10px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .about-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .about-hero-container {
        gap: 30px;
    }

    .about-actions {
        width: 100%;
    }

    .about-primary-btn,
    .about-secondary-btn {
        flex: 1;
        padding: 11px 14px;

        white-space: nowrap;
    }

    .about-float-card {
        min-width: 120px;
        padding: 10px 12px;
    }

    .about-float-card small {
        font-size: 8px;
    }

    .about-float-card strong {
        font-size: 11px;
    }

}

/* =========================
   ABOUT STORY + CLIENT LOGOS
========================= */

.about-story {
    width: 100%;
    padding: 120px 24px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.about-story-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    gap: 60px;
    align-items: center;

    box-sizing: border-box;
}


/* =========================
   LEFT CONTENT
========================= */

.about-story-heading {
    min-width: 0;
}

.about-story-heading>span {
    display: inline-block;
    margin-bottom: 16px;

    color: #0084FF;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
}

.about-story-heading h2 {
    margin: 0;

    color: #0F172A;
    line-height: 1.1;
    font-weight: 800;
}

.about-story-heading p {
    max-width: 420px;
    margin: 22px 0 0;

    color: #64748B;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================
   RIGHT CONTENT
========================= */

.about-story-content {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}


/* =========================
   LOGO MARQUEE
========================= */

.logo-marquee {
    position: relative;

    width: 100%;
    min-width: 0;

    overflow: hidden;
}


/* Fade ซ้าย / ขวา */

.logo-marquee::before,
.logo-marquee::after {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;

    width: 60px;

    z-index: 5;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;

    background: linear-gradient(90deg,
            #fff 0%,
            rgba(255, 255, 255, .8) 40%,
            transparent 100%);
}

.logo-marquee::after {
    right: 0;

    background: linear-gradient(270deg,
            #fff 0%,
            rgba(255, 255, 255, .8) 40%,
            transparent 100%);
}


/* =========================
   LOGO TRACK
========================= */

.logo-track {
    display: flex;
    width: max-content;

    animation: logoScroll 28s linear infinite;

    will-change: transform;
}

.logo-track.reverse {
    animation-name: logoScrollReverse;
}

.logo-set {
    display: flex;
    flex-shrink: 0;

    gap: 14px;
    padding-right: 14px;
}


/* =========================
   LOGO ITEM
========================= */

.logo-item {
    width: 150px;
    height: 84px;
    padding: 16px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #E8EEF5;
    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, .04);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.logo-item img {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 50px;

    object-fit: contain;

    transition: transform .3s ease;
}


/* Hover */

.logo-item:hover {
    transform: translateY(-3px);

    border-color: rgba(0, 132, 255, .20);

    box-shadow:
        0 15px 35px rgba(15, 23, 42, .08);
}

.logo-item:hover img {
    transform: scale(1.04);
}


/* =========================
   SECOND ROW
========================= */

.second-row {
    margin-top: 14px;
}


/* =========================
   PAUSE ON HOVER
========================= */

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}


/* =========================
   ANIMATION
========================= */

@keyframes logoScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}

@keyframes logoScrollReverse {

    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 991px) {

    .about-story {
        padding: 90px 24px;
    }

    .about-story-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }

    .about-story-heading {
        text-align: center;
    }

    .about-story-heading p {
        max-width: 650px;
        margin: 22px auto 0;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .about-story {
        padding: 70px 16px;
    }

    .about-story-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .about-story-content {
        width: 100%;
        min-width: 0;
    }

    .logo-marquee {
        width: 100%;
    }

    .logo-marquee::before,
    .logo-marquee::after {
        width: 25px;
    }

    .logo-set {
        gap: 8px;
        padding-right: 8px;
    }

    .logo-item {
        width: 120px;
        height: 68px;

        padding: 10px;
        border-radius: 12px;
    }

    .logo-item img {
        max-height: 40px;
    }

    .logo-track {
        animation-duration: 22s;
    }

    .second-row {
        margin-top: 8px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .about-story {
        padding: 60px 16px;
    }

    .about-story-container {
        gap: 28px;
    }

    .logo-item {
        width: 105px;
        height: 62px;
        padding: 8px;
    }

    .logo-item img {
        max-height: 36px;
    }

}




/* =========================
   STATS
========================= */

.about-stats {
    padding: 80px 24px;

    background: #0084FF;
}

.about-stats-container {
    max-width: 1280px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.about-stat {
    padding: 20px;

    text-align: center;

    border-right: 1px solid rgba(255, 255, 255, .2);
}

.about-stat:last-child {
    border-right: 0;
}

.about-stat strong {
    display: block;

    color: #fff;

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
}

.about-stat span {
    display: block;
    margin-top: 12px;

    color: rgba(255, 255, 255, .8);

    font-size: 14px;
}

@media (max-width: 700px) {

    .about-stats {
        padding: 60px 16px;
        border-radius: 30px 30px 30px 30px;
    }

    .about-stats-container {
        grid-template-columns: 1fr;
    }

    .about-stat {
        padding: 28px 20px;

        /* เปลี่ยนจากเส้นขวาเป็นเส้นล่าง */
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .about-stat:last-child {
        border-bottom: 0;
    }

    .about-stat strong {
        font-size: 48px;
    }

}


/* =========================
   SERVICES
========================= */

.about-services {
    padding: 120px 24px;
    background: #F8FBFF;
}

.about-services-container {
    max-width: 1280px;
    margin: 0 auto;
}

.about-services-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.about-services-heading h2 {
    margin: 0;

    color: #0F172A;
    line-height: 1.1;
}

.about-services-heading h2 span {
    color: #0084FF;
}

.about-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid #DDE6EF;
}

.about-service {
    position: relative;

    padding: 35px 20px;

    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 20px;
    align-items: center;

    border-bottom: 1px solid #DDE6EF;

    color: inherit;
    text-decoration: none;

    transition: .3s ease;
}

.about-service:nth-child(odd) {
    border-right: 1px solid #DDE6EF;
}

.about-service>span {
    color: #0084FF;

    font-weight: 700;
}

.about-service h3 {
    margin: 0;

    color: #0F172A;

    font-size: 23px;
}

.about-service p {
    grid-column: 2;

    margin: 5px 0 0;

    color: #64748B;
}

.about-service i {
    grid-row: 1 / 3;
    grid-column: 3;

    font-size: 28px;
    font-style: normal;
}

.about-service:hover {
    padding-left: 30px;

    background: #fff;
}

@media (max-width: 700px) {

    .about-services {
        padding: 80px 16px;
    }

    .about-services-grid {
        grid-template-columns: 1fr;
    }

    .about-service {
        grid-template-columns: 42px 1fr auto;
        gap: 12px;
        padding: 24px 12px;
    }

    .about-service:nth-child(odd) {
        border-right: 0;
    }

    .about-service h3 {
        font-size: 20px;
    }

    .about-service p {
        grid-column: 2 / 4;
        font-size: 15px;
        line-height: 1.7;
    }

    .about-service i {
        grid-row: 1;
        grid-column: 3;
        font-size: 24px;
    }

    .about-service:hover {
        padding-left: 12px;
    }

}