/* Custom styles for Astra AI Factory */

/* ============================================
   Homepage sections - Structural
   ============================================ */
.home-hero,
.home-products {
    display: block;
    width: 100%;
    clear: both;
    margin: 0;
    padding: 0;
}

/* ============================================
   Hero section styles
   ============================================ */
.home-hero-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin: 0;
}

.home-hero-inner h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.home-hero-inner p {
    font-size: 1.125rem;
    margin: 0 0 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.home-hero-inner a {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.home-hero-inner a:hover {
    transform: translateY(-3px);
}

/* ============================================
   WooCommerce short description checklist
   ============================================ */

.woocommerce .astra-short-desc-list {
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
}

.woocommerce .astra-short-desc-list li {
    position: relative;
    padding-left: 1.85rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.woocommerce .astra-short-desc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #3b82f6);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.3 2.9 8l1.1-1.1 2.2 2.2 5-5L12.3 5z'/%3E%3C/svg%3E") center/75% 75% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.3 2.9 8l1.1-1.1 2.2 2.2 5-5L12.3 5z'/%3E%3C/svg%3E") center/75% 75% no-repeat;
}

/* ============================================
   WooCommerce shop card checklist (Astra block)
   ============================================ */

.woocommerce ul.products li.product .ast-woo-shop-product-description ul {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.woocommerce ul.products li.product .ast-woo-shop-product-description li {
    position: relative;
    padding-left: 2.1rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
    font-size: 0.95rem;
}

.woocommerce ul.products li.product .ast-woo-shop-product-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #3b82f6);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.3 2.9 8l1.1-1.1 2.2 2.2 5-5L12.3 5z'/%3E%3C/svg%3E") center/75% 75% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.3 2.9 8l1.1-1.1 2.2 2.2 5-5L12.3 5z'/%3E%3C/svg%3E") center/75% 75% no-repeat;
}

/* ============================================
   WOOCOMMERCE SHOP PAGE - HIDE TOP ELEMENTS
   Sembunyikan breadcrumb, title, result count, dan sorting
   untuk mengurangi space di dalam ast-container
   ============================================ */

/* Hide Breadcrumb (Home / Shop) */
.woocommerce-breadcrumb,
.ast-breadcrumbs-wrapper {
    display: none !important;
}

/* Hide Shop Page Title */
.woocommerce-products-header__title,
.page-title {
    display: none !important;
}

/* Hide Result Count (Showing all X results) */
.woocommerce-result-count {
    display: none !important;
}

/* Hide Sorting Dropdown (Default sorting) */
.woocommerce-ordering,
form.woocommerce-ordering {
    display: none !important;
}

/* Reduce padding/margin di ast-container untuk shop page */
.woocommerce.ast-container {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
}

/* Reduce spacing sebelum product grid */
.woocommerce ul.products {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Reduce spacing di woocommerce-notices-wrapper */
.woocommerce-notices-wrapper {
    margin-bottom: 10px !important;
}

/* Force-minimize top gap between .site-content and .ast-container on shop page */
body.woocommerce-shop #content.site-content,
body.woocommerce-shop #content.site-content > .ast-container {
     margin-top: 0 !important;
     padding-top: 0 !important;
}

/* If the first child inside ast-container (eg. hero) has top margin, remove it */
body.woocommerce-shop #content.site-content > .ast-container > *:first-child {
     margin-top: 0 !important;
     padding-top: 0 !important;
}

/* Extremely small fallback to avoid visual collapse (use only if needed) */
body.woocommerce-shop #content.site-content > .ast-container { padding-top: 0.25rem !important; }

/* Note: Untuk menampilkan kembali elemen-elemen ini, 
   cukup comment atau hapus CSS di atas */

/* ============================================
   HOMEPAGE - ABOUT ME INSERT (between grid and testimonials)
   Scoped strictly to .astra-home-aboutme
   ============================================ */

.astra-home-aboutme {
    display: block;
    width: 100vw;
    margin: 2.5rem 0 3rem;
    padding: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    z-index: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #0f172a, #1d4ed8 60%, #38bdf8);
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.4);
}

