/* 基本重設與全域樣式 */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #ccc; /* 整體文字改為淺灰色，更適合深色背景 */
    background-color: #111; /* 將背景改為深灰色 */
}

a {
    color: #eee; /* 連結顏色調亮 */
    text-decoration: none;
}

a:hover {
    color: #fff; /* Hover 時變白色 */
    text-decoration: none; /* 移除 Hover 底線，保持簡潔 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #fff; /* 標題改為白色 */
    font-weight: 600;
}

/* Header 樣式 - 參考 Ferrari 風格 */
header {
    background-color: #000; /* Header 背景改為純黑 */
    color: #fff;
    padding: 0;
    position: sticky; /* 讓 Header 固定在頂部 */
    top: 0;
    z-index: 1000; /* 確保 Header 在最上層 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* 加一點陰影 */
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem; /* 稍微減少 padding */
    max-width: 1400px; /* 可以稍微加寬 */
    margin: 0 auto;
    border-bottom: 1px solid #222; /* 加入細分隔線 */
}

.logo {
    /* 可以稍微調整 logo 容器的對齊方式 */
    display: flex;
    align-items: center;
}

/* 移除原本 h1 的樣式 */
/* .logo h1 { ... } */

/* 新增 Logo 圖片樣式 */
#logo-img {
    height: 90px;
    width: auto;
    display: block;
    /* Remove previous border/padding */
    /* border: 2px solid #fff; */
    /* padding: 5px; */
    /* box-sizing: border-box; */

    /* Use drop-shadow for contour effect */
    filter: drop-shadow( 1px  1px 0 #fff)
            drop-shadow(-1px  1px 0 #fff)
            drop-shadow( 1px -1px 0 #fff)
            drop-shadow(-1px -1px 0 #fff);
}

.header-contact {
    display: flex; /* 確保內部元素水平排列 */
    align-items: center; /* 垂直居中 */
}

.header-contact span {
    /* Removed margin-right as span is no longer present */
    /* margin-right: 1.5rem; */
    font-size: 0.9rem;
    color: #ccc;
}

.header-contact .header-button {
    padding: 0.6rem 1.2rem; /* 調整按鈕大小 */
    font-size: 0.8rem; /* 按鈕文字稍小 */
    background-color: #333; /* 按鈕深灰色 */
    margin-left: 0; /* 移除左邊 margin */
    border-radius: 3px; /* 小圓角 */
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
}

.header-contact .header-button:hover {
    background-color: #555;
}

/* 語言切換樣式 */
.language-switcher {
    margin-left: 1.5rem; /* 與聯絡按鈕的間距 */
    font-size: 0.85rem;
}

.language-switcher .lang-link {
    color: #ccc;
    margin: 0 0.2rem; /* 連結和分隔符的間距 */
    padding: 0.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.language-switcher .lang-link:hover {
    color: #fff;
    text-decoration: none;
    background-color: transparent; /* 覆蓋 nav link 的 hover */
    border-bottom-color: transparent; /* 覆蓋 nav link 的 hover */
}

.language-switcher .lang-link.active {
    color: #fff;
    font-weight: 700;
    cursor: default;
    background-color: transparent; /* 覆蓋 nav link 的 active */
    border-bottom-color: transparent; /* 覆蓋 nav link 的 active */
}

/* Hamburger Button - Hidden by default on Desktop */
.hamburger-button {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}
.hamburger-button .fa-xmark {
    display: none;
}

/* Main Navigation - Default Desktop styles */
nav.main-nav {
    background-color: #000;
    display: flex; /* Show and center on desktop */
    justify-content: center;
}
nav.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
}
nav.main-nav ul li {
    margin: 0;
}
nav.main-nav ul li a {
    display: block;
    color: #ccc;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    padding: 0.9rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-bottom: 2px solid transparent;
    line-height: 1.5;
}
nav.main-nav ul li a:hover {
     color: #fff;
     background-color: #222;
     border-bottom-color: transparent;
}
nav.main-nav ul li a.active {
    color: #fff;
    font-weight: 600;
    background-color: transparent;
    border-bottom: 2px solid #fff;
}

/* 導覽列樣式 - 參考 Ferrari 風格 */
nav {
    background-color: #000; /* 導覽列也用黑色背景 */
    /* border-top: 1px solid #222; 移除上方分隔線 */
    /* border-bottom: 1px solid #222; 移除下方分隔線 */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    color: #ccc; /* 預設連結顏色調暗 */
    font-weight: 500; /* 字重調細 */
    font-family: 'Poppins', sans-serif;
    padding: 0.9rem 1.5rem; /* 調整 padding */
    text-transform: uppercase;
    font-size: 0.85rem; /* 字體稍小 */
    transition: color 0.3s ease, background-color 0.3s ease;
    border-bottom: 2px solid transparent; /* 為 active 狀態預留底線位置 */
    line-height: 1.5; /* 確保文字垂直居中 */
}


nav ul li a:hover {
     color: #fff; /* Hover 時變白 */
     background-color: #222; /* Hover 背景色 */
     border-bottom-color: transparent; /* Hover 時移除底線 */
}

nav ul li a.active {
    color: #fff; /* 當前頁面白色 */
    font-weight: 600; /* 當前頁面加粗 */
    background-color: transparent; /* 當前頁面無背景色 */
    border-bottom: 2px solid #fff; /* 當前頁面加白色底線 */
}

/* Main 內容區域 */
main {
    padding: 0; /* Remove padding-top from main */
    max-width: none;
    margin: 0 auto;
    background-color: #111;
    box-shadow: none;
}

/* 讓 section 恢復 padding 和寬度限制 */
main section:not(.banner) {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem auto; /* 水平置中，保留下方間距 */
    background-color: #fff; /* 內容區塊背景白色 */
    color: #333; /* Default text color for the section */
    border-bottom: 1px solid #eee; /* 分隔線 */
    border-radius: 5px; /* 為內容區塊加點圓角 */
    /* 需要為內容區的標題和連結單獨設定顏色 */
}

/* Ensure paragraphs within content sections are dark */
main section:not(.banner) p {
    color: #333; /* Explicitly set paragraph text color */
    line-height: 1.7; /* Keep existing line-height if defined elsewhere */
    margin-bottom: 1rem; /* Keep existing margin if defined elsewhere */
}

main section:not(.banner) h2,
main section:not(.banner) h3 {
    color: #1a1a1a;
}

/* 聯絡資訊區塊樣式調整 */
main section:not(.banner) strong {
    margin-right: 0.5em; /* 標籤和內容間加點間距 */
}

/* WhatsApp 圖示樣式 */
.fa-whatsapp {
    color: #25D366; /* WhatsApp 綠色 */
    margin-right: 0.4em; /* 圖示和號碼間加點間距 */
    font-size: 1.1em; /* 稍微放大圖示 */
}

main section:not(.banner) a {
     color: #007bff;
}
main section:not(.banner) a:hover {
     color: #0056b3;
}


main section:last-child:not(.banner) {
    border-bottom: none;
    margin-bottom: 0;
}

/* Banner / Swiper 樣式 - 參考 Ferrari 風格 */
.banner.swiper {
    height: calc(100vh - 100px); /* Banner 高度，填滿視窗減去 Header 大致高度 */
    background-color: #000; /* 背景黑色 */
    color: #fff;
    position: relative; /* 保持相對定位 */
    overflow: visible !important; /* Allow overflow */
}

.swiper-slide {
    display: flex;
    justify-content: center; /* 水平置中 */
    align-items: flex-end; /* 垂直靠下對齊 */
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-bottom: 5rem; /* 增加底部內邊距，讓內容上移 */
}

/* 移除 slide 範例背景色 */
.slide-1, .slide-2, .slide-3 {
    background-color: transparent;
}

/* 設定實際背景圖片 (請確認檔名是否正確) */
.slide-1 {
    background-image: url('../ZPphoto/banner/banner1.jpg'); /* 確認 banner1.jpg 存在 */
}
.slide-2 {
    background-image: url('../ZPphoto/banner/banner2.jpg'); /* 確認 banner2.jpg 存在 */
}
.slide-3 {
    background-image: url('../ZPphoto/banner/banner3.jpg'); /* 修正路徑，加上 ../ */
}

/* 新增 Slide 4, 5, 6 的背景圖片 */
.slide-4 {
    background-image: url('../ZPphoto/banner/banner4.jpg'); /* 修正路徑，加上 ../ */
}
.slide-5 {
    background-image: url('../ZPphoto/banner/banner5.jpg'); /* 修正路徑，加上 ../ */
}
.slide-6 {
    background-image: url('../ZPphoto/banner/banner6.jpg'); /* 修正路徑，加上 ../ */
}

.slide-content {
    background-color: transparent; /* 移除文字背景 */
    padding: 1rem;
    border-radius: 0;
    max-width: 90%;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* 加文字陰影提高可讀性 */
}

.slide-content h2 {
    color: #fff;
    font-size: 2.8rem; /* 加大標題 */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.1rem; /* 調整文字大小 */
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.slide-content .cta-button {
    background-color: rgba(255, 255, 255, 0.8); /* 按鈕半透明白色 */
    color: #000; /* 按鈕文字黑色 */
    font-size: 0.9rem;
    padding: 0.7rem 1.8rem;
    text-transform: uppercase;
    backdrop-filter: blur(5px); /* 毛玻璃效果 (部分瀏覽器支援) */
    border-radius: 3px;
}

.slide-content .cta-button:hover {
    background-color: #fff;
}

/* Swiper 導航按鈕樣式 - 更 subtle */
.swiper-button-prev,
.swiper-button-next {
    color: #fff; /* White arrows */
    background-color: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 1.2rem; /* Adjust arrow size */
}

/* Swiper Pagination - Relative Position Below Banner */
.swiper-pagination {
    position: relative; 
    z-index: 10; 
    width: 100%; 
    margin-top: 1rem; 
    margin-bottom: 1.5rem; 
    text-align: center;
    display: block !important; /* Force display */
}

.swiper-pagination-bullet {
    background-color: #aaa;
    opacity: 0.7;
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    opacity: 1;
}

/* Remove space BELOW the banner itself */
section.banner {
    position: relative; /* Keep relative if Swiper needs it */
}

/* Keep space ABOVE the first content section AFTER the banner */
main section:not(.banner):first-of-type {
     margin-top: 4rem; /* Restore space */
}

/* Style for the empty spacer section */
/* section.spacer { ... } */

/* Adjust intro section title */
.intro h2[data-lang-key="intro_title"] {
    margin-top: 2rem; /* Add space ABOVE the title within its section */
    margin-bottom: 1rem; /* Ensure space below title */
}

/* Responsive adjustments for pagination */
@media (max-width: 768px) {
    /* Remove padding from banner bottom on mobile */
    section.banner.swiper {
        /* padding-bottom: 2rem; */ /* Remove this */
        height: auto; /* Remove min-height override too */
        min-height: auto; /* Explicitly remove min-height */
        overflow: visible !important; /* Allow overflow */
    }
    /* Adjust pagination margins for mobile */
    .swiper-pagination {
         margin-top: 0.8rem; /* Adjust top space */
         margin-bottom: 1rem; /* Adjust bottom space */
    }
    .swiper-pagination-bullet { width: 8px; height: 8px; }
}

/* 公司簡介區塊微調 */
.intro ul {
     list-style: none;
     padding-left: 0;
     margin-top: 1rem;
}
.intro li {
    margin-bottom: 0.8rem;
}
.intro li strong {
    color: #1a1a1a; /* 強調文字顏色 */
}


/* Footer 樣式 */
footer {
    background-color: #000; /* Footer 也用黑色 */
    color: #888; /* 文字顏色調暗 */
    text-align: center;
    padding: 2rem 0;
    margin-top: 0; /* 移除上方 margin */
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* Footer Content Layout */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Wrap on smaller screens */
}

/* Social Links Styles */
.social-links {
    margin-top: 1rem; /* Add space on smaller screens when wrapped */
}

.social-links a {
    color: #888;
    font-size: 1.5rem; /* Icon size */
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

/* === MOVED GLOBAL STYLES START HERE === */
/* Global Styles */
.header-right {
    display: flex;
    align-items: center;
}

/* Call to Action / General Buttons */
.cta-button {
    display: inline-block;
    background-color: #333; /* Slightly lighter background */
    color: #fff;
    padding: 0.8rem 1.8rem; /* Increased padding */
    text-decoration: none;
    font-weight: 600; /* Bolder text */
    font-family: 'Poppins', sans-serif;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid #555; /* Subtle border */
    cursor: pointer;
    font-size: 1rem; /* Increased font size */
}

.cta-button:hover {
    background-color: #555; /* Darker on hover */
    color: #fff;
    transform: translateY(-2px); /* Slight lift effect */
}

/* Optional: Style for icons inside buttons */
.cta-button i {
    margin-right: 0.6em; /* Space between icon and text */
}
/* === MOVED GLOBAL STYLES END HERE === */

@media (min-width: 768px) {
    /* Adjustments for footer on wider screens */
    .footer-content {
        padding: 0 2rem;
    }
    .social-links {
        margin-top: 0;
    }
    /* Revert submit button to auto width */
    #contact-form button[type="submit"] {
        width: auto;
    }
}

/* ===================== */
/* Responsive Styles */
/* ===================== */

@media (max-width: 992px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
        padding: 0.8rem 1rem;
    }
    .logo h1 {
        margin-bottom: 0.5rem;
    }
    .header-contact {
        margin-top: 0;
    }

    nav ul {
        justify-content: center;
    }
    nav ul li a {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }

    .banner.swiper {
        height: calc(100vh - 130px);
    }
    .slide-content h2 {
        font-size: 2rem;
    }
    .slide-content p {
        font-size: 1rem;
    }

    .header-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
    }

    .hamburger-button {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: 1rem;
        z-index: 1001;
        position: relative;
    }
    .hamburger-button .fa-xmark {
        display: none;
    }
    .hamburger-button .fa-bars {
        display: block;
    }
    .hamburger-button.is-active .fa-xmark {
        display: block; /* Show close icon when button is active */
    }
    .hamburger-button.is-active .fa-bars {
        display: none; /* Hide bars icon when button is active */
    }

    nav.main-nav {
        display: none;
    }

    nav.main-nav.is-open {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 1000; /* Below hamburger button */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 60px;
        overflow-y: auto;
    }

    nav.main-nav.is-open ul {
        flex-direction: column;
        text-align: center;
        width: 80%;
        max-width: 300px;
    }

    nav.main-nav.is-open ul li {
        margin: 0;
        width: 100%;
    }

    nav.main-nav.is-open ul li a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid #333;
        color: #eee;
        text-transform: uppercase;
    }
    nav.main-nav.is-open ul li:last-child a {
        border-bottom: none;
    }

    nav.main-nav.is-open ul li a:hover,
    nav.main-nav.is-open ul li a.active {
        color: #fff;
        font-weight: bold;
        background-color: #333;
        border-bottom-color: #333;
    }

}

@media (max-width: 768px) {
    .header-right {
        /* Further adjustments if needed */
    }
    .header-contact span {
        /* Maybe hide phone number text on very small screens? */
        /* display: none; */
    }

    main section:not(.banner) {
        padding: 2rem 1rem;
        margin: 0 auto 1rem auto;
        border-radius: 0;
    }

    .banner.swiper {
        height: auto;
        min-height: auto; /* Ensure min-height is reset */
        overflow: visible !important; /* Keep this */
    }
    .slide-content { padding: 1.5rem; }
    .slide-content h2 { font-size: 1.8rem; }
    .slide-content p { font-size: 0.9rem; }
    .slide-content .cta-button { font-size: 0.8rem; padding: 0.6rem 1.2rem;}

    .swiper-button-prev,
    .swiper-button-next { display: none; }

    /* Ensure pagination styles are correctly merged here */
    .swiper-pagination {
        margin-top: 0.8rem; /* Mobile top margin */
        margin-bottom: 1rem; /* Mobile bottom margin */
    }
    .swiper-pagination-bullet { 
        width: 8px; /* Mobile bullet size */
        height: 8px; 
    }
}

/* Contact Page Specific Styles */
.contact-details-grid {
    /* ... existing styles ... */
}

/* Contact Form Styling */
#contact-form {
    margin-top: 2rem; /* Add space above the form */
    background-color: #111; /* Slightly lighter background for the form area */
    padding: 2rem; /* Add padding around the form */
    border-radius: 8px;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 1.5rem; /* Space between form fields */
}

