/* ================================================
   GilaDiskon Homepage Styles
   ================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


body.gd-homepage {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f7f7f7;
    line-height: 1.5;
}

body.gd-homepage a {
    color: inherit;
    text-decoration: none;
}

body.gd-homepage img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Logo img: apply dynamic height on all our custom pages */
body.gd-homepage .gd-logo .gd-logo-img,
body.gd-archive .gd-logo .gd-logo-img,
body.gd-single-post .gd-logo .gd-logo-img,
body.gd-search .gd-logo .gd-logo-img,
body.gd-merchants .gd-logo .gd-logo-img,
body.gd-survey .gd-logo .gd-logo-img,
body.gd-survey-detail .gd-logo .gd-logo-img,
body.gd-page .gd-logo .gd-logo-img,
body.gd-page-wide .gd-logo .gd-logo-img {
    height: var(--gd-logo-height, 48px);
    width: auto;
    display: block;
}

/* ---- Container ---- */
.gd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================
   HEADER
   ================================================ */
.gd-header {
    background: #E53935;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* ---- Top Bar ---- */
.gd-topbar {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,.2);
    padding: 6px 0;
}
.gd-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.gd-topbar-right {
    display: flex;
    gap: 20px;
}
.gd-topbar-right a {
    font-size: 12px;
    color: #fff !important;
    opacity: .85;
    transition: opacity .2s;
}
.gd-topbar-right a:hover { opacity: 1; }

/* ---- Logo + Search ---- */
.gd-header-main {
    padding: 12px 0;
    background: transparent;
}
.gd-header-main-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.gd-logo {
    flex-shrink: 0;
}
.gd-logo-img {
    height: 48px;
    width: auto;
}
.gd-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.gd-logo-text small {
    font-size: 8px;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,.8);
    font-weight: 500;
    text-transform: uppercase;
}
.gd-logo-gila {
    font-size: 28px;
    font-weight: 800;
    color: #FFD54F;
    font-style: italic;
}
.gd-logo-diskon {
    font-size: 28px;
    font-weight: 800;
    color: #FFD54F;
    font-style: italic;
    margin-top: -4px;
}

/* Search */
.gd-search-wrap {
    flex: 1;
}
.gd-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 14px;
    gap: 10px;
    transition: border-color .2s;
}
.gd-search-form:focus-within {
    border-color: #E53935;
    box-shadow: 0 0 0 2px rgba(229,57,53,.1);
}
.gd-search-icon { flex-shrink: 0; display: flex; }
.gd-search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: transparent;
}
.gd-search-input::placeholder { color: #aaa; }

/* ---- Category Nav ---- */
.gd-nav {
    background: #fff;
    border-top: none;
    padding: 0;
    position: relative;
}
.gd-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 44px;
}

/* Survey button */
.gd-btn-survey {
    background: #E53935;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
}
.gd-btn-survey:hover { background: #C62828; color: #fff !important; }

/* Hamburger + dropdown wrapper */
.gd-hamburger-wrap {
    position: relative;
    height: 100%;
    flex-shrink: 0;
}
.gd-hamburger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    font-weight: 600;
    padding: 0 16px;
    height: 100%;
    white-space: nowrap;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    transition: color .2s;
}
.gd-hamburger:hover,
.gd-hamburger.is-open { color: #E53935; }

/* Semua Kategori Dropdown */
.gd-all-categories {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 20px 24px;
    z-index: 200;
    min-width: 580px;
}
.gd-all-categories.is-open { display: block; }
.gd-all-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 16px;
}
.gd-all-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.gd-all-cat-item:hover {
    background: #FFF3F3;
    color: #E53935;
}
.gd-all-cat-icon { font-size: 18px; flex-shrink: 0; }

