/* --- Global Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #1d4ed8;
    --dark-blue: #1e3a8a;
    --success-green: #16a34a;
    --cta-orange: #f97316;
}
body { font-family: 'Barlow', sans-serif; }
        .bg-navy { background-color: #002D5B; }
        .text-navy { color: #002D5B; }
        .text-primary-red { color: #E31E24; }
        .bg-primary-red { background-color: #E31E24; }
/* --- Header & Nav --- */
.logo-box {
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: 0.25rem;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}
/* --- UI Components & Utilities --- */
.nav-link {
    @apply text-gray-600 transition-all duration-300 relative;
}
.nav-link:hover { @apply text-blue-600; }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: #2563eb;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
       
        /* Dropdown Fix: เพิ่มพื้นที่เชื่อมต่อ (Bridge) เพื่อความเสถียร */
        .dropdown { position: relative; }
        .dropdown-menu { 
            display: none; 
            position: absolute;
            top: 100%;
            left: 0;
            z-index: 50;
        }
        
        /* สร้างสะพานล่องหนระหว่างปุ่มกับเมนูย่อย */
        .dropdown-menu::before {
            content: "";
            position: absolute;
            top: -12px;
            left: 0;
            width: 100%;
            height: 12px;
            background: transparent;
        }

        .dropdown:hover .dropdown-menu { 
            display: block; 
            animation: fadeIn 0.2s ease forwards;
        }

        html { scroll-behavior: smooth; }

        .video-aspect { position: relative; padding-bottom: 56.25%; height: 0; }
        .video-aspect iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .animate-fade-in { animation: fadeIn 0.5s ease forwards; }
