/* BACKGROUND */
body {
    background: #f5f6f7;
}
/* Headline */
.headline-section {
    height: 350px;
    background: #f5f5f5; /* optional */
}

.banner-hero {
    height: 350px;
    width: 100%;
    position: relative;
}

.feature-hero {
    height: 350px; /* samakan tinggi */
	background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
}

.hero-image-box {
    width: 90%;
    height: 300px; /* control height here */
    overflow: hidden;
    border-radius: 12px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop nicely */
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/*.carousel img {
    max-height: 350px;
    object-fit: cover;
}*/

.banner-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
}

.box {
    height: 300px;
    width: 100%;
    max-width: 500px;
    /*background: #007bff;*/
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
}


.card-ai {
    display: flex;
    flex-direction: column;
    height: 260px; /* adjust as needed */
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-ai:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

/* ?? IMAGE = 2/3 */
.card-ai-img {
    flex: 3;
    overflow: hidden;
}

.card-ai-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* IMPORTANT */
}

/* ?? CONTENT = 1/3 */
.card-ai-body {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Optional: limit title */
.card-title {
    font-size: 16px;
    margin-bottom: 5px;
	text-decoration: none;
	font-weight: 600;
}

/* Optional: clamp text */
.card-text {
    font-size: 12px;
    color: #666;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-ai-img {
    position: relative;
}

.card-ai-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

.practical-card {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.practical-img {
    width: 100px;
    height: 80px;
    overflow: hidden;
}

.practical-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.practical-content h6 {
    font-size: 14px;
    margin-bottom: 5px;
}

.practical-content p {
    font-size: 12px;
    color: #666;
}

.tips-wrapper {
    overflow-x: auto;
	padding: 0 10px;
}

.tips-scroll {
    display: flex;
    gap: 25px;
}

/* LINK TITLE */
.tip-overlay a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

/* hover effect */
.tip-overlay a:hover {
    text-decoration: underline;
}

/* CARD */
.tip-card {
    min-width: 150px;
    height: 230px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* IMAGE FIX 150px */
.tip-card img {
	width: 100%;          /* ?? full lebar card */
    height: 125px;        /* ?? fix tinggi */
    object-fit: contain;    /* ?? crop rapi */
    transition: transform 0.3s ease;
    border-radius: 10px;
	position: relative;
    z-index: 2;
}

.tip-card:hover img {
    transform: scale(1.2);
}

/* CONTENT */
.tip-content {
    padding: 10px;
	/*border: 1px solid blue;
    /*height: 80px; /* 🔥 sisa space */
	width:150px;
}

/* TITLE */
.tip-title {
    color: #333;
	
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2; /* 🔥 max 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
	min-height: calc(1.4em * 2);
}

/* MAIN ARTICLE */
.article-card {
    /*background: #fafafa;*/
    padding: 10px;
    border-radius: 8px;
	font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 18px;
    line-height: 2;
    color: #2d2d2d;
	
}

/* TITLE */
.article-title {
	font-weight: 400;
	/*font-size: 50px;*/
	font-size: 3rem;
	/*line-height: 1;*/
	letter-spacing: 0em;
	text-transform: none;
	padding:40px 0 0 50px;
}

/* META */
.article-meta {
    font-size: 13px;
    color: #888;
    margin: 40px 0 20px 0;
	padding-left:50px;
}

/* IMAGE */
.article-image {
    width: 100%;
    /*border-radius: 8px;*/
    margin: 15px 0;
}

/* CONTENT */
.content-area {
	padding-left:50px;
	/*font-size: 16px;
    line-height: 1.9;*/
    margin-bottom: 20px;
    color: #444;
}

.content-area p {
    margin-bottom: 15px;
}

.content-area ul {
    padding-left: 20px;
}

.content-area li {
    margin-bottom: 5px;
}

.gadget-box {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: 0.3s;
}

.gadget-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.gadget-box-img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.tren-box {
    background: #fff;
    /*border-radius: 10px;
    border: 1px solid #e5e7eb;*/
    transition: 0.3s;
}

.tren-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.tren-img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    /*border-radius: 8px;*/
}

.artikel-box {
    background: #fff;
    /*border-radius: 10px;
    border: 1px solid #e5e7eb;*/
    transition: 0.3s;
}

.artikel-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.artikel-img {
    width: 200px;
    height:120px;
    object-fit: cover;
    /*border-radius: 8px;*/
}

.gadget-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.gadget-img {
    height: 150px;
    overflow: hidden;
}

.gadget-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gadget-content h5 {
    font-size: 16px;
    margin-bottom: 5px;
}

.gadget-content p {
    font-size: 14px;
    margin-bottom: 5px;
}

/* SIDEBAR */
.sidebar-box {
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
	margin-top:20px;
}

/* SIDEBAR ITEMS */
/* SIDEBAR CARD */
.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* TABS */
.sidebar-tabs .nav-link {
    border-radius: 8px;
    font-weight: 600;
    color: #6b7280;
    transition: 0.3s;
}

.sidebar-tabs .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

/* ITEM */
.sidebar-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.3s;
}

.sidebar-item:last-child {
    border-bottom: none;
}

/* HOVER EFFECT */
.sidebar-item:hover {
    transform: translateX(4px);
}

/* IMAGE */
.sidebar-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

/* TITLE */
.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.sidebar-title:hover {
    color: #0d6efd;
}
.sidebar-stiky {
	position: sticky;
	top: 20px; 
}

/* RELATED */
.related-section {
	padding-left:50px;
	color: #3498eb;
}
.related-list {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.related-list a {
    font-weight: 500;
    color: #3498eb;
	text-decoration: none;
}

.related-list:hover {
    background: #fafafa;
}

hr {
    border-top: 1px solid #eee;
}

.table-fixed {
    table-layout: fixed;
    width: 100%;
}

.table-fixed th,
.table-fixed td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table-fixed td {
    word-break: break-word;
}

.gradient-heading {
    /* Membuat background hanya sepanjang teks */
    display: inline-block; 
    
    /* Warna: Biru Tua (#00008B) ke Biru Muda (#ADD8E6) */
    background: linear-gradient(to right, #0d6efd, #0dcaf0);
    
    /* Styling tambahan agar teks terbaca jelas */
    color: white;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;   /* Jarak kiri sedikit saja */
    padding-right: 40px;
    border-radius: 4px;
    font-family: sans-serif;
  }

/* STICKY SIDEBAR */
@media (min-width: 992px) {
    .col-lg-4 {
        position: sticky;
        top: 20px;
        height: fit-content;
    }
	
}
@media (max-width: 768px) {
    .article-title {
    font-size: 24px;
	padding: 0 0 !important;
    }
    .article-meta {
    font-size: 13px;
    color: #888;
    margin: 20px 0 20px 0;
	padding-left:50px;
	}
    .content-area {
        font-size: 16px;
		padding: 30px 0;
    }
	.headline-section 
	{
        height: auto;
    }
	 .feature-hero {
        height: auto;
        padding: 30px 0;
    }
	.feature-hero .row {
        height: auto;
    }

    .feature-hero .col-md-6 {
        margin-bottom: 20px;
    }
	
	.feature-hero .col-md-6:last-child {
        align-items: center !important;
        text-align: center;
        /*padding-left: 0 !important;*/
    }
	 .feature-hero img {
        max-height: 200px;
        object-fit: cover;
    }
}