.astra-home-aboutme::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(248, 250, 252, 0.14), transparent 52%),
        radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.28), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.astra-home-aboutme__inner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    border-radius: 0;
    background: transparent;
    color: #f8fafc;
    box-shadow: none;
    z-index: 1;
}

.astra-home-aboutme__inner::after {
    content: none;
}

.astra-home-aboutme__media,
.astra-home-aboutme__content {
    position: relative;
    z-index: 1;
}

.astra-home-aboutme__frame {
    width: min(100%, 360px);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    padding: 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.12);
    box-shadow: 0 25px 45px rgba(2, 10, 24, 0.55);
}

.astra-home-aboutme__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 999px;
}

.astra-home-aboutme__eyebrow {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0 0 0.75rem;
    color: rgba(248, 250, 252, 0.85);
}

.astra-home-aboutme__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.astra-home-aboutme__text {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.86);
}

.astra-home-aboutme__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.astra-home-aboutme__list li {
    position: relative;
    padding-left: 1.85rem;
    margin-bottom: 0.6rem;
    color: rgba(248, 250, 252, 0.92);
}

.astra-home-aboutme__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #3b82f6);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.3 2.9 8l1.1-1.1 2.2 2.2 5-5L12.3 5z'/%3E%3C/svg%3E") center/75% 75% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.3 2.9 8l1.1-1.1 2.2 2.2 5-5L12.3 5z'/%3E%3C/svg%3E") center/75% 75% no-repeat;
}

@media (min-width: 768px) {
    .astra-home-aboutme__inner {
        grid-template-columns: 0.9fr 1.1fr;
        padding: 3.25rem 3rem;
    }

    .astra-home-aboutme__frame {
        margin: 0;
    }
}

/* ============================================
   READY-MADE SOURCE CODE CATEGORY EXPERIENCE
   Styling terinspirasi dari halaman worksamples
   ============================================ */

.ready-made-hero {
    position: relative;
    overflow: hidden;
    margin: 0 auto 3rem;
    padding: 4rem 1.5rem 4.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #0f172a, #1d4ed8 60%, #38bdf8);
    color: #f8fafc;
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.4);
}

.ready-made-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(250, 250, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.35), transparent 55%);
    pointer-events: none;
}

.ready-made-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 1;
}

.ready-made-hero__content {
    max-width: 640px;
}

.ready-made-hero__eyebrow {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
    color: rgba(248, 250, 252, 0.85);
}

.ready-made-hero__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.ready-made-hero__description {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.85);
}

.ready-made-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.ready-made-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    background-color: #f8fafc;
    color: #0f172a;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
}

.ready-made-btn--ghost {
    background: transparent;
    color: #e0f2fe;
    border-color: rgba(224, 242, 254, 0.4);
    box-shadow: inset 0 0 0 1px rgba(224, 242, 254, 0.4);
}

.ready-made-btn:hover,
.ready-made-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.ready-made-btn--ghost:hover,
.ready-made-card__btn--ghost:hover {
    background-color: rgba(224, 242, 254, 0.1);
}

.shop-category-hero {
    background: linear-gradient(to bottom, #e8fcef 0%, #26b497 100%);
    padding: 2rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    margin-bottom: 1.5rem !important;
    color: #fff;
    overflow: hidden;
    min-height: auto !important;
}

.shop-category-hero__inner {
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.shop-category-hero__layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 70%) minmax(0, 30%);
    gap: clamp(2rem, 3vw, 3rem);
    align-items: flex-start;
}

.shop-category-hero__content {

/* ============================================
   Remove gap between .site-content and .ast-container
   on the shop page — minimize any padding/margin
   that creates an apparent empty space.
   ============================================ */

body.woocommerce-shop #content.site-content {
    padding-top: 0 !important;
}

body.woocommerce-shop #content.site-content > .ast-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure the hero itself does not push extra space above the container */
body.woocommerce-shop .shop-category-hero {
    margin-top: 0 !important;
    padding-top: 1rem !important; /* small internal spacing if needed */
}

/* If a fixed navbar overlaps content, add small top offset to the hero instead
   (uncomment to enable) */
/* body.woocommerce-shop .shop-category-hero { padding-top: 3.5rem !important; } */

    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 420px;
    width: 100%;
    justify-self: flex-start;
    align-self: flex-start;
    text-align: left;
}

