/* =========================================================
   Subscribe / Follow - V15
   e-quran.com
   ========================================================= */

:root {
    --follow-bg: #f6f8f5;
    --follow-surface: #ffffff;
    --follow-surface-soft: #eef4ef;
    --follow-text: #1f332b;
    --follow-muted: #66766f;
    --follow-heading: #163c31;
    --follow-primary: #23604d;
    --follow-primary-strong: #174838;
    --follow-primary-soft: #e5f0e9;
    --follow-mail: #455f75;
    --follow-mail-strong: #334d62;
    --follow-mail-soft: #edf2f6;
    --follow-line: #dce5df;
    --follow-line-strong: #c6d5cc;
    --follow-success: #2f7657;
    --follow-warning: #9d7427;
    --follow-danger: #a54c4c;
    --follow-shadow: 0 18px 48px rgba(24, 58, 46, .08);
    --follow-shadow-soft: 0 10px 28px rgba(24, 58, 46, .06);
    --follow-radius-xl: 28px;
    --follow-radius-lg: 20px;
    --follow-radius-md: 14px;
    --follow-max: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--follow-bg);
}

.follow-page {
    min-height: 60vh;
    color: var(--follow-text);
    line-height: 1.9;
    background:
        radial-gradient(circle at 10% 8%, rgba(43, 101, 79, .055), transparent 28rem),
        radial-gradient(circle at 92% 24%, rgba(69, 95, 117, .045), transparent 25rem),
        var(--follow-bg);
}

.follow-page *,
.follow-page *::before,
.follow-page *::after {
    box-sizing: border-box;
}

.follow-shell {
    width: min(calc(100% - 32px), var(--follow-max));
    margin-inline: auto;
}

.follow-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--follow-muted);
    font-size: .88rem;
}

.follow-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.follow-breadcrumb a:hover {
    color: var(--follow-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.follow-hero {
    padding: 32px 0 30px;
}

.follow-hero__card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    overflow: hidden;
    padding: 34px;
    border: 1px solid var(--follow-line);
    border-radius: var(--follow-radius-xl);
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,246,241,.96));
    box-shadow: var(--follow-shadow);
}

