
/* Apriori project detail page */
.apriori-hero {
    position: relative;
}

.apriori-hero img {
    width: min(100%, 1100px);
    max-height: 560px;
    object-fit: contain;
    background: #111923;
}

.contribution-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 38px;
}

.contribution-card,
.metric-card {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.025);
}

.contribution-card > span {
    color: #e99a54;
    font-size: .85rem;
    letter-spacing: .12em;
}

.contribution-card h3,
.metric-card strong {
    display: block;
    margin: 18px 0 12px;
    color: #fff;
    font-size: 1.2rem;
}

.contribution-card p,
.metric-card p,
.contribution-note,
.method-note {
    color: rgba(255,255,255,.68);
    line-height: 1.9;
}

.contribution-note,
.method-note {
    margin-top: 24px;
    font-size: .92rem;
}

.workflow-list {
    margin-top: 36px;
    border-top: 1px solid rgba(255,255,255,.14);
}

.workflow-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.workflow-item > span {
    color: #e99a54;
    font-size: 1.1rem;
    letter-spacing: .1em;
}

.workflow-item h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.2rem;
}

.workflow-item p {
    margin: 0;
    color: rgba(255,255,255,.68);
    line-height: 1.9;
}

.metric-card strong {
    color: #79a9d6;
    font-size: 1.35rem;
}

.parameter-panel {
    margin-top: 34px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.14);
}

.parameter-panel h3 {
    margin: 0 0 22px;
    color: #fff;
}

.parameter-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.parameter-list div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.parameter-list span {
    color: rgba(255,255,255,.58);
    font-size: .85rem;
}

.parameter-list strong {
    color: #e99a54;
    font-size: 1.35rem;
}

.result-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 42px;
    align-items: center;
    margin-top: 36px;
}

.result-copy h3,
.learning-content h3 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 1.25;
}

.result-copy p,
.learning-content p {
    color: rgba(255,255,255,.7);
    line-height: 2;
}

.result-figure {
    margin: 0;
}

.result-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255,255,255,.12);
}

.result-figure figcaption {
    margin-top: 12px;
    color: rgba(255,255,255,.55);
    font-size: .85rem;
}

.learning-content {
    max-width: 850px;
    margin-top: 34px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 36px 8%;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.6);
    font-size: .85rem;
}

.project-footer a {
    color: #e99a54;
    text-decoration: none;
    letter-spacing: .08em;
}

@media (max-width: 800px) {
    .contribution-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

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

    .result-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .workflow-item {
        grid-template-columns: 42px 1fr;
        gap: 14px;
    }

    .parameter-list {
        grid-template-columns: 1fr 1fr;
    }

    .project-footer {
        flex-direction: column;
    }
}

/* Descriptive Statistics */
.statistics-intro {
    max-width: 850px;
    margin: 35px 0;
}

.statistics-intro h3 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 1.3;
}

.statistics-intro p {
    color: rgba(255,255,255,.7);
    line-height: 2;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 35px;
}

.statistics-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.025);
}

.statistics-card img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
}

.statistics-card figcaption {
    padding: 24px;
}

.statistics-card figcaption span {
    color: #e99a54;
    font-size: .8rem;
    letter-spacing: .12em;
}

.statistics-card figcaption h3 {
    color: #fff;
    margin: 12px 0;
}

.statistics-card figcaption p {
    color: rgba(255,255,255,.68);
    line-height: 1.9;
}

.apriori-result-figure {
    margin: 35px 0;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.12);
}

.apriori-result-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.apriori-result-figure figcaption {
    margin-top: 15px;
    color: #333;
    text-align: center;
    font-size: .9rem;
}

@media (max-width: 800px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }
}


/* Improved Apriori Rules Table */
.rules-table-wrapper {
    width: 100%;
    margin-top: 35px;
    overflow-x: auto;
}

.rules-table-wrapper h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 22px;
}

.rules-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #fff;
}

.rules-table th,
.rules-table td {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    text-align: left;
    line-height: 1.8;
    vertical-align: middle;
}

.rules-table th {
    color: #e99a54;
    font-size: 14px;
    background: rgba(255,255,255,.04);
}

.rules-table td {
    font-size: 14px;
}

.rules-table th:nth-child(1),
.rules-table td:nth-child(1) {
    width: 65px;
}

.rules-table th:nth-child(2),
.rules-table td:nth-child(2) {
    width: 52%;
}

.rules-table th:nth-child(n+3),
.rules-table td:nth-child(n+3) {
    width: 12%;
    text-align: center;
    white-space: nowrap;
}

.rules-table tbody tr:hover {
    background: rgba(255,255,255,.06);
}


/* ==============================
   Research Insights
============================== */

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 35px;
}

.insight-card {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.025);
}

.insight-card > span {
    display: block;
    color: #e99a54;
    font-size: 12px;
    letter-spacing: 1.2px;
}

.insight-card h3 {
    color: #fff;
    font-size: 19px;
    margin: 20px 0;
}

.insight-number {
    color: #79a9d6;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
}

.insight-card p {
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.9;
}

.insight-card small {
    display: block;
    margin-top: 20px;
    color: rgba(255,255,255,.48);
    line-height: 1.8;
}

.insight-conclusion {
    margin-top: 35px;
    padding: 30px;
    border-left: 3px solid #e99a54;
    background: rgba(255,255,255,.035);
}

.insight-conclusion h3 {
    color: #e99a54;
    font-size: 15px;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.insight-conclusion p {
    color: rgba(255,255,255,.75);
    font-size: 15px;
    line-height: 2;
}

/* Responsive */
@media (max-width: 900px) {
    .insight-grid {
        grid-template-columns: 1fr;
    }
}
