/* สไตล์หลักสำหรับเว็บไซต์ CATCH FLY FISHING */

/* การตั้งค่าพื้นฐาน */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ตัวแปรสีที่ใช้ในเว็บไซต์ */
:root {
    --primary-color: #0a4d68;
    --secondary-color: #ff9e00;
    --secondary-hover: #e68a00;
    --primary-dark: #083c50;
    --background-light: #f0f8ff;
    --background-white: #ffffff;
    --text-light: #666;
    --text-lighter: #ccc;
    --border-color: #ddd;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* แบนเนอร์โปรโมชั่น */
.promo-banners {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

.promo-banners a {
    display: block;
    width: 100%;
    line-height: 0;
}

.promo-banners img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.promo-banners a:hover img {
    opacity: 0.95;
}

/* ส่วนหัวและนำทาง */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* แบนเนอร์หลัก */
.hero {
    background: linear-gradient(rgba(10, 77, 104, 0.8), rgba(10, 77, 104, 0.8)), url('../images/fishing-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-hover);
}

/* ส่วนต่างๆ */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* เกี่ยวกับเรา */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* สินค้า */
.products {
    background-color: var(--background-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ทำไมต้องเลือกเรา */
.features {
    background-color: var(--background-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.feature-card:hover {
    background-color: #f0f8ff;
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ติดต่อ */
.contact {
    background-color: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 3px;
}

.contact-form {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ฟุตเตอร์ */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-lighter);
}

/* สไตล์เพิ่มเติมสำหรับหน้าต่างๆ */

/* หน้า About */
.about-page {
    background-color: var(--background-white);
    padding: 80px 0;
}

.about-page .about-content {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
}

.about-page .about-text {
    flex: 3;
}

.about-page .about-image {
    flex: 2;
}

.about-page .about-text h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 32px;
}

.about-page .about-text h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 24px;
}

.about-page .about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.company-info {
    margin-bottom: 60px;
}

.company-info h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 32px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.info-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.team-section {
    text-align: center;
}

.team-section h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 32px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: #f9f9f9;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* หน้าสินค้า */
.product-filter {
    background-color: var(--background-light);
    padding: 30px 0;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: 250px;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

.products-page {
    padding: 60px 0;
}

.product-features {
    list-style: none;
    margin: 15px 0;
}

.product-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* หน้าติดต่อ */
.contact-page {
    padding: 60px 0;
}

.contact-page .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.contact-page .contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-page .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-page .contact-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 3px;
    min-width: 24px;
}

.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form-section p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.map-section {
    margin-bottom: 60px;
}

.map-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 32px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-section {
    margin-bottom: 60px;
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 32px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 300px;
}

/* หน้านโยบายความเป็นส่วนตัว */
.privacy-page {
    padding: 60px 0;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.last-updated {
    text-align: right;
    margin-bottom: 30px;
    color: var(--text-light);
    font-style: italic;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.privacy-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.privacy-section ul,
.privacy-section ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.privacy-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* หน้าบริการ */
.services-main {
    padding: 60px 0;
    background-color: var(--background-white);
}

.services-detail {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.service-detail-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-detail-item .service-icon-detail {
    font-size: 48px;
    color: var(--primary-color);
    min-width: 60px;
    text-align: center;
}

.service-detail-item .service-content {
    flex: 1;
}

.service-detail-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.service-detail-item h4 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 20px;
}

.service-detail-item ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.service-detail-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* หน้าแพ็คเกจราคา */
.pricing-main {
    padding: 60px 0;
    background-color: var(--background-light);
}

.pricing-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.pricing-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.pricing-card .price {
    margin-bottom: 30px;
}

.pricing-card .price .currency {
    font-size: 24px;
    color: var(--text-light);
    vertical-align: top;
}

.pricing-card .price .amount {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
}

.pricing-card .price .period {
    font-size: 18px;
    color: var(--text-light);
}

.pricing-card .features-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-card .features-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.pricing-card .features-list li i {
    position: absolute;
    left: 0;
    color: #28a745;
}

.pricing-card .features-list li .fa-times {
    color: #dc3545;
}

/* หน้าราคาบริการ */
.service-pricing {
    padding: 60px 0;
    background-color: var(--background-white);
}

.service-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.service-pricing-table th,
.service-pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.service-pricing-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.service-pricing-table tr:last-child td {
    border-bottom: none;
}

.service-pricing-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* หน้าโปรโมชั่น */
.promotions {
    padding: 60px 0;
    background-color: var(--background-white);
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.promotion-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.promotion-card .promotion-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.promotion-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.promotion-card p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.promotion-card p small {
    color: var(--text-light);
    font-size: 14px;
}

/* หน้าผลงาน */
.portfolio-filter {
    padding: 30px 0;
    background-color: var(--background-light);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-main {
    padding: 60px 0;
    background-color: var(--background-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 77, 104, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.overlay-content h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.overlay-content p {
    margin-bottom: 20px;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.portfolio-meta .category {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.portfolio-meta .date {
    color: var(--text-light);
}

.portfolio-info p {
    line-height: 1.6;
}

/* หน้าสถิติผลงาน */
.portfolio-stats {
    padding: 60px 0;
    background-color: var(--background-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-light);
}

/* หน้าลูกค้า */
.clients {
    padding: 60px 0;
    background-color: var(--background-white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.client-item {
    background-color: var(--background-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* หน้าเงื่อนไข */
.terms-page {
    padding: 60px 0;
    background-color: var(--background-white);
}

.terms-content {
    max-width: 800px;
    margin: 0 auto;
}

.terms-section {
    margin-bottom: 40px;
}

.terms-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.terms-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.terms-section ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.terms-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* หน้าบทความ */
.blog-categories {
    padding: 30px 0;
    background-color: var(--background-light);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.blog-main {
    padding: 60px 0;
    background-color: var(--background-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--background-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.blog-content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* หน้าบทความยอดนิยม */
.popular-posts {
    padding: 60px 0;
    background-color: var(--background-light);
}

.popular-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.popular-post {
    display: flex;
    gap: 20px;
    background-color: var(--background-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.popular-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.popular-post-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
}

.popular-post-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.popular-post-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* หน้าสมัครับข่าวสาร */
.newsletter {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 15px;
    font-size: 32px;
}

.newsletter-content p {
    margin-bottom: 30px;
    font-size: 18px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

/* สไตล์เพิ่มเติมสำหรับหน้าแรก */
.services {
    padding: 60px 0;
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.pricing-preview {
    padding: 60px 0;
    background-color: var(--background-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonials {
    padding: 60px 0;
    background-color: var(--background-light);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    color: #333;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 18px;
}

.author-info p {
    color: var(--text-light);
    font-size: 14px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-controls button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial-controls button:hover {
    background-color: var(--primary-dark);
}

.faq-home {
    padding: 60px 0;
    background-color: var(--background-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.process {
    padding: 60px 0;
    background-color: var(--background-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.step p {
    line-height: 1.6;
}

/* ปุ่มโหลดเพิ่มเติม */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more {
    background-color: var(--background-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.load-more:hover {
    background-color: var(--primary-color);
    color: white;
}

/* การตอบสนอง */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-page .contact-content {
        grid-template-columns: 1fr;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .search-box {
        justify-content: center;
    }
    
    .service-detail-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-detail-item .service-icon-detail {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    /* เมนูนำทางบนมือถือ */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    nav ul li a {
        font-size: 18px;
        padding: 10px 20px;
        border-radius: 5px;
        transition: background-color 0.3s;
    }
    
    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: white;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-page .about-content {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .filter-tabs {
        gap: 5px;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-icon {
        margin-top: 0;
    }
    
    .service-pricing-table {
        font-size: 14px;
    }
    
    .service-pricing-table th,
    .service-pricing-table td {
        padding: 10px 5px;
    }
    
    /* ตารางบนมือถือ - แปลงเป็นการ์ด */
    .service-pricing-table thead {
        display: none;
    }
    
    .service-pricing-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        overflow: hidden;
    }
    
    .service-pricing-table td {
        display: block;
        text-align: right;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .service-pricing-table td:last-child {
        border-bottom: none;
    }
    
    .service-pricing-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: var(--primary-color);
    }
    
    /* ฟอร์มบนมือถือ */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* ป้องกันการซูมบน iOS */
    }
    
    .btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .pricing-card .price .amount {
        font-size: 36px;
    }
    
    .testimonial-item {
        padding: 20px;
    }
    
    .testimonial-content p {
        font-size: 16px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
}