/* Page Layout */

.definitions-page {
    padding: 80px 20px;
    background: #ffffff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}


/* Page Header */

.page-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.page-intro {
    text-align: center;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.05rem;
}


/* Definitions Grid */

.definitions-list {
    display: grid;
    gap: 35px;
}


/* Definition Card */

.definition-item {
    padding: 28px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.definition-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}


/* Definition Title */

.definition-title {
    margin: 0 0 12px;
}


/* Target CMS inner element */

.definition-title > * {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;

    font-size: 1.35rem;
    font-weight: 600;
    color: #1e293b;
}


/* Underline */

.definition-title > *::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;
    background: var(--color-primary-light);
    border-radius: 2px;
}

/* Definition Text */

.definition-text {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}


/* Responsive */

@media (max-width: 640px) {

    .page-title {
        font-size: 1.9rem;
    }

    .definition-title > * {
        font-size: 1.2rem;
    }

}

/* Force title alignment */

.definition-item {
    text-align: start; /* يحترم RTL / LTR */
}

/* Make title fit content and not center */

.definition-title {
    width: fit-content;
    margin: 0 0 12px 0;
}

/* CMS inner element */

.definition-title > * {
    display: inline-block;
    position: relative;
    text-align: start;
}

/* Fix CMS inner alignment */

.definition-title > * {
    display: inline-block !important;
    width: auto !important;

    position: relative;
    padding-bottom: 6px;

    text-align: start;
}


/* Underline */

.definition-title > *::after {
    content: "";
    position: absolute;

    inset-inline-start: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background: var(--color-secondary, var(--color-primary-light));
    border-radius: 2px;
}