 /* ---------- RESET & GLOBAL ---------- */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f8;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #1a2a3f;
    padding: 20px 16px;
}

/* border-radius max 8px */
img,
button,
input,
.sidebarbox,
.topPost,
#catnav,
#header,
#footer,
.imageElement,
.topMore a,
#nav li a,
.mc_signup_submit input,
iframe,
.mc_merge_var input {
    border-radius: 8px;
}

#wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cleared {
    clear: both;
}

/* ---------- HEADER ---------- */
#header {
    background: linear-gradient(135deg, #0a1a28 0%, #102c3c 100%);
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#logo {
    flex: 1 1 auto;
}

#logo table {
    width: auto;
    background: transparent;
    margin: 0;
    padding: 0;
}

#logo td {
    vertical-align: middle;
    padding: 0 12px 0 0;
}

#logo td:last-child {
    padding-right: 0;
}

#logo img {
    max-height: 52px;
    width: auto;
    display: block;
}

#cssf3b65139f037b097258dd805c37b9bc2 {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    border-radius: 8px;
    padding: 6px 14px;
}

#cssf3b65139f037b097258dd805c37b9bc2 p {
    color: #f0f4fc;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

#topright {
    flex: 0;
}

/* ---------- CATNAV dengan LOGO DI NAVBAR ---------- */
#catnav {
    background: #ffffff;
    border-bottom: 1px solid #e6edf4;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    gap: 16px;
}

/* Navbar logo container */
.navbar-logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.navbar-logo img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.navbar-logo img:hover {
    transform: scale(1.02);
}

/* Navigation wrapper */
.nav-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    flex: 1;
}

/* semua list style none */
ul,
ol,
.topContent ul,
.sidebarbox ul,
.sidebaritem ul {
    list-style: none;
}

#nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

#nav li {
    list-style: none;
}

#nav li a {
    display: inline-block;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f3b4c;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 40px;
}

#nav li a:hover {
    background: #eef2f7;
    color: #e6492d;
}

#toprss {
    display: flex;
    gap: 12px;
    align-items: center;
}

#toprss img {
    width: 28px;
    height: 28px;
    opacity: 0.8;
    transition: transform 0.2s;
}

#toprss a:hover img {
    transform: translateY(-2px);
}

/* ---------- MAIN: FULLY RESPONSIVE STACKING ---------- */
#main {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
}

#contentwrapper {
    flex: 3;
    min-width: 0;
    padding: 36px 32px 48px 32px;
}

#sidebars {
    flex: 1.2;
    min-width: 280px;
    background: #fbfdff;
    border-left: 1px solid #ecf0f5;
    padding: 36px 28px 48px 28px;
}

/* ========== GALLERY: VERTICAL STACK ========== */
#featuredcontent {
    margin-bottom: 44px;
}

#featured {
    background: #f9fbfe;
    border-radius: 8px;
    overflow: hidden;
}

#myGallery {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 28px;
    background: #ffffff;
    border-radius: 8px;
}

.imageElement {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    overflow: hidden;
    border: 1px solid #eef2f9;
    display: flex;
    flex-direction: column;
}

.imageElement:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
}

.imageElement img.full {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.imageElement h2 {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 20px 24px 8px;
    color: #0e2a38;
}

.imageElement p {
    padding: 0 24px 16px;
    font-size: 0.9rem;
    color: #5b6e8c;
    line-height: 1.5;
}

.imageElement .open {
    display: inline-block;
    margin: 0 24px 24px;
    background: #e6492d;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 40px;
    transition: background 0.2s;
    width: fit-content;
}

.imageElement .open:hover {
    background: #b33418;
}

/* BLOG POSTS */
.topPost {
    background: #ffffff;
    margin-bottom: 36px;
    border-radius: 8px;
    border: 1px solid #eef2f8;
    overflow: hidden;
}

.topTitle {
    font-size: 1.7rem;
    font-weight: 700;
    padding: 28px 28px 8px 28px;
    letter-spacing: -0.3px;
}

.topTitle a {
    text-decoration: none;
    color: #1f3b4c;
    transition: color 0.2s;
}

.topTitle a:hover {
    color: #e6492d;
}

.topMeta {
    padding: 0 28px;
    font-size: 0.8rem;
    color: #6c7e9e;
    border-bottom: 1px dashed #edf2f7;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.topMeta a {
    color: #e6492d;
    text-decoration: none;
}

.topContent {
    padding: 8px 28px 20px;
    font-size: 1rem;
    color: #2c3f4f;
}

.topContent img.aligncenter {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.topContent li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.topContent li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #e6492d;
}

.topMore {
    display: inline-block;
    margin: 0 28px 28px 28px;
}

.topMore a {
    background: #f0f4fa;
    padding: 8px 22px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    color: #1f3b4c;
    transition: all 0.2s;
}

.topMore a:hover {
    background: #e6492d;
    color: white;
}

#nextprevious {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
}