/* Category tabs */
.gd-nav-categories {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    height: 100%;
}
.gd-nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 100%;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
    transition: color .2s;
    border-right: 1px solid #f0f0f0;
}
.gd-nav-tab:hover { color: #E53935; }
.gd-nav-icon { font-size: 16px; line-height: 1; }


/* ================================================
   MAIN CONTENT
   ================================================ */
.gd-main {
    padding: 16px 0 32px;
}

/* ---- Section ---- */
.gd-section {
    background: #fff;
    margin-bottom: 12px;
    padding: 20px 0;
}
.gd-section-empty {
    padding: 16px 0;
}

.gd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.gd-section-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin: 0;
}
.gd-section-header .gd-lihat-semua {
    font-size: 13px;
    font-weight: 600;
    color: #E53935;
    transition: opacity .2s;
}
.gd-section-header .gd-lihat-semua:hover { opacity: .75; color: #E53935; }

/* ---- Carousel Wrapper ---- */
.gd-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- Cards Row (horizontal scroll carousel) ---- */
.gd-cards-row {
    display: flex;
    gap: 12px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;   /* Firefox */
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;     /* room for box-shadow on last card */
}
.gd-cards-row::-webkit-scrollbar { display: none; } /* Chrome / Safari */

/* ---- Carousel Arrow Buttons ---- */
.gd-carousel-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    transition: background .15s, box-shadow .15s, color .15s;
    color: #555;
    padding: 0;
    user-select: none;
}
.gd-carousel-arrow:hover {
    background: #fff3f3;
    box-shadow: 0 3px 10px rgba(0,0,0,.14);
    color: #E53935;
}
.gd-carousel-arrow:disabled {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}

/* ---- Card ---- */
.gd-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: box-shadow .2s, transform .2s;
    text-decoration: none;
    color: inherit;
    /* Fixed width: 5 cards visible with 4 gaps of 12px */
    flex-shrink: 0;
    width: calc(20% - 10px);
    scroll-snap-align: start;
}
.gd-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    transform: translateY(-2px);
}

.gd-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}
.gd-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.gd-card:hover .gd-card-img img {
    transform: scale(1.05);
}

/* Placeholder when no thumbnail */
.gd-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
}
.gd-card-placeholder span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    text-shadow: 0 1px 3px rgba(0,0,0,.2);
    line-height: 1.3;
}

.gd-card-body {
    padding: 10px 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gd-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(1.4em * 3);
    margin-bottom: 0;
}
.gd-card-date {
    font-size: 11px;
    color: #888;
}

/* ================================================
   MERCHANT SECTION
   ================================================ */
.gd-merchant-section {
    padding-bottom: 24px;
}
.gd-merchant-logos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.gd-merchant-logo {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
    transition: box-shadow .2s, transform .2s;
}
.gd-merchant-logo:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    transform: translateY(-1px);
}
.gd-merchant-logo img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
}
.gd-merchant-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    background: #f9f9f9;
}
.gd-merchant-logo-placeholder span {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    line-height: 1.3;
}

/* ================================================
   FOOTER
   ================================================ */
.gd-footer {
    background: #E53935;
    color: #fff;
    padding: 32px 0 0;
}

.gd-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

/* Footer Logo */
.gd-footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}
.gd-logo-text--white .gd-logo-gila {
    color: #fff;
}
.gd-logo-text--white .gd-logo-diskon {
    color: #FFD54F;
}
.gd-logo-text--white small {
    color: rgba(255,255,255,.8);
}

/* Footer Info */
.gd-footer-info {
    font-size: 12px;
    line-height: 1.7;
    opacity: .9;
    margin-bottom: 16px;
}
.gd-footer-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}
.gd-footer-info a {
    color: #fff;
    text-decoration: underline;
    opacity: .9;
}
.gd-footer-info a:hover { opacity: 1; }


/* Footer Nav */
.gd-footer-nav nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gd-footer-nav a {
    font-size: 13px;
    color: #fff;
    opacity: .9;
    transition: opacity .2s;
}
.gd-footer-nav a:hover { opacity: 1; }

/* Footer Contact */
.gd-footer-contact p {
    font-size: 12px;
    opacity: .9;
    margin-bottom: 12px;
    line-height: 1.6;
}
.gd-footer-contact a {
    color: #fff;
    text-decoration: underline;
    opacity: .9;
}
.gd-footer-contact a:hover { opacity: 1; }

