/* HERO */
.karo-hero {
    background: linear-gradient(135deg, #7a0c1a, #b11226);
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.karo-badge {
    background: #f2b705;
    color: #7a0c1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.karo-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
}

.karo-hero-title span {
    color: #f2b705;
}

.karo-hero-desc {
    margin: 20px 0;
    font-size: 18px;
    opacity: 0.9;
}

.karo-btn-primary {
    background: #f2b705;
    color: #7a0c1a;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
}

.karo-btn-primary:hover {
    background: #fff;
    color: #7a0c1a;
}

.karo-hero-img {
    max-height: 350px;
}

/* SECTION TITLE */
.karo-section-title {
    font-weight: 800;
    color: #b11226;
    border-left: 5px solid #b11226;
    padding-left: 15px;
}

/* CATEGORY */
.karo-category-link {
    text-decoration: none;
    color: #333;
    padding: 6px 10px;
    display: block;
    border-radius: 8px;
    transition: 0.3s;
}

.karo-category-link:hover {
    background: #fbeaec;
    color: #b11226;
    padding-left: 15px;
}

/* SLIDER */
.karo-slider-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.karo-slider-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.karo-slider-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

/* NEWS CARD */
.karo-news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.karo-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(177,18,38,0.2);
}

.karo-news-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.karo-news-body {
    padding: 15px;
}

.karo-news-body h5 a {
    text-decoration: none;
    color: #111;
    font-weight: 700;
}

.karo-news-body h5 a:hover {
    color: #b11226;
}


/* ================= HEADER ================= */
.karo-navbar {
    background: #b11226;
    padding: 12px 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.karo-brand {
    font-size: 22px;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: 1px;
}

.karo-brand span {
    color: #f2b705;
    font-weight: 600;
}

.karo-navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.3s;
}

.karo-navbar .nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: #f2b705 !important;
}

.karo-navbar .nav-link.active {
    background: #f2b705;
    color: #7a0c1a !important;
    font-weight: 700;
}

/* ================= HERO SLIDER ================= */
.karo-hero-slider {
    width: 100%;
    overflow: hidden;
}

.hero-slide-item {
    position: relative;
    height: 520px;
}

.hero-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(122,12,26,0.85), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #fff;
}

.hero-slide-overlay h2 {
    font-size: 42px;
    font-weight: 800;
    max-width: 600px;
    line-height: 1.2;
}

.hero-btn {
    margin-top: 20px;
    background: #f2b705;
    color: #7a0c1a;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    width: fit-content;
    text-decoration: none;
}

.hero-btn:hover {
    background: #fff;
    color: #7a0c1a;
}

/* ================= CATEGORY ================= */
.karo-category-link {
    text-decoration: none;
    color: #333;
    padding: 6px 10px;
    display: block;
    border-radius: 8px;
    transition: 0.3s;
}

.karo-category-link:hover {
    background: #fbeaec;
    color: #b11226;
    padding-left: 15px;
}

/* ================= SECTION TITLE ================= */
.karo-section-title {
    font-weight: 800;
    color: #b11226;
    border-left: 5px solid #b11226;
    padding-left: 15px;
}

/* ================= NEWS CARD ================= */
.karo-news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.karo-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(177,18,38,0.2);
}

.karo-news-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.karo-news-body {
    padding: 15px;
}

.karo-news-body h5 a {
    text-decoration: none;
    color: #111;
    font-weight: 700;
}

.karo-news-body h5 a:hover {
    color: #b11226;
}

/* ================= FIX SIDEBAR ================= */
.col-lg-3, .col-md-3, .container-fluid, .row {
    overflow: visible !important;
}

body {
    padding-top: 80px;
}


/* ================= HERO IMAGE OVERLAY (SAMA SEPERTI CARD) ================= */

.karo-hero-image {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 0;
}

.karo-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.karo-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #fff;
}

.karo-hero-overlay h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
}

.karo-hero-overlay h1 span {
    color: #f2b705;
}

.karo-hero-overlay p {
    max-width: 500px;
    opacity: 0.9;
    margin: 15px 0 25px;
}

.karo-hero-badge {
    background: #f2b705;
    color: #7a0c1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 15px;
}

.karo-hero-btn {
    background: #b11226;
    color: #fff;
    padding: 12px 26px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    width: fit-content;
}

.karo-hero-btn:hover {
    background: #7a0c1a;
}


/* ================= FIX SIDEBAR KANAN TOTAL ================= */

/* Pastikan tidak ada parent yang memotong tinggi */
.container-fluid,
.container,
.row,
.col-lg-2,
.col-lg-7,
.col-lg-3 {
    height: auto !important;
    overflow: visible !important;
}

/* Khusus kolom sidebar */
.col-lg-3 {
    position: relative;
    padding-bottom: 80px; /* biar aman dari footer */
}

