:root {
    /* Colors */
    --primary-color-1: #0B3190;
    --primary-color-2: #00AFEC;
    --secondary-color-1: #071D56;
    --secondary-color-2: #0080B0;
    --error-color: #DA1E28;
    --warning-color: #DA1E28;
    --success-color: #DA1E28;
    --white-color: #ffffff;
    --overlay-color: rgba(18, 22, 25, 0.5);
    --Gray-90: #21272A;
    --coolGray-50: #878d96;
    --coolGray-10: #F2F4F8;
    --buttonInactive: #f8f9fa;
    --primary-color-1-light: rgba(11, 49, 144, 0.25);

    /* Typography */
    --font-family-base: 'Noto Sans JP', sans-serif;
    --heading-1: 54px;
    --heading-2: 42px;
    --heading-3: 32px;
    --heading-4: 24px;
    --heading-5: 20px;
    --heading-6: 18px;
    --heading-7: 16px;
    --body-l: 18px;
    --body-m: 16px;
    --body-s: 14px;
    --subtitle-m: 16px;
    --subtitle-s: 14px;
    --button-l: 20px;
    --button-m: 16px;
    --button-s: 14px;
}
.bg-coolgray {
    background-color: var(--coolGray-10);
}

body {
    font-family: var(--font-family-base);
    padding-top: 82px; /* ปรับตามความสูงของ Header */
    display: flex;
    flex-direction: column;
}

.text-coolGray-50 {
    color: var(--coolGray-50);
}

/* ปรับแต่ง Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    /* height: 88px; */
    z-index: 1000;
    background-color: white;
}
.nav-item .nav-link {
    padding: 12px 16px !important;
    transition: background-color 0.3s ease;
    color: var(--Gray-90);
}

/* ปุ่มนำทางใน Image Slide */
.image-slide .prev, .image-slide .next {
    cursor: pointer;
    transition: 0.6s ease;
    user-select: none;
    background-color: var(--overlay-color);
}

.image-slide .prev:hover, .image-slide .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ปรับแต่งปุ่ม */
.btn-primary {
    background-color: var(--primary-color-1);
    border-color: var(--primary-color-1);
    font-size: var(--button-m);
    /*line-height: 40px;*/
    padding: 8px 16px;
    border-radius: 3px;
}


/* ปรับแต่ง Heading */
h1 {
    font-size: var(--heading-1);
    font-weight: bold;
}

h2 {
    font-size: var(--heading-2);
    font-weight: bold;
    color: var(--primary-color-1);
}

h3 {
    font-size: var(--heading-3);
    font-weight: bold;
}

h4 {
    font-size: var(--heading-4);
    font-weight: bold;
}

h5 {
    font-size: var(--heading-5);
    font-weight: bold;
    color: var(--primary-color-1);
}

h6 {
    font-size: var(--heading-6);
    font-weight: bold;
}
h7 {
    font-size: var(--heading-7);
    color: var(--Gray-90);
    font-weight: bold;
}
/* ปรับแต่ง Body */
p, body {
    font-size: var(--body-m);
    line-height: 24px;
    font-weight: normal;
}
.contact-heading {
    color: var(--primary-color-1);
    font-weight: bold;
}

p.large {
    font-size: var(--body-l);
    line-height: 32px;
    font-weight:  normal;
}

p.small {
    font-size: var(--body-s);
    line-height: 20px;
    font-weight:  normal; 
}

/* ปรับแต่ง Subtitle */
.subtitle-m {
    font-size: var(--subtitle-m);
    font-weight: 500;
    line-height: 23px;
}

.subtitle-s {
    font-size: var(--subtitle-s);
    font-weight: 500;
    line-height: 20px;
}

/* ปรับแต่งภาพใน Section Contact Us */
.cta-image img {
    border-radius: 3px;
    width: 100%;
}