/* Social Icons */
.gd-social {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.gd-social-link {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.gd-social-link:hover { background: rgba(0,0,0,.45); }

/* Footer Bottom */
.gd-footer-bottom {
    background: rgba(0,0,0,.15);
    padding: 12px 0;
    text-align: center;
}
.gd-footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,.85);
}

/* ---- Footer logo image ---- */
.gd-footer-logo-img {
    width: auto;
    display: block;
    margin-bottom: 16px;
}

/* ================================================
   EXPIRED BADGE — on deal cards
   ================================================ */

/* Card image needs position:relative for the badge overlay */
.gd-card-img { position: relative; }

/* Badge overlay in top-left corner of the card image */
.gd-expired-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

/* Desaturate image/placeholder on expired cards */
.gd-card--expired .gd-card-img img,
.gd-card--expired .gd-card-placeholder {
    filter: grayscale(55%);
    opacity: .75;
}

/* Muted expiry date text on expired cards */
.gd-card-date--expired {
    color: #aaa;
}

/* ================================================
   ARCHIVE PAGES — category, tag, merchant
   ================================================ */

body.gd-archive {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f7f7f7;
    line-height: 1.5;
}

body.gd-archive *,
body.gd-archive *::before,
body.gd-archive *::after { box-sizing: border-box; }

body.gd-archive a { color: inherit; text-decoration: none; }
body.gd-archive img { display: block; max-width: 100%; height: auto; }

.gd-archive-main {
    padding: 28px 0 48px;
    min-height: 60vh;
}

/* Archive title card */
.gd-archive-header {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.gd-archive-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.gd-archive-desc {
    font-size: .88rem;
    color: #666;
    margin-top: 8px;
    line-height: 1.6;
}

.gd-archive-desc p { margin: 0; }

/* Wrapping card grid (not a carousel) */
.gd-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

/* Cards inside the grid take full column width */
.gd-cards-grid .gd-card {
    width: auto;
    flex-shrink: initial;
    scroll-snap-align: none;
}

/* Pagination */
.gd-pagination { margin-top: 8px; }

.gd-pagination .nav-links {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.gd-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}

.gd-pagination .page-numbers:hover,
.gd-pagination .page-numbers.current {
    background: #E53935;
    color: #fff;
    border-color: #E53935;
}

.gd-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.gd-no-posts {
    text-align: center;
    padding: 48px 0;
    color: #888;
    font-size: .95rem;
}

/* ================================================
   MERCHANT PAGE HERO — dealstore taxonomy
   ================================================ */

.gd-merchant-hero {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.gd-merchant-hero-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9f9f9;
}

.gd-merchant-hero-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.gd-merchant-hero-info {
    flex: 1;
    min-width: 0;
}

.gd-merchant-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.gd-merchant-hero-desc {
    font-size: .9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
}

.gd-merchant-hero-desc p { margin: 0; }

.gd-merchant-hero-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #E53935;
    color: #fff !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.gd-merchant-hero-btn:hover { background: #C62828; }

@media (max-width: 768px) {
    .gd-merchant-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
    }
    .gd-merchant-hero-title { font-size: 1.3rem; }
}

/* ================================================
   HIDE REHUB THEME INJECTED UI ELEMENTS
   ================================================ */
#rhSplashSearch,
#rhslidingMenu,
#rhmobpnlcustom,
#slide-menu-mobile,
#logo_mobile_wrapper {
    display: none !important;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .gd-nav-categories { display: none; }

    /* Show ~2.3 cards on tablet so users can see there's more */
    .gd-card { width: calc(46% - 6px); }

    .gd-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gd-merchant-logos {
        justify-content: center;
    }

    /* Archive + search grid: 3 columns on tablet */
    .gd-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .gd-archive-main, .gd-search-main { padding: 16px 0 32px; }
    .gd-archive-header { padding: 16px; }
    .gd-archive-title { font-size: 1.15rem; }

    /* Search filters: 2 per row on tablet */
    .gd-search-filters-wrap { padding: 16px; }
    .gd-filter-field { min-width: calc(50% - 8px); }
}

