/* style.css */
.package-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border-color: #007bff;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.package-card:hover::before {
    opacity: 1;
}

.section-title h2 {
    color: #2c3e50;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.badge {
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.features {
    border-left: 3px solid #007bff;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* ปรับปรุงความสูงของ Hero Section */
.hero-section {
    position: relative;
    height: 95vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('<?php echo $companyInfo['hero_image'] ?? 'assets/images/hero-bg.jpg'; ?>');
    background-size: cover;
    background-position: center; /* ทำให้ภาพพื้นหลังอยู่กึ่งกลาง */
    background-attachment: fixed;
    display: flex;
    align-items: center; /* ทำให้เนื้อหาภายในอยู่กึ่งกลางในแนวตั้ง */
    color: white;
}
/* สไตล์สำหรับหัวข้อรองใน Hero Section */
.hero-content p {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 800px; /* ปรับความกว้างสูงสุด */
    width: 100%; /* ความกว้างเต็มจนถึง max-width */
    display: inline-block; /* ทำให้กรอบพอดีกับเนื้อหา */
}

/* ปรับปรุงการแสดงผลของ Services Section */
#services {
    position: relative;
    z-index: 10;
    background: var(--light-bg);
    margin-top: -5vh; /* ทับภาพด้านบนเล็กน้อย */
    padding-top: 8rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card .card-body {
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.service-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.service-card p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
}

.service-card .btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: center;
}

.service-card .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.service-card .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Modal Styles for Services */
.service-modal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.service-modal .modal-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.service-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.service-modal .service-detail-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.service-modal .service-features {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.service-modal .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.service-modal .feature-item:last-child {
    margin-bottom: 0;
}

.service-modal .feature-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Modal Styles for News */
.news-modal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.news-modal .modal-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.news-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.news-modal .modal-body {
    padding: 0;
}

.news-modal .modal-news-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.news-modal .news-content-wrapper {
    padding: 2rem;
}

.news-modal .news-meta {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.news-modal .news-meta .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.news-modal .news-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.news-modal .news-content h1,
.news-modal .news-content h2,
.news-modal .news-content h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-modal .news-content p {
    margin-bottom: 1.5rem;
}

.news-modal .news-content ul,
.news-modal .news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-modal .news-content li {
    margin-bottom: 0.5rem;
}

.service-modal .service-detail-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.service-modal .service-features {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.service-modal .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.service-modal .feature-item:last-child {
    margin-bottom: 0;
}

.service-modal .feature-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
}