/* ปรับแต่ง Footer */
footer {
    background-image: url('Images/BusinessBG.png');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 20px;
}
#footer a {
    position: relative;
    color: white;
    text-decoration: none;
    padding-bottom: 5px; 
    overflow: hidden;
}

#footer a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

#footer a:hover::before {
    width: 100%; 
}

.blockquote-footer {
    background-image: none !important;
    background-color: transparent;
    color: inherit;
}


footer a {
    color: var(--white-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ปรับ hero carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 800px;
}

.hero-carousel .carousel-inner {
    width: 100%;
    height: 100%;
}

.hero-carousel .carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel .carousel-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-carousel .carousel-item.active img {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
}

/* ปรับ z-index ของปุ่มควบคุม */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 10;
}

#aboutUsCarousel .carousel-inner {
    border-radius: 3px;
}

/* ปรับ z-index ของปุ่มควบคุม */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 10;
}

#aboutUsCarousel .carousel-item {
    max-height: 400px;
    overflow: hidden;
}

#aboutUsCarousel img {
    width: 100%;       
    height: 100%;      
    object-fit: cover;
    padding: 0;
}

/* กำหนดสีพื้นหลังและข้อความใน Section */
.section-bg-primary {
    background-color: var(--primary-color-1);
    color: var(--white-color);
}

.section-bg-secondary {
    background-color: var(--secondary-color-1);
    color: var(--white-color);
}

.overlay {
    background-color: var(--overlay-color);
}

.business-product-section {
    background-image: url('Images/BusinessBG.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 48px 0;
}

.card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /*-webkit-line-clamp: 4; */
    overflow: hidden;
    text-overflow: ellipsis;
}
.business-product-section .card {
    background-color: rgba(255, 255, 255, 0);
    border: none;
}

.business-product-section .btn-primary {
    background-color: white;
    border-color: white;
    color: var(--primary-color-1);
    font-weight: 600;
}

.business-product-section .btn-primary:hover {
    background-color: var(--primary-color-1);
    border-color: var(--primary-color-1);
    color: #ffffff;
    font-weight: 600;
}

#business-products .card-body {
    display: flex;
    flex-direction: column;
}

#business-products .btn-see-more {
    margin-top: auto;
    width: 132px;
}

footer {
    background-image: url('Images/BusinessBG.png');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 20px;
}
li.small {
    font-size: var(--body-s);
    line-height: 20px;
    font-weight:  normal; 
}

.dropdown-menu {
    padding: 1rem;
    margin: 0;
    background-color: #fff;
    border: none;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
@media (max-width: 991.98px) {
    .dropdown-menu {
        box-shadow: none;
    }
}

.dropdown-item {
    text-align: left !important;
    padding: 12px 16px !important;
    transition: background-color 0.3s ease !important;
    color: var(--primary-color-1) !important;
}

#languageDropdownDesktop::after {
    display: none;
}


a {
    text-decoration: none !important;
}

.dropdown-item img {
    width: 100%;
    display: block;
    margin: 0.5rem 0 0 0 ;
    border-radius: 3px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.dropdown-item span {
    display: block;
    font-size: 14px;
    white-space: normal;
    overflow: hidden;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
    color: var(--secondary-color-1);
}

.position-static .dropdown-menu {
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #fff;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.position-static .dropdown-menu .container-fluid {
    max-width: 1280px;
}

#sustainability h4 {
    font-size: var(--heading-4);
    font-weight: lighter;
    line-height: 35px;
    color: var(--primary-color-2);
}

.nav-item .nav-link:hover {
    background-color: rgba(11, 49, 144, 0.1);
    border-radius: 3px;
}
.nav-item:last-child {
    margin-right: 0;
}
.navbar {
    background-color: #ffffff !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    min-height: 82px;
}
.navbar-collapse {
    background-color: #ffffff !important;
}

#contact-us .cta-image {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

#contact-us .cta-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
}

