﻿.about-company {
    position: relative;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 70px 40px 90px;
    background: radial-gradient( circle at 10% 20%, rgba(32, 24, 63, 0.035), transparent 35% ), radial-gradient( circle at 90% 80%, rgba(191, 155, 65, 0.04), transparent 35% );
    font-family: "Kanit", sans-serif;
}


/* =========================================
   SECTION TITLE
========================================= */

.about-title {
    position: relative;
    width: min(900px, 90%);
    margin: 0 auto 12px;
    padding: 18px 40px;
    background: linear-gradient( 135deg, #17112f 0%, #241b47 50%, #30235a 100% );
    color: #fff;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(32, 24, 63, 0.18);
    overflow: hidden;
}


    /* เส้นทองด้านบน */

    .about-title::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90px;
        height: 3px;
        background: linear-gradient( 90deg, transparent, #c8a95b, transparent );
    }


    /* Glow */

    .about-title::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        top: -120px;
        right: -60px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
    }


    .about-title h2 {
        position: relative;
        z-index: 2;
        margin: 0;
        font-size: 28px;
        font-weight: 500;
        letter-spacing: 0.5px;
    }


/* =========================================
   SUB TITLE
========================================= */

.history-title {
    text-align: center;
    margin: 25px 0 45px;
}


    .history-title h3 {
        position: relative;
        display: inline-block;
        margin: 0;
        color: #211a3b;
        font-size: 25px;
        font-weight: 500;
    }


        /* เส้นใต้หัวข้อ */

        .history-title h3::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -12px;
            transform: translateX(-50%);
            width: 55px;
            height: 3px;
            border-radius: 10px;
            background: linear-gradient( 90deg, #b08b3c, #d5bb75 );
        }


/* =========================================
   MAIN CONTENT
========================================= */

.history-content {
    display: grid;
    grid-template-columns: minmax(480px, 0.95fr) minmax(450px, 1.05fr);
    gap: 65px;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
}


/* =========================================
   IMAGE AREA
========================================= */

.history-slider-wrapper {
    position: relative;
    padding: 15px;
}


    /* กรอบทองด้านหลัง */

    .history-slider-wrapper::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 85%;
        height: 85%;
        border: 1px solid #c4a65a;
        border-radius: 10px;
        transform: translate(-8px, 8px);
        z-index: 0;
    }


    /* จุดตกแต่ง */

    .history-slider-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 80px;
        border-top: 3px solid #c4a65a;
        border-right: 3px solid #c4a65a;
        border-radius: 0 10px 0 0;
        z-index: 2;
        pointer-events: none;
    }


/* =========================================
   CAROUSEL
========================================= */

.history-slider {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}


    .history-slider .carousel,
    .history-slider .carousel-inner,
    .history-slider .carousel-item {
        width: 100%;
        height: 100%;
    }


        .history-slider .carousel-item img {
            width: 100%;
            height: 450px;
            display: block;
            object-fit: cover;
            object-position: center;
            transition: transform 1.2s ease, filter 0.5s ease;
        }


        /* Zoom ตอน Active */

        .history-slider .carousel-item.active img {
            transform: scale(1.02);
        }


        /* Dark overlay */

        .history-slider .carousel-item::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient( 180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.18) );
            pointer-events: none;
        }


    /* =========================================
   CAROUSEL BUTTON
========================================= */

    .history-slider .carousel-control-prev,
    .history-slider .carousel-control-next {
        width: 55px;
        opacity: 1;
        z-index: 5;
    }


    .history-slider .carousel-control-prev-icon,
    .history-slider .carousel-control-next-icon {
        width: 42px;
        height: 42px;
        padding: 10px;
        background-color: rgba(32, 24, 63, 0.78);
        background-size: 50%;
        border-radius: 50%;
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
    }


        .history-slider .carousel-control-prev-icon:hover,
        .history-slider .carousel-control-next-icon:hover {
            background-color: #c4a65a;
            transform: scale(1.08);
        }


/* =========================================
   TEXT CARD
========================================= */

