@import url("../rahmah.css");

/* -----------------------------------------------------------
   1. Root Variables & Main Container (الغلاف الخارجي)
----------------------------------------------------------- */
:root {
    --primary-teal: rgba(22, 166, 160, 1);
    --soft-teal: rgba(22, 166, 160, 0.14);
    --deep-teal: #0f6c68;
    --accent-blue: #6ea8d9;
    --shadow-main: rgba(13, 127, 122, 0.1);
    --transition-base: 0.3s ease;
}

.overview-page .empty-showcase-shell,
.overview-page .empty-showcase-title,
.overview-page .empty-showcase-pillar,
.overview-page .empty-showcase-text-card,
.overview-page .empty-showcase-areas-wrap,
.overview-page .tasks-wrapper,
.overview-page .task-card {
    opacity: 0;
    will-change: transform, opacity;
}

.overview-page .empty-showcase-shell {
    transform: translateY(26px) scale(0.985);
}

.overview-page .empty-showcase-title {
    transform: translateY(22px);
}

.overview-page .empty-showcase-pillar,
.overview-page .empty-showcase-text-card,
.overview-page .empty-showcase-areas-wrap,
.overview-page .tasks-wrapper {
    transform: translateY(24px);
}

.overview-page .empty-showcase-text-card {
    transform: translateY(46px) scale(0.9);
    filter: blur(6px) saturate(0.9);
}

.overview-page .task-card {
    transform: translateY(34px) scale(0.98);
}

.empty-showcase-shell {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    margin-top: 28px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, var(--soft-teal), transparent 26%),
        radial-gradient(circle at bottom right, rgba(13, 127, 122, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f4fbfa 54%, #e4f4f2 100%);
    border: 1px solid rgba(22, 166, 160, 0.16);
    box-shadow: 0 24px 60px var(--shadow-main);
}

.empty-showcase-shell::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px dashed rgba(22, 166, 160, 0.24);
}

/* -----------------------------------------------------------
   2. Layout & Header Section (تنسيق المحتوى والعناوين)
----------------------------------------------------------- */
.empty-showcase-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    justify-items: stretch;
    align-items: start;
    width: min(1240px, 100%);
    min-height: 340px;
    margin-inline: auto;
    padding: 40px 32px 48px;
    text-align: center;
}

.empty-showcase-content > * {
    min-width: 0;
}

.empty-showcase-title {
    margin: 0;
    justify-self: center;
    color: var(--deep-teal);
    font-size: clamp(1.6rem, 2.3vw, 2.4rem);
    line-height: 1.4;
}

.empty-showcase-title-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22, 166, 160, 0.18), var(--identity-accent-soft));
    border: 1px solid rgba(110, 168, 217, 0.24);
    color: #084e4a;
    box-shadow: 0 12px 24px rgba(63, 120, 176, 0.14);
}

/* -----------------------------------------------------------
   3. Main Text Card (البطاقة التعريفية)
----------------------------------------------------------- */
.empty-showcase-text-card {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 36px 28px 32px;
    border-radius: 30px;
    box-sizing: border-box;
    overflow: hidden;
    transform: translateY(-6px) scale(1.02);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), transparent 28%),
        radial-gradient(circle at center left, rgba(216, 167, 60, 0.18), transparent 26%),
        radial-gradient(circle at bottom left, rgba(110, 168, 217, 0.22), transparent 34%),
        linear-gradient(145deg, #fbfffe 0%, #eefbf8 46%, #deeff5 100%);
    border: 1px solid rgba(15, 138, 133, 0.28);
    box-shadow:
        0 28px 48px rgba(13, 127, 122, 0.16),
        0 12px 26px rgba(110, 168, 217, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.empty-showcase-text-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    pointer-events: none;
}

.empty-showcase-text-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 30px;
    width: 120px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f8a85, #d8a73c, #6ea8d9);
}

.empty-showcase-intro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 14px;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 138, 133, 0.18), rgba(216, 167, 60, 0.22));
    border: 1px solid rgba(15, 138, 133, 0.26);
    color: #075f68;
    font-size: 1.14em;
    font-weight: 900;
    box-shadow: 0 14px 24px rgba(13, 127, 122, 0.14);
    overflow: hidden;
}