#contact-us .cta-image:hover img {
    transform: scale(1.02);
}

#contact-us .cta-text {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.btn-link {
    background-color: transparent;
    border: none;
    text-decoration: none !important;
    color: var(--primary-color-1);
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-color-2);
}

.btn-link:active {
    color: var(--secondary-color-2) !important;
}

.d-flex a {
color: var(--primary-color-1);
transition: color 0.3s ease;
}

.d-flex a:hover {
color: var(--Gray-90)
}

.d-flex a:active {
color: var(--Gray-90)
}

#pdfLink {
    color: var(--bs-success);
    background-color: transparent;
    border-color: var(--bs-success);
}

#pdfLink:hover {
    color: var(--bs-white);
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.dropdown-menu {
    min-width: auto;
}
.dropdown-menu-end {
    right: 0;
    left: auto;
    min-width: 150px;
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color-2);
}

.timeline li {
    position: relative;
    width: 50%;
    padding: 8px 16px;
    box-sizing: border-box;
}

.timeline li:nth-child(odd) {
    left: 0;
}

.timeline li:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background-color: var(--coolGray-10);
    padding: 12px;
    border-radius: 3px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}
.page-title-section {
    background-image: url('Images/BGPageTitle.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* สำหรับหน้าจอขนาดเล็กกว่า 992px */
@media (max-width: 991.98px) {
    .page-title-section {
        height: 250px;
    }
}

/* สำหรับหน้าจอขนาดเล็กกว่า 768px */
@media (max-width: 767.98px) {
    .page-title-section {
        height: 200px;
    }
}

/* สำหรับหน้าจอขนาดเล็กกว่า 576px */
@media (max-width: 575.98px) {
    .page-title-section {
        height: 150px;
    }
}

.custom-tabs {
    border-bottom: none;
}

.custom-tabs.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 82px;
    z-index: 1000;
    background-color: white;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-tabs .nav-link {
    border: none;
    background: transparent;
    color: #A2A9B0;
    font-weight: bold;
    padding: 8px 16px;
    text-decoration: none;
}

.custom-tabs .nav-link:hover {
    color: var(--primary-color-1);
    background: transparent;
}

.custom-tabs .nav-link.active {
    color: var(--primary-color-1);
    position: relative;
}
.custom-tabs .nav-item {
    margin-bottom: 0;
    color: #A2A9B0;
}
.custom-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color-1);
    border-radius: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 48px;
    right: 48px;
    display: none;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.back-to-top img {
    width: 48px;
    height: 48px;
    border-radius: 2%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}
.back-to-top img:hover {
    transform: scale(1.1);
}

.external-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-decoration: none; 
    color: #0B3190;
    font-size: 16px;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: #0B5ED7;
    text-decoration: none;
}

#business-products .card-img-top {
    border-radius: 3px !important;
    transition: transform 0.3s ease;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ปรับเฉพาะรูปภาพ Foods */
#business-products .card-img-top.foods-img {
    background-color: #fff;
    border-radius: 3px !important;
    transition: transform 0.3s ease;
    overflow: hidden;
    width: 100%;
    object-fit: contain;
}


#business-products .card-img-top:hover {
    border-radius: 3px !important;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

#our-group .card {
    transition: transform 0.3s ease;
}

#our-group .card:hover {
    transform: scale(1.05);
}

#steel-automotive-products .card {
    border: none;
    overflow: hidden;
    object-fit: cover;
}


#about-us, #ceo-message, #company-summary, #history-timeline, #our-group {
    scroll-margin-top: 132px;
}

#machinery-materials-product .card-img-top {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    object-fit: cover;
}

#machinery-materials-product .card {
    --bs-card-border-radius: 0;
    border: none;
    overflow: hidden;
    object-fit: cover;
}

#machinery-materials-product .main-product {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3px;
    object-fit: cover;
}

