/* Module Access — matches design comp */

.module-filter-wrapper {
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 72px;
    font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
    color: #2c2c2c;
}

.module-filter-wrapper *,
.module-filter-wrapper *::before,
.module-filter-wrapper *::after {
    box-sizing: border-box;
}

/* Header */

.module-access-header {
    text-align: center;
    margin-bottom: 44px;
}

.module-access-title {
    margin: 0 0 14px;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.75rem, 5.5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    color: #1d2d3d;
    letter-spacing: -0.02em;
}

.module-access-subtitle {
    margin: 0 auto;
    max-width: 720px;
    font-size: 1rem;
    line-height: 1.55;
    color: #5a5a5a;
    font-weight: 400;
}

/* Custom filters — selected value always visible on trigger */

.module-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 18px 22px;
    margin-bottom: 52px;
}

.module-filter-field {
    position: relative;
    min-width: 240px;
}

.module-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: #fff;
    color: #1d2d3d;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-filter-field.has-selection .module-filter-trigger {
    font-weight: 600;
    color: #1d2d3d;
}

.module-filter-trigger:hover,
.module-filter-trigger:focus {
    outline: none;
    border-color: #1d2d3d;
    box-shadow: 0 0 0 1px #1d2d3d;
}

.module-filter-value {
    flex: 1;
    padding-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-filter-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231d2d3d' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.module-filter-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow-y: auto;
}

.module-filter-menu[hidden] {
    display: none !important;
}

.module-filter-menu [role="option"] {
    padding: 10px 18px;
    font-size: 15px;
    line-height: 1.35;
    color: #1d2d3d;
    cursor: pointer;
}

.module-filter-menu [role="option"]:hover,
.module-filter-menu [role="option"][aria-selected="true"] {
    background: #f3f1ec;
}

.module-filter-input {
    display: none !important;
}

/* Grid */

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 3fr);
    gap: 26px;
    align-items: stretch;
}

.module-card {
    display: flex;
    flex-direction: column;
    background: #f8f6f1;
    padding: 34px 30px 38px;
    border-radius: 14px;
    min-height: 100%;
}

.module-badge {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #c4b08a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.module-card-title,
.module-card h3 {
    margin: 0 0 22px;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 2.1vw, 1.85rem);
    font-weight: 600;
    line-height: 1.22;
    color: #1d2d3d;
    letter-spacing: -0.01em;
}

.module-content {
    flex: 1;
    margin-bottom: 30px;
}

.module-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.module-checklist li {
    position: relative;
    margin: 0 0 11px;
    padding-left: 28px;
    font-size: 14px;
    line-height: 1.5;
    color: #4f4f4f;
}

.module-checklist li:last-child {
    margin-bottom: 0;
}

.module-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231d2d3d' d='M6.2 11.4L3.4 8.6l-.9.9 3.7 3.7 8-8-.9-.9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.module-content-text p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #4f4f4f;
}

/* CTA */

.module-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin-top: auto;
    padding: 13px 24px;
    border-radius: 999px;
    background: #1d2d3d !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.2;
    border: none;
    transition: background 0.2s ease;
}

.module-btn:hover,
.module-btn:focus {
    background: #152430 !important;
    color: #fff !important;
}

.module-btn-arrow {
    font-size: 16px;
    line-height: 1;
}

.module-empty,
.module-loading {
    text-align: center;
    padding: 48px 20px;
    font-size: 16px;
    color: #666;
}

/* Responsive */

@media (max-width: 1024px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .module-filter-wrapper {
        padding: 36px 16px 52px;
    }

    .module-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .module-filter-field {
        min-width: 0;
        width: 100%;
    }

    .module-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .module-card {
        padding: 28px 22px 32px;
    }
}