.form-group label {
    display: block; /* Ensure label is on its own line */
    margin-bottom: 0.5rem;
    color: #ccc;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%; /* Make inputs fill container width */
    padding: 0.8rem 1rem; /* Comfortable padding inside inputs */
    border: 1px solid #444; /* Darker border */
    background-color: #222; /* Dark input background */
    color: #eee; /* Light text color */
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box; /* Include padding and border in width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize, disable horizontal */
    min-height: 120px;
}

/* Input focus styles */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none; /* Remove default browser outline */
    border-color: #aaa; /* Lighter border on focus */
    box-shadow: 0 0 5px rgba(170, 170, 170, 0.3); /* Subtle glow effect */
}

/* Submit button spacing */
#contact-form button[type="submit"] {
    margin-top: 1rem; /* Add space above the button */
    width: 100%; /* Make button full width on small screens */
}

@media (min-width: 768px) {
    #contact-form button[type="submit"] {
        width: auto; /* Revert to auto width on larger screens */
    }
}

/* Responsive Styles */

/* Service Detail Page Specific Styles */
.page-title-section {
    background-color: #000 !important; /* Restore important */
    color: #fff !important; /* Restore important */
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem; 
    /* border: 2px solid red !important; */ /* Keep border removed */
}

.page-title-section h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #fff !important; /* Restore important */
}