@media (max-width: 480px) {
    .gd-header-main-inner { gap: 10px; }
    .gd-logo .gd-logo-img { height: 32px !important; width: auto !important; }
    .gd-logo-gila, .gd-logo-diskon { font-size: 20px; }
    .gd-search-wrap { min-width: 0; }
    .gd-search-input { min-width: 0; }
    /* Show ~1.8 cards on mobile */
    .gd-card { width: calc(55% - 6px); }
    .gd-topbar-right { display: none; }
    /* Smaller arrows on mobile */
    .gd-carousel-arrow { width: 28px; height: 28px; font-size: 18px; }

    /* Archive grid: 2 columns on mobile */
    .gd-cards-grid { grid-template-columns: repeat(2, 1fr); }

    /* Search filters: stack vertically on mobile */
    .gd-search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .gd-filter-field { min-width: 0; width: 100%; }
    .gd-filter-field--keyword { flex: none; }
    .gd-filter-submit { width: 100%; }
}

/* Mobile: constrain category dropdown to viewport width */
@media (max-width: 640px) {
    /* Make nav-inner the positioning context so dropdown aligns to it */
    .gd-nav-inner { position: relative; }
    .gd-hamburger-wrap { position: static; }
    .gd-all-categories {
        left: 0;
        right: 0;
        min-width: 0;
        max-height: 60vh;
        overflow-y: auto;
    }
    .gd-all-categories-grid { grid-template-columns: repeat(2, 1fr); }
    .gd-all-cat-item { white-space: normal; font-size: 12px; }
}

/* ================================================
   SEARCH PAGE
   ================================================ */

body.gd-search {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f7f7f7;
    line-height: 1.5;
}

body.gd-search *,
body.gd-search *::before,
body.gd-search *::after { box-sizing: border-box; }

body.gd-search a { color: inherit; text-decoration: none; }
body.gd-search img { display: block; max-width: 100%; height: auto; }

/* Main wrapper */
.gd-search-main {
    padding: 28px 0 48px;
    min-height: 60vh;
}

/* ── Filter bar card ── */
.gd-search-filters-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.gd-search-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* Individual filter field */
.gd-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

/* Keyword takes more space */
.gd-filter-field--keyword {
    flex: 2;
    min-width: 200px;
}

.gd-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

/* Keyword input wrapper */
.gd-filter-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 9px 12px;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
}
.gd-filter-input-wrap:focus-within {
    border-color: #E53935;
    box-shadow: 0 0 0 2px rgba(229,57,53,.1);
    background: #fff;
}

.gd-filter-icon { flex-shrink: 0; display: flex; }

.gd-filter-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: transparent;
    min-width: 0;
}
.gd-filter-input::placeholder { color: #bbb; }

/* Dropdowns */
.gd-filter-select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.gd-filter-select:focus {
    outline: none;
    border-color: #E53935;
    box-shadow: 0 0 0 2px rgba(229,57,53,.1);
    background-color: #fff;
}

/* ── Multi-select dropdown ── */
.gd-multiselect {
    position: relative;
    width: 100%;
}

.gd-multiselect-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, box-shadow .2s;
    gap: 8px;
}
.gd-multiselect-trigger:hover,
.gd-multiselect.is-open .gd-multiselect-trigger {
    border-color: #E53935;
    box-shadow: 0 0 0 2px rgba(229,57,53,.1);
    background: #fff;
}
.gd-multiselect-trigger.has-value {
    border-color: #E53935;
    color: #E53935;
}

.gd-multiselect-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.gd-multiselect-chevron {
    flex-shrink: 0;
    transition: transform .2s;
}
.gd-multiselect.is-open .gd-multiselect-chevron {
    transform: rotate(180deg);
}

.gd-multiselect-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}
.gd-multiselect.is-open .gd-multiselect-panel {
    display: block;
}

