/* .social-subscribe {
    position: relative;
    overflow: hidden;
    background: #302f43;
    color: #fff;
}

.social-subscribe-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.social-media-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-media-title {
    font-size: 16px;
    font-weight: 600;
    margin-right: 8px;
}

.social-media-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.social-media-links a svg {
    fill: #fff
}

.social-media-links a:hover {
    opacity: 0.7;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 138px;
    height: 36px;
    padding: 0 24px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: transparent;
}

.subscribe-btn:hover {
    background: #fff;
    color: #302f43;
}

.social-subscribe::after {
    content: "";
    position: absolute;
    top: 8px;
    right: -5px;
    width: 55px;
    height: 55px;
    opacity: 0.18;
    background-image: radial-gradient(circle,
            #fff 2px,
            transparent 2px);
    background-size: 10px 10px;
}

@media (max-width: 767px) {

    .social-subscribe-inner {
        min-height: auto;
        padding: 24px 0;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .social-media-links {
        /* flex-wrap: wrap; *
        gap: 18px;
        justify-content: center;
    }

    .social-media-title {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .subscribe-btn {
        width: 138px;
    }
} */

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

.social-subscribe {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 20px 0 30px;
    padding: 28px 0;
    /* border-radius: 16px; */
    background: linear-gradient(
        110deg,
        #202d50 0%,
        #292d4b 55%,
        #302f49 100%
    );
    color: #fff;
}

/* Decorative corner accent */
.social-subscribe::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -42px;
    bottom: -85px;
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background: #ffc21a;
    opacity: 0.95;
}

/* Subtle dotted pattern */
.social-subscribe::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 14px;
    right: 14px;
    width: 54px;
    height: 54px;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.65) 1.5px,
        transparent 1.8px
    );
    background-size: 12px 12px;
    opacity: 0.7;
    pointer-events: none;
}

.social-subscribe-inner {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 250px;
    align-items: center;
    gap: 30px;
    min-height: 126px;
    position: relative;
    z-index: 1;
}

/* Illustration */
.subscribe-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffc21a;
}

.subscribe-icon-wrap i {
    font-size: 46px;
    line-height: 1;
}

.subscribe-envelope-image {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Content */
.subscribe-content {
    min-width: 0;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.subscribe-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #ffc21a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
}

.subscribe-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.25;
}

.subscribe-description {
    max-width: 540px;
    margin: 0;
    color: #c5d2e9;
    font-size: 15px;
    line-height: 1.7;
}

/* CTA */
.subscribe-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 205px;
    min-height: 56px;
    padding: 0 26px;
    border: 0;
    border-radius: 50px;
    background: #ffc21a;
    color: #202d50;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.subscribe-btn i {
    font-size: 20px;
    transition: transform 0.25s ease;
}

.subscribe-btn:hover {
    background: #ffd04d;
    color: #202d50;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
}

.subscribe-btn:hover i {
    transform: translateX(4px);
}

.subscribe-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

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

@media (max-width: 991px) {
    .social-subscribe {
        padding: 26px 0;
    }

    .social-subscribe-inner {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 22px;
    }

    .subscribe-icon-wrap {
        width: 76px;
        height: 76px;
    }

    .subscribe-icon-wrap i {
        font-size: 36px;
    }

    .subscribe-content {
        padding-left: 22px;
    }

    .subscribe-action {
        grid-column: 2;
        justify-content: flex-start;
        padding-left: 22px;
    }

    .subscribe-btn {
        min-width: 180px;
        min-height: 50px;
    }
}

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