/* Card di sidebar */
.col-lg-3 .card {
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

/* Image iklan */
.col-lg-3 img.img-fluid {
    width: 100%;
    display: block;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Youtube iframe */
.col-lg-3 iframe {
    width: 100% !important;
    border-radius: 10px;
    display: block;
}

/* List item rapi */
.col-lg-3 ul li {
    margin-bottom: 10px;
}

/* Hindari bootstrap input-group pecah */
.col-lg-3 .input-group {
    flex-wrap: nowrap;
}

/* ================= KARO SIDEBAR ================= */

.karo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 60px;
}

/* Widget Box */
.karo-widget {
    background: #fff;
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Title */
.karo-widget-title {
    font-weight: 800;
    font-size: 16px;
    color: #b11226;
    margin-bottom: 12px;
    border-left: 4px solid #b11226;
    padding-left: 10px;
}

/* Search */
.karo-input {
    border-radius: 20px 0 0 20px;
    border: 1px solid #ddd;
}

.karo-btn-search {
    background: #b11226;
    color: #fff;
    border-radius: 0 20px 20px 0;
    padding: 0 15px;
    border: none;
}

.karo-btn-search:hover {
    background: #7a0c1a;
}

/* List with image */
.karo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.karo-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.karo-list img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.karo-list a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.karo-list a:hover {
    color: #b11226;
}

/* Text list */
.karo-list-text {
    list-style: none;
    padding: 0;
    margin: 0;
}

.karo-list-text li {
    margin-bottom: 10px;
}

.karo-list-text a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.karo-list-text a:hover {
    color: #b11226;
}

/* Ads */
.karo-ads {
    width: 100%;
    border-radius: 12px;
}

/* Video */
.karo-video iframe {
    border-radius: 12px;
    width: 100%;
}


/* ================= ARTICLE DETAIL PAGE ================= */

.karo-article-card {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.karo-article-meta {
    margin-bottom: 10px;
}

.karo-article-title {
    font-size: 32px;
    font-weight: 800;
    margin: 10px 0 15px;
    color: #111;
}

.karo-article-info {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.karo-share {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 20px;
}

.karo-share a {
    color: #b11226;
    text-decoration: none;
    font-weight: 600;
}

.karo-views {
    margin-left: auto;
    color: #333;
    font-weight: 600;
}

.karo-article-image img {
    width: 100%;
    border-radius: 16px;
    margin: 20px 0;
}

.karo-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* ================= COMMENTS ================= */

.karo-comment-section {
    margin-top: 40px;
}

.karo-comment-section h4 {
    font-weight: 800;
    margin-bottom: 20px;
    color: #b11226;
}

.karo-comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.karo-comment-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.karo-comment-item span {
    display: block;
    font-size: 12px;
    color: #777;
}

.karo-comment-item p {
    margin-top: 5px;
}

/* ================= COMMENT FORM ================= */

.karo-comment-form {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    margin-top: 30px;
}

.karo-comment-form h4 {
    font-weight: 800;
    margin-bottom: 20px;
    color: #b11226;
}

.karo-input {
    border-radius: 10px;
    border: 1px solid #ddd;
}

.karo-input:focus {
    border-color: #b11226;
    box-shadow: none;
}


/* ================= KARO FOOTER ================= */

.karo-footer {
    background: linear-gradient(rgba(122,12,26,0.95), rgba(122,12,26,0.95)),
                url('../images/karo-pattern.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    margin-top: 80px;
}

.karo-footer-logo {
    height: 65px;
    margin-bottom: 10px;
}

.karo-footer-brand h4 {
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 10px;
}

.karo-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.9;
    margin-top: 10px;
}

.karo-footer-title {
    font-weight: 800;
    margin-bottom: 15px;
    color: #f2b705;
}

.karo-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.karo-footer-list li {
    margin-bottom: 10px;
    font-size: 14px;
}

.karo-footer-social {
    margin-top: 15px;
}

.karo-footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: #f2b705;
    color: #7a0c1a;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.karo-footer-social a:hover {
    background: #fff;
    color: #7a0c1a;
}

/* Apps */
.karo-footer-apps img {
    height: 45px;
    margin-right: 10px;
    margin-top: 10px;
}

/* Bottom */
.karo-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
}


/* ================= SEARCH PAGE ================= */

.karo-section-title {
    font-weight: 800;
    color: #b11226;
    border-left: 5px solid #b11226;
    padding-left: 12px;
}

/* News Card */
.karo-news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: 0.3s;
    height: 100%;
}

.karo-news-card:hover {
    transform: translateY(-4px);
}

.karo-news-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.karo-news-body {
    padding: 15px;
}

.karo-news-body h5 {
    margin: 10px 0;
    font-weight: 700;
}

.karo-news-body h5 a {
    text-decoration: none;
    color: #111;
}

.karo-news-body h5 a:hover {
    color: #b11226;
}

.karo-excerpt {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

.karo-readmore {
    text-decoration: none;
    font-weight: 700;
    color: #b11226;
}

.karo-readmore:hover {
    text-decoration: underline;
}

/* Empty */
.karo-empty {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}