.gd-multiselect-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background .15s;
}
.gd-multiselect-option:hover {
    background: #fef2f2;
}
.gd-multiselect-option input[type="checkbox"] {
    accent-color: #E53935;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Submit button */
.gd-filter-submit {
    background: #E53935;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
    align-self: flex-end;
}
.gd-filter-submit:hover { background: #C62828; }

/* ── Empty / no results ── */
.gd-no-posts-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 0;
    gap: 12px;
}
.gd-no-posts-hint {
    font-size: .85rem;
    color: #aaa;
    margin: 0;
}

/* ================================================
   404 PAGE
   ================================================ */
body.gd-404 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f7f7f7;
    line-height: 1.5;
}
body.gd-404 a { color: inherit; text-decoration: none; }
body.gd-404 img { display: block; max-width: 100%; height: auto; }
body.gd-404 .gd-logo .gd-logo-img {
    height: var(--gd-logo-height, 48px);
    width: auto;
    display: block;
}

.gd-404-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.gd-404-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 72px 16px;
    gap: 16px;
}

.gd-404-code {
    font-size: 120px;
    font-weight: 700;
    color: #E53935;
    line-height: 1;
    letter-spacing: -4px;
}

.gd-404-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.gd-404-desc {
    font-size: .95rem;
    color: #666;
    max-width: 420px;
    margin: 0;
}

.gd-404-search {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 460px;
    margin-top: 8px;
}

.gd-404-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .9rem;
    outline: none;
    font-family: inherit;
}
.gd-404-search-input:focus { border-color: #E53935; }

.gd-404-search-btn {
    padding: 10px 20px;
    background: #E53935;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.gd-404-search-btn:hover { background: #c62828; }

.gd-404-home-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 10px 24px;
    border: 2px solid #E53935;
    border-radius: 6px;
    color: #E53935;
    font-size: .9rem;
    font-weight: 600;
    transition: background .2s, color .2s;
}
.gd-404-home-btn:hover {
    background: #E53935;
    color: #fff;
}

@media (max-width: 480px) {
    .gd-404-code { font-size: 80px; }
    .gd-404-title { font-size: 1.3rem; }
    .gd-404-search { flex-direction: column; }
    .gd-404-search-btn { width: 100%; }
}

/* ================================================
   ALL MERCHANTS PAGE
   ================================================ */

body.gd-merchants {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f7f7f7;
    line-height: 1.5;
}

body.gd-merchants *,
body.gd-merchants *::before,
body.gd-merchants *::after { box-sizing: border-box; }

body.gd-merchants a { color: inherit; text-decoration: none; }
body.gd-merchants img { display: block; max-width: 100%; height: auto; }

.gd-merchants-main {
    padding: 32px 0 56px;
}

.gd-merchants-header {
    margin-bottom: 24px;
}

.gd-merchants-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.gd-merchants-header p {
    font-size: 13px;
    color: #888;
}

/* ── Alphabet quick-nav ── */
.gd-merchants-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 32px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.gd-alpha-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    transition: background .15s, color .15s;
}

.gd-alpha-link:hover {
    background: #E53935;
    color: #fff;
}

/* ── Letter group ── */
.gd-merchants-group {
    margin-bottom: 36px;
    scroll-margin-top: 80px; /* offset for sticky header */
}

.gd-merchants-letter {
    font-size: 1.05rem;
    font-weight: 700;
    color: #E53935;
    border-bottom: 2px solid #E53935;
    padding-bottom: 6px;
    margin-bottom: 16px;
}