@media (max-width: 575px) {
    .social-subscribe {
        margin: 18px 0 24px;
        padding: 28px 0;
        border-radius: 14px;
    }

    .social-subscribe::before {
        right: -75px;
        bottom: -105px;
        width: 130px;
        height: 130px;
    }

    .social-subscribe::after {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        background-size: 9px 9px;
    }

    .social-subscribe-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: auto;
        text-align: center;
    }

    .subscribe-icon-wrap {
        width: 68px;
        height: 68px;
    }

    .subscribe-icon-wrap i {
        font-size: 32px;
    }

    .subscribe-content {
        padding: 0;
        border-left: 0;
    }

    .subscribe-eyebrow {
        margin-bottom: 7px;
        font-size: 11px;
    }

    .subscribe-title {
        margin-bottom: 8px;
        font-size: 23px;
    }

    .subscribe-description {
        max-width: 340px;
        margin: 0 auto;
        font-size: 14px;
        line-height: 1.65;
    }

    .subscribe-action {
        grid-column: auto;
        justify-content: center;
        padding-left: 0;
    }

    .subscribe-btn {
        width: 100%;
        max-width: 250px;
        min-height: 50px;
    }
}



/* =========================================================
   Combined Subscribe Modal
   Email + Categories in One View
   ========================================================= */

/* ==========================================
   Modern Subscription Modal
========================================== */

.subscribe-modal {
    width: 500px;
    max-width: calc(100vw - 30px);
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 65px rgba(20, 25, 45, 0.18);
}

/* Decorative background */

.subscribe-modal::before {
    content: "";
    position: absolute;
    top: -85px;
    right: -75px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(242, 53, 54, 0.055);
    border: 1px solid rgba(242, 53, 54, 0.08);
    pointer-events: none;
}

.subscribe-modal::after {
    content: "";
    position: absolute;
    bottom: -95px;
    left: -75px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(242, 53, 54, 0.045);
    pointer-events: none;
}

/* Close button */

.subscribe-modal-close {
    position: absolute;
    top: 17px;
    right: 17px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #aaa;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-modal-close:hover {
    background: #fff0f0;
    border-color: #f23536;
    color: #f23536;
    transform: rotate(90deg);
}

/* Modal body */

.subscribe-modal-body {
    position: relative;
    z-index: 1;
    padding: 38px 38px 34px;
    text-align: center;
}

.subscription-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Header */

.subscription-header {
    margin-bottom: 26px;
    text-align: center;
}

.subscription-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
    border-radius: 16px;
    background: #fff0f0;
    color: #f23536;
    font-size: 22px;
}

/* .subscription-icon span {
    position: relative;
    display: block;
    width: 23px;
    height: 17px;
    border: 2px solid #f23536;
    border-radius: 4px;
}

.subscription-icon span::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 2px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #f23536;
    border-bottom: 2px solid #f23536;
    transform: rotate(45deg) translate(0px, -4px);
} */

.subscription-header h2 {
    margin: 0 0 10px;
    color: #242735;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.subscription-header p {
    max-width: 370px;
    margin: 0 auto;
    color: #707584;
    font-size: 14px;
    line-height: 1.65;
}

/* Email field */

.subscription-email {
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
}

#subscription-email {
    display: block;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 15px;
    border: 1px solid #e1e3e8;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #292d3a;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#subscription-email::placeholder {
    color: #a0a4ae;
}

#subscription-email:focus {
    border-color: #f23536;
    box-shadow: 0 0 0 3px rgba(242, 53, 54, 0.09);
}

.subscription-error {
    margin-top: 6px;
    color: #dc3545;
    font-size: 12px;
    line-height: 1.4;
}

/* Interests section */

.subscription-interests {
    margin-top: 0;
    text-align: left;
}