.shop-category-hero__eyebrow {
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.shop-category-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    margin: 0;
    line-height: 1.2;
}

.shop-category-hero__description {
    max-width: 720px;
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.shop-category-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.shop-category-hero__cta,
.shop-category-hero__link {
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shop-category-hero__cta {
    background-color: #f8fafc;
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

.shop-category-hero__link {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    background: transparent;
}

.shop-category-hero__cta:hover,
.shop-category-hero__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.35);
}

/* ============================================
   Flip-card behavior: Desktop vs Mobile
   - Desktop (hover capable): keep existing flip behavior
   - Mobile/Tablet (hover: none): disable flip, hide back card
   Scope: homepage/front-page only to avoid affecting shop or other pages
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .home .ready-made-card,
    .front-page .ready-made-card {
        perspective: none !important;
        -webkit-perspective: none !important;
    }

    .home .ready-made-card__front,
    .front-page .ready-made-card__front {
        position: relative !important;
        transform: none !important;
        -webkit-transform: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
    }

    /* Hide the back entirely from layout and accessibility on small devices */
    .home .ready-made-card__back,
    .front-page .ready-made-card__back {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    /* Ensure WooCommerce product loops don't render duplicate visual space */
    .home ul.products li.product .ready-made-card__back,
    .front-page ul.products li.product .ready-made-card__back {
        display: none !important;
    }
}


.shop-category-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.shop-category-hero__visual-frame {
    width: 100%;
    max-width: 640px;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.35rem;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
}

.shop-category-hero__visual-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
}

@media (max-width: 960px) {
    .shop-category-hero__layout {
        grid-template-columns: 1fr;
    }
    .shop-category-hero__visual-frame {
        padding: 1rem;
    }
}

/* Universal flip support via hover OR .is-flipped class
   - Keeps hover-based flip for desktop
   - Enables tap-to-flip on touch devices by toggling `.is-flipped`
   - Re-applies display/visibility for back-side in case earlier rules hid it
*/
.ready-made-card {
    perspective: 120rem !important;
}

.ready-made-card__side {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.6s ease;
}

.ready-made-card__front {
    transform: rotateY(0deg);
    position: absolute;
    inset: 0;
    display: flex !important;
}

.ready-made-card__back {
    transform: rotateY(180deg);
    position: absolute;
    inset: 0;
    display: flex !important;
    visibility: visible !important;
}

/* active states: hover (desktop) or .is-flipped (JS toggle) */
.ready-made-card:hover .ready-made-card__front,
.ready-made-card.is-flipped .ready-made-card__front {
    transform: rotateY(-180deg);
}

.ready-made-card:hover .ready-made-card__back,
.ready-made-card.is-flipped .ready-made-card__back {
    transform: rotateY(0deg);
}

/* Ensure back-side is not part of normal flow on small devices but still animatable */
@media (max-width: 1023px) {
    .ready-made-card__side { position: absolute; }
}

/* Small 'Info' hint button for touch users to flip the card */
@media (pointer: coarse), (max-width: 1023px) {
    .ready-made-card__hint-btn {
        position: absolute;
        top: 0.6rem;
        right: 0.6rem;
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 999px;
        background: rgba(0,0,0,0.6);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1rem;
        z-index: 30;
        border: none;
        box-shadow: 0 6px 18px rgba(0,0,0,0.35);
        -webkit-tap-highlight-color: transparent;
    }

    .ready-made-card__hint-btn:focus { outline: 2px solid rgba(255,255,255,0.85); }

    /* Slightly larger hit area on very small screens */
    @media (max-width: 420px) {
        .ready-made-card__hint-btn { width: 2.8rem; height: 2.8rem; font-size: 1.05rem; }
    }
}

.ready-made-hero__typed-wrapper {
    align-self: flex-start;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(248, 250, 252, 0.15);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.ready-made-hero__typed-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(248, 250, 252, 0.6);
}

.ready-made-hero__typed {
    font-weight: 700;
    color: #fcd34d;
    min-height: 1.25rem;
    position: relative;
    padding-right: 0.6rem;
}

