/*
 Theme Name:   Catalogue Powercam
 Theme URI:    https://neon.web.id
 Description:  Catalogue Powercam
 Author:       NeonWebId
 Author URI:   https://neon.web.id
 Template:     generatepress
 Version:      1.0
*/

/* #992717 */
body {
    background-color: #DDDDDD;
}

.site-content .content-area.full-contain {
    width: 100%;
}

.home .site-content .content-area.full-contain .site-main .inside-article,
.page-template-brand-my .site-content .content-area.full-contain .site-main .inside-article,
.page-template-brand-sin .site-content .content-area.full-contain .site-main .inside-article {
    background-color: #DDDDDD !important;
}

.full-contain.content-area {
    min-height: calc(75vh + 63px);
}

/* ================= BRAND ================= */
.tax-brand .content-area.full-contain {
    padding: 20px 30px;
}

.brand-wrap {
    display: flex;
    flex-wrap: wrap;
    margin-left: -5px;
    margin-right: -5px;
}

.brand-wrap .brand {
    flex: 0 1 20%;
    padding: 10px;
    display: flex;
}

.brand-wrap .brand .brand-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    padding: 10px;
}

/* Link full height */
.brand-wrap a {
    text-decoration: none;
    color: #555;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.brand-wrap a:hover {
    color: #000;
}

/* Logo fix ratio + animasi */
.brand-wrap .brand-logo {
    aspect-ratio: 1 / 1;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: transform .4s ease;
}

/* HANYA logo yang gerak */
.brand-wrap .brand:hover .brand-logo {
    transform: scale(1.1);
}

/* Title */
.brand-wrap .brand-inner h2 {
    font-size: 14px;
    font-weight: bold;
    margin: 8px 0 0;
    text-align: center;
}

/* Country */
.brand-wrap .brand-inner h3 {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
    margin-bottom:0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .brand-wrap .brand {
        flex: 0 1 50%;
    }
}

/* ================= CATALOGUE ================= */

.wrap-catalogue {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

/* Biar semua card sama tinggi */
.wrap-catalogue article.catalogue,
.wrap-catalogue article.catalogue_my {
    flex: 0 1 20%;
    padding: 10px;
    display: flex;
}

/* Card full height */
.wrap-catalogue article .inside-article {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 10px;
    text-align: center;
    background: #fff;
    margin-bottom: 10px;
}

/* Judul */
.wrap-catalogue h2 {
    font-size: 14px;
    font-weight: bold;
}

/* Samakan ukuran gambar */
.wrap-catalogue .post-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* Gambar full dan crop rapi */
.wrap-catalogue .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

/* Hover zoom */
.wrap-catalogue article:hover .post-image img {
    transform: scale(1.2);
}

/* Biar title selalu di bawah (rapi semua) */
.wrap-catalogue .entry-header {
    margin-top: auto;
}

/* ================= HEADER ================= */

.page-header {
    padding: 10px !important;
    background: none !important;
}

.page-header .page-title {
    font-size: 18px;
    font-weight: bold;
}

.site-header {
    border-bottom: 1px solid #992717;
}

.site-header .inside-header {
    padding-top: 0;
    padding-bottom: 0;
}

.main-navigation .main-nav ul li a {
    padding: 5px 20px;
    font-weight: bold;
    font-size: 16px;
}

.main-navigation .main-nav ul li.current-menu-item a {
    background-color: #992717;
    color: #fff;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .brand-wrap .brand,
    .wrap-catalogue article.catalogue,
    .wrap-catalogue article.catalogue_my {
        flex: 0 1 50%;
    }
	
	.country-selection {
		flex-direction:column;
	}
}

.custom-archive-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

/* Logo lebih clean & premium */
.custom-archive-header .brand-left img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

/* Konten kanan */
.custom-archive-header .brand-right {
    flex: 1;
}

.custom-archive-header .page-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.custom-archive-header .brand-country {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.custom-archive-header .taxonomy-description {
    font-size: 13px;
    color: #555;
}

/* parent jadi acuan */
.post-image {
    position: relative;
}

/* label pindah ke pojok gambar */
.post-image .post-label {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;

    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    color: #fff;
    background-color: #992717;
}