.follow-hero__decoration {
    position: absolute;
    inset-inline-end: -80px;
    top: -90px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(35, 96, 77, .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 28px rgba(35, 96, 77, .025),
        0 0 0 62px rgba(35, 96, 77, .017);
    pointer-events: none;
}

.follow-hero__icon {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 1px solid #bbd0c3;
    border-radius: 21px;
    color: var(--follow-primary);
    background: linear-gradient(145deg, #edf6f0, #fff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.follow-hero__icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.follow-hero__copy {
    position: relative;
    z-index: 1;
}

.follow-eyebrow {
    margin: 0 0 5px;
    color: var(--follow-primary);
    font-size: .82rem;
    font-weight: 850;
}

.follow-hero h1 {
    margin: 0;
    color: var(--follow-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.25;
    font-weight: 850;
}

.follow-hero__copy > p:not(.follow-eyebrow) {
    max-width: 720px;
    margin: 12px 0 0;
    color: #50645b;
    font-size: 1.02rem;
}

.follow-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.follow-hero__badges span {
    padding: 6px 10px;
    border: 1px solid var(--follow-line);
    border-radius: 999px;
    color: var(--follow-muted);
    background: rgba(255,255,255,.65);
    font-size: .78rem;
    font-weight: 750;
}

.follow-hero__quick {
    position: relative;
    z-index: 1;
    min-width: 215px;
    display: grid;
    gap: 10px;
}

.follow-btn,
.follow-action {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-size: .94rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.follow-btn svg,
.follow-action svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.follow-btn:hover,
.follow-action:hover:not(:disabled) {
    transform: translateY(-2px);
}

.follow-btn--notify,
.follow-action--push {
    color: #fff !important;
    background: linear-gradient(135deg, var(--follow-primary), var(--follow-primary-strong));
    box-shadow: 0 11px 24px rgba(24, 76, 58, .2);
}

.follow-btn--notify:hover,
.follow-action--push:hover:not(:disabled) {
    box-shadow: 0 15px 30px rgba(24, 76, 58, .26);
}

.follow-btn--email,
.follow-action--mail {
    color: #fff !important;
    background: linear-gradient(135deg, var(--follow-mail), var(--follow-mail-strong));
    box-shadow: 0 10px 22px rgba(50, 73, 93, .18);
}

.follow-btn--secondary {
    color: var(--follow-primary-strong) !important;
    border-color: #aac5b7;
    background: #fff;
    box-shadow: var(--follow-shadow-soft);
}

.follow-section {
    padding: 32px 0;
    scroll-margin-top: 100px;
}

.follow-section--soft {
    border-block: 1px solid var(--follow-line);
    background: rgba(237, 243, 239, .55);
}

.follow-heading {
    max-width: 720px;
    margin-bottom: 18px;
}

.follow-heading h2 {
    margin: 0;
    color: var(--follow-heading);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.follow-heading > p:not(.follow-eyebrow) {
    margin: 5px 0 0;
    color: var(--follow-muted);
}

.follow-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.follow-method {
    position: relative;
    scroll-margin-top: 105px;
    padding: 27px;
    border: 1px solid var(--follow-line);
    border-radius: var(--follow-radius-lg);
    background: rgba(255,255,255,.94);
    box-shadow: var(--follow-shadow-soft);
}

.follow-method--push {
    border-top: 4px solid var(--follow-primary);
}

.follow-method--mail {
    border-top: 4px solid var(--follow-mail);
}

.follow-method__head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
}

.follow-method__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
}

.follow-method__icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.follow-method--push .follow-method__icon {
    color: var(--follow-primary);
    background: var(--follow-primary-soft);
}

.follow-method--mail .follow-method__icon {
    color: var(--follow-mail);
    background: var(--follow-mail-soft);
}

.follow-method__label {
    display: block;
    margin-bottom: 2px;
    color: var(--follow-muted);
    font-size: .76rem;
    font-weight: 800;
}

.follow-method h3 {
    margin: 0;
    color: var(--follow-heading);
    font-size: 1.32rem;
}

.follow-method__desc {
    margin: 0 0 17px;
    color: var(--follow-muted);
}

.follow-status {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 12px;
    margin-bottom: 13px;
    border: 1px solid var(--follow-line);
    border-radius: 12px;
    color: var(--follow-muted);
    background: #fafcfb;
    font-size: .88rem;
}

.follow-status__dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #8f9a95;
    box-shadow: 0 0 0 4px rgba(143,154,149,.11);
}

.follow-status.is-success {
    color: var(--follow-success);
    border-color: #b9d8c7;
    background: #f1f8f4;
}

.follow-status.is-success .follow-status__dot {
    background: var(--follow-success);
    box-shadow: 0 0 0 4px rgba(47,118,87,.12);
}

.follow-status.is-warning {
    color: var(--follow-warning);
    border-color: #ead8b2;
    background: #fffaf0;
}

.follow-status.is-warning .follow-status__dot {
    background: var(--follow-warning);
}

.follow-status.is-error {
    color: var(--follow-danger);
    border-color: #e6c2c2;
    background: #fff5f5;
}

.follow-status.is-error .follow-status__dot {
    background: var(--follow-danger);
}

.follow-action {
    width: 100%;
}

.follow-action:disabled {
    opacity: .62;
    cursor: not-allowed;
    transform: none;
}

.follow-help {
    margin: 11px 0 0;
    color: var(--follow-muted);
    font-size: .82rem;
}

.follow-tech-status {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed var(--follow-line-strong);
    border-radius: 11px;
    color: var(--follow-muted);
    background: rgba(245,248,246,.7);
    font-size: .82rem;
}

.follow-field {
    margin-bottom: 17px;
}

.follow-field label,
.follow-topics legend {
    display: block;
    margin-bottom: 7px;
    color: var(--follow-heading);
    font-weight: 850;
}

.follow-input-wrap {
    position: relative;
}

.follow-input-wrap svg {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    width: 20px;
    height: 20px;
    fill: #82918b;
    transform: translateY(-50%);
    pointer-events: none;
}

.follow-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 10px 46px 10px 14px;
    border: 1px solid var(--follow-line-strong);
    border-radius: 13px;
    color: var(--follow-text);
    background: #fff;
    font: inherit;
    direction: ltr;
    text-align: left;
    outline: none;
    transition: border-color .17s ease, box-shadow .17s ease;
}

.follow-input-wrap input:focus {
    border-color: #7fa595;
    box-shadow: 0 0 0 4px rgba(35,96,77,.09);
}

.follow-field__error {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: var(--follow-danger);
    font-size: .8rem;
}

.follow-topics {
    padding: 0;
    margin: 0 0 17px;
    border: 0;
}

.follow-topics > p {
    margin: -3px 0 10px;
    color: var(--follow-muted);
    font-size: .84rem;
}

.follow-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.follow-topic {
    position: relative;
    cursor: pointer;
}

.follow-topic input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.follow-topic > span {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 11px 13px 11px 38px;
    border: 1px solid var(--follow-line);
    border-radius: 12px;
    background: #fbfcfb;
    transition: border-color .17s ease, background .17s ease, box-shadow .17s ease;
}

.follow-topic > span::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid #a6b4ad;
    border-radius: 6px;
    transform: translateY(-50%);
}