/* ── Merchant card grid ── */
.gd-merchants-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.gd-merchants-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.gd-merchants-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.gd-merchants-item-logo {
    width: 80px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-merchants-item-logo img {
    max-width: 80px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gd-merchants-item-placeholder {
    width: 80px;
    height: 56px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.gd-merchants-item-placeholder span {
    font-size: 11px;
    font-weight: 600;
    color: #777;
    line-height: 1.3;
}

.gd-merchants-item-name {
    font-size: 12px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
}

.gd-no-merchants {
    text-align: center;
    color: #aaa;
    padding: 48px 0;
    font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .gd-merchants-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .gd-merchants-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gd-merchants-alpha-nav { gap: 4px; padding: 10px 12px; }
    .gd-alpha-link { width: 30px; height: 30px; font-size: 12px; }
    .gd-merchants-header h1 { font-size: 1.3rem; }
}

/* ================================================
   SURVEY PAGE
   ================================================ */
body.gd-survey {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f7f7f7;
    line-height: 1.5;
}
body.gd-survey *,
body.gd-survey *::before,
body.gd-survey *::after { box-sizing: border-box; }
body.gd-survey a { color: inherit; text-decoration: none; }
body.gd-survey img { display: block; max-width: 100%; height: auto; }

.gd-survey-main {
    padding: 32px 16px 56px;
}

.gd-survey-wrap {
    max-width: 700px;
    margin: 0 auto;
}

/* Banner */
.gd-survey-banner {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.gd-survey-banner img {
    width: 100%;
    height: auto;
}

/* Description */
.gd-survey-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 28px;
    padding: 0 8px;
}

/* Survey list */
.gd-survey-list {
    margin-bottom: 36px;
}

.gd-survey-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: box-shadow 0.15s;
}
.gd-survey-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.gd-survey-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gd-survey-item-title {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}
.gd-survey-item-dates {
    font-size: 12px;
    color: #888;
}
.gd-survey-item-arrow {
    font-size: 18px;
    color: #E53935;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.gd-survey-item:hover .gd-survey-item-arrow {
    transform: translateX(4px);
}

/* Empty state */
.gd-survey-empty {
    background: #fce4e4;
    border: 1px solid #f5c2c2;
    border-radius: 6px;
    padding: 14px 20px;
    color: #b71c1c;
    font-size: 14px;
}

/* B2B CTA */
.gd-survey-cta {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid #e0e0e0;
}
.gd-survey-cta-text {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
}
.gd-survey-cta-btn {
    display: inline-block;
    background: #43a047;
    color: #fff !important;
    border-radius: 6px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s;
}
.gd-survey-cta-btn:hover {
    background: #388e3c;
}

/* Survey listing responsive */
@media (max-width: 768px) {
    .gd-survey-main { padding: 24px 12px 40px; }
}
@media (max-width: 480px) {
    body.gd-survey .gd-logo .gd-logo-img,
    body.gd-survey-detail .gd-logo .gd-logo-img { height: 32px !important; }
}

/* ================================================
   SURVEY DETAIL PAGE
   ================================================ */
body.gd-survey-detail {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f7f7f7;
    line-height: 1.5;
}
body.gd-survey-detail *,
body.gd-survey-detail *::before,
body.gd-survey-detail *::after { box-sizing: border-box; }
body.gd-survey-detail a { color: inherit; text-decoration: none; }
body.gd-survey-detail img { display: block; max-width: 100%; height: auto; }

.gd-survey-detail-main {
    padding: 32px 16px 56px;
}

.gd-survey-detail-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.gd-survey-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 32px 36px;
}

.gd-survey-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Date meta row */
.gd-survey-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.gd-survey-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    color: #555;
}
.gd-survey-meta-label {
    font-weight: 700;
    color: #E53935;
}

