/**
 * LSN Override CSS
 * Overrides Lifeon template default green/teal colors with
 * PT Lautan Niaga Makmur brand colors.
 *
 * Brand palette:
 *   Primary blue  : #1B5E8C  (arch/waves in logo)
 *   Gold/amber    : #D4A843  (ship icon in logo)
 *   Light blue    : #5BB5E8  (accent)
 */

/* ─── CSS Variable Overrides ─────────────────────────────────────────────── */

:root {
    --accent-color:           #1B5E8C; /* brand blue  (was #274543 dark teal)  */
    --accent-secondary-color: #D4A843; /* brand gold  (was #ADB295 olive)       */
    --secondary-color:        #F0F7FF; /* light blue tint (was #FCFFEF)         */
    --bg-color:               #F5F8FC; /* light blue-gray (was #F7F3F1)         */
}

/* ─── Navbar logo sizing ─────────────────────────────────────────────────── */

.navbar-brand img {
    max-height: 50px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn-default,
.btn-default:visited {
    background-color: var(--accent-color);
    border-color:     var(--accent-color);
    color: #ffffff;
}

.btn-default:hover,
.btn-default:focus {
    background-color: #154b70; /* slightly darker brand blue */
    border-color:     #154b70;
    color: #ffffff;
}

.btn-highlighted,
.btn-highlighted:visited {
    background-color: var(--accent-secondary-color);
    border-color:     var(--accent-secondary-color);
    color: #ffffff;
}

.btn-highlighted:hover,
.btn-highlighted:focus {
    background-color: #b8912e; /* slightly darker gold */
    border-color:     #b8912e;
    color: #ffffff;
}

/* ─── Section sub-title ──────────────────────────────────────────────────── */

.section-sub-title,
.section-sub-title * {
    color: var(--accent-secondary-color);
}

/* ─── Count / stat bars ──────────────────────────────────────────────────── */

.count-bar,
.count-bar-inner {
    background-color: var(--accent-color);
}

/* ─── Scroll ticker / news ticker backgrounds ────────────────────────────── */

.ticker-wrap,
.ticker-wrap .ticker,
.news-ticker,
.scroll-ticker {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* ─── Gold / highlight variant classes ───────────────────────────────────── */

.gold,
.text-gold,
.highlight-gold,
.color-gold {
    color: var(--accent-secondary-color) !important;
}

.bg-gold,
.background-gold {
    background-color: var(--accent-secondary-color) !important;
}

/* ─── Footer social link hover ───────────────────────────────────────────── */

footer .social-links a:hover,
footer .social-links a:focus,
.footer-social a:hover,
.footer-social a:focus {
    color:            var(--accent-secondary-color);
    background-color: var(--accent-color);
    border-color:     var(--accent-color);
}

/* ─── Miscellaneous hardcoded green/teal overrides ───────────────────────── */

/* Links — only override in body text, NOT in dark sections or overlaid elements */
.about-us p a,
.about-us-gold p a,
.post-content a,
.section-title p a,
.section-footer-text p a {
    color: var(--accent-color);
}
.about-us p a:hover,
.about-us-gold p a:hover,
.post-content a:hover,
.section-title p a:hover,
.section-footer-text p a:hover {
    color: #154b70;
}

/* Headings that used the old accent color */
h1.accent,
h2.accent,
h3.accent,
h4.accent,
h5.accent,
h6.accent,
.text-accent {
    color: var(--accent-color);
}

/* Dividers / hr that used accent */
hr.accent,
.divider-accent {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
}

/* Active nav items */
.navbar .nav > li.active > a,
.navbar .nav > li > a:hover,
.navbar .nav > li > a:focus {
    color: var(--accent-secondary-color);
}

/* Progress bars */
.progress-bar {
    background-color: var(--accent-color);
}

/* Pagination active */
.pagination > .active > a,
.pagination > .active > span {
    background-color: var(--accent-color);
    border-color:     var(--accent-color);
}

/* ─── Light blue accent utility class ───────────────────────────────────── */

.text-light-blue  { color:            #5BB5E8 !important; }
.bg-light-blue    { background-color: #5BB5E8 !important; }

/* ─── Hero overlay: brand blue instead of green/teal ────────────────────── */

.hero-gold::before {
    background: linear-gradient(270deg, transparent 26.4%, rgba(27, 94, 140, 0.88) 62.54%) !important;
}

/* ─── Dark section backgrounds: brand blue instead of green ─────────────── */

.our-services-gold,
.our-testimonials-gold,
.our-faqs-gold,
.our-approach,
.how-it-work,
.main-footer-gold {
    background-color: #0f3d5c !important;
}

/* ─── Page header overlay ───────────────────────────────────────────────── */

.page-header::before {
    background: linear-gradient(180deg, rgba(27, 94, 140, 0.85) 0%, rgba(15, 61, 92, 0.95) 100%) !important;
}

/* ─── Logo sizing in navbar & footer ────────────────────────────────────── */

.footer-logo-gold img {
    max-height: 50px;
}

/* ─── Product card variant: traditional card layout ─────────────────────── */

.product-card-item {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 20px;
    overflow: hidden;
    height: calc(100% - 30px);
    margin-bottom: 30px;
    transition: all 0.4s ease;
}
.product-card-item:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.product-card-item .product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #e8edf2, #d1d9e3);
}
.product-card-item .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card-item:hover .product-card-image img {
    transform: scale(1.06);
}
.product-card-item .product-card-body {
    padding: 25px;
}
.product-card-item .product-card-body .product-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.product-card-item .product-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.product-card-item .product-card-body h3 a { color: var(--primary-color); }
.product-card-item .product-card-body h3 a:hover { color: var(--accent-color); }
.product-card-item .product-card-body p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}
.product-card-item .product-card-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px 25px 20px;
    border-top: 1px solid #e8edf2;
}
.product-card-footer .btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}
.product-card-footer .btn-detail:hover { color: #154b70; }
.product-card-footer .btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #25D366;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
    margin-left: auto;
}
.product-card-footer .btn-wa:hover { background: #1faa52; color: #fff; }
.product-card-item .badge-featured {
    position: absolute;
    top: 12px; left: 12px;
    background: linear-gradient(135deg, var(--accent-secondary-color), #b8912e);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    z-index: 2;
}

/* ─── Blog sidebar styling ──────────────────────────────────────────────── */

.post-sidebar { position: sticky; top: 120px; }
.sidebar-widget {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}
.widget-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { border-bottom: 1px solid #f1f5f9; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
}
.sidebar-list li a:hover { color: var(--accent-color); }
.sidebar-list li a span { font-size: 13px; color: #94a3b8; }
.sidebar-search-form .search-input { position: relative; }
.sidebar-search-form .search-input .form-control {
    border-radius: 10px;
    padding-right: 45px;
    border: 1px solid #e2e8f0;
}
.sidebar-search-form .search-input button {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 40px; background: none; border: none;
    color: var(--accent-color); cursor: pointer;
}
.recent-post-item {
    display: flex; gap: 12px;
    margin-bottom: 15px; padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}
.recent-post-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.recent-post-image {
    flex-shrink: 0; width: 70px; height: 60px;
    border-radius: 8px; overflow: hidden;
}
.recent-post-image img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-content .post-date { font-size: 12px; color: #94a3b8; }
.recent-post-content h4 { font-size: 14px; font-weight: 600; line-height: 1.4; margin-top: 4px; }
.recent-post-content h4 a { color: var(--primary-color); }
.recent-post-content h4 a:hover { color: var(--accent-color); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a {
    display: inline-block; font-size: 13px;
    color: var(--text-color); background: var(--bg-color);
    padding: 5px 12px; border-radius: 6px;
    text-decoration: none; transition: all 0.3s;
}
.tagcloud a:hover { background: var(--accent-color); color: #fff; }

/* ─── Blog card: stronger overlay for better text readability ────────────── */

.post-item .post-featured-image figure::before {
    background: linear-gradient(180deg, transparent 25%, rgba(15, 61, 92, 0.95) 85%) !important;
}

/* ─── Blog card meta on listing ─────────────────────────────────────────── */

.post-item .post-item-meta { margin-bottom: 8px; }
.post-item .post-item-meta .post-category {
    font-size: 12px; font-weight: 600;
    color: var(--accent-secondary-color);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.post-item .post-item-meta .post-date {
    font-size: 12px; color: rgba(255,255,255,0.7); margin-left: 10px;
}
.post-item .post-item-content h2 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.post-item .post-item-content p {
    font-size: 13px; color: rgba(255,255,255,0.85);
    margin-top: 5px; line-height: 1.5;
}

/* ─── Readmore btn: ensure white in dark sections ───────────────────────── */

.readmore-btn,
.readmore-btn:visited,
.dark-section .readmore-btn,
.service-item-btn-gold .readmore-btn,
.post-item .readmore-btn {
    color: var(--white-color) !important;
}
.readmore-btn:hover {
    color: var(--accent-secondary-color) !important;
}

/* ─── Service gold cards: readmore arrow visible ────────────────────────── */

.service-item-btn-gold .readmore-btn::before,
.post-item-btn .readmore-btn::before {
    filter: brightness(10);
}
