/* ==========================================================================
   Home Page Styles
   Website: เกมส์งานวัด.net
   Crafted with: Impeccable Design System & Frontend Design Principles
   Optimized for: UX/UI, Thai Typography, Mobile Ergonomics, A11y, SEO, AEO, GEO
   ========================================================================== */

/* High-End Section Breathing Room (Spacious & Airy Layout) */
#services,
#gallery,
#updates,
#faq {
    padding-top: clamp(65px, 8vw, 96px) !important;
    padding-bottom: clamp(65px, 8vw, 96px) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 10, 40, 0.88) 0%, rgba(180, 40, 40, 0.78) 100%),
                url('../image/เกมส์งานวัด-เกมส์ให้เช่า-headweb.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: clamp(105px, 14vw, 150px) 0 clamp(65px, 9vw, 95px);
    text-align: center;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffb300, #ffa000);
    color: #1a142e;
    padding: 7px 22px;
    border-radius: 50px;
    font-size: clamp(0.92rem, 2.2vw, 1.08rem);
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(255, 179, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hero-title {
    font-size: clamp(2rem, 5.2vw, 3.25rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.65);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}
.hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    max-width: 840px;
    margin: 0 auto 36px;
    color: #f7f7f7;
    font-weight: 400;
    line-height: 1.8;
}
.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.btn-cta-primary {
    background: linear-gradient(135deg, #ff7b00 0%, #e65100 100%);
    color: #ffffff !important;
    font-family: 'Kanit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 13px 34px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 24px -2px rgba(230, 81, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    text-decoration: none !important;
}
.btn-cta-primary:hover {
    background: linear-gradient(135deg, #ff8c1a 0%, #f55a00 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -2px rgba(230, 81, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
}
.btn-cta-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.5), 0 0 0 6px rgba(255, 152, 0, 0.2) !important;
}
.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    font-family: 'Kanit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 13px 34px;
    border-radius: 50px;
    border: 1.75px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    text-decoration: none !important;
}
.btn-cta-secondary:hover {
    background: #ffffff;
    color: #1a142e !important;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}
.btn-cta-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 0 0 6px rgba(255, 255, 255, 0.25) !important;
}

@media (max-width: 576px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 320px;
    }
}

/* Trust Bar / Problem-Solving Pillars */
.trust-bar {
    background: #ffffff;
    box-shadow: 0 12px 35px -5px rgba(26, 20, 46, 0.08), 0 4px 12px -2px rgba(26, 20, 46, 0.03);
    border-radius: 20px;
    margin-top: -45px;
    position: relative;
    z-index: 10;
    padding: 26px 24px;
    border: 1px solid rgba(26, 20, 46, 0.08);
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 8px;
    height: 100%;
}
.trust-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #d84315;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(216, 67, 21, 0.16);
    transition: transform 0.24s ease;
}
.trust-item:hover .trust-icon {
    transform: scale(1.06);
}
.trust-text {
    flex: 1;
}
.trust-text .trust-title,
.trust-text h3 {
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a162b;
    line-height: 1.35;
}
.trust-text p {
    font-size: 0.96rem;
    margin-bottom: 0;
    color: #4e4a59;
    line-height: 1.7;
}

/* Section Headings */
.section-header {
    text-align: center;
    margin-bottom: clamp(38px, 5vw, 56px);
}
.section-tag {
    color: #e65100;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 8px;
    background: #fff3e0;
    padding: 5px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(230, 81, 0, 0.08);
}
.section-title {
    font-size: clamp(1.75rem, 3.8vw, 2.45rem);
    color: #1a162b;
    position: relative;
    padding-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, #ff9800, #d32f2f);
    border-radius: 4px;
}
.section-desc {
    max-width: 740px;
    margin: 16px auto 0;
    color: #555062;
    font-size: clamp(1.02rem, 1.8vw, 1.15rem);
    line-height: 1.8;
}