.history-text {
    position: relative;
    padding: 42px 45px;
    /* พื้นหลัง Premium */
    background: linear-gradient( 135deg, #f5f3fa 0%, #ffffff 55%, #faf8f0 100% );
    border-radius: 16px;
    border: 1px solid rgba(32, 24, 63, 0.08);
    box-shadow: 0 18px 45px rgba(32, 24, 63, 0.10);
    overflow: hidden;
}


    /* เส้นทองด้านซ้าย */

    .history-text::before {
        content: "";
        position: absolute;
        top: 28px;
        bottom: 28px;
        left: 0;
        width: 5px;
        border-radius: 0 8px 8px 0;
        background: linear-gradient( 180deg, #b08b3c 0%, #dfc77f 50%, #b08b3c 100% );
    }




    /* Quote decoration */

    .history-text::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        top: -90px;
        right: -70px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(32, 24, 63, 0.07), transparent 70% );
        pointer-events: none;
    }


    .history-text p {
        position: relative;
        z-index: 2;
        margin: 0;
        color: #302b3f;
        font-size: 19px;
        line-height: 1.9;
        font-weight: 400;
        text-align: justify;
    }

.history-content {
    display: grid;
    grid-template-columns: minmax(480px, 0.95fr) minmax(450px, 1.05fr);
    gap: 50px;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
    /* เพิ่มพื้นหลังอ่อน */
    padding: 35px;
    border-radius: 24px;
    background: linear-gradient( 135deg, rgba(32, 24, 63, 0.025), rgba(196, 166, 90, 0.035) );
}


    /* =========================================
   HIGHLIGHT
========================================= */

    .history-text strong {
        color: #241b47;
        font-weight: 600;
    }


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .history-content {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 850px;
    }

    .history-slider-wrapper {
        max-width: 800px;
        width: 100%;
        margin: auto;
    }

    .history-text {
        position: relative;
        padding: 42px 45px;
        /* พื้นหลัง Premium */
        background: linear-gradient( 135deg, #f5f3fa 0%, #ffffff 55%, #faf8f0 100% );
        border-radius: 16px;
        border: 1px solid rgba(32, 24, 63, 0.08);
        box-shadow: 0 18px 45px rgba(32, 24, 63, 0.10);
        overflow: hidden;
    }

}


@media (max-width: 768px) {

    .about-company {
        padding: 50px 20px 60px;
    }

    .about-title {
        width: 100%;
        padding: 15px 20px;
    }

        .about-title h2 {
            font-size: 23px;
        }

    .history-title {
        margin: 20px 0 35px;
    }

        .history-title h3 {
            font-size: 22px;
        }

    .history-slider {
        height: 350px;
    }

        .history-slider .carousel-item img {
            height: 350px;
        }

    .history-text {
        padding: 30px 28px;
    }

        .history-text p {
            font-size: 17px;
            line-height: 1.8;
            text-align: left;
        }
}


@media (max-width: 480px) {

    .about-company {
        padding: 40px 15px 50px;
    }

    .about-title h2 {
        font-size: 21px;
    }

    .history-slider {
        height: 280px;
    }

        .history-slider .carousel-item img {
            height: 280px;
        }

    .history-slider-wrapper {
        padding: 8px;
    }

    .history-text {
        padding: 25px 22px;
    }

        .history-text p {
            font-size: 16px;
            line-height: 1.75;
        }

        .history-text::before {
            top: 25px;
            bottom: 25px;
        }
}

.company-timeline {
    position: relative;
    width: 100%;
    max-width: 1250px;
    /* จาก 75px -> 25px */
    margin: 25px auto 50px;
    padding: 45px 45px 55px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(32, 24, 63, 0.08);
    box-shadow: 0 15px 45px rgba(32, 24, 63, 0.08);
    overflow: hidden;
}


    /* =========================================
   Background Decoration
========================================= */

    .company-timeline::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        top: -180px;
        right: -120px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(196, 166, 90, 0.10), transparent 70% );
        pointer-events: none;
    }


    .company-timeline::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        bottom: -150px;
        left: -100px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(32, 24, 63, 0.06), transparent 70% );
        pointer-events: none;
    }


/* =========================================
   Timeline Header
========================================= */

