/**
 * Theme Name: HRGMS Terkini
 * Theme URI: https://hargaemas.com.my/terkini/
 * Description: Skeleton visual HRGMS Theme untuk portal berita /terkini. Tanpa page template khas site utama.
 * Version: 1.0.1
 * Author: Shahrul
 * Text Domain: hrgms-terkini
 * License: GPL-2.0-or-later
 */

:root {
    --hrgms-nav-bg: #e95420;
    --hrgms-nav-text: #ffffff;
    --hrgms-body-bg: #ecf2f7;
    --hrgms-card-bg: #ffffff;
    --hrgms-card-text: #2d3748;
    --hrgms-card-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --hrgms-card-border: #e2e8f0;
    --hrgms-footer-bg: #1e2939;
    --hrgms-footer-text: #cccccc;
    --hrgms-btn-primary: #77ac68;
    --hrgms-btn-secondary: #f45928;
    --hrgms-btn-dark: #282828;
    --hrgms-btn-text: #ffffff;
    --hrgms-primary: #e95420;
    --hrgms-primary-dark: #d44810;
    --hrgms-primary-light: #f45928;
    --hrgms-secondary: #2d3748;
    --hrgms-success: #77ac68;
    --hrgms-danger: #e74c3c;
    --hrgms-white: #ffffff;
    --hrgms-light: #ecf2f7;
    --hrgms-gray: #6c757d;
    --hrgms-dark: #1e2939;
    --hrgms-font-primary: "Poppins", system-ui, sans-serif;
    --hrgms-section-padding: 48px 0;
    --hrgms-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --hrgms-shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --hrgms-radius: 8px;
    --hrgms-radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--hrgms-font-primary);
    color: var(--hrgms-card-text);
    background-color: var(--hrgms-body-bg);
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--hrgms-primary);
    text-decoration: none;
}

a:hover {
    color: var(--hrgms-primary-dark);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

.hrgms-header {
    background: var(--hrgms-nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hrgms-navbar {
    padding: 10px 0;
}

.hrgms-logo,
.hrgms-logo:hover {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--hrgms-white) !important;
    letter-spacing: 0.5px;
}

.hrgms-logo img {
    height: 40px;
    width: auto;
}

.hrgms-nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: var(--hrgms-radius);
}

.hrgms-nav-link:hover,
.hrgms-nav-link.active {
    color: var(--hrgms-white) !important;
    background: rgba(255, 255, 255, 0.15);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    min-width: 44px;
    min-height: 44px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hrgms-hero {
    padding: 36px 0;
    background: #1e2939;
}

.hrgms-hero-simple {
    background: #1e3a5f;
}

.hrgms-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hrgms-white);
    margin-bottom: 0.75rem;
}

.hrgms-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.hrgms-products,
.hrgms-section {
    padding: var(--hrgms-section-padding);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--hrgms-secondary);
    margin-bottom: 1.5rem;
}

.product-card {
    background: var(--hrgms-card-bg);
    border: 1px solid var(--hrgms-card-border);
    border-radius: var(--hrgms-radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--hrgms-card-shadow);
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--hrgms-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--hrgms-danger);
    color: var(--hrgms-white);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.product-body {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-title a {
    color: inherit;
}

.product-meta {
    font-size: 0.8rem;
    color: var(--hrgms-gray);
    margin-bottom: 10px;
}

.btn-product {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--hrgms-btn-secondary);
    color: var(--hrgms-btn-secondary);
    background: transparent;
    border-radius: var(--hrgms-radius);
    display: inline-block;
    text-align: center;
}

.btn-product:hover {
    background: var(--hrgms-btn-secondary);
    color: var(--hrgms-btn-text);
}

.post-content {
    background: var(--hrgms-card-bg);
    border: 1px solid var(--hrgms-card-border);
    border-radius: var(--hrgms-radius-lg);
    box-shadow: var(--hrgms-card-shadow);
    padding: 1.5rem;
}

.post-content h2,
.post-content h3 {
    margin-top: 1.5rem;
}

.post-content img {
    border-radius: var(--hrgms-radius);
}

.article-featured {
    margin-bottom: 1.25rem;
}

.article-featured img {
    width: 100%;
    border-radius: var(--hrgms-radius-lg);
}

.hrgms-footer {
    background: var(--hrgms-footer-bg);
    color: var(--hrgms-footer-text);
    padding: 50px 0 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hrgms-btn-secondary);
    margin-bottom: 15px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hrgms-white);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--hrgms-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}

.pagination .page-link {
    color: var(--hrgms-primary);
}

.pagination .active .page-link {
    background: var(--hrgms-primary);
    border-color: var(--hrgms-primary);
}

.hrgms-sidebar {
    min-width: 0;
}

.hrgms-widget {
    background: var(--hrgms-card-bg);
    border: 1px solid var(--hrgms-card-border);
    border-radius: var(--hrgms-radius-lg);
    box-shadow: var(--hrgms-card-shadow);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.hrgms-widget .widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--hrgms-secondary);
}

.hrgms-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hrgms-widget li {
    margin-bottom: 0.4rem;
}

.hrgms-widget img,
.hrgms-widget iframe,
.hrgms-widget ins {
    max-width: 100%;
}

.hrgms-cta-buttons {
    display: grid;
    gap: 8px;
}

.hrgms-cta-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: var(--hrgms-radius);
    font-weight: 600;
    font-size: 0.92rem;
    text-align: center;
    line-height: 1.3;
}

.hrgms-cta-appraisal {
    background: #e74c3c;
    color: #fff;
}

.hrgms-cta-appraisal:hover {
    background: #c0392b;
    color: #fff;
}

.hrgms-cta-service {
    background: #f0ad4e;
    color: #212529;
}

.hrgms-cta-service:hover {
    background: #ec971f;
    color: #212529;
}

.hrgms-cta-pajak {
    background: #282828;
    color: #fff;
}

.hrgms-cta-pajak:hover {
    background: #111;
    color: #fff;
}

.hrgms-daily-list {
    margin: 0;
    padding-left: 1.15rem;
}

.hrgms-daily-list li {
    margin-bottom: 0.45rem;
}

@media (min-width: 992px) {
    .hrgms-sidebar {
        position: sticky;
        top: 76px;
        align-self: flex-start;
    }
}

@media (max-width: 991px) {
    .hrgms-hero-title {
        font-size: 1.6rem;
    }

    .navbar-collapse {
        padding-top: 12px;
    }

    .hrgms-nav-link {
        padding: 12px 8px !important;
    }
}

@media (max-width: 575px) {
    .hrgms-hero {
        padding: 28px 0;
    }

    .product-image {
        height: 200px;
    }

    .post-content {
        padding: 1rem;
    }
}