.follow-topic input:checked + span {
    border-color: #9ebcad;
    background: var(--follow-primary-soft);
    box-shadow: inset 0 0 0 1px rgba(35,96,77,.07);
}

.follow-topic input:checked + span::before {
    border-color: var(--follow-primary);
    background: var(--follow-primary);
    box-shadow: inset 0 0 0 4px var(--follow-primary-soft);
}

.follow-topic input:focus-visible + span {
    outline: 3px solid rgba(35,96,77,.15);
    outline-offset: 2px;
}

.follow-topic strong,
.follow-topic small {
    display: block;
}

.follow-topic strong {
    color: var(--follow-heading);
    font-size: .9rem;
}

.follow-topic small {
    margin-top: 2px;
    color: var(--follow-muted);
    font-size: .76rem;
    line-height: 1.5;
}

.follow-consent {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    align-items: start;
    margin: 15px 0;
    color: var(--follow-muted);
    font-size: .83rem;
    cursor: pointer;
}

.follow-consent input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--follow-primary);
}

.follow-consent a {
    color: var(--follow-primary);
    font-weight: 800;
    text-underline-offset: 3px;
}

.follow-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.follow-form-message {
    display: none;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 11px;
    font-size: .86rem;
}

.follow-form-message.is-visible {
    display: block;
}

.follow-form-message.is-success {
    color: #245f44;
    border: 1px solid #b8d7c6;
    background: #eef8f2;
}

.follow-form-message.is-warning {
    color: #78591c;
    border: 1px solid #e8d3a4;
    background: #fff9ec;
}

.follow-form-message.is-error {
    color: #8e4040;
    border: 1px solid #e7c0c0;
    background: #fff4f4;
}

.follow-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.follow-benefits article {
    padding: 22px;
    border: 1px solid var(--follow-line);
    border-radius: var(--follow-radius-lg);
    background: rgba(255,255,255,.85);
}

.follow-benefits article > span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 29px;
    padding-inline: 8px;
    margin-bottom: 12px;
    border-radius: 9px;
    color: var(--follow-primary);
    background: var(--follow-primary-soft);
    font-size: .78rem;
    font-weight: 900;
}

.follow-benefits h3 {
    margin: 0 0 6px;
    color: var(--follow-heading);
    font-size: 1.03rem;
}

.follow-benefits p {
    margin: 0;
    color: var(--follow-muted);
    font-size: .9rem;
}