.service-detail {
    /* Inherits main section padding/margin */
    margin-bottom: 3rem; /* Space between service sections */
}

.service-detail h2 {
    margin-bottom: 1rem;
    border-bottom: 2px solid #444;
    padding-bottom: 0.5rem;
    color: #eee;
}

/* Style for subheadings within service details */
.service-detail h3 {
    font-size: 1.3rem;
    color: #222; /* Darker color for subheadings */
    margin-top: 2rem; /* Space above subheading */
    margin-bottom: 0.8rem; /* Space below subheading */
}

.service-detail p {
    line-height: 1.7;
    color: #333; /* Change paragraph text color to dark gray */
    margin-bottom: 1.5rem;
}

/* Service Gallery Styles */
.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Responsive grid */
    gap: 1rem; /* Spacing between thumbnails */
    margin-top: 1.5rem;
}

.service-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Make thumbnails square */
    object-fit: cover; /* Cover the area, cropping if needed */
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #444;
}

.service-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* About Us Page Specific Styles */
.about-content {
    /* Inherits main section padding/margin */
}

.about-content p {
    color: #333; /* Ensure dark text color */
    line-height: 1.8; /* Slightly more line spacing */
    margin-bottom: 1.5rem; /* Space between paragraphs */
}

/* Ensure page title section styles apply */
/* .page-title-section { ... } */
/* .page-title-section h1 { ... } */