#nextprevious .alignleft a {
    background: #eef2f7;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    color: #1a2a3f;
}

/* ========== SIDEBAR ========== */
.sidebaritem {
    list-style: none;
    margin-bottom: 36px;
    width: 100%;
}

.sidebarbox {
    background: #ffffff;
    border: 1px solid #eef2f8;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.sidebarbox h2,
.sidebarbox .widgettitle {
    padding: 18px 22px 12px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid #eef2f8;
    color: #0e2a38;
    margin: 0;
}

.sidebarbox ul,
.textwidget,
#welcome,
.mc_form_inside {
    padding: 16px 22px 22px;
}

.sidebarbox ul li {
    margin-bottom: 12px;
    list-style: none;
}

.sidebarbox ul li a {
    text-decoration: none;
    color: #2c5a74;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebarbox ul li a:hover {
    color: #e6492d;
}

#welcome h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #c4450c;
}

/* Flag translator */
.flag-table {
    margin: 0 auto;
}

.flag-table td {
    padding: 4px;
}

.flag-table img {
    width: 32px;
    height: auto;
    transition: transform 0.2s;
}

.flag-table img:hover {
    transform: scale(1.05);
}

/* FORM NEWSLETTER */
#mc_signup {
    width: 100%;
}

#mc_signup_form {
    width: 100%;
}

.mc_form_inside {
    width: 100%;
    padding: 16px 22px 22px;
}

.mc_merge_var {
    margin-bottom: 18px;
    width: 100%;
}

.mc_merge_var label {
    font-weight: 600;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 6px;
    color: #2f4f6f;
}

.mc_merge_var input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dce5ed;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: #fff;
}

.mc_merge_var input:focus {
    outline: none;
    border-color: #e6492d;
    box-shadow: 0 0 0 3px rgba(230, 73, 45, 0.1);
}

#mc-indicates-required {
    font-size: 0.7rem;
    color: #8b9ab0;
    margin: 12px 0;
}

.mc_signup_submit {
    margin-top: 8px;
    width: 100%;
}

#mc_signup_submit {
    background: #e6492d;
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    font-size: 0.9rem;
}

#mc_signup_submit:hover {
    background: #b33418;
}

iframe {
    max-width: 100%;
    border-radius: 8px;
}

.textwidget iframe {
    width: 100%;
}

/* FOOTER */
#footer {
    background: #0b1f2c;
    padding: 28px 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: #bcd0e0;
    font-size: 0.85rem;
}

#footerleft a {
    color: #f3aa8f;
    text-decoration: none;
}

#footerleft a:hover {
    text-decoration: underline;
}

#footerright img {
    width: 38px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#footerright img:hover {
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1000px) {
    #main {
        flex-direction: column;
    }

    #sidebars {
        border-left: none;
        border-top: 1px solid #eef2f8;
        padding: 32px 28px;
    }

    #contentwrapper {
        padding: 32px 28px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    #header {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    #logo table {
        width: 100%;
    }

    #logo td {
        display: inline-block;
        padding: 5px 8px;
    }

    #catnav {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
    }

    .nav-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .navbar-logo {
        justify-content: center;
        margin-right: 0;
        margin-bottom: 10px;
    }

    #nav {
        justify-content: center;
    }

    #toprss {
        justify-content: center;
        margin-top: 8px;
    }

    #myGallery {
        padding: 20px;
        gap: 28px;
    }

    .imageElement h2 {
        font-size: 1.2rem;
        padding: 18px 20px 6px;
    }

    .imageElement p {
        padding: 0 20px 14px;
        font-size: 0.85rem;
    }

    .imageElement .open {
        margin: 0 20px 20px;
        padding: 8px 20px;
    }

    .imageElement img.full {
        max-height: 240px;
    }

    .topTitle {
        font-size: 1.4rem;
        padding: 22px 24px 6px;
    }

    .topMeta,
    .topContent {
        padding-left: 24px;
        padding-right: 24px;
    }

    .topMore {
        margin-left: 24px;
    }

    #footer {
        flex-direction: column;
        text-align: center;
    }

    #sidebars {
        padding: 28px 20px;
    }
}

@media (max-width: 550px) {
    .imageElement img.full {
        max-height: 200px;
    }

    .imageElement h2 {
        font-size: 1.1rem;
        padding: 16px 16px 4px;
    }

    .imageElement p {
        padding: 0 16px 12px;
        font-size: 0.8rem;
    }

    .imageElement .open {
        margin: 0 16px 16px;
        padding: 6px 16px;
        font-size: 0.75rem;
    }

    #myGallery {
        padding: 16px;
        gap: 24px;
    }

    .topTitle {
        font-size: 1.25rem;
        padding: 18px 20px 4px;
    }

    .topMeta,
    .topContent {
        padding-left: 20px;
        padding-right: 20px;
    }

    .topMore {
        margin-left: 20px;
    }

    #nav li a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    #sidebars {
        padding: 24px 16px;
    }
}

ul,
ol {
    list-style: none;
}