/**
 * Signature Nature's Edge - Custom Combined Stylesheet
 * Replaces: bootstrap.min.css, magnific-popup.css, swiper-bundle.min.css
 * Pure Vanilla CSS - Optimized & Lightweight
 */

/* ==========================================================================
   1. RESET & BASE UTILITIES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.h-100 {
    height: 100% !important;
}

.m-auto {
    margin: auto !important;
}

.text-center {
    text-align: center !important;
}

.text-white {
    color: #ffffff !important;
}

.text-dark {
    color: #212529 !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.bg-white {
    background-color: #ffffff !important;
}

/* Display & Flex Utilities */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-self-center {
    align-self: center !important;
}



@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    .d-md-block {
        display: block !important;
    }
    .d-md-flex {
        display: flex !important;
    }
    .order-md-2 {
        order: 2 !important;
    }
}

/* Spacing Utilities */
.p-0 {
    padding: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (min-width: 768px) {
    .p-md-0 {
        padding: 0 !important;
    }
}

@media (min-width: 992px) {
    .mt-lg-0 {
        margin-top: 0 !important;
    }
    .pt-lg-0 {
        padding-top: 0 !important;
    }
}


/* ==========================================================================
   2. CONTAINER & RESPONSIVE GRID SYSTEM
   ========================================================================== */
.container,
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row > * {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Grid Gap */
.g-3 {
    margin-right: -8px;
    margin-left: -8px;
    margin-top: -16px;
}

.g-3 > * {
    padding-right: 8px;
    padding-left: 8px;
    margin-top: 16px;
}

/* Columns */
.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-xs-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 576px) {
    .col-sm-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    .col-md-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .col-md-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
    .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }
    .offset-md-1 {
        margin-left: 8.33333333%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    .col-lg-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .col-xl-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    .col-xl-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .col-xl-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}


/* ==========================================================================
   3. BOOTSTRAP MODAL SYSTEM
   ========================================================================== */
body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.fade {
    transition: opacity 0.15s linear;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal.show {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
}

.modal-xl {
    max-width: 95vw;
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px;
    }
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    outline: 0;
    overflow: hidden;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.15s ease-in-out;
}

.btn-close:hover {
    opacity: 0.85;
}

.btn-close:focus {
    outline: 0;
    opacity: 1;
}

/* Lightbox Modal Helper */
.lightbox-modal {
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}


/* ==========================================================================
   4. BOOTSTRAP ACCORDION & COLLAPSE SYSTEM
   ========================================================================== */
.accordion {
    width: 100%;
}

.accordion-item {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    background-color: #fff;
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.collapse:not(.show) {
    display: none;
}

.accordion-collapse {
    overflow: hidden;
    transition: height 0.3s ease;
}

.accordion-body {
    padding: 1rem 1.25rem;
}


/* ==========================================================================
   5. BOOTSTRAP NAVS, TABS & PILLS
   ========================================================================== */
.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #213C75;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.nav-pills .nav-link {
    border-radius: 0.25rem;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #213C75;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

.fade {
    transition: opacity 0.15s linear;
}

.fade:not(.show) {
    opacity: 0;
}


/* ==========================================================================
   6. SWIPER SLIDER STYLES
   ========================================================================== */
.swiper {
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: border-box;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
}

/* Swiper Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    margin-top: 0;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #213C75;
    background: #ffffff;
    border: 1px solid rgba(33, 60, 117, 0.4);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    user-select: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #213C75;
    border-color: #213C75;
    box-shadow: 0 6px 16px rgba(33, 60, 117, 0.25);
    transform: translateY(-50%) scale(1.08);
}

.swiper-button-prev {
    left: 15px;
    right: auto;
}

.swiper-button-next {
    right: 15px;
    left: auto;
}

.swiper-button-prev::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #213C75;
    border-left: 2px solid #213C75;
    transform: rotate(-45deg);
    margin-left: 3px;
    transition: border-color 0.3s ease;
}

.swiper-button-next::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #213C75;
    border-right: 2px solid #213C75;
    transform: rotate(45deg);
    margin-right: 3px;
    transition: border-color 0.3s ease;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    border-color: #ffffff !important;
}

.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Swiper Pagination */
.swiper-pagination {
    position: absolute;
    text-align: center;
    transition: opacity 0.3s;
    z-index: 10;
    bottom: 12px;
    left: 0;
    width: 100%;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #213C75;
    opacity: 0.3;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #213C75;
    width: 22px;
    border-radius: 10px;
}


/* ==========================================================================
   7. MAGNIFIC POPUP & LIGHTBOX STYLES
   ========================================================================== */
.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1042;
    overflow: hidden;
    position: fixed;
    background: #0b0b0b;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mfp-bg.mfp-ready {
    opacity: 0.88;
}

.mfp-wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1043;
    position: fixed;
    outline: none !important;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mfp-wrap.mfp-ready {
    opacity: 1;
}

.mfp-container {
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfp-content {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
    max-width: 92vw;
    max-height: 90vh;
}

.mfp-figure {
    line-height: 0;
    position: relative;
    margin: 0;
}

.mfp-figure figure {
    margin: 0;
}

img.mfp-img {
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 80vh;
    display: block;
    line-height: 0;
    box-sizing: border-box;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.mfp-close {
    width: 40px;
    height: 40px;
    line-height: 40px;
    position: absolute;
    right: 0;
    top: -44px;
    text-decoration: none;
    text-align: center;
    opacity: 0.8;
    color: #fff;
    font-size: 32px;
    font-family: Arial, sans-serif;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: opacity 0.2s;
    user-select: none;
}

.mfp-close:hover {
    opacity: 1;
}

.mfp-bottom-bar {
    margin-top: 10px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f3f3f3;
    font-size: 14px;
}

.mfp-title {
    text-align: left;
    line-height: 18px;
    color: #f3f3f3;
    word-break: break-word;
}

.mfp-counter {
    color: #bbb;
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
    margin-left: 15px;
}

.mfp-arrow {
    position: absolute;
    opacity: 0.8;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    z-index: 1046;
    border-radius: 4px;
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.mfp-arrow:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

.mfp-arrow-left {
    left: 20px;
}

.mfp-arrow-right {
    right: 20px;
}

.mfp-arrow::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
}

.mfp-arrow-left::before {
    transform: rotate(-45deg);
    margin-left: 5px;
}

.mfp-arrow-right::before {
    transform: rotate(135deg);
    margin-right: 5px;
}