.empty-showcase-intro::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -38%;
    width: 34%;
    height: 140%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.18) 35%,
            rgba(255, 255, 255, 0.82) 50%,
            rgba(255, 255, 255, 0.18) 65%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(18deg) translateX(0);
    opacity: 0;
    pointer-events: none;
}

.empty-showcase-text {
    margin: 0;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #183f55;
    font-size: clamp(1.12rem, 1.45vw, 1.34rem);
    font-weight: 700;
    line-height: 1.95;
    letter-spacing: 0.01em;
    text-align: center;
    text-wrap: balance;
}

.empty-showcase-subtext {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    color: #8a6112;
    font-size: 1.02em;
    font-weight: 800;
    line-height: 1.9;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    overflow-wrap: anywhere;
}

/* -----------------------------------------------------------
   4. Pillars Section (قسم الركائز)
----------------------------------------------------------- */
.empty-showcase-pillars {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1.15fr) minmax(0, 1fr);
    gap: 22px;
    width: 100%;
    margin-top: 0;
    align-items: start;
    grid-auto-flow: row;
}

.empty-showcase-pillar-stack {
    display: grid;
    gap: 22px;
    align-content: start;
    min-width: 0;
}

.empty-showcase-pillar {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 172px;
    padding: 28px 22px 22px;
    border-radius: 24px;
    box-sizing: border-box;
    text-align: right;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(228, 246, 242, 0.88));
    border: 1px solid rgba(13, 127, 122, 0.14);
    box-shadow: 0 16px 28px rgba(13, 127, 122, 0.08);
    overflow: hidden;
}

.empty-showcase-pillar::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(22, 166, 160, 0.15), rgba(13, 127, 122, 0.65), rgba(22, 166, 160, 0.15));
}

.empty-showcase-pillar-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--identity-accent-soft), rgba(255, 248, 231, 0.92));
    border: 1px dashed rgba(110, 168, 217, 0.52);
    color: var(--identity-accent-deep);
    font-size: 1rem;
    font-weight: 800;
}

.empty-showcase-pillar-text {
    margin: 0;
    color: #244c49;
    font-size: 1rem;
    line-height: 2;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* -----------------------------------------------------------
   5. Areas Section (قسم المجالات)
----------------------------------------------------------- */
.empty-showcase-areas-wrap {
    width: 100%;
    margin-top: 2px;
    padding-top: 22px;
    border-top: 1px solid rgba(13, 127, 122, 0.12);
}

.empty-showcase-areas-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--identity-accent-soft), rgba(255, 250, 240, 0.92));
    color: var(--identity-accent-deep);
    font-size: 0.95rem;
    font-weight: 800;
    justify-self: center;
}

.empty-showcase-areas-label i {
    font-size: 0.95rem;
}

.empty-showcase-areas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.empty-showcase-area {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22, 166, 160, 0.08), rgba(255, 249, 237, 0.94));
    border: 1px solid rgba(110, 168, 217, 0.24);
    color: var(--identity-accent-deep);
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.empty-showcase-area:hover,
.empty-showcase-area:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(63, 120, 176, 0.45);
    box-shadow: 0 10px 18px rgba(63, 120, 176, 0.12);
    outline: none;
}

/* -----------------------------------------------------------
   6. Tasks Section (قسم المهام)
----------------------------------------------------------- */
.tasks-wrapper {
    width: 100%;
    margin-top: 0;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(22, 166, 160, 0.15);
    text-align: center;
}

.tasks-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-weight: 800;
    color: var(--rahmah-primary-dark);
    margin-bottom: 3rem;
    font-size: 1.6rem;
    padding: 16px 50px;
    background: linear-gradient(180deg, #ffffff 0%, #f1fafa 100%);
    border-radius: 999px;
    box-shadow: 0 16px 36px rgba(13, 127, 122, 0.12);
    border: 1px solid rgba(22, 166, 160, 0.15);
    position: relative;
}

.tasks-label::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    border: 1px dashed rgba(22, 166, 160, 0.3);
}

