/* =========================================================
   FAQ PAGE
   ========================================================= */

:root {
    --faq-primary: #2563eb;
    --faq-primary-dark: #1d4ed8;
    --faq-text: #111827;
    --faq-muted: #6b7280;
    --faq-border: #e5e7eb;
    --faq-bg: #f8fafc;
    --faq-white: #ffffff;
    --faq-radius: 16px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

body {
    background: var(--faq-white);
    color: var(--faq-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* =========================================================
   FAQ BANNER
   ========================================================= */

.faq-banner {
    position: relative;
    min-height: 360px;

    display: flex;
    align-items: center;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.92),
            rgba(37, 99, 235, 0.75)
        ),
        url("/images/faq-banner.jpg")
        center center / cover no-repeat;

    overflow: hidden;
}

.faq-banner::after {
    content: "";
    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    bottom: -150px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
}

.faq-banner .container {
    position: relative;
    z-index: 2;
}

.faq-banner h1 {
    max-width: 700px;

    margin-bottom: 14px;

    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.faq-banner p {
    max-width: 650px;

    margin: 0;

    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   FAQ SECTION
   ========================================================= */

.faq-section {
    padding: 50px 0;
    background: var(--faq-bg);
}

.faq-header {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.faq-header h2 {
    margin-bottom: 12px;

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;

    color: var(--faq-text);
}

.faq-header p {
    margin: 0;

    color: var(--faq-muted);
    font-size: 1rem;
    line-height: 1.7;
}


/* =========================================================
   ACCORDION
   ========================================================= */

#faqAccordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#faqAccordion .accordion-item {
    border: 1px solid var(--faq-border) !important;
    border-radius: var(--faq-radius) !important;

    overflow: hidden;

    background: var(--faq-white);

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

#faqAccordion .accordion-item:hover {
    border-color: #d1d5db !important;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   QUESTION
   ========================================================= */

#faqAccordion .accordion-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 70px;

    padding: 20px 24px;

    border: 0;

    background: var(--faq-white);

    color: var(--faq-text);

    font-size: 1rem;
    font-weight: 650;

    line-height: 1.5;

    box-shadow: none !important;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

#faqAccordion .accordion-button:hover {
    color: var(--faq-primary);
}


/* Open state */

#faqAccordion .accordion-button:not(.collapsed) {
    color: var(--faq-primary);

    background: #f8faff;
}


/* Remove Bootstrap default focus */

#faqAccordion .accordion-button:focus {
    outline: none;
    box-shadow: none !important;
}


/* =========================================================
   ACCORDION ICON
   ========================================================= */
   
#faqAccordion .accordion-button::after {
    content: "";

    flex-shrink: 0;

    width: 10px;
    height: 10px;

    margin-left: 20px;

    /* Hapus icon bawaan Bootstrap */
    background-image: none !important;
    background-color: transparent !important;

    /* Buat chevron dengan CSS */
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;

    transform: rotate(45deg);

    transition:
        transform 0.25s ease,
        border-color 0.2s ease;

    /* Jangan gunakan Bootstrap background */
    box-shadow: none;
}


/* Hover */
#faqAccordion .accordion-button:hover::after {
    border-color: var(--faq-primary);
}


/* Saat accordion terbuka */
#faqAccordion .accordion-button:not(.collapsed)::after {
    border-color: var(--faq-primary);

    transform: rotate(-135deg);
}

/* =========================================================
   ANSWER
   ========================================================= */

#faqAccordion .accordion-collapse {
    border: 0;
}

#faqAccordion .accordion-body {
    padding: 0 24px 24px;

    color: var(--faq-muted);

    font-size: 0.95rem;
    line-height: 1.8;
}

#faqAccordion .accordion-body p:last-child {
    margin-bottom: 0;
}

#faqAccordion .accordion-body ul,
#faqAccordion .accordion-body ol {
    margin-bottom: 0;
    padding-left: 20px;
}

#faqAccordion .accordion-body a {
    color: var(--faq-primary);
    text-decoration: none;
}

#faqAccordion .accordion-body a:hover {
    text-decoration: underline;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.faq-empty {
    padding: 50px 20px;

    text-align: center;

    border: 1px dashed var(--faq-border);
    border-radius: var(--faq-radius);

    background: var(--faq-bg);
}

.faq-empty p {
    margin: 0;

    color: var(--faq-muted);
}


/* =========================================================
   TABLET
   768px - 991px
   ========================================================= */