/* Content area */
.gd-survey-detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
}
.gd-survey-detail-content p  { margin-bottom: 12px; }
.gd-survey-detail-content ul,
.gd-survey-detail-content ol { padding-left: 20px; margin-bottom: 12px; }
.gd-survey-detail-content a  { color: #E53935; text-decoration: underline; }

/* Status notices */
.gd-survey-notice {
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
}
.gd-survey-notice--ended  { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.gd-survey-notice--pending { background: #fff8e1; color: #e65100; border: 1px solid #ffe082; }
.gd-survey-notice--full   { background: #fff3e0; color: #bf360c; border: 1px solid #ffcc02; }

/* "Ikut Survey" CTA button */
.gd-survey-go-btn {
    display: inline-block;
    background: #43a047;
    color: #fff !important;
    border-radius: 8px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.15s;
}
.gd-survey-go-btn:hover { background: #388e3c; }

/* Survey detail responsive */
@media (max-width: 768px) {
    .gd-survey-detail-main { padding: 20px 12px 40px; }
    .gd-survey-detail-card { padding: 24px 20px; }
    .gd-survey-detail-title { font-size: 1.3rem; }
}
@media (max-width: 480px) {
    .gd-survey-detail-card { padding: 20px 16px; border-radius: 8px; }
    .gd-survey-detail-title { font-size: 1.15rem; }
    .gd-survey-go-btn { display: block; text-align: center; }
}

/* ================================================
   STATIC PAGE — NORMAL & WIDE
   ================================================ */
body.gd-page,
body.gd-page-wide {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: #333;
    background: #f7f7f7;
    line-height: 1.6;
}
body.gd-page *,
body.gd-page *::before,
body.gd-page *::after,
body.gd-page-wide *,
body.gd-page-wide *::before,
body.gd-page-wide *::after { box-sizing: border-box; }
body.gd-page a,
body.gd-page-wide a { color: inherit; text-decoration: none; }
body.gd-page img,
body.gd-page-wide img { display: block; max-width: 100%; height: auto; }

/* Main wrapper */
.gd-page-main {
    padding: 48px 0 64px;
}

/* Normal layout: uses .gd-container (max-width 1200px) — no extra CSS needed */

/* Wide layout: full-width with horizontal padding only */
.gd-page-wide-wrap {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Page header (title area) */
.gd-page-header {
    padding-bottom: 20px;
    margin-bottom: 32px;
    border-bottom: 2px solid #f0f0f0;
}
.gd-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.25;
}

/* Page content — general WordPress content typography */
.gd-page-content {
    color: #333;
    line-height: 1.8;
    font-size: 15px;
}
.gd-page-content p  { margin: 0 0 1.2em; }
.gd-page-content h2 { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; margin: 1.8em 0 0.6em; line-height: 1.3; }
.gd-page-content h3 { font-size: 1.25rem; font-weight: 700; color: #1a1a1a; margin: 1.5em 0 0.5em; line-height: 1.35; }
.gd-page-content h4 { font-size: 1.1rem; font-weight: 600; color: #1a1a1a; margin: 1.3em 0 0.4em; }
.gd-page-content ul,
.gd-page-content ol { margin: 0 0 1.2em 1.6em; }
.gd-page-content li  { margin-bottom: 0.4em; }
.gd-page-content a   { color: #E53935; }
.gd-page-content a:hover { text-decoration: underline; }
.gd-page-content strong { font-weight: 700; }
.gd-page-content em { font-style: italic; }
.gd-page-content img { border-radius: 8px; margin-bottom: 1em; }
.gd-page-content hr  { border: none; border-top: 1px solid #eee; margin: 2em 0; }
.gd-page-content blockquote {
    border-left: 4px solid #E53935;
    margin: 1.4em 0;
    padding: 14px 20px;
    background: #fff8f8;
    color: #555;
    border-radius: 0 6px 6px 0;
}
.gd-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 14px;
}
.gd-page-content th,
.gd-page-content td { padding: 10px 14px; border: 1px solid #eee; text-align: left; }
.gd-page-content th  { background: #f5f5f5; font-weight: 600; color: #111; }
.gd-page-content tr:nth-child(even) td { background: #fafafa; }
.gd-page-content pre {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
    margin: 0 0 1.2em;
}
.gd-page-content code {
    background: #f0f0f0;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 13px;
}

/* Mobile */
@media (max-width: 768px) {
    .gd-page-main { padding: 32px 0 48px; }
    .gd-page-wide-wrap { padding: 0 20px; }
    .gd-page-title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .gd-page-main { padding: 24px 0 40px; }
    .gd-page-wide-wrap { padding: 0 16px; }
    .gd-page-title { font-size: 1.35rem; }
    body.gd-page .gd-logo .gd-logo-img,
    body.gd-page-wide .gd-logo .gd-logo-img { height: 32px !important; }
}
