/* ===========================================================
   Static Pages — Aligned with new_home design system
   Tokens: --primary #199675, --dark #1e293b
   =========================================================== */

/* Hero / Page Banner ----------------------------------------- */
.page-hero {
    position: relative;
    padding: 180px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -150px;
    inset-inline-end: -150px;
    width: 500px;
    height: 500px;
    background: rgba(25, 150, 117, 0.18);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.page-hero::before {
    content: '';
    position: absolute;
    bottom: -200px;
    inset-inline-start: -200px;
    width: 600px;
    height: 600px;
    background: rgba(25, 150, 117, 0.08);
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.4;
}

.page-hero .container { z-index: 2; }

.page-hero-tag {
    display: inline-block;
    background: rgba(25, 150, 117, 0.18);
    color: #5eead4;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(25, 150, 117, 0.35);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin: 0 auto 18px;
    max-width: 850px;
    line-height: 1.25;
}

.page-hero p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

.page-hero-detail { padding: 180px 0 90px; }

.page-detail-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    color: #cbd5e1;
}

.page-detail-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.page-detail-meta i { color: var(--primary); font-size: 1.1rem; }

.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 22px;
    border-radius: 50px;
    color: #cbd5e1;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    justify-content: center;
}

.page-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.page-breadcrumb a:hover { color: #5eead4; }
.page-breadcrumb i { color: var(--primary); font-size: 1.1rem; }
.page-breadcrumb span { color: #94a3b8; }

/* Main Section ----------------------------------------------- */
.pages-section {
    padding: 80px 0 100px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.pages-section::before {
    content: '';
    position: absolute;
    top: 60px;
    inset-inline-end: -120px;
    width: 350px;
    height: 350px;
    background: rgba(25, 150, 117, 0.05);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

/* Page Card --------------------------------------------------- */
.page-card-new {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border-radius: 22px;
    padding: 30px 26px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: 0.4s ease;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.page-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.page-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    color: inherit;
}

.page-card-new:hover::before { transform: scaleX(1); }

.page-card-deco {
    position: absolute;
    bottom: -60px;
    inset-inline-end: -60px;
    width: 180px;
    height: 180px;
    background: rgba(25,150,117,0.06);
    border-radius: 50%;
    transition: 0.5s ease;
    pointer-events: none;
}

.page-card-new:hover .page-card-deco {
    transform: scale(1.4);
    background: rgba(25,150,117,0.1);
}

.page-card-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background: rgba(25,150,117,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.6rem;
    transition: 0.4s ease;
}

.page-card-new:hover .page-card-icon {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
}

.page-card-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.page-card-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 10px;
    color: var(--dark);
    transition: 0.3s;
}

.page-card-new:hover h3 { color: var(--primary); }

.page-card-body p {
    color: #64748b;
    font-size: 0.93rem;
    line-height: 1.7;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-card-link {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
    font-size: 0.92rem;
}

.page-card-new:hover .page-card-link { gap: 12px; }

/* Empty state */
.page-empty {
    text-align: center;
    padding: 80px 30px;
    background: #fff;
    border-radius: 22px;
    border: 2px dashed #e2e8f0;
}

.page-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 18px;
    display: block;
}

.page-empty h4 { font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.page-empty p { color: #94a3b8; margin: 0; }

/* Pagination ------------------------------------------------- */
.page-pagination { margin-top: 50px; display: flex; justify-content: center; }

.page-pagination .pagination,
.page-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: #fff;
    color: var(--dark);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.page-pagination .page-item .page-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(25,150,117,0.3);
}

.page-pagination .page-item.disabled .page-link {
    color: #cbd5e1;
    background: #f1f5f9;
}

/* Detail Card ------------------------------------------------- */
.page-detail-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(15,23,42,0.06);
    border: 1px solid #eef2f7;
    position: relative;
}

.page-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #5eead4);
}

.page-detail-body { padding: 48px; }

.page-rich-content {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.95;
}

.page-rich-content h1,
.page-rich-content h2,
.page-rich-content h3,
.page-rich-content h4,
.page-rich-content h5 {
    color: var(--dark);
    font-weight: 800;
    margin: 35px 0 16px;
    line-height: 1.4;
}

.page-rich-content h1 { font-size: 2rem; }
.page-rich-content h2 { font-size: 1.7rem; }
.page-rich-content h3 { font-size: 1.4rem; }
.page-rich-content h4 { font-size: 1.2rem; }

.page-rich-content > h2:first-child,
.page-rich-content > h3:first-child,
.page-rich-content > h1:first-child { margin-top: 0; }

.page-rich-content p { margin-bottom: 18px; }

.page-rich-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: 0.3s;
}

.page-rich-content a:hover { color: #0f5c46; }

.page-rich-content strong { color: var(--dark); font-weight: 800; }

.page-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 22px 0;
    display: block;
    box-shadow: 0 10px 30px rgba(15,23,42,0.1);
}

.page-rich-content blockquote {
    border-inline-start: 4px solid var(--primary);
    background: #f8fafc;
    padding: 22px 26px;
    border-radius: 14px;
    margin: 28px 0;
    color: var(--dark);
    font-style: italic;
    position: relative;
}

.page-rich-content blockquote::before {
    content: '\201C';
    font-size: 4rem;
    color: rgba(25,150,117,0.2);
    position: absolute;
    top: -10px;
    inset-inline-start: 14px;
    line-height: 1;
}

.page-rich-content ul,
.page-rich-content ol { padding-inline-start: 22px; margin-bottom: 20px; }

.page-rich-content ul { list-style: none; padding-inline-start: 0; }

.page-rich-content ul li {
    position: relative;
    padding-inline-start: 28px;
    margin-bottom: 10px;
}

.page-rich-content ul li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 9px;
    width: 14px;
    height: 14px;
    background: rgba(25,150,117,0.15);
    border-radius: 50%;
}

.page-rich-content ul li::after {
    content: '';
    position: absolute;
    inset-inline-start: 4px;
    top: 13px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.page-rich-content ol li { margin-bottom: 10px; }

.page-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(15,23,42,0.05);
}

.page-rich-content th,
.page-rich-content td {
    padding: 14px 18px;
    text-align: start;
    border-bottom: 1px solid #f1f5f9;
}

.page-rich-content th {
    background: var(--dark);
    color: #fff;
    font-weight: 700;
}

.page-rich-content tbody tr:nth-child(even) { background: #f8fafc; }

.page-rich-content code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    color: #be123c;
    font-size: 0.92em;
}

.page-rich-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 22px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 24px 0;
}

.page-rich-content hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 32px 0;
}

/* Back button */
.page-back { margin-top: 30px; text-align: center; }

.btn-page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--dark);
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(15,23,42,0.04);
}

.btn-page-back:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 10px 25px rgba(25,150,117,0.3);
}

.btn-page-back i { font-size: 1.15rem; }

/* Responsive ------------------------------------------------- */
@media (max-width: 991px) {
    .page-hero { padding: 140px 0 60px; }
    .page-hero-detail { padding: 140px 0 70px; }
    .pages-section { padding: 60px 0 80px; }
    .page-detail-body { padding: 32px; }
}

@media (max-width: 575px) {
    .page-hero { padding: 120px 0 50px; }
    .page-detail-body { padding: 24px; }
    .page-card-new { padding: 24px 22px; }
    .page-card-icon { width: 50px; height: 50px; font-size: 1.4rem; flex-basis: 50px; }
}