/*--------------------------------------------------------------
# News Page Specific Styles
--------------------------------------------------------------*/
.news-listing {
    padding: 2rem 0; /* Add some vertical padding */
}

.news-item-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 2rem;
    overflow: hidden; /* Clear floats */
    padding: 1.5rem;
    display: flex; /* Use flexbox for better layout */
    flex-direction: column; /* Stack elements vertically by default */
}

.news-item-image {
    margin-bottom: 1rem; /* Space below image on small screens */
    text-align: center; /* Center image */
}

.news-item-image img {
    max-width: 100%; /* Responsive image */
    max-height: 250px; /* Limit image height */
    height: auto;
    display: block;
    border-radius: 4px;
    margin: 0 auto; /* Center image */
}

.news-item-content {
    flex: 1; /* Allow content to take remaining space */
}

.news-item-title {
    font-size: 1.6rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.news-item-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    display: block;
}

.news-item-body {
    color: #555;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .news-item-card {
        flex-direction: row; /* Side-by-side layout on larger screens */
        align-items: flex-start; /* Align items to the top */
    }
    .news-item-image {
        flex: 0 0 200px; /* Fixed width for image container */
        margin-right: 1.5rem;
        margin-bottom: 0;
        text-align: left; /* Align image left */
    }
    .news-item-image img {
        max-width: 200px;
        max-height: 150px;
         margin: 0; /* Reset margin */
    }
}