@media (max-width: 991.98px) {

    .faq-banner {
        min-height: 320px;
    }

    .faq-section {
        padding: 65px 0;
    }

    .faq-header {
        margin-bottom: 35px;
    }

    #faqAccordion .accordion-button {
        min-height: 65px;
        padding: 18px 20px;
    }

    #faqAccordion .accordion-body {
        padding: 0 20px 20px;
    }
}


/* =========================================================
   MOBILE
   < 768px
   ========================================================= */

@media (max-width: 767.98px) {

    .faq-banner {
        min-height: 280px;

        text-align: center;

        background-position: center;
    }

    .faq-banner h1 {
        margin-left: auto;
        margin-right: auto;

        font-size: 2rem;
    }

    .faq-banner p {
        margin-left: auto;
        margin-right: auto;

        font-size: 0.95rem;
        line-height: 1.6;
    }

    .faq-section {
        padding: 50px 0;
    }

    .faq-header {
        margin-bottom: 28px;
    }

    .faq-header h2 {
        font-size: 1.75rem;
    }

    .faq-header p {
        font-size: 0.9rem;
    }

    #faqAccordion {
        gap: 10px;
    }

    #faqAccordion .accordion-item {
        border-radius: 12px !important;
    }

    #faqAccordion .accordion-button {
        min-height: 60px;

        padding: 16px;

        font-size: 0.9rem;
        line-height: 1.45;
    }

    #faqAccordion .accordion-button::after {
        width: 30px;
        height: 30px;

        margin-left: 12px;

        background-size: 12px;
    }

    #faqAccordion .accordion-body {
        padding: 0 16px 18px;

        font-size: 0.88rem;
        line-height: 1.7;
    }
}


/* =========================================================
   SMALL MOBILE
   < 480px
   ========================================================= */

@media (max-width: 479.98px) {

    .faq-banner {
        min-height: 250px;
    }

    .faq-banner h1 {
        font-size: 1.75rem;
    }

    .faq-banner p {
        font-size: 0.88rem;
    }

    .faq-section {
        padding: 40px 0;
    }

    #faqAccordion .accordion-button {
        padding: 14px;

        font-size: 0.875rem;
    }

    #faqAccordion .accordion-button::after {
        width: 27px;
        height: 27px;

        margin-left: 8px;
    }

    #faqAccordion .accordion-body {
        padding: 0 14px 16px;

        font-size: 0.85rem;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #faqAccordion .accordion-item,
    #faqAccordion .accordion-button,
    #faqAccordion .accordion-button::after {
        transition: none;
    }
}

/* =========================================================
   NEWSLETTER
========================================================= */

:root {
    --newsletter-primary: #2563eb;
    --newsletter-primary-dark: #1d4ed8;

    --newsletter-text: #111827;
    --newsletter-muted: #6b7280;

    --newsletter-border: #e5e7eb;
    --newsletter-bg: #f8fafc;
    --newsletter-white: #ffffff;

    --newsletter-radius: 18px;
}


/* =========================================================
   BANNER
========================================================= */

.newsletter-banner {
    position: relative;

    min-height: 380px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: #ffffff;
}


/* Banner Image */

.newsletter-banner-image {
    position: absolute;

    inset: 0;

    z-index: 0;
}

.newsletter-banner-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* Banner Overlay */

.newsletter-banner-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.92) 0%,
            rgba(15, 23, 42, 0.78) 45%,
            rgba(15, 23, 42, 0.35) 100%
        );
}


/* Banner Container */

.newsletter-banner-container {
    position: relative;

    z-index: 2;
}


/* Banner Content */

.newsletter-banner-content {
    max-width: 680px;
}

.newsletter-badge {
    display: inline-flex;

    align-items: center;

    margin-bottom: 18px;
    padding: 7px 15px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(8px);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.newsletter-banner h1 {
    margin: 0 0 16px;

    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -0.03em;
}

.newsletter-banner p {
    max-width: 600px;

    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: clamp(0.95rem, 2vw, 1.1rem);

    line-height: 1.7;
}


/* =========================================================
   NEWSLETTER SECTION
========================================================= */

.newsletter-section {
    padding: 50px 0;

    background: var(--newsletter-bg);
}


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

.newsletter-header {
    max-width: 700px;

    margin: 0 auto 45px;

    text-align: center;
}

.newsletter-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--newsletter-primary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.newsletter-header h2 {
    margin: 0 0 12px;

    color: var(--newsletter-text);

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;

    line-height: 1.2;
}

.newsletter-header p {
    margin: 0;

    color: var(--newsletter-muted);

    font-size: 1rem;

    line-height: 1.7;
}


/* =========================================================
   POST CARD
========================================================= */

.newsletter-card {
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--newsletter-border);

    border-radius: var(--newsletter-radius);

    background: var(--newsletter-white);

    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.03);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.newsletter-card:hover {
    transform: translateY(-6px);

    border-color: #dbeafe;

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.09);
}