/* Services Cards */
.service-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(26, 20, 46, 0.05), 0 2px 6px -1px rgba(26, 20, 46, 0.03);
    border: 1px solid rgba(26, 20, 46, 0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px -6px rgba(26, 20, 46, 0.12), 0 4px 12px -2px rgba(26, 20, 46, 0.05);
    border-color: rgba(255, 152, 0, 0.35);
}
.service-img-wrapper {
    position: relative;
    height: 215px;
    overflow: hidden;
    background: #f1ede6;
    display: block;
    cursor: pointer;
    text-decoration: none;
}
.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-img-wrapper img,
.service-img-wrapper:hover img {
    transform: scale(1.06);
}
.service-body {
    padding: 26px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-title {
    font-size: 1.25rem;
    color: #1a162b;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.38;
}
.service-title a {
    color: #1a162b;
    text-decoration: none;
    transition: color 0.22s ease;
}
.service-title a:hover,
.service-card:hover .service-title a {
    color: #e65100;
    text-decoration: none;
}
.service-text {
    color: #4e4a59;
    font-size: 0.98rem;
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 20px;
}
.service-link {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #d32f2f;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: color 0.22s ease;
    min-height: 42px;
    margin-top: auto;
}
.service-link i {
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-link:hover {
    color: #e65100;
}
.service-link:hover i {
    transform: translateX(6px);
}
.service-link:focus-visible {
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.35) !important;
}

/* Packages */
.container-packages {
    width: 100% !important;
    max-width: 1380px !important;
    padding-left: 20px;
    padding-right: 20px;
}
@media (min-width: 1600px) {
    .container-packages {
        max-width: 1440px !important;
    }
}
.package-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 38px 26px;
    box-shadow: 0 8px 30px -4px rgba(26, 20, 46, 0.06);
    border: 1px solid rgba(26, 20, 46, 0.08);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px -8px rgba(26, 20, 46, 0.14);
}
.package-card.recommended {
    border: 2px solid #ff9800;
    box-shadow: 0 14px 35px rgba(255, 152, 0, 0.18);
}
@media (min-width: 992px) {
    .package-card.recommended {
        transform: scale(1.03);
        z-index: 2;
    }
    .package-card.recommended:hover {
        transform: scale(1.03) translateY(-8px);
    }
}
.badge-recommended {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff9800, #e65100);
    color: #ffffff;
    padding: 5px 20px;
    border-radius: 50px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(230, 81, 0, 0.4);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.package-name {
    font-size: 1.55rem;
    color: #1a162b;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}
.package-subtitle {
    color: #5c5768;
    font-size: 0.98rem;
    margin-bottom: 18px;
    line-height: 1.65;
}
.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px 0;
    flex-grow: 1;
}
.package-features li {
    padding: 10px 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #333333;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}
.package-features li:last-child {
    border-bottom: none;
}
.package-features li i {
    color: #2e7d32;
    margin-top: 4px;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.package-features li .feature-text {
    flex-grow: 1;
}
.package-features li .feature-sub {
    display: block;
    font-size: 0.9rem;
    color: #696475;
    margin-top: 3px;
    line-height: 1.55;
}
.package-btn,
.package-card .btn {
    font-family: 'Kanit', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    padding: 12px 26px;
    margin-top: auto;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.package-card.recommended .btn-warning {
    font-size: 1.15rem;
    min-height: 52px;
    padding: 14px 28px;
}

/* Quick Facts / AEO & GEO Specification Table */
.spec-box {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(26, 20, 46, 0.08);
    box-shadow: 0 8px 30px -4px rgba(26, 20, 46, 0.05);
    overflow: hidden;
    margin-bottom: 36px;
}
.spec-table {
    margin-bottom: 0;
    width: 100%;
}
.spec-table th,
.spec-table td {
    padding: 16px 22px;
    font-size: 1.02rem;
    vertical-align: middle;
    border-color: #f1ede6;
    line-height: 1.72;
}
.spec-table th {
    background: #faf8f4;
    color: #1a162b;
    font-weight: 600;
    font-family: 'Kanit', sans-serif;
    width: 32%;
}
.spec-table td {
    color: #383444;
}
@media (max-width: 768px) {
    .spec-table th,
    .spec-table td {
        display: block;
        width: 100%;
        padding: 12px 18px;
    }
    .spec-table th {
        background: #f7f3eb;
        padding-bottom: 4px;
    }
    .spec-table tr {
        border-bottom: 1px solid #eee;
    }
}

/* Portfolio Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 6px 20px -2px rgba(26, 20, 46, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -4px rgba(26, 20, 46, 0.16);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 10, 25, 0.94) 0%, rgba(15, 10, 25, 0.65) 60%, rgba(15, 10, 25, 0) 100%);
    color: #ffffff;
    padding: 28px 18px 14px;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* FAQ details/summary (Answer Engine Optimization) */
.faq-item {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(26, 20, 46, 0.08);
    box-shadow: 0 4px 15px -2px rgba(26, 20, 46, 0.04);
    overflow: hidden;
    transition: border-color 0.22s, box-shadow 0.22s;
}
.faq-item:hover {
    border-color: rgba(255, 152, 0, 0.35);
    box-shadow: 0 8px 24px -3px rgba(26, 20, 46, 0.08);
}
.faq-item summary {
    padding: 18px 24px;
    font-family: 'Kanit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a162b;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.22s, color 0.22s;
    min-height: 56px;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 0.95rem;
    color: #e65100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 14px;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    transform: rotate(180deg);
}
.faq-item summary:hover {
    background: #fffbf5;
    color: #e65100;
}
.faq-item summary:focus-visible {
    outline: none;
    background: #fff8f0;
    box-shadow: inset 0 0 0 2px #ff9800;
}
.faq-content {
    padding: 18px 24px 24px 24px;
    color: #4e4a59;
    font-size: 1.02rem;
    line-height: 1.82;
    border-top: 1px solid #f3efe8;
}

/* Home Article Cards */
.home-article-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(26, 20, 46, 0.08);
    box-shadow: 0 6px 22px -3px rgba(26, 20, 46, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.home-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px -6px rgba(26, 20, 46, 0.12);
    border-color: rgba(255, 152, 0, 0.4);
}
.home-article-thumb-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f3efe9;
}
.home-article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-article-card:hover .home-article-thumb {
    transform: scale(1.06);
}
.home-article-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 18, 48, 0.88);
    color: var(--brand-yellow);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.home-article-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.home-article-meta {
    font-size: 0.88rem;
    color: #888494;
    margin-bottom: 8px;
}
.home-article-title {
    font-size: 1.2rem;
    line-height: 1.45;
    margin-bottom: 10px;
    color: #1a162b;
    font-weight: 600;
}
.home-article-title a {
    color: #1a162b;
    text-decoration: none;
    transition: color 0.22s;
}
.home-article-title a:hover {
    color: var(--brand-primary);
}
.home-article-excerpt {
    color: #555062;
    font-size: 0.96rem;
    line-height: 1.72;
    margin-bottom: 18px;
    flex-grow: 1;
}
.home-article-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-primary);
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    transition: color 0.22s ease;
    margin-top: auto;
    min-height: 40px;
}
.home-article-btn i {
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-article-btn:hover {
    color: #b71c1c;
}
.home-article-btn:hover i {
    transform: translateX(6px);
}
.home-article-btn:focus-visible {
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.35) !important;
}

/* CTA Banner Section */
.cta-banner-section {
    padding: clamp(65px, 8vw, 90px) 0;
    background: linear-gradient(135deg, #d32f2f, #f57c00);
    color: #ffffff;
}
.cta-banner-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    color: #b71c1c !important;
}
.cta-banner-section .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