.follow-sample {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 27px 29px;
    border: 1px solid #bfd0c6;
    border-radius: var(--follow-radius-lg);
    background: linear-gradient(135deg, #eaf3ed, #fff);
    box-shadow: var(--follow-shadow-soft);
}

.follow-sample h2 {
    margin: 0;
    color: var(--follow-heading);
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.follow-sample p:not(.follow-eyebrow) {
    max-width: 740px;
    margin: 7px 0 0;
    color: var(--follow-muted);
}

.follow-toast {
    position: fixed;
    z-index: 99999;
    inset-inline-start: 50%;
    bottom: 24px;
    max-width: calc(100% - 30px);
    padding: 11px 16px;
    border-radius: 13px;
    color: #fff;
    background: #163c31;
    box-shadow: 0 14px 34px rgba(20,52,42,.25);
    font-size: .88rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity .2s ease, transform .2s ease;
}

.follow-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Dark mode */
html[data-theme="dark"] .follow-page,
body.dark-mode .follow-page,
body.dark .follow-page {
    --follow-bg: #101814;
    --follow-surface: #17231e;
    --follow-surface-soft: #192820;
    --follow-text: #e5eee8;
    --follow-muted: #acbbb3;
    --follow-heading: #f2f7f4;
    --follow-primary: #72b696;
    --follow-primary-strong: #8bc6a8;
    --follow-primary-soft: rgba(89,155,123,.14);
    --follow-mail: #8bb2d0;
    --follow-mail-strong: #a4c6de;
    --follow-mail-soft: rgba(89,126,155,.14);
    --follow-line: #2a3b33;
    --follow-line-strong: #3b5147;
    background:
        radial-gradient(circle at 10% 8%, rgba(83,151,119,.08), transparent 28rem),
        radial-gradient(circle at 92% 24%, rgba(85,120,148,.06), transparent 25rem),
        var(--follow-bg);
}

html[data-theme="dark"] .follow-hero__card,
html[data-theme="dark"] .follow-method,
html[data-theme="dark"] .follow-benefits article,
body.dark-mode .follow-hero__card,
body.dark-mode .follow-method,
body.dark-mode .follow-benefits article,
body.dark .follow-hero__card,
body.dark .follow-method,
body.dark .follow-benefits article {
    background: rgba(23,35,30,.95);
}

html[data-theme="dark"] .follow-hero__icon,
body.dark-mode .follow-hero__icon,
body.dark .follow-hero__icon {
    color: var(--follow-primary);
    border-color: #395146;
    background: #1a2a22;
}

html[data-theme="dark"] .follow-input-wrap input,
html[data-theme="dark"] .follow-topic > span,
html[data-theme="dark"] .follow-status,
body.dark-mode .follow-input-wrap input,
body.dark-mode .follow-topic > span,
body.dark-mode .follow-status,
body.dark .follow-input-wrap input,
body.dark .follow-topic > span,
body.dark .follow-status {
    color: var(--follow-text);
    background: #142019;
}

html[data-theme="dark"] .follow-section--soft,
body.dark-mode .follow-section--soft,
body.dark .follow-section--soft {
    background: rgba(20,31,25,.55);
}

html[data-theme="dark"] .follow-sample,
body.dark-mode .follow-sample,
body.dark .follow-sample {
    background: linear-gradient(135deg, #18271f, #17231e);
}

@media (max-width: 900px) {
    .follow-hero__card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .follow-hero__quick {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .follow-method-grid {
        grid-template-columns: 1fr;
    }

    .follow-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .follow-shell {
        width: min(calc(100% - 20px), var(--follow-max));
    }

    .follow-hero {
        padding-top: 18px;
    }

    .follow-hero__card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 19px;
        border-radius: 22px;
    }

    .follow-hero__icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .follow-hero__icon svg {
        width: 28px;
        height: 28px;
    }

    .follow-hero__quick {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .follow-method {
        padding: 22px 17px;
        border-radius: 17px;
    }

    .follow-topic-grid {
        grid-template-columns: 1fr;
    }

    .follow-sample {
        grid-template-columns: 1fr;
        padding: 22px 18px;
    }

    .follow-btn--secondary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .follow-page *,
    .follow-page *::before,
    .follow-page *::after {
        transition: none !important;
        animation: none !important;
    }
}