.subscription-interests-description {
    margin: 0 0 13px;
    color: #424653;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Categories list */

.subscription-categories {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-height: 220px;
    margin: 0;
    padding: 1px 5px 1px 0;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #d5d7dd #f5f5f5;
}

.subscription-categories::-webkit-scrollbar {
    width: 5px;
}

.subscription-categories::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.subscription-categories::-webkit-scrollbar-thumb {
    background: #d5d7dd;
    border-radius: 10px;
}

/* Individual category card */

.subscription-category {
    margin: 0;
    padding: 8px 10px;
    /* border: 1px solid #e9eaf0; */
    border-radius: 9px;
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.subscription-category:hover {
    border-color: #f4b7b7;
    background: #fffafa;
}

.subscription-category:has(.subscription-parent:checked) {
    border-color: #f23536;
    background: #fff8f8;
}

/* Parent category */

.subscription-category > .form-check {
    display: flex;
    align-items: center;
    min-height: 20px;
    margin: 0;
    padding: 0;
}

.subscription-parent {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0 10px 0 0 !important;
    accent-color: #f23536;
    cursor: pointer;
}

.subscription-category > .form-check .form-check-label {
    margin: 0;
    color: #292d3a;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    text-transform: capitalize;
}

/* Subcategories */

.subscription-children {
    margin: 10px 0 0 8px !important;
    padding: 9px 0 2px 19px;
    border-left: 2px solid #f5d6d6;
}

.subscription-children .form-check {
    display: flex;
    align-items: center;
    min-height: 20px;
    margin: 0 0 9px !important;
    padding: 0;
}

.subscription-children .form-check:last-child {
    margin-bottom: 0 !important;
}

.subscription-child {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 0 9px 0 0 !important;
    accent-color: #f23536;
    cursor: pointer;
}

.subscription-children .form-check-label {
    margin: 0;
    color: #686d7a;
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
    cursor: pointer;
    text-transform: capitalize;
}

/* Loading */

.subscription-categories:empty::before {
    content: "Loading categories...";
    display: block;
    padding: 15px 0;
    color: #858995;
    font-size: 13px;
    text-align: center;
}

/* Subscribe button */

.subscription-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    margin-top: 22px;
    padding: 0 20px;
    border: 0;
    border-radius: 9px;
    background: #f23536;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease,
        box-shadow 0.2s ease;
}

.subscription-submit:hover {
    background: #df292a;
    box-shadow: 0 5px 14px rgba(242, 53, 54, 0.2);
    transform: translateY(-1px);
}

.subscription-submit:active {
    transform: translateY(0);
}

.subscription-submit:focus-visible {
    outline: 3px solid rgba(242, 53, 54, 0.25);
    outline-offset: 3px;
}

/* Success state */

.subscription-success {
    position: relative;
    z-index: 2;
    padding: 20px 5px 10px;
    text-align: center;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #e9f8ef;
    color: #219653;
    font-size: 28px;
    font-weight: 700;
}

.subscription-success h3 {
    margin: 0 0 9px;
    color: #242735;
    font-size: 22px;
    font-weight: 700;
}

.subscription-success p {
    margin: 0;
    color: #707584;
    font-size: 14px;
    line-height: 1.6;
}

/* Mobile */

@media (max-width: 575.98px) {
    .subscribe-modal {
        width: calc(100vw - 24px);
        max-width: none;
        margin: 0 auto;
        border-radius: 15px;
    }

    .subscribe-modal-body {
        padding: 34px 22px 25px;
    }

    .subscribe-modal-close {
        top: 12px;
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .subscription-header {
        margin-bottom: 22px;
    }

    .subscription-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .subscription-header h2 {
        font-size: 23px;
    }

    .subscription-header p {
        max-width: 320px;
        font-size: 13px;
        line-height: 1.6;
    }

    .subscription-email {
        margin-bottom: 21px;
    }

    #subscription-email {
        height: 46px;
        font-size: 13px;
    }

    .subscription-interests-description {
        margin-bottom: 11px;
        font-size: 13px;
    }

    .subscription-categories {
        max-height: 190px;
        gap: 8px;
    }

    .subscription-category {
        padding: 11px 12px;
    }

    .subscription-submit {
        height: 44px;
        margin-top: 19px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .subscribe-modal-body {
        padding-right: 17px;
        padding-left: 17px;
    }

    .subscription-header h2 {
        font-size: 21px;
    }
}


/* =========================================================
   COLLAPSIBLE CATEGORY ACCORDION
   Supports module > category > subcategory and deeper levels
   ========================================================= */

/* Category list: keep a manageable height for large lists */
.subscription-categories,
#subscriptionCategories {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 3px 6px 3px 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #d5d7dd #f5f5f5; 
}

.subscription-categories::-webkit-scrollbar,
#subscriptionCategories::-webkit-scrollbar {
    width: 5px;
}

