/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Nov 11, 2022, 11:37:57 AM
    Author     : yot_o
*/

@media screen and (min-width: 1870px) {/* มากกว่า 1870px ขึ้นไป */
    .content-mobile-status{
        display: none !important;
    }

    .content-pc-status{
        display: block !important;
    }

    /*Tempate*/
    .tempate_top_menu_txt{
        /*        font-size: 26px !important;
                padding-left: 10px !important;*/
        font-family: NotoSansThai;
        font-size: var(--tempate_top_menu_txt) !important;
        color: #202020;
        font-style: normal;
        font-weight: 400;
        line-height: 100%;
    }

    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl{
        max-width: 1850px !important;
    }
    /*--------------------------------------------------------------
    # Contact Us.jsp (CLEAR)
    --------------------------------------------------------------*/
    .contact .info-container {
        gap: calc(0.3vw + 2rem);
        max-width: 1800px;
        margin: 0 auto;
    }
    .contact .info-item {
        padding: calc(0.4vw + 1.8rem) 0 calc(0.5vw + 2.5rem) 0;
        border-radius: calc(0.2vw + 0.8rem);
    }
    .contact .info-item i {
        font-size: calc(0.4vw + 1.6rem);
        width: calc(0.8vw + 4rem);
        height: calc(0.8vw + 4rem);
    }
    .contact .info-item h3 {
        font-size: calc(0.4vw + 1.6rem);
        margin: calc(0.4vw + 1.6rem) 0;
    }
    .contact .info-item p {
        font-size: calc(0.25vw + 1.1rem);
        padding-right: calc(0.4vw + 1.6rem);
        padding-left: calc(0.4vw + 1.6rem);
    }
    .contact .php-email-form {
        padding: calc(0.5vw + 2.5rem);
        border-radius: calc(0.2vw + 0.8rem);
    }
    .contact .php-email-form input[type=text],
    .contact .php-email-form input[type=email],
    .contact .php-email-form textarea {
        font-size: calc(0.25vw + 1.1rem);
        padding: calc(0.2vw + 0.8rem) calc(0.3vw + 1.2rem);
    }
    .contact .php-email-form button[type=submit] {
        padding: calc(0.2vw + 0.8rem) calc(0.5vw + 2.2rem);
        font-size: calc(0.25vw + 1.1rem);
    }
    /*--------------------------------------------------------------
    # About Us.jsp (CLEAR)
    --------------------------------------------------------------*/
    .about-section {
        padding: calc(0.8vw + 2.5rem) 5%;
        gap: calc(0.6vw + 2rem);
        max-width: 1800px;
        margin: 0 auto;
    }
    .about-image img {
        border-radius: calc(0.15vw + 0.8rem);
        transition: transform 0.3s ease;
    }
    .about-image img:hover {
        transform: scale(1.02);
    }
    .vision-mission {
        padding: calc(0.8vw + 2.5rem) 5%;
        gap: calc(0.6vw + 2rem);
        margin: 0 auto;
    }
    .vision-box, .mission-box {
        padding: calc(0.6vw + 2rem);
        border-radius: calc(0.15vw + 0.8rem);
        box-shadow: 0 calc(0.25vw + 0.8rem) calc(0.6vw + 2rem) rgba(0,0,0,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .vision-box:hover, .mission-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 calc(0.4vw + 1.2rem) calc(1vw + 2.5rem) rgba(0,0,0,0.12);
    }
    .icon-circle {
        width: calc(1.5vw + 4.5rem);
        height: calc(1.5vw + 4.5rem);
    }
    .icon-circle i {
        font-size: calc(0.8vw + 2.2rem);
    }
    .timeline-section {
        padding: calc(0.8vw + 2.5rem) 5%;
        max-width: 1800px;
        margin: 0 auto;
    }
    .timeline-container {
        max-width: calc(50vw + 35rem);
    }
    .timeline-title {
        font-size: calc(0.4vw + 1.2rem);
        padding-right: calc(0.8vw + 2.2rem);
    }
    .timeline-content {
        padding: 0 calc(0.8vw + 2.2rem);
        font-size: calc(0.35vw + 1rem);
    }
    .timeline-content p {
        font-size: calc(0.35vw + 1rem);
        line-height: 1.6;
    }
    /*--------------------------------------------------------------
    # Index.jsp (CLEAR)
    --------------------------------------------------------------*/
    /* ---------- BANNER SECTION ---------- */
    .banner-section {
        margin-top: calc(1.2vw + 1.5rem);
    }

    .banner-container {
        padding: 0 3%;
        margin-bottom: calc(0.8vw + 1.5rem);
        gap: calc(0.4vw + 0.8rem);
    }

    .banner-header {
        padding: calc(1vw + 2rem);
    }

    .banner-header h2 {
        font-size: calc(1vw + 2rem);
        margin-bottom: calc(0.3vw + 0.5rem);
    }

    .banner-header p {
        font-size: calc(0.7vw + 1rem);
    }

    .banner-header-image {
        width: calc(5vw + 10rem);
        height: calc(5vw + 10rem);
    }

    .main-banner {
        height: clamp(350px, 28vw, 450px);
    }

    .banner-content {
        padding: calc(1.2vw + 2.5rem);
    }

    .banner-content h2 {
        font-size: calc(1vw + 2rem);
        margin-bottom: calc(0.4vw + 0.8rem);
    }

    .banner-content p {
        font-size: calc(0.9vw + 1.2rem);
        margin-bottom: calc(0.6vw + 1.2rem);
    }

    .banner-dots {
        bottom: calc(0.6vw + 1.2rem);
        gap: calc(0.3vw + 0.6rem);
    }

    .banner-dot {
        width: calc(0.4vw + 0.8rem);
        height: calc(0.4vw + 0.8rem);
    }

    /* ---------- QR CODE SECTION ---------- */
    .qr-section {
        height: clamp(350px, 28vw, 450px);
    }

    .qr-container {
        padding: calc(0.6vw + 1.5rem);
    }

    .qr-code {
        width: clamp(240px, 22vw, 260px);
        height: clamp(240px, 22vw, 260px);
        margin-bottom: calc(0.5vw + 1rem);
    }

    .qr-text {
        font-size: calc(0.5vw + 1.4rem);
        margin-bottom: calc(0.5vw + 1rem);
    }

    .app-buttons {
        margin-top: calc(0.5vw + 1rem);
    }

    .app-button {
        width: calc(3.5vw + 9rem);
        height: calc(1.4vw + 2.8rem);
    }

    /* ---------- FEATURES SECTION ---------- */
    .features-section {
        padding: calc(1vw + 2rem) 3%;
    }

    .feature-item {
        padding: calc(0.5vw + 1rem) calc(0.6vw + 1.2rem);
    }

    .feature-icon {
        margin-right: calc(0.4vw + 0.8rem);
    }

    .feature-icon img {
        width: calc(2.5vw + 5rem);
        height: calc(2.5vw + 5rem);
    }

    .feature-title {
        font-size: calc(0.9vw + 1.2rem);
        margin-bottom: calc(0.1vw + 0.2rem);
    }

    .feature-desc {
        font-size: calc(0.6vw + 0.8rem);
    }

    /* ---------- PROMOTIONAL BANNER ---------- */
    .promo-banner {
        padding: 0 3%;
        max-height: calc(6vw + 11rem);
    }

    /* ---------- PRODUCTS SECTION ---------- */
    .products-container,
    .news-container {
        padding: 0 3%;
        margin: calc(0.8vw + 1.5rem) 0;
    }

    .product-row {
        gap: calc(0.5vw + 1rem);
    }

    .products-section {
        padding: calc(0.6vw + 1.2rem) 0;
    }

    .product-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: calc(0.5vw + 1rem);
        margin-bottom: calc(0.8vw + 1.5rem);
    }

    .product-card {
        padding: calc(0.4vw + 0.8rem);
    }

    .discount-badge {
        font-size: calc(0.4vw + 0.8rem);
        padding: calc(0.15vw + 0.3rem) calc(0.25vw + 0.5rem);
    }

    .product-info {
        padding: calc(0.4vw + 0.8rem) 0;
    }

    .product-price {
        font-size: calc(0.5vw + 1.4rem);
    }

    .original-price {
        font-size: calc(0.5vw + 1rem);
    }

    .sold-count {
        font-size: calc(0.6vw + 0.8rem);
        margin-top: calc(0.15vw + 0.3rem);
    }

    .product-name {
        font-size: calc(0.7vw + 1rem);
        max-height: calc(2vw + 4rem);
    }

    .product-price2 {
        font-size: calc(0.7vw + 1rem);
    }

    .original-price2 {
        font-size: calc(0.4vw + 0.7rem);
    }

    .sold-count2 {
        font-size: calc(0.6vw + 0.8rem);
        margin-top: calc(0.15vw + 0.3rem);
    }

    .custom-carousel .p-carousel-item {
        flex: 0 0 calc(16.66% - 1rem);
        margin-right: calc(0.5vw + 1rem);
    }

    .recommended-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .recommended-item {
        padding: 0 calc(0.6vw + 1.2rem);
    }

    .recommended-section {
        padding: calc(0.6vw + 1.2rem) 0;
    }

    /* ---------- CATEGORIES SECTION ---------- */
    .categories-section {
        padding: calc(0.6vw + 1.2rem) 0;
    }

    .categories-container {
        padding: 0 3%;
        gap: 1.5rem;
    }

    .category-item {
        max-width: calc(5vw + 10rem);
    }

    .category-icon {
        width: calc(4vw + 4rem);
        height: calc(4vw + 4rem);
    }

    .category-name {
        font-size: calc(0.3vw + 1.2rem);
    }

    .show-more-button {
        padding: calc(0.4vw + 0.8rem);
        font-size: calc(0.6vw + 1.2rem);
        margin-top: calc(0.5vw + 1rem);
    }
    /*--------------------------------------------------------------
    # goldplus.xhtml (CLEAR)
    --------------------------------------------------------------*/
    .reasons-section {
        padding: clamp(40px, 8vw, 60px) clamp(5%, 10vw, 10%);
        text-align: center;
    }
    .reasons-section h2 {
        font-size: clamp(24px, 4vw, 30px);
        margin-bottom: clamp(50px, 10vw, 75px);
        color: #333;
        font-weight: 600;
    }
    .reasons-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(30px, 6vw, 80px);
        margin-top: clamp(30px, 5vw, 40px);
        padding-left: 5%;
        padding-right: 5%;
    }
    .reason-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .reason-icon {
        background: #fff;
        width: clamp(60px, 8vw, 80px);
        height: clamp(60px, 8vw, 80px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: clamp(15px, 3vw, 20px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .reason-icon img {
        width: clamp(30px, 5vw, 40px);
        height: clamp(30px, 5vw, 40px);
    }
    .reason-title {
        font-weight: bold;
        margin-bottom: clamp(8px, 2vw, 10px);
        font-size: clamp(18px, 3vw, 22px);
        color: #333;
    }
    .reason-desc {
        font-size: clamp(14px, 2.5vw, 16px);
        color: #666;
        line-height: 1.5;
    }
    .steps-section {
        background: linear-gradient(135deg, #e52d27 0%, #b31217 100%);
        color: white;
        padding: clamp(40px, 8vw, 60px) 0;
        text-align: center;
    }
    .steps-title {
        font-size: clamp(24px, 4vw, 30px);
        margin-bottom: clamp(30px, 5vw, 40px);
        font-weight: 600;
        color: white;
    }
    .steps-container {
        display: flex;
        justify-content: space-between;
        margin: 0 auto;
        flex-wrap: wrap;
        gap: clamp(15px, 3vw, 20px);
    }
    .step-card {
        background: white;
        border-radius: clamp(8px, 1.5vw, 10px);
        padding: clamp(20px, 4vw, 30px) clamp(15px, 3vw, 20px);
        width: calc(25% - 15px);
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        min-height: clamp(220px, 35vw, 260px);
    }
    .step-number {
        font-size: clamp(32px, 6vw, 42px);
        color: #beb1b1;
        font-weight: 300;
        margin-bottom: clamp(10px, 2vw, 15px);
    }
    .step-title {
        font-size: clamp(18px, 3vw, 22px);
        font-weight: 600;
        color: #333;
        margin-bottom: clamp(10px, 2vw, 15px);
    }
    .step-description {
        font-size: clamp(14px, 2.5vw, 16px);
        color: #666;
        flex-grow: 1;
    }

    .programs-section {
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .programs-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="25" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
        pointer-events: none;
    }

    .programs-title {
        font-size: clamp(24px, 4vw, 30px);
        margin-bottom: clamp(35px, 6vw, 50px);
        color: #2c3e50;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .programs-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(60px, 10vw, 80px);
        height: clamp(3px, 0.5vw, 4px);
        background: linear-gradient(90deg, #E52D27, #ff6b6b);
        border-radius: 2px;
    }

    .programs-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 40vw, 300px), 1fr));
        gap: clamp(20px, 4vw, 30px);
        margin: 0 auto;
    }

    .program-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: clamp(15px, 2.5vw, 20px);
        padding: 0;
        text-align: left;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        opacity: 0;
        transform: translateY(30px);
        animation: slideInUp 0.6s ease-out forwards;
    }

    .program-card:nth-child(1) { animation-delay: 0.1s; }
    .program-card:nth-child(2) { animation-delay: 0.3s; }
    .program-card:nth-child(3) { animation-delay: 0.5s; }

    @keyframes slideInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .program-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s ease;
    }

    .program-card:hover::before {
        left: 100%;
    }

    .program-card:hover {
        transform: translateY(calc(-1vw - 5px)) scale(1.02);
        box-shadow: 0 clamp(15px, 3vw, 25px) clamp(30px, 6vw, 50px) rgba(0,0,0,0.15);
    }

    .program-card img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: clamp(15px, 2.5vw, 20px);
        transition: all 0.3s ease;
    }

    .program-card:hover img {
        transform: scale(1.05);
    }

    .program-card:focus {
        outline: 3px solid #E52D27;
        outline-offset: 2px;
    }

    .program-card {
        cursor: pointer;
    }

    .program-card:active {
        transform: translateY(calc(-0.5vw - 3px)) scale(0.98);
    }

    .program-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(229, 45, 39, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: clamp(15px, 2.5vw, 20px);
        pointer-events: none;
    }

    .program-card:hover::after {
        opacity: 1;
    }

    .hero.section.dark-background {
        position: relative;
    }

    .hero.section.dark-background::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: transparent;
        z-index: 1;
        transition: background-color 0.5s ease;
    }

    .hero.section.dark-background img {
        position: relative;
        z-index: 0;
    }

    .hero.section.dark-background .container {
        position: relative;
        z-index: 2;
    }

    .hero-section {
        display: flex;
        width: 100%;
        position: relative;
        justify-content: space-between;
        overflow: hidden;
        min-height: clamp(600px, 100vh, 800px);
        height: auto;
        transition: all 0.5s ease;
    }

    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        max-width: 100%;
        display: block;
        transition: filter 0.8s ease, transform 0.5s ease;
    }

    .hero-content {
        flex: 1;
        padding: clamp(30px, 5vw, 40px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        z-index: 1;
        color: #fff;
        text-align: left;
        padding-left: clamp(40px, 8vw, 80px);
        transition: all 0.5s ease;
    }

    .hero-title {
        color: #E52D27;
        font-size: clamp(24px, 4vw, 30px);
        font-weight: bold;
        margin-bottom: clamp(8px, 1.5vw, 10px);
        transition: all 0.3s ease;
    }

    .hero-subtitle {
        font-size: clamp(20px, 3.5vw, 24px);
        margin-bottom: clamp(15px, 3vw, 20px);
        transition: all 0.3s ease;
    }

    .hero-description {
        font-size: clamp(14px, 2.5vw, 16px);
        color: #666;
        margin-bottom: clamp(12px, 2vw, 15px);
    }

    .hero-note {
        font-size: clamp(12px, 2vw, 14px);
        color: #666;
    }

    .hero-form {
        flex: 0 0 clamp(300px, 50vw, 400px);
        background-color: white;
        padding: clamp(25px, 4vw, 30px);
        border-radius: clamp(8px, 1.5vw, 10px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin: clamp(50px, 20vw, 150px);
        position: relative;
        z-index: 1;
        height: fit-content;
        align-self: center;
        transition: all 0.5s ease;
    }

    .form-title {
        font-size: clamp(16px, 2.5vw, 18px);
        font-weight: bold;
        margin-bottom: clamp(15px, 3vw, 20px);
    }

    .form-group {
        margin-bottom: clamp(12px, 2vw, 15px);
    }

    .form-control {
        width: 100%;
        border: 1px solid #ddd;
        border-radius: clamp(4px, 0.5vw, 5px);
    }

    .submit-button {
        width: 100%;
        padding: clamp(10px, 2vw, 12px);
        background-color: #FF5353;
        color: white;
        border: none;
        border-radius: clamp(4px, 0.5vw, 5px);
        font-size: clamp(14px, 2.5vw, 16px);
        font-weight: bold;
        cursor: pointer;
        margin-top: clamp(8px, 1.5vw, 10px);
    }

    .submit-button:hover {
        background-color: #e64545;
    }

    .form-footer {
        font-size: clamp(10px, 1.5vw, 12px);
        color: #999;
        text-align: center;
        margin-top: clamp(12px, 2vw, 15px);
    }

    .policy-link {
        color: #FF5353;
        text-decoration: none;
    }

    .policy-link:hover {
        text-decoration: underline;
    }

    /* Responsive Design */
    @media (max-width: 1440px) {
        .hero-section {
            flex-direction: column;
            align-items: center;
            text-align: left;
            min-height: auto;
            padding: clamp(30px, 5vw, 40px) clamp(15px, 3vw, 20px);
        }

        .hero-content {
            flex: none;
            width: 100%;
            max-width: 800px;
            padding: clamp(30px, 5vw, 40px) clamp(15px, 3vw, 20px);
            text-align: center;
            padding-left: clamp(15px, 3vw, 20px);
            margin-bottom: clamp(30px, 5vw, 40px);
        }

        .hero-form {
            flex: none;
            width: 90%;
            max-width: clamp(400px, 60vw, 500px);
            margin: 0 auto clamp(30px, 5vw, 40px);
            transform: translateY(0);
        }

        .hero-background img {
            filter: blur(clamp(20px, 4vw, 30px));
            transform: scale(1.05);
        }

        .hero-title {
            font-size: clamp(22px, 4vw, 28px);
        }

        .hero-subtitle {
            font-size: clamp(18px, 3vw, 20px);
        }
    }
}