/* =========================================================
   POST IMAGE
========================================================= */

.newsletter-card-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e5e7eb;
}

.newsletter-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.4s ease;
}

.newsletter-card:hover .newsletter-card-image img {
    transform: scale(1.05);
}


/* =========================================================
   POST BODY
========================================================= */

.newsletter-card-body {
    flex: 1;

    padding: 25px;
}

.newsletter-card-title {
    margin: 0 0 14px;

    color: var(--newsletter-text);

    font-size: 1.15rem;
    font-weight: 700;

    line-height: 1.45;
}

.newsletter-card-content {
    color: var(--newsletter-muted);

    font-size: 0.92rem;

    line-height: 1.75;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.newsletter-card-content p {
    margin-bottom: 8px;
}

.newsletter-card-content p:last-child {
    margin-bottom: 0;
}

.newsletter-card-content img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.newsletter-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 16px 25px;

    border-top: 1px solid var(--newsletter-border);

    color: var(--newsletter-primary);

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.newsletter-arrow {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;

    font-size: 18px;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.newsletter-card:hover .newsletter-arrow {
    transform: translateX(4px);

    background: #dbeafe;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.newsletter-empty {
    padding: 60px 20px;

    text-align: center;

    border: 1px dashed var(--newsletter-border);

    border-radius: var(--newsletter-radius);

    background: var(--newsletter-white);
}

.newsletter-empty-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #eff6ff;

    color: var(--newsletter-primary);

    font-size: 26px;
}

.newsletter-empty h3 {
    margin-bottom: 8px;

    color: var(--newsletter-text);

    font-size: 1.15rem;
    font-weight: 700;
}

.newsletter-empty p {
    margin: 0;

    color: var(--newsletter-muted);

    font-size: 0.9rem;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .newsletter-banner {
        min-height: 330px;
    }

    .newsletter-banner-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(15, 23, 42, 0.90),
                rgba(15, 23, 42, 0.55)
            );
    }

    .newsletter-section {
        padding: 65px 0;
    }

    .newsletter-header {
        margin-bottom: 35px;
    }

    .newsletter-card-body {
        padding: 22px;
    }

    .newsletter-card-footer {
        padding: 15px 22px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .newsletter-banner {
        min-height: 300px;

        text-align: center;
    }

    .newsletter-banner-image img {
        object-position: center;
    }

    .newsletter-banner-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(15, 23, 42, 0.60),
                rgba(15, 23, 42, 0.90)
            );
    }

    .newsletter-banner-content {
        max-width: 100%;
    }

    .newsletter-banner h1 {
        font-size: 2rem;
    }

    .newsletter-banner p {
        margin-left: auto;
        margin-right: auto;

        font-size: 0.92rem;
    }

    .newsletter-section {
        padding: 50px 0;
    }

    .newsletter-header {
        margin-bottom: 30px;
    }

    .newsletter-header h2 {
        font-size: 1.75rem;
    }

    .newsletter-header p {
        font-size: 0.9rem;
    }

    .newsletter-card {
        border-radius: 14px;
    }

    .newsletter-card-image {
        aspect-ratio: 16 / 9;
    }

    .newsletter-card-body {
        padding: 20px;
    }

    .newsletter-card-title {
        font-size: 1.05rem;
    }

    .newsletter-card-content {
        font-size: 0.88rem;
    }

    .newsletter-card-footer {
        padding: 14px 20px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 479.98px) {

    .newsletter-banner {
        min-height: 270px;
    }

    .newsletter-badge {
        margin-bottom: 14px;

        font-size: 10px;
    }

    .newsletter-banner h1 {
        font-size: 1.75rem;
    }

    .newsletter-banner p {
        font-size: 0.86rem;
    }

    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-card-body {
        padding: 18px;
    }

    .newsletter-card-footer {
        padding: 13px 18px;
    }

    .newsletter-arrow {
        width: 30px;
        height: 30px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .newsletter-card,
    .newsletter-card-image img,
    .newsletter-arrow {
        transition: none;
    }
}

/* =========================================================
   NEWSLETTER DETAIL
========================================================= */

.newsletter-detail-banner {
    position: relative;

    min-height: 280px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #2563eb
        );
}