#steel-non-automotive-products .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2px;
}
#steel-non-automotive-products .card {
    --bs-card-border-radius: 0;
    border: none;
    object-fit: cover;
}
#steel-non-automotive-products .main-product {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3px;
    object-fit: cover;
}
#steel-non-automotive-products .sub-product {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    object-fit: cover;
}

#steel-automotive-products .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2px;
}
#steel-automotive-products .card {
    --bs-card-border-radius: 0;
    border: none;
    overflow: hidden;
    object-fit: cover;
}
#steel-automotive-products .main-product {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3px;
    object-fit: cover;
}

#steel-automotive-products .sub-product {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    object-fit: cover;
}

#steel-automotive-products .img-fluid {
border-radius: 3px;
}

#foods-products .main-product {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3px;
    object-fit: contain;
    background-color: white;
}

#foods-products .sub-product {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    object-fit: cover;
}

#foods-products .card-img-top {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    object-fit: cover;
}

#foods-products .card {
    --bs-card-border-radius: 0;
    border: none;
    overflow: hidden;
    object-fit: cover;
}

#elec-products .main-product {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3px;
    object-fit: cover;
}

#elec-products .sub-product {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    object-fit: cover;
}

#elec-products .card-img-top {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    object-fit: contain;
}

#elec-products .card {
    --bs-card-border-radius: 0;
    border: none;
    overflow: hidden;
    object-fit: cover;
}

#our-group .card {
    max-width: 400px;
}

#our-group .card-img-top {
    width: 40px;
    height: auto;
    padding-right: 1rem;
}

#our-group .card-body {
    padding-top: 0;
}

#our-group .card-text {
    text-align: left;
    font-size: 1rem;
}


#Sustainability .sustainability-img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

#Sustainability .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: background-color 0.3s ease;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
}

#Sustainability .overlay > div {
    transform: translateY(0);
    transition: transform 0.3s ease;
    text-align: center;
}

#Sustainability #sustainability-title {
    padding-top: 2.5rem;
    margin-bottom: 0;
    color: white;
    text-align: center;
}

#Sustainability .link-info {
    opacity: 0;
    font-size: 1rem;
    margin-top: 5px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
}

#Sustainability .cta-image {
    border-radius: 3px;
    overflow: hidden;
}

#Sustainability .cta-image:hover .sustainability-img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

#Sustainability .cta-image:hover .overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

#Sustainability .cta-image:hover .overlay > div {
    transform: translateY(-20px);
}

#Sustainability .cta-image:hover .link-info {
    opacity: 1;
    pointer-events: auto;
}


#news-container .card {
    background-color: #ffffff; 
    border-radius: 3px;
}
#news-container .card .card-title {
    color: var(--primary-color-1);
}
#company-summary .table {
    border-collapse: separate;
    border-spacing: 0px 16px;
    width: 100%;
    border-color: var(--coolGray-10);
}

#company-summary th {
    background-color: white;
    color: var(--primary-color-1);
    padding: 12px 16px;
    text-align: left;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 3px;
}

#company-summary td {
    background-color: var(--background-light);
    color: var(--text-color-dark);
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 3px; 
}
#sustainability-title {
    font-size: var(--heading-2);
}
#Contact-us-title {
    font-size: var(--heading-2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}
@media (max-width: 768px) {
    #Contact-us-title {
        font-size: var(--heading-4);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    #sustainability-title {
        font-size: var(--heading-4);
    }
}
@media (max-width : 991px){
    .custom-tabs.sticky-top{
        top : 72px;
    }
}