/* Message when no news */
.news-listing p[data-lang-key="no_news_message"] {
    text-align: center;
    font-style: italic;
    color: #777;
    padding: 2rem;
}

/*--------------------------------------------------------------
# Homepage Latest News Section
--------------------------------------------------------------*/
.latest-news {
    background-color: #f9f9f9; /* Light background for the section */
    padding: 3rem 1rem; /* Add padding */
}

.latest-news h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.latest-news-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    margin: 0 auto 2rem auto; /* Center the item and add bottom margin */
    padding: 1.5rem;
    max-width: 700px; /* Limit width */
    display: flex;
    flex-direction: column; /* Stack on small screens */
    align-items: center; /* Center items */
    text-align: center; /* Center text */
}

.latest-news-image {
    margin-bottom: 1rem;
    max-width: 100%; /* Ensure image container doesn't overflow */
}

.latest-news-image img {
    max-width: 100%; /* Responsive image */
    max-height: 200px; /* Limit height */
    height: auto;
    border-radius: 4px;
    display: block;
}

.latest-news-content {
    width: 100%; /* Take full width inside the card */
}

.latest-news-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.latest-news-title a {
    text-decoration: none;
    color: #0056b3;
}

.latest-news-title a:hover {
    text-decoration: underline;
}

.latest-news-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.8rem;
    display: block;
}

.latest-news-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.latest-news .cta-button {
    display: block; /* Make button block level */
    width: fit-content; /* Adjust width to content */
    margin: 1rem auto 0 auto; /* Center button */
}

/* Responsive adjustments for homepage news */
@media (min-width: 576px) { /* Small devices (landscape phones, 576px and up) */
    .latest-news-item {
        flex-direction: row; /* Side-by-side layout */
        text-align: left; /* Align text left */
        align-items: flex-start;
    }
    .latest-news-image {
        flex: 0 0 180px; /* Fixed width for image */
        margin-right: 1.5rem;
        margin-bottom: 0;
    }
     .latest-news-image img {
         max-height: 120px;
     }
    .latest-news-content {
        flex: 1;
    }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/

/* --- Add other styles below --- */