.tasks-label i {
    font-size: 1.5em;
    color: var(--rahmah-primary);
    filter: drop-shadow(0 2px 4px rgba(22, 166, 160, 0.2));
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    text-align: right;
    align-items: stretch;
}

.task-card {
    background: #ffffff;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(22, 166, 160, 0.15);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 127, 122, 0.1);
    border-color: rgba(22, 166, 160, 0.4);
}

.task-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rahmah-primary), var(--accent-blue));
    opacity: 0.7;
}

.task-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--rahmah-primary-soft);
    color: var(--rahmah-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all var(--transition-base);
}

.task-card:hover .task-icon {
    background: var(--rahmah-primary);
    color: #ffffff;
    transform: rotate(-10deg) scale(1.1);
}

.task-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--rahmah-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* -----------------------------------------------------------
   7. Animations (التحريكات)
----------------------------------------------------------- */
.task-card:nth-child(1) {
    animation-delay: 0.1s;
}

.task-card:nth-child(2) {
    animation-delay: 0.2s;
}

.task-card:nth-child(3) {
    animation-delay: 0.3s;
}

.task-card:nth-child(4) {
    animation-delay: 0.4s;
}

.task-card:nth-child(5) {
    animation-delay: 0.5s;
}

.task-card:nth-child(6) {
    animation-delay: 0.6s;
}

.task-card:nth-child(7) {
    animation-delay: 0.7s;
}

.overview-page-ready .empty-showcase-shell {
    animation: overview-shell-welcome 0.82s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.overview-page-ready .empty-showcase-text-card {
    animation: overview-featured-hero 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

.overview-page-ready .empty-showcase-intro::after {
    animation: overview-intro-shine 0.95s ease-out 0.72s 1 forwards;
}

.overview-page-ready .empty-showcase-title {
    animation: overview-rise-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

.overview-page-ready .empty-showcase-pillar:nth-child(1) {
    animation: overview-card-in 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.overview-page-ready .empty-showcase-pillar-stack .empty-showcase-pillar {
    animation: overview-card-in 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.68s forwards;
}

.overview-page-ready .empty-showcase-pillars > .empty-showcase-pillar:last-child {
    animation: overview-card-in 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

.overview-page-ready .empty-showcase-areas-wrap {
    animation: overview-rise-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.overview-page-ready .tasks-wrapper {
    animation: overview-rise-in 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.92s forwards;
}

.overview-page-ready .task-card:nth-child(1) {
    animation: overview-task-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.04s forwards;
}

.overview-page-ready .task-card:nth-child(2) {
    animation: overview-task-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.12s forwards;
}

.overview-page-ready .task-card:nth-child(3) {
    animation: overview-task-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

.overview-page-ready .task-card:nth-child(4) {
    animation: overview-task-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.28s forwards;
}

.overview-page-ready .task-card:nth-child(5) {
    animation: overview-task-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.36s forwards;
}

.overview-page-ready .task-card:nth-child(6) {
    animation: overview-task-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.44s forwards;
}

.overview-page-ready .task-card:nth-child(7) {
    animation: overview-task-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.52s forwards;
}

@keyframes overview-shell-welcome {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.985);
        box-shadow: 0 10px 24px rgba(13, 127, 122, 0.08);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 24px 60px var(--shadow-main);
    }
}

@keyframes overview-rise-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes overview-card-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes overview-featured-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
        filter: saturate(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(-6px) scale(1.02);
        filter: saturate(1);
    }
}

@keyframes overview-featured-hero {
    0% {
        opacity: 0;
        transform: translateY(46px) scale(0.9);
        filter: blur(6px) saturate(0.9);
        box-shadow:
            0 10px 24px rgba(13, 127, 122, 0.08),
            0 0 0 rgba(110, 168, 217, 0);
    }

    55% {
        opacity: 1;
        transform: translateY(-14px) scale(1.045);
        filter: blur(0) saturate(1.04);
        box-shadow:
            0 34px 56px rgba(13, 127, 122, 0.18),
            0 0 34px rgba(110, 168, 217, 0.18);
    }

    100% {
        opacity: 1;
        transform: translateY(-6px) scale(1.02);
        filter: blur(0) saturate(1);
        box-shadow:
            0 28px 48px rgba(13, 127, 122, 0.16),
            0 12px 26px rgba(110, 168, 217, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }
}

@keyframes overview-intro-shine {
    0% {
        opacity: 0;
        transform: rotate(18deg) translateX(0);
    }

    12% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(18deg) translateX(-360%);
    }
}

@keyframes overview-task-in {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* -----------------------------------------------------------
   8. Responsive Design (التجاوب)
----------------------------------------------------------- */
@media (max-width: 1024px) {
    .empty-showcase-content {
        gap: 24px;
        padding: 32px 24px 40px;
    }

    .empty-showcase-text-card {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .empty-showcase-pillars {
        grid-template-columns: 1fr;
    }

    .tasks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .empty-showcase-content {
        padding: 24px 18px 32px;
    }

    .empty-showcase-pillar {
        min-height: auto;
    }

    .empty-showcase-areas {
        gap: 8px;
    }

    .tasks-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .overview-page .empty-showcase-shell,
    .overview-page .empty-showcase-title,
    .overview-page .empty-showcase-pillar,
    .overview-page .empty-showcase-text-card,
    .overview-page .empty-showcase-areas-wrap,
    .overview-page .tasks-wrapper,
    .overview-page .task-card {
        opacity: 1;
        transform: none;
        animation: none !important;
        transition: none !important;
        will-change: auto;
    }
}

/* -----------------------------------------------------------
   6. Basic Facts Table (جدول البيانات الأساسية)
----------------------------------------------------------- */
.overview-facts-section {
    width: 100%;
    margin-top: 4px;
    padding-top: 10px;
}

.overview-facts-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22, 166, 160, 0.12), rgba(255, 250, 240, 0.95));
    border: 1px solid rgba(110, 168, 217, 0.2);
    color: var(--identity-accent-deep);
    font-size: 1rem;
    font-weight: 800;
}

.overview-facts-table-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 248, 0.96));
    border: 1px solid rgba(22, 166, 160, 0.14);
    box-shadow: 0 18px 34px rgba(13, 127, 122, 0.08);
}

