/*
Theme Name: HOGN Theme
Theme URI: https://blog.hogntransjaya.com
Author: Jose
Version: 1.0
Text Domain: hogn
*/

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0056A6;
    --primary-dark: #003D7A;
    --accent: #F5A623;
    --text: #333333;
    --text-light: #666666;
    --bg: #F5F5F5;
    --white: #FFFFFF;
    --border: #E0E0E0;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text);
}

.dropdown-menu a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* === LANGUAGE DROPDOWN SWITCHER === */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    padding: 6px 0;
    min-width: 110px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 150;
    border: 1px solid var(--border);
}

.lang-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li {
    padding: 0;
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    gap: 8px;
    transition: all 0.2s;
}

.lang-dropdown-menu a:hover {
    background: var(--bg);
    color: var(--primary);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 85px;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--white);
    color: var(--text);
}

/* Flag Icons */
.flag-icon {
    display: inline-block;
    width: 20px;
    height: 14px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.flag-id {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><rect width="3" height="1" fill="%23D02F34"/><rect y="1" width="3" height="1" fill="%23FFFFFF"/></svg>');
}

.flag-en {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 30"><rect width="50" height="30" fill="%23012169"/><path d="M0 0 L50 30 M50 0 L0 30" stroke="%23FFFFFF" stroke-width="6"/><path d="M0 0 L50 30 M50 0 L0 30" stroke="%23C8102E" stroke-width="4"/><path d="M25 0 V30 M0 15 H50" stroke="%23FFFFFF" stroke-width="10"/><path d="M25 0 V30 M0 15 H50" stroke="%23C8102E" stroke-width="6"/></svg>');
}

.flag-cn,
.flag-zh {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20" fill="%23DE2910"><rect width="30" height="20"/><path d="M 5,5 L 4,8 L 7,6 L 3,6 L 6,8 Z M 10,2 L 11,4 L 9,4 L 11,3 L 9,2 Z M 12,4 L 13,6 L 11,6 L 13,5 L 11,4 Z M 12,7 L 13,9 L 11,9 L 13,8 L 11,7 Z M 10,9 L 11,11 L 9,11 L 11,10 L 9,9 Z" fill="%23FFDE00"/></svg>');
}

/* === HERO SECTION === */
.hero-section {
    background: var(--primary);
    padding: 60px;
    margin-bottom: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 120px;
    background: url('assets/images/logo.png') no-repeat center;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
    filter: grayscale(100%) brightness(2.2);
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === SECTION TITLE === */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--accent);
}

.section-title span {
    color: #E74C3C;
}

/* === GRID LAYOUT === */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* === ARTICLE CARD === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.article-thumb {
    width: 100%;
    height: 200px;
    background: #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-thumb .placeholder-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.article-body {
    padding: 20px;
}

.article-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.article-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a {
    color: var(--text);
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-date {
    font-size: 12px;
    color: #999;
}

/* === SIDEBAR === */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.search-form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
}

.popular-list {
    list-style: none;
}

.popular-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.popular-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-number {
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
    min-width: 24px;
    line-height: 1;
}

.popular-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-text:hover {
    color: var(--primary);
}

/* CTA Box */
.cta-box {
    background: var(--primary);
    color: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
}

.cta-box h3 {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* === SINGLE POST === */
.single-header {
    margin-bottom: 24px;
}

.single-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 16px;
}

.single-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-light);
    align-items: center;
}

.single-meta .sep {
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
}

.featured-image {
    width: 100%;
    height: 400px;
    background: #E8E8E8;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.single-content {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 16px;
    line-height: 1.8;
}

.single-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.single-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}

.single-content p {
    margin-bottom: 20px;
}

.single-content ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.single-content ul li {
    margin-bottom: 8px;
    position: relative;
}

.single-content blockquote {
    border-left: 4px solid var(--accent);
    background: #FAFAFA;
    padding: 20px 24px;
    margin: 24px 0;
    font-style: italic;
    color: #555;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.single-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.post-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-tags a {
    display: inline-block;
    background: var(--bg);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.post-tags a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.nav-prev,
.nav-next {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* === FOOTER === */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 24px;
    font-size: 14px;
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 24px;
}

.mb-4 {
    margin-bottom: 24px;
}