@import url("tsi-editor-content-v1.css");
*, *::before, *::after { box-sizing: border-box; }
:root { --primary-color: #1a1a1a; --secondary-color: #f4f4f4; --accent-color: #0056b3; --text-color: #333; }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; color: var(--text-color); line-height: 1.6; scroll-behavior: smooth; overflow-x: hidden; }
header { background-color: #fff; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); z-index: 1000; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { max-height: 50px; width: auto; }
nav { display: flex; gap: 30px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--primary-color); font-weight: 600; transition: color 0.3s ease; }
nav a:hover { color: var(--accent-color); }
section { padding: 80px 5%; max-width: 100%; margin: 0 auto; width: 100%; }
.bg-gray { background: linear-gradient(to right, #d5d5d5, #f4f4f4); width: 100%; }
h1, h2, h3 { color: var(--primary-color); margin-bottom: 20px; line-height: 1.3; }
h1 { font-size: 3em; margin-bottom: 30px; } h2 { font-size: 2.2em; } p { margin-bottom: 15px; }
.text-center { text-align: center; } 
.subtitle { max-width: 800px; margin: 0 auto 40px auto; }

#home { background: linear-gradient(rgba(248, 249, 250, 0.4), rgba(248, 249, 250, 0.95)), url('../../img/hero-bg.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; padding-top: 120px; padding-bottom: 120px; }
#produk { background: linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.2)), url('../../img/produk-bg.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; }
#layanan { background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.7)), none; background-size: cover; background-position: center; background-repeat: no-repeat; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.card { background: #fff; padding: 30px; border: 1px solid #eaeaea; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); }
.card p { text-align: left; }
.card-img { width: 100%; height: 180px; object-fit: cover; border-radius: 4px; margin-bottom: 15px; }
.card-link { color: var(--accent-color); font-weight: bold; text-decoration: none; display: inline-block; margin-top: 10px; }
.btn { display: inline-block; background: var(--primary-color); color: #fff; padding: 12px 24px; text-decoration: none; border-radius: 4px; font-weight: bold; margin-top: 20px; border: none; cursor: pointer; text-align: center; transition: opacity 0.3s; }
.btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); margin-left: 10px; }
.btn:hover { opacity: 0.9; }
input, select, textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
textarea { resize: vertical; min-height: 120px; }
footer { background: var(--primary-color); color: #fff; text-align: center; padding: 30px 5%; }
.carousel-section { padding: 60px 0; background: #fff; } .carousel-container { width: 100%; height: 60px; overflow: hidden; position: relative; }
.carousel-container::before, .carousel-container::after { content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; }
.carousel-container::before { left: 0; background: linear-gradient(to right, white 0%, transparent 100%); }
.carousel-container::after { right: 0; background: linear-gradient(to left, white 0%, transparent 100%); }
.carousel-track { display: flex; align-items: center; height: 100%; gap: 40px; width: max-content; animation: scroll-left 25s linear infinite; }
.carousel-item { width: 120px; height: 60px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; }
.carousel-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 20px)); } }
@media (max-width: 768px) { header { flex-direction: column; padding: 20px; text-align: center; } nav { margin-top: 20px; justify-content: center; gap: 15px; } .grid-2 { grid-template-columns: 1fr; } .btn { display: block; width: 100%; margin-left: 0; } .btn-outline { margin-top: 15px; } }
.rich-text-output p { margin-top: 0; }
.field-hidden { position: absolute !important; width:1px; height:1px; overflow:hidden; left:-9999px; }
.contact-feedback { padding:12px; background:#eaf6eb; color:#14522a; border-radius:4px; }

/* TSI_BG_LAYANAN_V1_START -- hanya bagian Solusi Dan Layanan Terpadu */
#layanan {
    background-color: #f8f9fa;
    background-image:
        linear-gradient(90deg, rgba(248,249,250,0.55) 0%, rgba(248,249,250,0.55) 45%, rgba(248,249,250,0.72) 100%),
        url('../../img/down-bg.jpg');
    background-size: cover;
    background-position: center 48%;
    background-repeat: no-repeat;
}
@media (max-width: 768px) {
    #layanan {
        background-image:
            linear-gradient(rgba(248,249,250,0.73), rgba(248,249,250,0.86)),
            url('../../img/down-bg.jpg');
        background-position: 34% center;
    }
}
/* TSI_BG_LAYANAN_V1_END */
/* TSI HEADER COMPACT V1 START */

body > header {
    padding: 8px 4% !important;
    min-height: 0 !important;
    height: auto !important;
    align-items: center !important;
}

body > header .logo-img {
    max-height: 46px !important;
    width: auto !important;
    height: auto !important;
}

body > header nav {
    align-items: center !important;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    body > header {
        padding: 8px 14px !important;
    }

    body > header .logo-img {
        max-height: 38px !important;
    }

    body > header nav {
        margin-top: 6px !important;
        gap: 14px !important;
    }
}

/* TSI HEADER COMPACT V1 END */

/* TSI KONTAK COMPACT START */

#kontak {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

@media (max-width: 768px) {
    #kontak {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
}

/* TSI KONTAK COMPACT END */


/* TSI TECHGEN ONLY START */
#produk .card .card-img[src*="techmed"],
#produk .card .card-img[src*="tecmed"],
#produk .card .card-img[alt*="Teknologi Medis"] {
    object-fit: contain !important;
    object-position: center !important;
    background: #ffffff;
}
/* TSI TECHGEN ONLY END */