.newsletter-detail-banner::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -120px;
    top: -180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);
}

.newsletter-detail-banner .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.newsletter-breadcrumb {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 22px;

    font-size: 14px;
}

.newsletter-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);

    text-decoration: none;

    transition: color 0.2s ease;
}

.newsletter-breadcrumb a:hover {
    color: #fff;
}

.newsletter-breadcrumb span {
    color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   BANNER TITLE
========================================================= */

.newsletter-detail-banner h1 {
    max-width: 900px;

    margin: 0;

    font-size: clamp(2rem, 5vw, 3.25rem);

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.03em;
}


/* =========================================================
   SECTION
========================================================= */

.newsletter-detail-section {
    padding: 70px 0;

    background: #f8fafc;
}


/* =========================================================
   CARD
========================================================= */

.newsletter-detail-card {
    overflow: hidden;

    border: 1px solid #e5e7eb;

    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   MAIN IMAGE
========================================================= */

.newsletter-detail-image {
    width: 100%;

    aspect-ratio: 16 / 8;

    overflow: hidden;

    background: #e5e7eb;
}

.newsletter-detail-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   CONTENT
========================================================= */

.newsletter-detail-content {
    padding: 40px 45px;
}

.newsletter-detail-title {
    margin: 0 0 10px;

    color: #111827;

    font-size: clamp(1.7rem, 4vw, 2.3rem);

    font-weight: 800;

    line-height: 1.25;
}

.newsletter-detail-meta {
    margin-bottom: 30px;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   ARTICLE BODY
========================================================= */

.newsletter-detail-body {
    color: #374151;

    font-size: 1rem;

    line-height: 1.9;
}

.newsletter-detail-body p {
    margin-bottom: 20px;
}

.newsletter-detail-body p:last-child {
    margin-bottom: 0;
}

.newsletter-detail-body h2,
.newsletter-detail-body h3,
.newsletter-detail-body h4 {
    margin-top: 32px;
    margin-bottom: 14px;

    color: #111827;

    font-weight: 700;

    line-height: 1.35;
}

.newsletter-detail-body h2 {
    font-size: 1.6rem;
}

.newsletter-detail-body h3 {
    font-size: 1.35rem;
}

.newsletter-detail-body h4 {
    font-size: 1.15rem;
}

.newsletter-detail-body ul,
.newsletter-detail-body ol {
    margin-bottom: 20px;

    padding-left: 25px;
}

.newsletter-detail-body li {
    margin-bottom: 8px;
}

.newsletter-detail-body a {
    color: #2563eb;

    text-decoration: none;
}

.newsletter-detail-body a:hover {
    text-decoration: underline;
}


/* Content Images */

.newsletter-detail-body img {
    max-width: 100%;
    height: auto;

    display: block;

    margin: 25px auto;

    border-radius: 12px;
}


/* Blockquote */

.newsletter-detail-body blockquote {
    margin: 25px 0;

    padding: 20px 25px;

    border-left: 4px solid #2563eb;

    border-radius: 0 10px 10px 0;

    background: #f8fafc;

    color: #4b5563;
}


/* Tables */

.newsletter-detail-body table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;

    overflow: hidden;
}

.newsletter-detail-body th,
.newsletter-detail-body td {
    padding: 12px 15px;

    border: 1px solid #e5e7eb;

    text-align: left;
}

.newsletter-detail-body th {
    background: #f8fafc;

    color: #111827;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.newsletter-detail-back {
    margin-top: 25px;
}

.newsletter-back-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 12px 18px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #fff;

    color: #374151;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.newsletter-back-button:hover {
    transform: translateX(-3px);

    border-color: #bfdbfe;

    background: #eff6ff;

    color: #2563eb;
}

.newsletter-back-button span:first-child {
    font-size: 18px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .newsletter-detail-banner {
        min-height: 250px;
    }

    .newsletter-detail-section {
        padding: 55px 0;
    }

    .newsletter-detail-content {
        padding: 35px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .newsletter-detail-banner {
        min-height: 230px;
    }

    .newsletter-breadcrumb {
        margin-bottom: 16px;

        font-size: 12px;
    }

    .newsletter-detail-banner h1 {
        font-size: 1.8rem;
    }

    .newsletter-detail-section {
        padding: 35px 0;
    }

    .newsletter-detail-card {
        border-radius: 14px;
    }

    .newsletter-detail-image {
        aspect-ratio: 16 / 9;
    }

    .newsletter-detail-content {
        padding: 25px 20px;
    }

    .newsletter-detail-title {
        font-size: 1.5rem;
    }

    .newsletter-detail-meta {
        margin-bottom: 22px;

        font-size: 13px;
    }

    .newsletter-detail-body {
        font-size: 0.92rem;

        line-height: 1.8;
    }

    .newsletter-detail-body h2 {
        font-size: 1.35rem;
    }

    .newsletter-detail-body h3 {
        font-size: 1.2rem;
    }

    .newsletter-detail-body img {
        margin: 20px auto;
        border-radius: 8px;
    }

    .newsletter-detail-body table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }

    .newsletter-detail-back {
        margin-top: 18px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 479.98px) {

    .newsletter-detail-banner {
        min-height: 210px;
    }

    .newsletter-detail-banner h1 {
        font-size: 1.55rem;
    }

    .newsletter-detail-content {
        padding: 22px 16px;
    }

    .newsletter-detail-title {
        font-size: 1.35rem;
    }

    .newsletter-detail-body {
        font-size: 0.88rem;
    }

    .newsletter-back-button {
        width: 100%;

        justify-content: center;
    }

}



/* =========================================================
   FORM
========================================================= */

.form-banner {
    position: relative;

    min-height: 380px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: #ffffff;
}


/* Banner Image */

.form-banner-image {
    position: absolute;

    inset: 0;

    z-index: 0;
}

.form-banner-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* Banner Overlay */

.form-banner-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            #0F1A4E 0%,
            #162675 45%,
            #243cb4 100%
        );
}