/* Custom CSS สำหรับปุ่ม Tab */
.tab-button {
    font-weight: bold;
    color: #555;
    background-color: #f8f9fa;
    padding: 15px 0;
    border: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button:hover {
    background-color: #e2e6ea;
    color: var(--primary-color-1);
}

.tab-button.active {
    color: #fff;
    background-color: var(--primary-color-1);
}

.tab-button:disabled {
    background-color: #d6d8db;
    color: #6c757d;
    cursor: not-allowed;
}

@media (max-width: 991.98px) {
    .tab-button {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 78px;
    }

    .tab-buttons-section > .row > div.col-sm-12:not(:last-child) {
        margin-bottom: 1rem;
    }
}

#steel-automotive-products .card-body{
    padding: 1rem 0rem;
}
#steel-non-automotive-products .card-body{
    padding: 1rem 0rem;
}
#machinery-materials-product .card-body{
    padding: 1rem 0rem;
}
#foods-products .card-body{
    padding: 1rem 0rem;
}

#elec-products .card-body{
    padding: 1rem 0rem;
}

#news-activities .nav-tabs {
    border-bottom: none;
    justify-content: start;
    gap: 1rem;
}

#news-activities .nav-tabs .nav-link {
    width: 150px;
    padding: 0.5rem 0;
    border: none;
    border-radius: 3px;
    background-color: var(--buttonInactive);
    color: var(--coolGray-50);
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#news-activities .nav-tabs .nav-link.active {
    background-color: var(--primary-color-1);
    color: #fff;
}

#news-activities .nav-tabs .nav-link:not(.active):hover {
    background-color: #e2e6ea;
    color: var(--primary-color-1);
}

#careers-intro-section .main-img-careers {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3px;
    object-fit: cover;
}

  .job-badge {
    background-color: var(--primary-color-1-light);
    color: var(--primary-color-1);
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    font-size: 0.875rem;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
  }
  
  .modal-title {
    margin-bottom: 0;
  }
  
  .btn-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
  }
  
  .modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
  }

  .job-card-shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border: none;
  }

.job-title {
    color: var(--primary-color-1);
  }


@media (max-width: 991.98px) {
    #jobDetailsModal .modal-body .row .col-md-4 {
      width: 100%;
      flex-basis: 100%;
      max-width: 100%;
      margin-top: 0.5rem;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: flex-start;
      align-items: center;
    }
  
    #jobDetailsModal .modal-body .row .col-md-4 .job-badge {
      margin-right: 0.5rem;
      margin-bottom: 0;
    }
  
    #jobDetailsModal .modal-body .row .col-md-4 .job-badge:last-child {
      margin-right: 0;
    }
  }
  
  @media (max-width: 991.98px) {
    #jobDetailsModal .modal-body .row .col-md-8 {
      margin-bottom: 0;
    }
  }

#activities-container {
    margin-left: 0;
    margin-right: 0;
}

.activity-item {
    padding: 0.5rem;
    margin-bottom: 0;
    width: 100%;
}

@media (min-width: 576px) {
    .activity-item {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .activity-item {
        width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .activity-item {
        width: 25%;
    }
}

.activity-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}

.activity-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.25rem;
    transition: transform 0.3s ease;
}

.activity-image-wrapper img:hover {
    transform: scale(1.03);
}


#activities-container p.text-center {
    width: 100%;
    /*padding: 50px 0;*/
}

/* Custom Image Lightbox Styles (เพิ่มหรืออัปเดตจากเดิม) */
.custom-image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-image-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

.close-lightbox-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1051;
    transition: color 0.2s ease;
}

.close-lightbox-btn:hover {
    color: #bbb;
}

/* New: Navigation Buttons for Lightbox */
.nav-lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 30px;
    cursor: pointer;
    z-index: 1051;
    transition: background-color 0.2s ease;
    border-radius: 5px;
}

.nav-lightbox-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-lightbox-btn.prev-btn {
    left: 20px;
}

.nav-lightbox-btn.next-btn {
    right: 20px;
}

.activity-image-wrapper {
    cursor: pointer;
}

body.no-scroll {
    overflow: hidden;
}

.iso-logo {
    width: 375px;
    height: auto;
}

@media (max-width: 768px) {
    .iso-logo {
        width: 250px;
    }
}