/* Article Content Styling */
        .article-content p { margin-bottom: 1.5rem; line-height: 1.8; color: #4A5568; }
        .article-content h2 { font-size: 1.875rem; font-weight: 700; color: #002D5B; margin-top: 2.5rem; margin-bottom: 1.25rem; }
        .article-content h3 { font-size: 1.25rem; font-weight: 700; color: #002D5B; margin-top: 1.5rem; }
        /* Social Icon Hover */
        .social-icon { transition: all 0.3s ease; }
        .social-icon:hover { transform: scale(1.2); filter: brightness(1.2); }
/* --- แก้ไขสีกรอบและโทนสีที่นี่ --- */
        :root {
            --ads-border-color: #005881;    /* สีของเส้นขอบประ */
            --ads-bg-start: #fff5f5;        /* สีพื้นหลังไล่เฉด (จุดเริ่ม) */
            --ads-bg-end: #ffffff;          /* สีพื้นหลังไล่เฉด (จุดจบ) */
            --ads-text-main: #005881;       /* สีหัวข้อและปุ่ม */
            --ads-number-bg: #005881;       /* สีพื้นหลังตัวเลข 1, 2, 3 */
            --ads-number-text: #ffffff;     /* สีตัวเลข */
            --cta-hover-color: #e84118;     /* สีปุ่มเมื่อเอาเมาส์ไปวาง */
        }

        .my-page-container {
            max-width: 900px;
            margin: 40px auto;
            padding: 0 20px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .my-content-card {
            background-color: #ffffff;
            border-radius: 20px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            padding: 30px;
            margin-bottom: 30px;
            text-align: center;
        }

        .my-video-title {
            font-size: 24px;
            margin-bottom: 20px;
            color: #333;
            font-weight: bold;
        }

        .video-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            width: 100%;
            background: #000;
            border-radius: 12px;
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }
 /* --- ส่วนของกรอบข้อความโฆษณา (ใช้ตัวแปรสี) --- */
        .ads-box {
            background: linear-gradient(135deg, var(--ads-bg-start) 0%, var(--ads-bg-end) 100%);
            border: 2px dashed var(--ads-border-color);
            border-radius: 15px;
            padding: 25px;
            text-align: left;
            margin-top: 30px;
        }

        .ads-header {
            color: var(--ads-text-main);
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
            text-transform: uppercase;
        }

        .ads-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .ads-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 12px;
            font-size: 16px;
            line-height: 1.6;
            color: #444;
        }

        .ads-number {
            background-color: var(--ads-number-bg);
            color: var(--ads-number-text);
            min-width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: bold;
            margin-right: 12px;
            margin-top: 2px;
        }

        .ads-cta-button {
            display: block;
            width: fit-content;
            margin: 20px auto 0;
            background-color: var(--ads-text-main);
            color: white;
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.2s;
        }

        .ads-cta-button:hover {
            background-color: var(--cta-hover-color);
            transform: scale(1.05);
        }

        @media (max-width: 480px) {
            .my-video-title { font-size: 20px; }
            .ads-header { font-size: 18px; }
            .ads-item { font-size: 14px; }
        }
/* คลาสใหม่สำหรับปุ่มในส่วน Product */
.btn-product {
    @apply block text-center border-2 border-blue-600 bg-blue-600 text-white py-2 rounded-lg font-bold hover:bg-blue-700 hover:border-blue-700 transition-all shadow-md;
}

.tag-orange { @apply bg-orange-500 text-white px-3 py-1 rounded text-sm font-bold mb-4 inline-block uppercase; }
.tag-green { @apply bg-green-500 text-white px-3 py-1 rounded text-sm font-bold mb-4 inline-block uppercase; }
.tag-red { @apply bg-red-500 text-white px-3 py-1 rounded text-sm font-bold mb-4 inline-block uppercase; }

.slider-controls { @apply absolute bottom-10 left-4 right-4 z-20 flex justify-between items-center pointer-events-none; }
.control-btn { @apply p-2 bg-white/10 hover:bg-white/20 rounded-full text-white pointer-events-auto transition-colors; }
.dots-container { @apply flex gap-2 pointer-events-auto; }
.dot { @apply w-3 h-3 rounded-full bg-white/50 cursor-pointer transition-all; }
.dot.active { @apply bg-white scale-125; }
@media (min-width: 768px) {
    .hero-image-placeholder {
        height: 24rem;
    }
}

/* --- Brand Cards --- */
.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-desc {
    color: #4b5563;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.brand-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.brand-logo-placeholder {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: #9ca3af;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-align: center;
}

.brand-desc {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.brand-features {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.brand-features li {
    display: flex;
    align-items: center;
    color: #374151;
    margin-bottom: 0.5rem;
}

.brand-features i {
    width: 1rem;
    height: 1rem;
    color: var(--success-green);
    margin-right: 0.5rem;
}
.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-secondary {
    background-color: white;
    color: var(--dark-blue);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}

.btn-outline {
    display: block;
    text-align: center;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: bold;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* --- Contact Form --- */
.contact-container {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
    }
}

.contact-info {
    background-color: var(--primary-blue);
    color: white;
    padding: 3rem;
}

@media (min-width: 768px) {
    .contact-info {
        width: 50%;
    }
}

.contact-form-side {
    padding: 3rem;
    background-color: white;
}

@media (min-width: 768px) {
    .contact-form-side {
        width: 50%;
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    border-radius: 0.5rem;
    outline: none;
    transition: ring 0.2s;
}

.form-input:focus {
    ring: 2px solid var(--primary-blue);
}

.btn-submit {
    width: 100%;
    background-color: var(--cta-orange);
    color: white;
    font-weight: bold;
    padding: 1rem 0;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #ea580c;
}
/* --- Brand Cards --- */
.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-desc {
    color: #4b5563;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.brand-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.brand-logo-placeholder {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: #9ca3af;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-align: center;
}

.brand-desc {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.brand-features {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.brand-features li {
    display: flex;
    align-items: center;
    color: #374151;
    margin-bottom: 0.5rem;
}

.brand-features i {
    width: 1rem;
    height: 1rem;
    color: var(--success-green);
    margin-right: 0.5rem;
}

.btn-outline {
    display: block;
    text-align: center;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: bold;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}
/* Article Content Styling */
.article-content p { margin-bottom: 1.5rem; line-height: 1.8; color: #4A5568; }
.article-content h2 { font-size: 1.875rem; font-weight: 700; color: #002D5B; margin-top: 2.5rem; margin-bottom: 1.25rem; }