.subscription-categories::-webkit-scrollbar-track,
#subscriptionCategories::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.subscription-categories::-webkit-scrollbar-thumb,
#subscriptionCategories::-webkit-scrollbar-thumb {
    background: #d5d7dd;
    border-radius: 10px;
}

/* Each category row */
#subscriptionCategories .bcs-category-item {
    margin: 0 0 5px;
}

#subscriptionCategories .bcs-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 25px;
    padding: 2px 8px;
    border-radius: 7px;
    transition: background-color 0.2s ease;
}

#subscriptionCategories .bcs-category-row:hover {
    background: #fff5f5;
}

/* Checkbox and category name */
#subscriptionCategories .bcs-category-label {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    gap: 10px;
    margin: 0;
    color: #454957;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    cursor: pointer;    
    text-transform: capitalize;
}

#subscriptionCategories .bcs-category-label input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #f23536;
    cursor: pointer;
}

#subscriptionCategories .bcs-category-label span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Main module label */
#subscriptionCategories .bcs-category-item > .bcs-category-row
.bcs-category-label {
    color: #292d3a;
    font-weight: 600;
}

/* Expand / collapse control */
#subscriptionCategories .bcs-toggle {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    background: #fff;
    color: #555b68;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease,
        background-color 0.2s ease;
}

#subscriptionCategories .bcs-toggle:hover {
    border-color: #f23536;
    background: #fff5f5;
    color: #f23536;
}

#subscriptionCategories .bcs-toggle:focus-visible {
    outline: 2px solid rgba(242, 53, 54, 0.3);
    outline-offset: 2px;
}



/* =========================================
   SMOOTH CATEGORY ACCORDION
========================================= */

#subscriptionCategories .bcs-children {
    height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 4px 0 5px 12px;
    padding: 3px 0 3px 13px;
    border-left: 1px solid #f1caca;
    transform: translateY(-3px);

    transition:
        height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease,
        transform 0.3s ease;

    box-sizing: border-box;
    will-change: height;
}

#subscriptionCategories .bcs-children.is-open {
    opacity: 1;
    transform: translateY(0);
}

#subscriptionCategories .bcs-children[hidden] {
    display: none !important;
}

#subscriptionCategories .bcs-children .bcs-children {
    margin-left: 6px;
    padding-left: 8px;
}

#subscriptionCategories .bcs-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    #subscriptionCategories .bcs-children,
    #subscriptionCategories .bcs-toggle-icon {
        transition: none;
    }
} 
 

/* #subscriptionCategories .bcs-toggle[aria-expanded="true"]
.bcs-toggle-icon {
    transform: rotate(180deg);
}
 
 

#subscriptionCategories .bcs-children .bcs-category-row { 
      min-height: 27px;
    padding: 1px 5px;
}

#subscriptionCategories .bcs-children .bcs-category-label {
    color: #626878; 
    font-weight: 400;
     font-size: 12px;
    gap: 6px;
} */
 

/* Keep the checkbox accent consistent at every depth */
#subscriptionCategories .bcs-category-label input[type="checkbox"]:checked {
    accent-color: #f23536;
}

/* Mobile */
@media (max-width: 575.98px) {
    .subscription-categories,
    #subscriptionCategories {
        max-height: 240px;
        padding-right: 5px;
    }

    #subscriptionCategories .bcs-category-row {
        min-height: 36px;
        padding: 4px 5px;
    }

    #subscriptionCategories .bcs-category-label {
        gap: 8px;
        font-size: 13px;
    }

    #subscriptionCategories .bcs-toggle {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }

    #subscriptionCategories .bcs-children {
        margin-left: 8px;
        padding-left: 10px;
    }
}
