/*
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: 768px) { มากกว่า 768px ขึ้นไป */
@media screen and (min-width: 768px) and (max-width: 1439px) { /* มากกว่า 768px ขึ้นไปถึง 1439px */
    .content-mobile-status{
        display: none !important;
    }

    .content-pc-status{
        display: block !important;
    }
    /*--------------------------------------------------------------
    # About Us.jsp (CLEAR)
    --------------------------------------------------------------*/
    .about-section {
        flex-direction: column;
        padding: 2.5rem 4%;
        gap: 2rem;
    }
    .about-image {
        order: -1;
        margin-bottom: 1.5rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .about-image img {
        border-radius: 0.8rem;
    }
    .about-content, .about-content2 {
        flex: none;
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
        text-align: justify;
    }
    .vision-mission {
        flex-direction: column;
        padding: 2.5rem 4%;
        gap: 1.8rem;
    }
    .vision-box, .mission-box {
        flex: none;
        width: 100%;
        max-width: 1000px;
        margin: 0 auto 1.5rem auto;
        padding: 2rem;
        border-radius: 0.8rem;
    }
    .mission-box {
        margin-bottom: 0;
    }
    .icon-circle {
        width: 4.5rem;
        height: 4.5rem;
        margin-bottom: 1rem;
    }
    .icon-circle i {
        font-size: 2.2rem;
    }
    .timeline-section {
        padding: 2.5rem 4%;
    }
    .timeline-container {
        max-width: 100%;
    }
    .timeline-container::before {
        display: none;
    }
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        margin-bottom: 2.5rem;
        padding: 1.5rem;
        background-color: var(--section-bg);
        border-radius: 0.8rem;
        border-left: 4px solid var(--secondary-color);
    }
    .timeline-title {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 0.8rem;
        margin-left: 0;
        font-size: 1.3rem;
        font-weight: bold;
        color: var(--secondary-color);
    }
    .timeline-connector {
        display: none;
    }
    .timeline-line {
        display: none;
    }
    .timeline-content {
        width: 100%;
        padding: 0;
        margin-left: 0;
        font-size: 1.1rem;
    }
    .timeline-content p {
        color: var(--text-secondary);
        line-height: 1.6;
        font-size: 1.1rem;
    }
    /*--------------------------------------------------------------
    # Contact Us.jsp (CLEAR)
    --------------------------------------------------------------*/
    .contact .info-container {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    .contact .info-item {
        padding: 1.8rem 0 2.2rem 0;
        border-radius: 0.8rem;
        margin-bottom: 1rem;
    }
    .contact .info-item i {
        font-size: 1.4rem;
        width: 3.5rem;
        height: 3.5rem;
        margin: 0 auto 1rem auto;
    }
    .contact .info-item h3 {
        font-size: 1.35rem;
        margin: 1.2rem 0;
        text-align: center;
    }
    .contact .info-item p {
        font-size: 1.05rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
        line-height: 1.6;
    }
    .contact .php-email-form {
        padding: 2rem;
        border-radius: 0.8rem;
        margin-top: 2rem;
    }
    .contact .php-email-form input[type=text],
    .contact .php-email-form input[type=email],
    .contact .php-email-form textarea {
        font-size: 1.05rem;
        padding: 0.8rem 1.2rem;
        border-radius: 0.5rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    .contact .php-email-form textarea {
        min-height: 120px;
        resize: vertical;
    }
    .contact .php-email-form button[type=submit] {
        padding: 0.8rem 2.5rem;
        font-size: 1.05rem;
        width: 100%;
        border-radius: 2rem;
    }
    /*--------------------------------------------------------------
    # Index.jsp (CLEAR)
    --------------------------------------------------------------*/
    /* ---------- BANNER SECTION ---------- */
    .banner-section {
        margin-top: calc(0.8vw + 1rem);
    }

    .banner-container {
        padding: 0;
        margin-bottom: calc(0.5vw + 1rem);
        gap: calc(0.25vw + 0.5rem);
    }

    .banner-header {
        padding: calc(0.7vw + 1.4rem);
    }

    .banner-header h2 {
        font-size: calc(0.7vw + 1.4rem);
        margin-bottom: calc(0.18vw + 0.25rem);
    }

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

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

    .main-banner {
        width: calc(100% + 20%);
        border-radius: 0;
        margin-left: -10%;
        margin-right: -10%;
        height: calc(10vw + 17.5rem);
    }

    .banner-content {
        padding: calc(0.9vw + 1.8rem);
    }

    .banner-content h2 {
        font-size: calc(0.7vw + 1.4rem);
        margin-bottom: calc(0.28vw + 0.55rem);
    }

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

    .banner-dots {
        bottom: calc(0.45vw + 0.9rem);
        gap: calc(0.18vw + 0.35rem);
    }

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

    /* ---------- QR CODE SECTION ---------- */
    .qr-section {
        display: none;
    }

    /* ---------- FEATURES SECTION ---------- */
    .features-section {
        padding: calc(0.7vw + 1.4rem) 5%;
    }

    .features-row {
        flex-wrap: wrap;
    }

    .feature-item {
        flex: 1 0 calc(50% - 1px);
        min-width: calc(50% - 1px);
        padding: calc(0.35vw + 0.7rem) calc(0.45vw + 0.9rem);
    }

    .feature-item:nth-child(2n):after {
        display: none;
    }

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

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

    .feature-title {
        font-size: calc(0.75vw + 0.85rem);
        margin-bottom: calc(0.04vw + 0.08rem);
    }

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

    /* ---------- PROMOTIONAL BANNER ---------- */
    .promo-banner {
        display: none;
    }

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

    .product-row {
        gap: calc(0.35vw + 0.7rem);
    }

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

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

    .product-card {
        padding: calc(0.28vw + 0.55rem);
    }

    .discount-badge {
        font-size: calc(0.28vw + 0.55rem);
        padding: calc(0.09vw + 0.18rem) calc(0.18vw + 0.35rem);
    }

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

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

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

    .sold-count {
        font-size: calc(0.45vw + 0.55rem);
        margin-top: calc(0.09vw + 0.18rem);
    }

    .product-name {
        font-size: calc(0.55vw + 0.7rem);
        max-height: calc(1.7vw + 3rem);
    }

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

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

    .sold-count2 {
        font-size: calc(0.45vw + 0.55rem);
        margin-top: calc(0.09vw + 0.18rem);
    }

    .custom-carousel .p-carousel-item {
        flex: 0 0 calc(25% - 0.7rem);
        margin-right: calc(0.35vw + 0.7rem);
    }

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

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

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

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

    .categories-container {
        padding: 0 5%;
        gap: 0.9rem;
    }

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

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

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

    .show-more-button {
        padding: calc(0.28vw + 0.55rem);
        font-size: calc(0.45vw + 0.9rem);
        margin-top: calc(0.35vw + 0.7rem);
    }

    /* ---------- REASONS SECTION ---------- */
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ---------- VENUE INFO SECTION ---------- */
    .venue-info {
        display: none;
    }
    /*--------------------------------------------------------------
    # goldplus.xhtml (CLEAR)
    --------------------------------------------------------------*/
    .reasons-section {
        padding: clamp(35px, 7vw, 50px) clamp(4%, 8vw, 8%);
        text-align: center;
    }

    .reasons-section h2 {
        font-size: clamp(22px, 4vw, 28px);
        margin-bottom: clamp(40px, 8vw, 60px);
        color: #333;
        font-weight: 600;
    }

    .reasons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(25px, 5vw, 50px);
        margin-top: clamp(25px, 4vw, 35px);
        padding-left: 3%;
        padding-right: 3%;
    }

    .reason-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .reason-icon {
        background: #fff;
        width: clamp(55px, 7vw, 70px);
        height: clamp(55px, 7vw, 70px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: clamp(12px, 2.5vw, 18px);
        box-shadow: 0 3px 12px rgba(0,0,0,0.09);
    }

    .reason-icon img {
        width: clamp(28px, 4vw, 35px);
        height: clamp(28px, 4vw, 35px);
    }

    .reason-title {
        font-weight: bold;
        margin-bottom: clamp(8px, 1.5vw, 10px);
        font-size: clamp(16px, 2.8vw, 20px);
        color: #333;
        margin-top: clamp(10px, 1.8vw, 12px);
    }

    .reason-desc {
        font-size: clamp(13px, 2.2vw, 15px);
        color: #666;
        line-height: 1.4;
    }

    .reason-item .feature-icon {
        margin-bottom: clamp(12px, 2.5vw, 18px);
    }

    .reason-text {
        margin-top: clamp(10px, 1.8vw, 12px);
    }

    .steps-section {
        background: linear-gradient(135deg, #e52d27 0%, #b31217 100%);
        color: white;
        padding: clamp(35px, 7vw, 50px) 0;
        text-align: center;
    }

    .steps-title {
        font-size: clamp(22px, 4vw, 28px);
        margin-bottom: clamp(25px, 4vw, 35px);
        font-weight: 600;
        color: white;
    }

    .steps-container {
        display: flex;
        justify-content: center;
        margin: 0 auto;
        flex-wrap: wrap;
        gap: clamp(20px, 4vw, 30px);
    }

    .step-card {
        background: white;
        border-radius: clamp(8px, 1.2vw, 10px);
        padding: clamp(18px, 3.5vw, 25px) clamp(15px, 2.8vw, 20px);
        width: calc(50% - 15px);
        max-width: clamp(350px, 50vw, 400px);
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.09);
        display: flex;
        flex-direction: column;
        min-height: clamp(200px, 32vw, 240px);
    }

    .step-number {
        font-size: clamp(30px, 5.5vw, 38px);
        color: #beb1b1;
        font-weight: 300;
        margin-bottom: clamp(10px, 1.8vw, 14px);
    }

    .step-title {
        font-size: clamp(16px, 2.8vw, 20px);
        font-weight: 600;
        color: #333;
        margin-bottom: clamp(10px, 1.8vw, 14px);
    }

    .step-description {
        font-size: clamp(13px, 2.2vw, 15px);
        color: #666;
        flex-grow: 1;
        line-height: 1.4;
    }

    .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-container {
        display: grid;
        grid-template-columns: 2fr 2fr;
        gap: clamp(12px, 2vw, 15px);
        margin: 0 auto;
        max-width: 900px;
    }

    .program-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: clamp(12px, 2vw, 18px);
        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;
        cursor: pointer;
    }

    .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(-8px) scale(1.015);
        box-shadow: 0 clamp(12px, 2.5vw, 20px) clamp(25px, 5vw, 40px) rgba(0,0,0,0.13);
    }

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

    .program-card:active {
        transform: translateY(-4px) scale(0.99);
    }

    .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(12px, 2vw, 18px);
        pointer-events: none;
    }

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

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

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

    .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;
        flex-direction: column;
        align-items: center;
        text-align: left;
        width: 100%;
        position: relative;
        overflow: hidden;
        min-height: auto;
        padding: clamp(30px, 5vw, 40px) clamp(15px, 3vw, 20px);
        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;
        filter: blur(clamp(20px, 4vw, 30px));
        transform: scale(1.05);
    }

    .hero-content {
        flex: none;
        width: 100%;
        max-width: 800px;
        padding: clamp(30px, 5vw, 40px) clamp(15px, 3vw, 20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        z-index: 1;
        color: #fff;
        text-align: center;
        padding-left: clamp(15px, 3vw, 20px);
        margin-bottom: clamp(30px, 5vw, 40px);
        transition: all 0.5s ease;
    }

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

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

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

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

    .hero-form {
        flex: none;
        width: 90%;
        max-width: clamp(400px, 60vw, 500px);
        background-color: white;
        padding: clamp(20px, 3.5vw, 28px);
        border-radius: clamp(8px, 1.2vw, 10px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.09);
        margin: 0 auto clamp(30px, 5vw, 40px);
        position: relative;
        z-index: 1;
        height: fit-content;
        align-self: center;
        transition: all 0.5s ease;
        transform: translateY(0);
    }

    .form-title {
        font-size: clamp(15px, 2.2vw, 17px);
        font-weight: bold;
        margin-bottom: clamp(12px, 2.5vw, 18px);
    }

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

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

    .submit-button {
        width: 100%;
        padding: clamp(10px, 1.8vw, 12px);
        background-color: #FF5353;
        color: white;
        border: none;
        border-radius: clamp(4px, 0.4vw, 5px);
        font-size: clamp(13px, 2.2vw, 15px);
        font-weight: bold;
        cursor: pointer;
        margin-top: clamp(8px, 1.2vw, 10px);
        transition: background-color 0.3s ease;
    }

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

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

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

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