/* =========================================================
   DEOSHALA SPECTRUM SECTION
========================================================= */

.deoshala-spectrum-section {
    position: relative;
    padding: 96px 0 104px;
    background:
        radial-gradient(circle at 12% 6%, rgba(200, 155, 53, 0.08), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(42, 26, 74, 0.06), transparent 30%),
        linear-gradient(180deg, #f8f0e4 0%, #f3eadb 100%);
    overflow: hidden;
}

.deoshala-spectrum-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image:
        linear-gradient(135deg, rgba(26, 16, 53, 0.04) 1px, transparent 1px),
        linear-gradient(45deg, rgba(200, 155, 53, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
}

.deoshala-spectrum-section .container {
    position: relative;
    z-index: 2;
}

.deoshala-spectrum-heading {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.deoshala-spectrum-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-gold);
    font-family: var(--body-font);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    margin-bottom: 1.1rem;
}

.deoshala-spectrum-heading h2 {
    font-family: var(--heading-font);
    color: var(--deep-indigo);
    font-size: clamp(2.65rem, 5vw, 4.9rem);
    line-height: 1.02;
    font-weight: 500;
    margin: 0;
}

.deoshala-spectrum-heading h2 span {
    display: block;
    color: var(--logo-gold);
    font-style: italic;
    font-size: 0.72em;
    margin-top: 0.24rem;
}

.deoshala-spectrum-line {
    width: 44px;
    height: 1px;
    background: rgba(200, 155, 53, 0.58);
    margin: 20px auto 18px;
}

.deoshala-spectrum-heading p {
    max-width: 610px;
    margin: 0 auto;
    color: var(--soft-violet);
    font-size: 1.02rem;
    line-height: 1.8;
}

.deoshala-spectrum-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1080px;
    margin: 0 auto;
    background: rgba(255, 249, 240, 0.82);
    border: 1px solid rgba(26, 16, 53, 0.10);
    box-shadow: 0 24px 70px rgba(26, 16, 53, 0.08);
}

.deoshala-spectrum-card {
    position: relative;
    min-height: 265px;
    padding: 34px 32px 30px;
    background: rgba(255, 249, 240, 0.60);
    border-right: 1px solid rgba(26, 16, 53, 0.10);
    border-bottom: 1px solid rgba(26, 16, 53, 0.10);
    display: flex;
    flex-direction: column;
    transition: all 0.32s ease;
    overflow: hidden;
}

.deoshala-spectrum-card:nth-child(3n) {
    border-right: 0;
}

.deoshala-spectrum-card:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.deoshala-spectrum-card::before {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(200, 155, 53, 0.09);
    opacity: 0;
    transition: all 0.32s ease;
}

.deoshala-spectrum-card:hover {
    background: rgba(255, 249, 240, 0.94);
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(26, 16, 53, 0.12);
    z-index: 3;
}

.deoshala-spectrum-card:hover::before {
    opacity: 1;
}

.deoshala-spectrum-card.is-featured {
    background: rgba(234, 219, 194, 0.48);
}

.deoshala-spectrum-main-link {
    position: relative;
    z-index: 2;
    display: block;
    color: inherit;
    text-decoration: none;
}

.deoshala-spectrum-number {
    display: block;
    font-family: var(--heading-font);
    color: rgba(200, 155, 53, 0.56);
    font-size: 1.62rem;
    line-height: 1;
    letter-spacing: 0.08em;
    margin-bottom: 17px;
}

.deoshala-spectrum-card h3 {
    font-family: var(--heading-font);
    color: var(--deep-indigo);
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    line-height: 1.16;
    font-weight: 500;
    margin: 0 0 12px;
}

.deoshala-spectrum-card p {
    color: var(--soft-violet);
    font-size: 0.94rem;
    line-height: 1.72;
    margin: 0 0 22px;
}

.deoshala-spectrum-tags {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-right: 38px;
}

.deoshala-spectrum-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0.28rem 0.68rem;
    border: 1px solid rgba(200, 155, 53, 0.30);
    background: rgba(255, 249, 240, 0.56);
    color: var(--antique-bronze);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
}

.deoshala-spectrum-tag:hover {
    background: var(--deep-indigo);
    border-color: var(--deep-indigo);
    color: var(--ivory-cream);
    transform: translateY(-2px);
}

.deoshala-spectrum-arrow {
    position: absolute;
    z-index: 2;
    right: 26px;
    bottom: 27px;
    color: var(--logo-gold);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
}

.deoshala-spectrum-card:hover .deoshala-spectrum-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 991px) {
    .deoshala-spectrum-section {
        padding: 82px 0 90px;
    }

    .deoshala-spectrum-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deoshala-spectrum-card:nth-child(3n) {
        border-right: 1px solid rgba(26, 16, 53, 0.10);
    }

    .deoshala-spectrum-card:nth-child(2n) {
        border-right: 0;
    }

    .deoshala-spectrum-card:nth-last-child(-n + 3) {
        border-bottom: 1px solid rgba(26, 16, 53, 0.10);
    }

    .deoshala-spectrum-card:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 767px) {
    .deoshala-spectrum-section {
        padding: 70px 0 78px;
    }

    .deoshala-spectrum-heading {
        margin-bottom: 34px;
    }

    .deoshala-spectrum-eyebrow {
        font-size: 0.64rem;
        letter-spacing: 0.22em;
    }

    .deoshala-spectrum-heading h2 {
        font-size: clamp(2.3rem, 11vw, 3.3rem);
    }

    .deoshala-spectrum-grid {
        grid-template-columns: 1fr;
    }

    .deoshala-spectrum-card,
    .deoshala-spectrum-card:nth-child(2n),
    .deoshala-spectrum-card:nth-child(3n),
    .deoshala-spectrum-card:nth-last-child(-n + 2),
    .deoshala-spectrum-card:nth-last-child(-n + 3) {
        border-right: 0;
        border-bottom: 1px solid rgba(26, 16, 53, 0.10);
    }

    .deoshala-spectrum-card:last-child {
        border-bottom: 0;
    }

    .deoshala-spectrum-card {
        min-height: 235px;
        padding: 28px 24px 26px;
    }

    .deoshala-spectrum-arrow {
        opacity: 1;
        transform: none;
    }
}