.timeline-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 35px;
}


    .timeline-header h3 {
        position: relative;
        display: inline-block;
        margin: 0;
        color: #211a3b;
        font-size: 25px;
        font-weight: 500;
        letter-spacing: 0.3px;
    }


        .timeline-header h3::before {
            content: "";
            position: absolute;
            left: 50%;
            top: -15px;
            transform: translateX(-50%);
            width: 45px;
            height: 3px;
            border-radius: 10px;
            background: linear-gradient( 90deg, #b08b3c, #dfc77f );
        }


        .timeline-header h3::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -12px;
            transform: translateX(-50%);
            width: 65px;
            height: 2px;
            background: rgba(32, 24, 63, 0.12);
        }


/* =========================================
   Timeline Image Container
========================================= */

.timeline-image {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px 15px 10px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
}


    /* Gold line decoration */

    .timeline-image::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 1px;
        background: linear-gradient( 90deg, transparent, #c4a65a, transparent );
    }


    /* =========================================
   Timeline Image
========================================= */

    .timeline-image img {
        display: block;
        width: 100%;
        max-width: 1100px;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
        border-radius: 8px;
        transition: transform 0.5s ease, filter 0.5s ease;
    }


    /* Hover */

    .timeline-image:hover img {
        transform: scale(1.015);
        filter: brightness(1.02);
    }


/* =========================================
   Caption
========================================= */

.timeline-caption {
    position: relative;
    z-index: 2;
    margin-top: 25px;
    text-align: center;
    color: #777;
    font-size: 14px;
    letter-spacing: 0.3px;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 992px) {

    .company-timeline {
        margin-top: 20px;
        padding: 20px 25px 50px;
    }

    .timeline-image {
        padding: 15px 5px 5px;
    }

    .timeline-header h3 {
        font-size: 23px;
    }
}


@media (max-width: 576px) {

    .company-timeline {
        margin-top: 40px;
        padding: 35px 12px 40px;
        border-radius: 12px;
    }

    .timeline-header {
        margin-bottom: 25px;
    }

        .timeline-header h3 {
            font-size: 21px;
        }

    .timeline-image {
        padding: 10px 0;
    }

        .timeline-image img {
            width: 100%;
            border-radius: 6px;
        }

    .timeline-caption {
        font-size: 13px;
    }
}

.company-profile {
    position: relative;
    width: 100%;
    max-width: 1250px;
    margin: 25px auto 70px;
    padding: 60px 40px 70px;
    font-family: "Kanit", sans-serif;
    background: radial-gradient( circle at 90% 10%, rgba(196, 166, 90, 0.07), transparent 30% ), radial-gradient( circle at 10% 90%, rgba(32, 24, 63, 0.05), transparent 30% );
}


/* =========================================
   HEADER
========================================= */

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}


.profile-header-line {
    width: 60px;
    height: 3px;
    margin: 0 auto 15px;
    border-radius: 20px;
    background: linear-gradient( 90deg, #b08b3c, #dfc77f );
}


.profile-header h2 {
    margin: 0;
    color: #211a3b;
    font-size: 27px;
    font-weight: 500;
}


.profile-header p {
    margin: 5px 0 0;
    color: #a28b52;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* =========================================
   MAIN CARD
========================================= */

.profile-card {
    display: grid;
    grid-template-columns: minmax(400px, 0.9fr) minmax(500px, 1.1fr);
    gap: 45px;
    padding: 35px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(32,24,63,0.08);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(32,24,63,0.09);
    position: relative;
    overflow: hidden;
}


    /* Gold top line */

    .profile-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient( 90deg, #20183f 0%, #c4a65a 50%, #20183f 100% );
    }


/* =========================================
   IMAGE
========================================= */

.profile-image {
    position: relative;
    align-self: center;
}


.profile-image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #20183f;
    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
}


    /* Gold frame */

    .profile-image-frame::before {
        content: "";
        position: absolute;
        inset: 10px;
        border: 1px solid rgba(255,255,255,0.35);
        border-radius: 8px;
        z-index: 2;
        pointer-events: none;
    }


    .profile-image-frame img {
        display: block;
        width: 100%;
        height: 430px;
        object-fit: cover;
        transition: transform 0.7s ease, filter 0.7s ease;
    }


    .profile-image-frame:hover img {
        transform: scale(1.04);
        filter: brightness(1.05);
    }


/* =========================================
   IMAGE CAPTION
========================================= */

.profile-image-caption {
    position: absolute;
    left: 25px;
    bottom: 25px;
    z-index: 3;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}


    .profile-image-caption span {
        display: block;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 1px;
    }


    .profile-image-caption small {
        display: block;
        margin-top: 3px;
        font-size: 11px;
        letter-spacing: 1.5px;
        opacity: 0.85;
    }


/* =========================================
   INFO
========================================= */

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================
   INFO TITLE
========================================= */

.profile-info-title {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(32,24,63,0.08);
}


.info-line {
    display: block;
    width: 4px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient( 180deg, #b08b3c, #dfc77f );
}


.profile-info-title h3 {
    margin: 0;
    color: #211a3b;
    font-size: 23px;
    font-weight: 500;
}


.profile-info-title p {
    margin: 2px 0 0;
    color: #9b8b67;
    font-size: 12px;
    letter-spacing: 1px;
}


/* =========================================
   INFORMATION GROUP
========================================= */

.info-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 5px 0;
}


.info-row {
    display: grid;
    grid-template-columns: 175px 1fr;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(32,24,63,0.055);
}


    .info-row:last-child {
        border-bottom: none;
    }


/* Label */

.info-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #211a3b;
    font-size: 14px;
    font-weight: 500;
}


    .info-label i {
        color: #b08b3c;
        font-size: 16px;
        margin-top: 2px;
    }