.ready-made-hero__typed::after {
    content: '';
    width: 2px;
    height: 1.5rem;
    background: #fcd34d;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: readyMadeCursor 0.8s steps(1) infinite;
}

@keyframes readyMadeCursor {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.ready-made-grid-section {
    padding: 1rem 1rem 3rem;
}

.ready-made-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ready-made-card {
    position: relative;
    perspective: 120rem;
    min-height: 44rem;
}

.woocommerce ul.products li.product.ready-made-card {
    list-style: none;
    float: none;
    margin: 0 0 2.5rem;
    padding: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .woocommerce ul.products li.product.ready-made-card {
        width: calc(50% - 1rem);
        margin: 0 0 2.5rem 0;
    }
}

@media (min-width: 1200px) {
    .woocommerce ul.products li.product.ready-made-card {
        width: calc(33.333% - 1rem);
    }
}

.ready-made-card__side {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.8s ease;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.25);
}

.ready-made-card__front {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.ready-made-card__back {
    transform: rotateY(180deg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
}

.ready-made-card:hover .ready-made-card__front {
    transform: rotateY(-180deg);
}

.ready-made-card:hover .ready-made-card__back {
    transform: rotateY(0deg);
}

.ready-made-card__media {
    position: relative;
    height: 10rem;
    min-height: 10rem;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    flex-shrink: 0;
}

.ready-made-card__media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ready-made-card__media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.7);
    background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
}

.ready-made-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ready-made-card__eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #475569;
    margin-bottom: 0.5rem;
}

.ready-made-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.ready-made-card__excerpt {
    color: #475569;
    flex: 1;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.ready-made-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    justify-content: center;
    text-align: center;
}

.ready-made-card__price {
    font-weight: 700;
    color: #0f172a;
    width: 100%;
}

.ready-made-card__badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
}

.ready-made-card__link {
    font-weight: 600;
    color: #2563eb;
}

.ready-made-card__cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   Hero star constellation background
   ============================================ */

.astra-star-constellation {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.astra-star-constellation__canvas {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0 !important;
}

.astra-star-constellation__layer {
    position: relative !important;
    z-index: 2 !important;
}

.ready-made-card__cta-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.ready-made-card__cta-price {
    font-size: 1.25rem;
    font-weight: 600;
}

.ready-made-card__cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ready-made-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    background: #fff;
    color: #0f172a;
}

