/* ===== VARIABLES ===== */
:root {
    --primary-color: #2a9d8f;
    --primary-dark: #1d7873;
    --primary-light: #76c893;
    --secondary-color: #e9c46a;
    --accent-color: #f4a261;
    --danger-color: #e76f51;
    --dark-color: #264653;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    color: var(--dark-color);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.section-padding {
    padding: 20px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:focus {
    box-shadow: none;
}

.btn-search {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 30px;
}

.btn-search:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-details {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    padding: 8px 20px;
}

.btn-details:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-view-all {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
}

.btn-view-all:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-premium {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: var(--dark-color);
    font-weight: 600;
    padding: 12px 35px;
    box-shadow: 0 4px 15px rgba(242, 201, 76, 0.3);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 201, 76, 0.4);
    color: var(--dark-color);
}

.btn-buy {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
}

.btn-buy:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 0px;
}

.btn-back-to-top:hover {
    background-color: var(--primary-dark);
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: rgba(38, 70, 83, 0.95);
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(38, 70, 83, 0.98);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.brand-name {
    font-family: 'Kanit', sans-serif;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0 8px;
    padding: 8px 15px !important;
    border-radius: 5px;
    font-family: 'Kanit', sans-serif;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.dropdown .nav-link {
    background-color: rgba(42, 157, 143, 0.2);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.dropdown-item {
    padding: 10px 20px;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: white;
}

.premium-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.--hero-section {
    height: 55vh;
    min-height: 450px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1504851149312-7a075b496cc7') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 70px;
}

.hero-section {
    height: 55vh;
    min-height: 370px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('Images/CampHeadBG26.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 75px;
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.3), rgba(233, 196, 106, 0.2));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    -max-width: 600px;
}

.search-container {
    max-width: 600px;
}

.search-box {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box .input-group-text {
    background-color: white;
    border: none;
    padding-left: 25px;
    color: var(--gray-color);
}

.search-box .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
}

.search-box .form-control:focus {
    box-shadow: none;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-label {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
}

.filter-badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-badge:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== CAMP CARDS ===== */
.camp-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.camp-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.camp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.camp-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.premium-badge {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.new-badge {
    background-color: var(--danger-color);
}

.camp-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

.camp-rating i {
    color: var(--secondary-color);
}

.camp-content {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.camp-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.camp-location {
    color: var(--primary-color);
    font-size: 0.95rem;
    --margin-bottom: 15px;
	margin-bottom: 4px;
	}

.camp-location i {
    margin-right: 5px;
}

.camp-desc {
    color: var(--gray-color);
    margin-bottom: 10px;
    flex-grow: 1;
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
}

.camp-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.camp-features span {
    background-color: var(--light-gray);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--dark-color);
}

.camp-features i {
    margin-right: 5px;
    color: var(--primary-color);
}

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

.camp-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.camp-price .price-free {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.camp-price .price-note {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-left: 5px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background-color: #f8f9fa;
}

.feature-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-desc {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.premium-features {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.05), rgba(233, 196, 106, 0.05));
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(233, 196, 106, 0.3);
}

.premium-header {
    text-align: center;
    margin-bottom: 30px;
}

.premium-header h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.premium-header h3 i {
    color: var(--secondary-color);
}

.premium-header p {
    color: var(--gray-color);
}

.premium-feature {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.premium-feature:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.premium-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 30px;
}

/* ===== NEWS SECTION ===== */
.news-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

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

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

.news-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-desc {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.news-link:hover {
    color: var(--primary-dark);
}

.news-link i {
    font-size: 0.8rem;
}

/* ===== GEAR SECTION ===== */
.gear-section {
    background-color: #f8f9fa;
}

.gear-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

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

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

.gear-discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--danger-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.GearCol {
    margin-bottom: 20px;
}

.gear-content {
    padding: 10px;
}

.gear-title {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 5px;
    line-height: 20px;
}

.gear-brand {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.gear-price {
    margin-bottom: -10px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: var(--gray-color);
    text-decoration: line-through;
    margin-left: 10px;
}

.gear-rating {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.rating-count {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-left: 5px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0 10px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--primary-light);
    width: 20px;
}

.newsletter p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 5px 0 0 5px;
}

.newsletter .form-control:focus {
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-newsletter {
    background-color: var(--primary-color);
    color: white;
    border-radius: 0 5px 5px 0;
}

.btn-newsletter:hover {
    background-color: var(--primary-dark);
    color: white;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 15px 0 15px;
}

.footer-bottom {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.payment-methods i {
    font-size: 1.5rem;
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== MODALS ===== */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--light-gray);
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.NewsCol {
    margin-bottom: 15px;
}

.NewsImgDiv {
    width: 100%;           
    height: 200px;         
    border-radius: 10px 10px 0px 0px; 
    overflow: hidden;     
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.NewsImgDiv img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* รักษา ratio ตัดขอบถ้าล้น */
    object-position: center; /* จัดกึ่งกลาง */
    display: block;
}

.NewsTitle {
    background-color: #b6f7ef;
    width: 100%;
    height: 74px;
    line-height: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    padding: 4px;
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
}

.navbar-logo {
    width: 265px;
}




/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .premium-features {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .search-box .form-control {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .btn-search {
        padding: 12px 20px;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
}