/* Value */

.info-value {
    color: #555;
    font-size: 14px;
    line-height: 1.65;
}


    .info-value a {
        color: #51427b;
        text-decoration: none;
        transition: 0.3s;
    }


        .info-value a:hover {
            color: #b08b3c;
            text-decoration: underline;
        }


/* =========================================
   FINANCIAL HIGHLIGHT
========================================= */

.info-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 5px;
}


.highlight-item {
    padding: 15px 18px;
    background: linear-gradient( 135deg, rgba(32,24,63,0.04), rgba(196,166,90,0.08) );
    border-radius: 10px;
    border-left: 3px solid #c4a65a;
}


    .highlight-item span {
        display: block;
        color: #777;
        font-size: 12px;
        margin-bottom: 3px;
    }


    .highlight-item strong {
        color: #211a3b;
        font-size: 16px;
        font-weight: 500;
    }


/* =========================================
   RELATED COMPANY
========================================= */

.related-company {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    padding: 17px 18px;
    background: #f8f7fb;
    border-radius: 10px;
    border: 1px solid rgba(32,24,63,0.06);
}


.related-title {
    color: #211a3b;
    font-size: 13px;
    font-weight: 500;
}


    .related-title i {
        color: #b08b3c;
        margin-right: 5px;
    }


.related-content {
    color: #555;
    font-size: 13px;
}


    .related-content strong {
        color: #211a3b;
        font-weight: 500;
    }


.related-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 5px 0;
}


    .related-contact i {
        color: #b08b3c;
    }


.related-content a {
    color: #51427b;
    text-decoration: none;
    font-size: 12px;
}


    .related-content a:hover {
        color: #b08b3c;
        text-decoration: underline;
    }


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .profile-card {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .profile-image {
        max-width: 650px;
        width: 100%;
        margin: auto;
    }

    .profile-info {
        width: 100%;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .company-profile {
        margin: 15px auto 45px;
        padding: 40px 15px;
    }


    .profile-header {
        margin-bottom: 25px;
    }


        .profile-header h2 {
            font-size: 23px;
        }


    .profile-card {
        padding: 18px;
        border-radius: 12px;
    }


    .profile-image-frame img {
        height: 280px;
    }


    .profile-image-caption {
        left: 18px;
        bottom: 18px;
    }


        .profile-image-caption span {
            font-size: 13px;
        }


        .profile-image-caption small {
            font-size: 9px;
        }


    .profile-info-title h3 {
        font-size: 19px;
    }


    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }


    .info-label {
        font-size: 13px;
    }


    .info-value {
        padding-left: 24px;
        font-size: 13px;
    }


    .info-highlight {
        grid-template-columns: 1fr;
    }


    .related-company {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}