.ready-made-card__btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.ready-made-card__back--1 {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.ready-made-card__back--2 {
    background: linear-gradient(135deg, #10b981, #059669);
}

.ready-made-card__back--3 {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.ready-made-pagination {
    margin-top: 3rem;
    text-align: center;
}

.ready-made-empty {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 1.25rem;
    background: #f8fafc;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
}

@media (hover: none) and (pointer: coarse), (max-width: 1023px) {
    .ready-made-card__side {
        position: relative;
        transform: rotateY(0) !important;
    }

    /* On small viewports or non-hover devices, hide the back-side on homepage/front-page only */
    body.home .ready-made-card__back,
    body.front-page .ready-made-card__back,
    .home .ready-made-card__back {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        clip: rect(0 0 0 0) !important;
    }
}

@media (max-width: 768px) {
    .ready-made-hero {
        padding: 2.5rem 1.25rem 3rem;
    }

    .ready-made-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .ready-made-btn,
    .ready-made-btn--ghost {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SHOP TESTIMONIALS SECTION
   ============================================ */

.shop-testimonials {
    padding: 2.5rem 1.5rem 5rem;
    background: #f8fafc;
    margin-top: 0;
}

.shop-testimonials__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.shop-testimonials__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.shop-testimonials__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.shop-testimonials__title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    color: #0f172a;
    margin-bottom: 1rem;
}

.shop-testimonials__subtitle {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
}

.shop-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.shop-testimonials__card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shop-testimonials__quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #0f172a;
}

.shop-testimonials__name {
    font-weight: 600;
    color: #0f172a;
}

.shop-testimonials__role {
    color: #475569;
    font-size: 0.95rem;
}

/* ============================================
   SHOP ABOUT ME SECTION
   (inherits testimonials layout; background only)
   ============================================ */

.shop-aboutme.shop-testimonials {
    background: linear-gradient(180deg, #e8fcef 0%, #e8fcef 45%, #f8fafc 80%, #ffffff 100%);
}

.shop-aboutme .shop-aboutme__embed {
    width: 100%;
}

.shop-aboutme .shop-aboutme__iframe {
    width: 100%;
    border: 0;
    display: block;
}

.wisuda .wisuda__embed {
    width: 100%;
}

.wisuda .wisuda__iframe {
    width: 100%;
    border: 0;
    display: block;
}

/* Full-bleed Wisuda section on homepage (break out of Astra container padding) */
.wisuda {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
    overflow-x: clip;
}

.wisuda .wisuda__embed {
    max-width: none;
}

/* ============================================
   SHOP PAGE PRODUCT CARDS - TAILWIND HOVER STYLE
   ============================================ */


.woocommerce ul.products .product-card {
    border: 5px solid transparent;
    border-radius: 1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.woocommerce ul.products .product-card:hover {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.18);
    transform: translateY(-6px) scale(1.03);
    border-color: #1e3a8a;
}

/* ============================================
   HOMEPAGE CONSTELLATION HERO
   ============================================ */

body.home {
    min-height: 100vh;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes bounceColor {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes bigBounce {
    0%, 100% {
        transform: translateY(-4%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounceColor {
    animation: bounceColor 0.75s ease-in-out infinite;
}

.animate-bigBounce {
    animation: bigBounce 1s infinite;
    will-change: transform;
}

.animate-sequence span,
.animate-sequence-right span {
    opacity: 0;
    animation: showBounce 4.5s linear infinite;
    position: absolute;
    white-space: nowrap;
    left: 50%;
}

.animate-sequence span:nth-child(1),
.animate-sequence-right span:nth-child(3) {
    animation-delay: 0s;
}

.animate-sequence span:nth-child(2),
.animate-sequence-right span:nth-child(1) {
    animation-delay: 1.5s;
}

.animate-sequence span:nth-child(3),
.animate-sequence-right span:nth-child(2) {
    animation-delay: 3s;
}

.animate-sequence-right span:nth-child(1) {
    animation-delay: 1.5s;
}

.animate-sequence-right span:nth-child(2) {
    animation-delay: 3s;
}

.animate-sequence-right span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes showBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(1);
    }

    10% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }

    20% {
        transform: translateX(-50%) scale(0.95);
    }

    30%,
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1);
    }
}

.home #constellation-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background-image: linear-gradient(to bottom, #e8fcef 0%, #26b497 100%);
    overflow: hidden;
}

.home .constellation-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.home .constellation-demo-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    max-width: 640px;
    padding: 2.5rem;
    margin: 0 auto;
}

/* =====================================================
   HOMEPAGE ORIGINAL DESIGN – MISSING UTILITY FALLBACKS
   Added to replicate styling & animations from bintang/index.html
   ===================================================== */

/* Typing cursor blink */
@keyframes typingBlink { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }
.typing-cursor { display:inline-block; width:2px; height:1.4em; background:#1e293b; vertical-align:bottom; animation: typingBlink .8s steps(2,end) infinite; margin-left:2px; }

/* Fade-in slide animations (non Tailwind) */
@keyframes fadeInRight { 0% { opacity:0; transform:translateX(40px);} 100% { opacity:1; transform:translateX(0);} }
@keyframes fadeInLeft { 0% { opacity:0; transform:translateX(-40px);} 100% { opacity:1; transform:translateX(0);} }
.animate-fadeInRight { animation: fadeInRight .9s ease both; }
.animate-fadeInLeft { animation: fadeInLeft .9s ease both; }

/* Arbitrary Tailwind animation class fallback */
@keyframes subtle-up-down { 0%{transform:translateY(0);}50%{transform:translateY(-6px);}100%{transform:translateY(0);} }
.animate-\[subtle-up-down_1\.5s_ease-in-out_infinite\] { animation: subtle-up-down 1.5s ease-in-out infinite; }

/* Basic button styling mirrors original intent (btn / btn--white) */
.btn { position:relative; display:inline-flex; align-items:center; justify-content:center; font-weight:600; text-decoration:none; cursor:pointer; }
.btn--white { background:#ffffff; color:#1f2937; }
.btn--white:hover { background:#1d4ed8; color:#fff; }

/* Ensure z-index layering for fixed nav vs canvas */
header nav.fixed { z-index:50; }

/* Provide width utility fallbacks if Tailwind local build incomplete */
.w-96 { width:24rem; }
.h-6 { height:1.5rem; }
.h-8 { height:2rem; }
.max-w-xl { max-width:36rem; }
.max-w-7xl { max-width:80rem; }
.p-5 { padding:1.25rem; }
.pt-20 { padding-top:5rem; }
.gap-8 { gap:2rem; }
.px-4 { padding-left:1rem; padding-right:1rem; }
.px-6 { padding-left:1.5rem; padding-right:1.5rem; }
.py-3 { padding-top:.75rem; padding-bottom:.75rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left:.75rem; }
.rounded-md { border-radius:.375rem; }
.rounded-full { border-radius:9999px; }
.rounded-2xl { border-radius:1rem; }
.rounded-3xl { border-radius:1.5rem; }
.shadow-md { box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg { box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1); }
.font-bold { font-weight:700; }
.text-sm { font-size:.875rem; }
.text-xs { font-size:.75rem; }
.text-center { text-align:center; }
.text-black { color:#000; }
.text-gray-700 { color:#374151; }
.text-red-800 { color:#991b1b; }
.bg-white { background:#fff; }
.bg-blue-100 { background:#dbeafe; }
.bg-blue-400 { background:#60a5fa; }
.bg-blue-500 { background:#3b82f6; }
.bg-blue-600 { background:#2563eb; }
.flex { display:flex; }
.flex-col { flex-direction:column; }
.flex-grow { flex-grow:1; }
.items-center { align-items:center; }
.justify-center { justify-content:center; }
.justify-between { justify-content:space-between; }
.mx-auto { margin-left:auto; margin-right:auto; }
.relative { position:relative; }
.fixed { position:fixed; }
.inset-x-0 { left:0; right:0; }
.top-0 { top:0; }
.z-50 { z-index:50; }
.w-full { width:100%; }
.lg\:flex-row { }
@media (min-width:1024px){ .lg\:flex-row { flex-direction:row; } .lg\:p-15 { padding:3.75rem; } }
.tracking-wide { letter-spacing:.05em; }
.group:hover .group-hover\:opacity-30 { opacity:.3; }
.opacity-0 { opacity:0; }
.transition { transition:all .3s ease; }
.duration-300 { transition-duration:.3s; }
.ease-in-out { transition-timing-function:cubic-bezier(.4,0,.2,1); }
.hover\:scale-110:hover { transform:scale(1.10); }
.hover\:-translate-y-1:hover { transform:translateY(-0.25rem); }
.hover\:bg-blue-600:hover { background:#2563eb; }
.hover\:text-white:hover { color:#fff; }
.visited\:bg-blue-500:visited { background:#3b82f6; }
.visited\:text-white:visited { color:#fff; }

/* Fallback for group-hover effect inside gradient button */
.group { position:relative; }
.group-hover\:shadow-xl:hover { box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04); }

/* ============================================
   REMOVE BLUE BORDER FOR JASA PENGEMBANGAN APLIKASI
   CATEGORY PRODUCTS ON HOMEPAGE ONLY
   ============================================ */
/* Target the correct category class: product_cat-pengembangan-jasa-pembuatan-aplikasi */
body.home li.product_cat-pengembangan-jasa-pembuatan-aplikasi .product-card,
.home .woocommerce ul.products li.product_cat-pengembangan-jasa-pembuatan-aplikasi .product-card {
    border: none !important;
    border-width: 0 !important;
}

body.home li.product_cat-pengembangan-jasa-pembuatan-aplikasi .product-card:hover,
.home .woocommerce ul.products li.product_cat-pengembangan-jasa-pembuatan-aplikasi .product-card:hover {
    border: none !important;
    border-width: 0 !important;
    border-color: transparent !important;
}

/* ============================================
   HOMEPAGE HERO HORIZONTAL RE-CENTERING (STRONG FIX)
   Desktop only - Pushes content away from edges for better visual balance
   ============================================ */
@media (min-width: 1024px) {
    /* Add significant horizontal padding to hero container */
    body.home .shop-category-hero__inner {
        padding-left: 5rem;
        padding-right: 5rem;
    }
    
    /* Push LEFT text column noticeably to the RIGHT - no longer hugging left edge */
    body.home .shop-category-hero .animate-fadeInRight {
        margin-left: 4rem;
    }
    
    /* Push RIGHT image column significantly toward the RIGHT boundary */
    body.home .shop-category-hero .animate-fadeInLeft {
        margin-left: 5rem;
    }
}

/* ============================================
   HERO ICON → TITLE SPACING (HOMEPAGE, DESKTOP)
   - Increases horizontal gap between icon image and heading
   - Scoped to body.home .shop-category-hero and desktop only
   - Uses gap where supported and a margin-right fallback on the image
   ============================================ */
@media (min-width: 1024px) {
    body.home .shop-category-hero .flex.items-center.mb-6 {
        gap: 1rem; /* primary spacing between icon and text */
    }

    /* Fallback and explicit margin for older browsers */
    body.home .shop-category-hero .flex.items-center.mb-6 img {
        margin-right: 0.75rem;
        display: inline-block;
        vertical-align: middle;
    }

}


/* ============================================
   (1) FIX ICON + TEXT ALIGNMENT (HOMEPAGE HERO ONLY)
   Target: body.home .shop-category-hero .flex.items-center.mb-6
   Goal: visually center icon and h2 without resizing
   ============================================ */
body.home .shop-category-hero .flex.items-center.mb-6 {
    align-items: center !important;
}

body.home .shop-category-hero .flex.items-center.mb-6 > img {
    align-self: center !important;
    display: block;
    /* Minor nudge to correct baseline drift across browsers */
    transform: translateY(-2px);
}

body.home .shop-category-hero .flex.items-center.mb-6 > h2 {
    line-height: 1.2 !important;
}

/* ============================================
   HOMEPAGE HERO BUTTON MICRO-ADJUSTMENTS (SCOPED)
   - Only affects the 2 buttons inside the hero on homepage
   - Does not change global .btn / .btn-gradient styles
   ============================================ */

body.home .shop-category-hero .flex.space-x-4.font-bold {
    gap: 1.25rem;
}

body.home .shop-category-hero .flex.space-x-4.font-bold a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

/* Button 1: white pill button ("Let's Connect" style) */
body.home .shop-category-hero .flex.space-x-4.font-bold a.btn {
    background-color: rgba(255, 255, 255, 0.95);
    color: #374151;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.12), 0 4px 6px -4px rgba(0,0,0,.12);
}

body.home .shop-category-hero .flex.space-x-4.font-bold a.btn:hover {
    transform: scale(1.10) translateY(-0.25rem);
    background-color: #3b82f6;
    color: #ffffff;
}

/* Button 2: gradient pill button ("My RESUME" style) */
body.home .shop-category-hero .flex.space-x-4.font-bold a.btn-gradient {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-image: linear-gradient(to right, #ec4899, #ef4444, #f59e0b);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.12), 0 10px 10px -5px rgba(0,0,0,.10);
}

body.home .shop-category-hero .flex.space-x-4.font-bold a.btn-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, #facc15, #ef4444, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: astra_hero_btn_pulse 2s ease-in-out infinite;
}

body.home .shop-category-hero .flex.space-x-4.font-bold a.btn-gradient:hover {
    transform: scale(1.10);
    box-shadow: 0 25px 35px -10px rgba(0,0,0,.18);
}

body.home .shop-category-hero .flex.space-x-4.font-bold a.btn-gradient:hover::before {
    opacity: 0.30;
}

body.home .shop-category-hero .flex.space-x-4.font-bold a.btn-gradient > * {
    position: relative;
    z-index: 1;
}

/* Extra spacing between hero paragraph and button group (homepage only) */
body.home .shop-category-hero .text-2xl.text-black.mb-8 + .flex.space-x-4.font-bold {
    margin-top: 0.75rem;
}

@keyframes astra_hero_btn_pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.22; }
}