button[type="submit"] {
    background: linear-gradient(90deg, #0F1A4E 0%, #162675 45%, #243cb4 100%)!important;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;

    /* add shadow melayang */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
button[type="submit"]:hover {
    background: linear-gradient(90deg, #248eb4 0%, #164775 45%, #0f324e 100%)!important;
}

/* Banner Container */

.form-banner-container {
    position: relative;

    z-index: 2;
}


/* Banner Content */

.form-banner-content {
    max-width: 680px;
}

.form-badge {
    display: inline-flex;

    align-items: center;

    margin-bottom: 18px;
    padding: 7px 15px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(8px);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-banner h1 {
    margin: 0 0 16px;

    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -0.03em;
}

.form-banner p {
    max-width: 600px;

    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: clamp(0.95rem, 2vw, 1.1rem);

    line-height: 1.7;
}


/* =========================================================
   NEWSLETTER SECTION
========================================================= */

.form-section {
    padding: 50px 0;

    background: var(--form-bg);
}


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

.form-header {
    max-width: 700px;

    margin: 0 auto 45px;

    text-align: center;
}

.form-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--form-primary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.form-header h2 {
    margin: 0 0 12px;

    color: var(--form-text);

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;

    line-height: 1.2;
}

.form-header p {
    margin: 0;

    color: var(--form-muted);

    font-size: 1rem;

    line-height: 1.7;
}


/* =========================================================
   POST CARD
========================================================= */

.form-card {
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--form-border);

    border-radius: var(--form-radius);

    background: var(--form-white);

    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.03);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.form-card:hover {
    transform: translateY(-6px);

    border-color: #dbeafe;

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.09);
}


/* =========================================================
   POST IMAGE
========================================================= */

.form-card-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e5e7eb;
}

.form-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.4s ease;
}

.form-card:hover .form-card-image img {
    transform: scale(1.05);
}


/* =========================================================
   POST BODY
========================================================= */

.form-card-body {
    flex: 1;

    padding: 25px;
}

.form-card-title {
    margin: 0 0 14px;

    color: var(--form-text);

    font-size: 1.15rem;
    font-weight: 700;

    line-height: 1.45;
}