.overview-facts-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.overview-facts-table th,
.overview-facts-table td {
    padding: 16px 18px;
    vertical-align: top;
    border-bottom: 1px solid rgba(22, 166, 160, 0.1);
    text-align: right;
    line-height: 1.9;
}

.overview-facts-table tr:last-child th,
.overview-facts-table tr:last-child td {
    border-bottom: 0;
}

.overview-facts-table th {
    width: 28%;
    color: #0f6c68;
    font-size: 0.98rem;
    font-weight: 800;
    background: rgba(22, 166, 160, 0.05);
}

.overview-facts-table td {
    color: #244c49;
    font-size: 0.97rem;
    font-weight: 700;
}
@media (max-width: 768px) {
    .overview-facts-table,
    .overview-facts-table tbody,
    .overview-facts-table tr,
    .overview-facts-table th,
    .overview-facts-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .overview-facts-table tr {
        padding: 14px 0;
        border-bottom: 1px solid rgba(22, 166, 160, 0.1);
    }

    .overview-facts-table tr:last-child {
        border-bottom: 0;
    }

    .overview-facts-table th,
    .overview-facts-table td {
        border-bottom: 0;
        padding: 8px 16px;
    }

    .overview-facts-table th {
        background: transparent;
        color: var(--identity-accent-deep);
        padding-bottom: 2px;
    }

    .overview-facts-table td {
        padding-top: 2px;
    }
}

.overview-facts-table-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 10px;
    background: linear-gradient(90deg, #0f1111, #2c3131, #0f1111);
    box-shadow: 0 10px 18px rgba(15, 17, 17, 0.16);
}

.overview-facts-table {
    margin-top: 10px;
}


.overview-page .overview-facts-section,
.overview-page .overview-fact-item {
    opacity: 0;
    will-change: transform, opacity;
}

.overview-page .overview-facts-section {
    transform: translateY(24px);
}

.overview-page .overview-fact-item {
    transform: translateY(18px) scale(0.985);
}

.overview-facts-section {
    width: 100%;
    margin-top: 4px;
    padding-top: 10px;
    text-align: right;
}

