.hero-slider-section {
    position: relative;
    padding: 0;
    margin-top: 100px;
    background-color: var(--bg-primary);
}

.products-section {
    margin-top: 40px;
    padding: 60px 0 80px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    background-color: var(--bg-tertiary);
}

.hero-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-slide:hover .slide-img {
    transform: scale(1.02);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    outline: none;
}

.slider-btn:hover {
    color: var(--text-white);
    transform: translateY(-50%) scale(1.15);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-indicator {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.slider-indicator.active {
    background: var(--text-white);
    width: 36px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.promo-nav-btn {
    position: absolute;
    top: calc(50% - 24px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-main);
    transition: var(--transition-smooth);
    z-index: 2008;
    backdrop-filter: blur(4px);
}

.promo-nav-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
}

.promo-prev {
    left: 15px;
}

.promo-next {
    right: 15px;
}

.promo-indicators {
    position: absolute;
    bottom: 58px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2008;
}

.promo-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.promo-indicator.active {
    background: var(--accent-blue);
    transform: scale(1.2);
    box-shadow: var(--shadow-glow);
}

.news-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--shadow-hover);
}

.news-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.news-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-img {
    transform: scale(1.04);
}

.news-info {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-desc {
    font-size: 14px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}

.news-date-tag {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 700;
    margin-top: 15px;
    transition: var(--transition-smooth);
    background: none;
    border: none;
    outline: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
}

.btn-readmore:hover {
    color: var(--accent-blue-dark);
}

.btn-readmore i {
    transition: var(--transition-smooth);
}

.btn-readmore:hover i {
    transform: translateX(4px);
}

.news-modal-dialog {
    max-width: 720px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) transparent;
}

.modal.show .news-modal-dialog {
    transform: scale(1);
}

.news-modal-dialog::-webkit-scrollbar {
    width: 6px;
}

.news-modal-dialog::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

.news-modal-content {
    position: relative;
}

.news-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: var(--transition-smooth);
}

.news-modal-close:hover {
    background: rgba(15, 23, 42, 0.85);
    transform: rotate(90deg);
}

.news-modal-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.news-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-modal-article {
    padding: 30px 35px 40px;
}

.news-modal-tab {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.news-modal-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-modal-date i {
    color: var(--accent-blue);
}

.news-modal-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.35;
}

.news-modal-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-dark));
    border-radius: 2px;
    margin-bottom: 20px;
}

.news-modal-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.85;
}

.services-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.15);
}

.service-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background: var(--accent-blue);
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.service-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.service-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.section-header-left {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
}

.section-title-simple {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    padding-bottom: 12px;
}

.section-title-simple::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.btn-header-link {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-header-link:hover {
    color: var(--accent-blue-dark);
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.products-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 30px;
}

#productsGrid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 5px 25px 5px;
    margin: 0 -5px;
}

#productsGrid::-webkit-scrollbar {
    display: none;
}

@media (max-width: 992px) {
    #productsGrid .product-card {
        flex: 0 0 calc(50% - 13px);
    }
}

@media (max-width: 576px) {
    #productsGrid .product-card {
        flex: 0 0 100%;
    }
}
