/**
 * Lensa Teritorial — dari resources/views/themes/LensaTeritorial/example.html
 */
:root {
    --dark-green: #1a2a1a;
    --mid-green: #253525;
    --olive: #4a5a2a;
    --gold: #c8a84b;
    --gold-light: #e0c06a;
    --red: #cc2222;
    --white: #f5f2ec;
    --text-muted: #aaa;
    --card-bg: #1e2e1e;
    --border: rgba(200, 168, 75, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.lt-portal {
    background-color: var(--dark-green);
    color: var(--white);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
}

.lt-portal a {
    text-decoration: none;
    color: inherit;
}

.lt-portal a:hover {
    color: var(--gold);
}

.lt-portal .lt-article-body img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* ─── HEADER ─── */
.lt-portal header {
    background: var(--mid-green);
    border-bottom: 2px solid var(--gold);
    padding: 14px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 72px;
    height: 72px;
    background: var(--mid-green);
    border: 2px solid var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--gold);
    flex-shrink: 0;
}

.lt-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: var(--mid-green);
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-text h1 span {
    color: var(--white);
}

.logo-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 3px;
    letter-spacing: 0.3px;
}

/* ─── NAVBAR + SLIDE ─── */
.lt-portal nav.main-nav {
    background: var(--olive);
    border-bottom: 1px solid var(--border);
}

.lt-nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.lt-nav-scroll-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.lt-nav-slide {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 4px 32px;
}

.lt-nav-slide::-webkit-scrollbar {
    display: none;
}

.lt-nav-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    font-size: 16px;
    color: var(--gold);
}

.lt-nav-arrow.visible {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.lt-nav-arrow-left {
    left: 0;
    background: linear-gradient(to right, var(--olive) 50%, transparent 100%);
}

.lt-nav-arrow-right {
    right: 0;
    background: linear-gradient(to left, var(--olive) 50%, transparent 100%);
}

.lt-nav-link-slide {
    color: var(--white);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    background: transparent;
}

.lt-nav-link-slide:hover,
.lt-nav-link-slide.active {
    background: var(--gold);
    color: var(--dark-green);
}

.lt-nav-link-slide.active {
    font-weight: 700;
}

.nav-search-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    padding: 14px 16px;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

.nav-search-btn:hover {
    color: var(--gold);
}

/* ─── BREADCRUMB ─── */
.lt-breadcrumb {
    background: var(--mid-green);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.lt-breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.lt-breadcrumb .breadcrumb-item a:hover {
    color: var(--gold);
}

.lt-breadcrumb .breadcrumb-item.active {
    color: var(--gold);
    font-size: 0.85rem;
}

.lt-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--border);
}

/* ─── SECTION ─── */
.section-title {
    display: inline-block;
    background: var(--gold);
    color: var(--dark-green);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    margin-bottom: 16px;
}

/* ─── HERO CAROUSEL ─── */
.hero-section {
    background: #111;
}

#heroCarousel .carousel-item {
    height: 360px;
}

#heroCarousel .carousel-item .carousel-img-wrap {
    height: 100%;
}

#heroCarousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 40px 20px 18px;
}

.carousel-caption-custom h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.carousel-caption-custom p {
    font-size: 0.85rem;
    color: #ccc;
    margin: 0;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(200, 168, 75, 0.7);
    border-radius: 0;
    opacity: 1;
}

#heroCarousel .carousel-control-prev {
    left: 0;
}

#heroCarousel .carousel-control-next {
    right: 0;
}

/* ─── HERO LIST ─── */
.hero-list-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.hero-list-item:last-child {
    border-bottom: none;
}

.hero-list-item img {
    width: 90px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.hero-list-item h6 {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.hero-list-item .time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ─── SIDEBAR ─── */
.sidebar-box {
    background: var(--mid-green);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 16px;
}

.sidebar-box h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.sidebar-map {
    height: 120px;
    background: #2a3a2a;
    overflow: hidden;
}

.sidebar-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.4) hue-rotate(60deg);
    display: block;
}

/* ─── CARDS ─── */
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    height: 100%;
    transition: border-color 0.25s;
    overflow: hidden;
}

.news-card:hover {
    border-color: var(--gold);
}

.news-card .card-img {
    height: 180px;
    overflow: hidden;
}

.news-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.news-card:hover .card-img img {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 14px;
}

.news-card h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.news-card .time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.badge-category {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    margin-bottom: 8px;
}

/* ─── FEATURED ─── */
.main-featured {
    position: relative;
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.main-featured.lt-h-220 {
    height: 220px;
}

.main-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.main-featured:hover img {
    transform: scale(1.04);
}

.main-featured-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    padding: 30px 16px 14px;
}

.main-featured-caption h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.main-featured-caption .time {
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 4px;
}

/* ─── MINI NEWS ─── */
.mini-news {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: border-color 0.2s;
}

.mini-news:hover {
    border-color: var(--gold);
}

.mini-news img {
    width: 80px;
    height: 55px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.mini-news h6 {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.mini-news .time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ─── VIDEO ─── */
.video-thumb {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: #111;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.play-btn i {
    font-size: 2.2rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.carousel-ctrl-btn {
    width: 30px;
    height: 30px;
    background: var(--gold);
    color: var(--dark-green);
    border: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-ctrl-btn:hover {
    background: var(--gold-light);
}

/* ─── FOOTER ─── */
footer.footer-top {
    background: var(--mid-green);
    border-top: 2px solid var(--gold);
    padding: 14px 0;
}

footer.footer-top a {
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 28px;
}

footer.footer-top a:hover {
    color: var(--gold);
}

.lt-portal .social-icons a {
    color: var(--white);
    font-size: 1rem;
    margin-left: 12px;
    transition: color 0.2s;
}

.lt-portal .social-icons a:hover {
    color: var(--gold);
}

.section-wrap {
    padding: 24px 0;
}

.row-gap {
    row-gap: 16px;
}

.img-placeholder {
    background: #2d3d2d;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a7a5a;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── ARTICLE PAGE ─── */
.lt-article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.lt-article-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.lt-article-meta i {
    margin-right: 6px;
    color: var(--gold);
}

.lt-article-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    display: block;
}

.lt-article-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--white);
}

.lt-cat-header {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.lt-cat-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--gold);
}

.lt-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.lt-empty h4 {
    color: var(--gold);
    margin-bottom: 8px;
}

/* ─── SEARCH OVERLAY ─── */
.lt-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 42, 26, 0.96);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lt-search-overlay.active {
    display: flex;
}

.lt-search-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

.lt-search-form {
    width: 100%;
    max-width: 520px;
    padding: 0 24px;
}

.lt-search-input {
    width: 100%;
    background: var(--card-bg);
    border: 2px solid var(--gold);
    color: var(--white);
    font-size: 1.1rem;
    padding: 14px 18px;
    outline: none;
}

.lt-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--dark-green);
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    z-index: 999;
    border: none;
}

.lt-scroll-top.visible {
    display: flex;
}

.lt-scroll-top:hover {
    background: var(--gold-light);
    color: var(--dark-green);
}

@media (max-width: 767px) {
    .logo-text h1 {
        font-size: 1.5rem;
    }

    .lt-nav-link-slide {
        font-size: 0.72rem;
        padding: 12px 10px;
    }

    #heroCarousel .carousel-item {
        height: 280px;
    }

    .carousel-caption-custom h2 {
        font-size: 1.15rem;
    }
}