.overview-facts-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22, 166, 160, 0.12), rgba(255, 250, 240, 0.96));
    border: 1px solid rgba(110, 168, 217, 0.2);
    color: var(--identity-accent-deep);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(13, 127, 122, 0.08);
}

.overview-facts-accordion {
    display: grid;
    gap: 14px;
    width: 100%;
}

.overview-fact-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(22, 166, 160, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(22, 166, 160, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 248, 0.96));
    box-shadow: 0 16px 30px rgba(13, 127, 122, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.overview-fact-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, rgba(22, 166, 160, 0.2), rgba(22, 166, 160, 0.85), rgba(110, 168, 217, 0.38));
}

.overview-fact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 166, 160, 0.26);
    box-shadow: 0 22px 36px rgba(13, 127, 122, 0.12);
}

.overview-fact-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: default;
    list-style: none;
}

.overview-fact-summary::-webkit-details-marker {
    display: none;
}

.overview-fact-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22, 166, 160, 0.12), rgba(255, 247, 230, 0.94));
    color: #0d6f6a;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.overview-fact-label {
    color: #184643;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.8;
}

.overview-fact-summary i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(22, 166, 160, 0.1);
    color: var(--deep-teal);
    font-size: 0.95rem;
    transition: transform 0.32s ease, background-color 0.32s ease, color 0.32s ease;
}

.overview-fact-item[open] .overview-fact-summary i {
    transform: rotate(45deg) scale(1.04);
    background: rgba(22, 166, 160, 0.16);
    color: #0b5d59;
}

.overview-fact-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.36s ease;
}

.overview-fact-item[open] .overview-fact-panel {
    grid-template-rows: 1fr;
}

.overview-fact-panel > * {
    min-height: 0;
}

.overview-fact-value {
    margin: 0;
    padding: 0 22px 20px;
    color: #345a57;
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.overview-fact-value time {
    color: inherit;
    font-weight: 800;
}

.overview-page-ready .overview-facts-section {
    animation: overview-rise-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.26s forwards;
}

.overview-page-ready .overview-fact-item:nth-child(1) {
    animation: overview-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

.overview-page-ready .overview-fact-item:nth-child(2) {
    animation: overview-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.overview-page-ready .overview-fact-item:nth-child(3) {
    animation: overview-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

.overview-page-ready .overview-fact-item:nth-child(4) {
    animation: overview-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards;
}

.overview-page-ready .overview-fact-item:nth-child(5) {
    animation: overview-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

.overview-page-ready .overview-fact-item:nth-child(6) {
    animation: overview-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.64s forwards;
}

.overview-page-ready .overview-fact-item:nth-child(7) {
    animation: overview-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.overview-page-ready .overview-fact-item:nth-child(8) {
    animation: overview-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.76s forwards;
}

.overview-page-ready .overview-fact-item:nth-child(9) {
    animation: overview-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.82s forwards;
}

.overview-page-ready .overview-fact-item:nth-child(10) {
    animation: overview-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.88s forwards;
}

@media (max-width: 768px) {
    .overview-fact-summary {
        grid-template-columns: 1fr auto;
        padding: 16px 16px;
    }

    .overview-fact-kicker {
        grid-column: 1 / -1;
        justify-self: start;
        min-width: 0;
    }

    .overview-fact-label {
        font-size: 0.96rem;
    }

    .overview-fact-summary i {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .overview-fact-value {
        padding: 0 16px 18px;
        font-size: 0.93rem;
        line-height: 1.9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .overview-page .overview-facts-section,
    .overview-page .overview-fact-item {
        opacity: 1;
        transform: none;
        animation: none !important;
        transition: none !important;
        will-change: auto;
    }

    .overview-fact-panel,
    .overview-fact-summary i {
        transition: none !important;
    }
}

.overview-fact-item[open] .overview-fact-panel {
    grid-template-rows: 1fr;
}

.overview-fact-summary {
    pointer-events: none;
}

.overview-fact-summary i {
    display: none;
}

.overview-fact-item {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .overview-fact-summary {
        grid-template-columns: 1fr;
    }
}