/* =========================================================
   FESTIVE CLEANING — SERVICE CARDS AND DETAIL PAGES
   Scoped additions only. Existing university-cleaning.css
   remains the base design system.
========================================================= */

/* ---------- Clickable festive service cards ---------- */

.festive-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
p{
text-align:justify;    
}

.festive-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #d9e4ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(10, 10, 26, 0.05);
    color: inherit;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.festive-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 3px;
    background: var(--university-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.festive-service-card:hover,
.festive-service-card:focus-visible {
    border-color: #b9d5eb;
    transform: translateY(-7px);
    box-shadow: 0 16px 34px rgba(7, 124, 234, 0.14);
}

.festive-service-card:hover::before,
.festive-service-card:focus-visible::before {
    transform: scaleX(1);
}

.festive-service-card:focus-visible {
    outline: 3px solid rgba(7, 124, 234, 0.35);
    outline-offset: 3px;
}

.festive-service-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eaf2f9;
}

.festive-service-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.festive-service-card:hover .festive-service-media img,
.festive-service-card:focus-visible .festive-service-media img {
    transform: scale(1.06);
}

.festive-service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0) 45%, rgba(10, 10, 26, 0.42) 100%);
    pointer-events: none;
}

.festive-service-tag {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 1;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0a0a1a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.festive-service-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 24px 24px 26px;
}

.festive-service-body h3 {
    margin: 0 0 12px;
    color: #0a0a1a;
    font-size: 20px;
    line-height: 1.35;
}

.festive-service-body p {
    margin: 0 0 18px;
    color: var(--university-text);
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

.festive-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--university-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.festive-service-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.festive-service-card:hover .festive-service-link svg,
.festive-service-card:focus-visible .festive-service-link svg {
    transform: translateX(5px);
}

/* ---------- Detail page helpers ---------- */

.festive-back-link {
    margin: 22px 0 0;
    font-size: 14px;
}

.festive-back-link a {
    color: var(--university-blue);
    font-weight: 600;
    text-decoration: none;
}

.festive-back-link a:hover {
    text-decoration: underline;
}

.festive-detail-section {
    background: #ffffff;
}

.festive-task-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.festive-task-card {
    position: relative;
    height: 100%;
    padding: 28px 26px;
    border: 1px solid #d9e4ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(10, 10, 26, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.festive-task-card:hover {
    border-color: #b9d5eb;
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(7, 124, 234, 0.09);
}

.festive-task-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border: 1px solid #c9ddeb;
    border-radius: 10px;
    background: #f7fbff;
    color: var(--university-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.festive-task-card h3 {
    margin: 0 0 10px;
    color: #0a0a1a;
    font-size: 18px;
    line-height: 1.35;
}

.festive-task-card p {
    margin: 0;
    color: var(--university-text);
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
}

.festive-detail-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.festive-detail-panel {
    height: 100%;
    padding: 32px 30px;
    border: 1px solid #d9e4ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(10, 10, 26, 0.04);
}

.festive-detail-panel--tint {
    background: #f6fbff;
    border-color: #cfe4f4;
}

.festive-detail-panel h3 {
    margin: 0 0 18px;
    color: #0a0a1a;
    font-size: 21px;
    line-height: 1.35;
}

.festive-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.festive-checklist li {
    position: relative;
    margin: 0 0 13px;
    padding-left: 30px;
    color: var(--university-text);
    font-size: 14px;
    line-height: 1.65;
    text-align: left;
}

.festive-checklist li:last-child {
    margin-bottom: 0;
}

.festive-checklist li::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 2px;
    width: 7px;
    height: 13px;
    border-right: 2px solid var(--university-blue);
    border-bottom: 2px solid var(--university-blue);
    transform: rotate(42deg);
}

.festive-detail-note {
    margin: 22px 0 0;
    padding: 16px 18px;
    border-left: 4px solid var(--university-blue);
    border-radius: 0 8px 8px 0;
    background: #ffffff;
    color: var(--university-text);
    font-size: 13.5px;
    line-height: 1.65;
    text-align: left;
}

.festive-detail-note--intro {
    margin-top: 0;
    margin-bottom: 18px;
}

.festive-related-section {
    background: #f4f9ff;
}

.festive-related-actions {
    margin-top: 32px;
    text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {

    .festive-services-grid,
    .festive-task-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .festive-detail-split {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .festive-services-grid,
    .festive-task-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .festive-service-body {
        padding: 22px 22px 24px;
    }

    .festive-service-body h3 {
        font-size: 19px;
    }

    .festive-task-card {
        padding: 24px 22px;
    }

    .festive-detail-panel {
        padding: 26px 22px;
    }

    .festive-detail-panel h3 {
        font-size: 19px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .festive-service-card,
    .festive-service-media img,
    .festive-service-link svg,
    .festive-task-card {
        transition: none;
    }

}