.form-card-content {
    color: var(--form-muted);

    font-size: 0.92rem;

    line-height: 1.75;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.form-card-content p {
    margin-bottom: 8px;
}

.form-card-content p:last-child {
    margin-bottom: 0;
}

.form-card-content img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.form-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 16px 25px;

    border-top: 1px solid var(--form-border);

    color: var(--form-primary);

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.form-arrow {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;

    font-size: 18px;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.form-card:hover .form-arrow {
    transform: translateX(4px);

    background: #dbeafe;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.form-empty {
    padding: 60px 20px;

    text-align: center;

    border: 1px dashed var(--form-border);

    border-radius: var(--form-radius);

    background: var(--form-white);
}

.form-empty-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #eff6ff;

    color: var(--form-primary);

    font-size: 26px;
}

.form-empty h3 {
    margin-bottom: 8px;

    color: var(--form-text);

    font-size: 1.15rem;
    font-weight: 700;
}

.form-empty p {
    margin: 0;

    color: var(--form-muted);

    font-size: 0.9rem;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .form-banner {
        min-height: 330px;
    }

    .form-banner-overlay {
        background:
        linear-gradient(
            90deg,
            #0F1A4E 0%,
            #162675 45%,
            #243cb4 100%
        );
    }

    .form-section {
        padding: 65px 0;
    }

    .form-header {
        margin-bottom: 35px;
    }

    .form-card-body {
        padding: 22px;
    }

    .form-card-footer {
        padding: 15px 22px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .form-banner {
        min-height: 300px;

        text-align: center;
    }

    .form-banner-image img {
        object-position: center;
    }

    .form-banner-overlay {
        background:
        linear-gradient(
            90deg,
            #0F1A4E 0%,
            #162675 45%,
            #243cb4 100%
        );
    }

    .form-banner-content {
        max-width: 100%;
    }

    .form-banner h1 {
        font-size: 2rem;
    }

    .form-banner p {
        margin-left: auto;
        margin-right: auto;

        font-size: 0.92rem;
    }

    .form-section {
        padding: 50px 0;
    }

    .form-header {
        margin-bottom: 30px;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .form-header p {
        font-size: 0.9rem;
    }

    .form-card {
        border-radius: 14px;
    }

    .form-card-image {
        aspect-ratio: 16 / 9;
    }

    .form-card-body {
        padding: 20px;
    }

    .form-card-title {
        font-size: 1.05rem;
    }

    .form-card-content {
        font-size: 0.88rem;
    }

    .form-card-footer {
        padding: 14px 20px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 479.98px) {

    .form-banner {
        min-height: 270px;
    }

    .form-badge {
        margin-bottom: 14px;

        font-size: 10px;
    }

    .form-banner h1 {
        font-size: 1.75rem;
    }

    .form-banner p {
        font-size: 0.86rem;
    }

    .form-section {
        padding: 40px 0;
    }

    .form-card-body {
        padding: 18px;
    }

    .form-card-footer {
        padding: 13px 18px;
    }

    .form-arrow {
        width: 30px;
        height: 30px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .form-card,
    .form-card-image img,
    .form-arrow {
        transition: none;
    }
}

/* =========================================================
   NEWSLETTER DETAIL
========================================================= */

.form-detail-banner {
    position: relative;

    min-height: 280px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #2563eb
        );
}

.form-detail-banner::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -120px;
    top: -180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);
}

.form-detail-banner .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.form-breadcrumb {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 22px;

    font-size: 14px;
}

.form-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);

    text-decoration: none;

    transition: color 0.2s ease;
}

.form-breadcrumb a:hover {
    color: #fff;
}

.form-breadcrumb span {
    color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   BANNER TITLE
========================================================= */

.form-detail-banner h1 {
    max-width: 900px;

    margin: 0;

    font-size: clamp(2rem, 5vw, 3.25rem);

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.03em;
}


/* =========================================================
   SECTION
========================================================= */

.form-detail-section {
    padding: 70px 0;

    background: #f8fafc;
}


/* =========================================================
   CARD
========================================================= */

.form-detail-card {
    overflow: hidden;

    border: 1px solid #e5e7eb;

    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   MAIN IMAGE
========================================================= */

.form-detail-image {
    width: 100%;

    aspect-ratio: 16 / 8;

    overflow: hidden;

    background: #e5e7eb;
}

.form-detail-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   CONTENT
========================================================= */

.form-detail-content {
    padding: 40px 45px;
}

.form-detail-title {
    margin: 0 0 10px;

    color: #111827;

    font-size: clamp(1.7rem, 4vw, 2.3rem);

    font-weight: 800;

    line-height: 1.25;
}

.form-detail-meta {
    margin-bottom: 30px;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   ARTICLE BODY
========================================================= */

.form-detail-body {
    color: #374151;

    font-size: 1rem;

    line-height: 1.9;
}

.form-detail-body p {
    margin-bottom: 20px;
}

.form-detail-body p:last-child {
    margin-bottom: 0;
}

.form-detail-body h2,
.form-detail-body h3,
.form-detail-body h4 {
    margin-top: 32px;
    margin-bottom: 14px;

    color: #111827;

    font-weight: 700;

    line-height: 1.35;
}

.form-detail-body h2 {
    font-size: 1.6rem;
}

.form-detail-body h3 {
    font-size: 1.35rem;
}

.form-detail-body h4 {
    font-size: 1.15rem;
}

.form-detail-body ul,
.form-detail-body ol {
    margin-bottom: 20px;

    padding-left: 25px;
}

.form-detail-body li {
    margin-bottom: 8px;
}

.form-detail-body a {
    color: #2563eb;

    text-decoration: none;
}

.form-detail-body a:hover {
    text-decoration: underline;
}


/* Content Images */

.form-detail-body img {
    max-width: 100%;
    height: auto;

    display: block;

    margin: 25px auto;

    border-radius: 12px;
}


/* Blockquote */

.form-detail-body blockquote {
    margin: 25px 0;

    padding: 20px 25px;

    border-left: 4px solid #2563eb;

    border-radius: 0 10px 10px 0;

    background: #f8fafc;

    color: #4b5563;
}


/* Tables */

.form-detail-body table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;

    overflow: hidden;
}

.form-detail-body th,
.form-detail-body td {
    padding: 12px 15px;

    border: 1px solid #e5e7eb;

    text-align: left;
}

.form-detail-body th {
    background: #f8fafc;

    color: #111827;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.form-detail-back {
    margin-top: 25px;
}

.form-back-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 12px 18px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #fff;

    color: #374151;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.form-back-button:hover {
    transform: translateX(-3px);

    border-color: #bfdbfe;

    background: #eff6ff;

    color: #2563eb;
}

.form-back-button span:first-child {
    font-size: 18px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .form-detail-banner {
        min-height: 250px;
    }

    .form-detail-section {
        padding: 55px 0;
    }

    .form-detail-content {
        padding: 35px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .form-detail-banner {
        min-height: 230px;
    }

    .form-breadcrumb {
        margin-bottom: 16px;

        font-size: 12px;
    }

    .form-detail-banner h1 {
        font-size: 1.8rem;
    }

    .form-detail-section {
        padding: 35px 0;
    }

    .form-detail-card {
        border-radius: 14px;
    }

    .form-detail-image {
        aspect-ratio: 16 / 9;
    }

    .form-detail-content {
        padding: 25px 20px;
    }

    .form-detail-title {
        font-size: 1.5rem;
    }

    .form-detail-meta {
        margin-bottom: 22px;

        font-size: 13px;
    }

    .form-detail-body {
        font-size: 0.92rem;

        line-height: 1.8;
    }

    .form-detail-body h2 {
        font-size: 1.35rem;
    }

    .form-detail-body h3 {
        font-size: 1.2rem;
    }

    .form-detail-body img {
        margin: 20px auto;
        border-radius: 8px;
    }

    .form-detail-body table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }

    .form-detail-back {
        margin-top: 18px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 479.98px) {

    .form-detail-banner {
        min-height: 210px;
    }

    .form-detail-banner h1 {
        font-size: 1.55rem;
    }

    .form-detail-content {
        padding: 22px 16px;
    }

    .form-detail-title {
        font-size: 1.35rem;
    }

    .form-detail-body {
        font-size: 0.88rem;
    }

    .form-back-button {
        width: 100%;

        justify-content: center;
    }

}

.btn-clear {
    border: 1px solid #ccc;

    &:hover {
        background: linear-gradient(90deg, #0F1A4E 0%, #162675 45%, #243cb4 100%)!important;
        color: #fff;
        fill: #fff;
    }
}

.signature-pad--actions {
    margin-top: -60px;
    padding-right: 15px;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
}

.form-control {
    border: 1px solid #162675!important;
}

.form-control:focus {
    border-color: #162675!important;
}

#jay-signature-pad {
    border: 2px dashed #162675
}

hr {
    color: #162675;
}

.form-check-input:checked {
    background-color: #162675;
    border-color: #162675;
}