/* ============================================
   PAGES — Shared Subpage Components
   ============================================ */

/* --- Page Header (icon + title inline) --- */
.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.page-header .tool-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.page-header h1 {
    margin-bottom: 0;
    line-height: 1.2;
}

.page-header .page-subtitle {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 4px;
}

/* --- Info Banners --- */
.info-banner {
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.92rem;
    border-left: 4px solid transparent;
}

.info-banner strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.info-banner p {
    margin: 0;
}

.info-banner p + p {
    margin-top: 8px;
}

.info-banner a {
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.info-banner.info {
    background: #e8f0fe;
    border-left-color: #1967d2;
    color: #1a3a5c;
}

.info-banner.info strong {
    color: #1967d2;
}

.info-banner.info a {
    color: #1967d2;
}

.info-banner.warning {
    background: #fff8e1;
    border-left-color: #f9a825;
    color: #5d4200;
}

.info-banner.warning strong {
    color: #e65100;
}

.info-banner.warning a {
    color: #856404;
}

.info-banner.success {
    background: #e8f5e9;
    border-left-color: #2e7d32;
    color: #1b5e20;
}

.info-banner.success strong {
    color: #2e7d32;
}

.info-banner.error {
    background: #fce4ec;
    border-left-color: #c62828;
    color: #b71c1c;
}

.info-banner.error strong {
    color: #c62828;
}

/* Dismissible banner */
.info-banner.dismissible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.info-banner .banner-close {
    background: transparent;
    border: 1px solid currentColor;
    opacity: 0.5;
    color: inherit;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.info-banner .banner-close:hover {
    opacity: 1;
}

/* --- Content Card --- */
.content-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.content-card {
    background: var(--white);
    padding: 36px;
    border-radius: 12px;
    box-shadow:
        0 1px 3px rgba(10, 25, 47, 0.04),
        0 4px 12px rgba(10, 25, 47, 0.06);
    border: 1px solid rgba(10, 25, 47, 0.06);
    margin-top: 24px;
}

.content-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.content-card h2:not(:first-child) {
    margin-top: 32px;
}

.content-card p {
    line-height: 1.7;
    color: #3a4a5c;
}

/* --- Service / Feature Grid --- */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.page-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    border: 1px solid rgba(10, 25, 47, 0.06);
    box-shadow: 0 2px 8px rgba(10, 25, 47, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.page-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 24px rgba(10, 25, 47, 0.08),
        0 4px 8px rgba(10, 25, 47, 0.04);
    border-color: rgba(212, 175, 55, 0.2);
}

.page-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
}

.page-card .card-header img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.page-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.page-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
}

.page-card .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 12px;
    transition: gap 0.25s ease;
}

.page-card:hover .link-arrow {
    gap: 10px;
}

/* --- News Grid (actualiteiten) --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

/* --- News Card (actualiteiten) --- */
.news-card {
    position: relative;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(10, 25, 47, 0.06);
    box-shadow: 0 2px 8px rgba(10, 25, 47, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(10, 25, 47, 0.08),
        0 8px 16px rgba(10, 25, 47, 0.04);
    border-color: rgba(212, 175, 55, 0.2);
}

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

.news-card .news-image {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-card .news-body {
    padding: 20px 22px 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.news-card-top .news-date {
    display: inline;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.news-card-top .tool-card-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-top .tool-card-icon {
    transform: scale(1.1) rotate(-3deg);
}

.news-card .news-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card .news-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.news-card .news-title a:hover {
    color: var(--accent-color);
}

.news-card .news-excerpt {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.news-card .card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.25s ease;
}

.news-card:hover .card-arrow {
    gap: 10px;
    color: var(--accent-color);
}

/* --- News Hero (featured artikel, buiten de grid) --- */
.news-hero {
    position: relative;
    background: linear-gradient(145deg, #0d1f3c 0%, #0a192f 50%, #0f2847 100%);
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: row;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #e5c158);
    z-index: 1;
}

.news-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.12);
}

.news-hero-body {
    padding: 32px 36px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-hero-image {
    width: 380px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-hero:hover .news-hero-image img {
    transform: scale(1.04);
}

.news-hero .news-card-top .news-date {
    color: var(--accent-color);
}

.news-hero .news-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.35;
}

.news-hero .news-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-hero .news-title a:hover {
    color: var(--accent-color);
}

.news-hero .news-excerpt {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}

.news-hero .card-arrow {
    color: var(--accent-color);
    margin-top: 0;
}

.news-hero:hover .card-arrow {
    color: #e5c158;
    gap: 10px;
}

.news-hero .tool-card-icon.gold {
    background: rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
    .news-hero {
        flex-direction: column;
    }
    .news-hero-image {
        width: 100%;
        height: 200px;
    }
    .news-hero-body {
        padding: 24px;
    }
}

/* --- Promo Banner (extensie promotie) --- */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d2a5c 100%);
    color: var(--white);
    padding: 18px 24px;
    border-radius: 10px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 16px rgba(10, 25, 47, 0.15);
}

.promo-banner .promo-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.promo-banner .promo-emoji {
    font-size: 1.5rem;
}

.promo-banner .promo-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2px;
}

.promo-banner .promo-text {
    font-size: 0.9rem;
    opacity: 0.85;
}

.promo-banner .promo-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.promo-banner .promo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* --- Tool Card (gedeeld: homepage + tools.php) --- */
.tool-card {
    position: relative;
    background: var(--white);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(10, 25, 47, 0.06);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(10, 25, 47, 0.08),
        0 8px 16px rgba(10, 25, 47, 0.04);
    border-color: rgba(212, 175, 55, 0.2);
}

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

.tool-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tool-card .card-header h3 {
    margin-bottom: 0;
}

.tool-card-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.tool-card:hover .tool-card-icon {
    transform: scale(1.1) rotate(-3deg);
}

.tool-card-icon img {
    width: 28px;
    height: 28px;
}

.tool-card-icon i {
    font-size: 1.2rem;
}

.tool-card-icon.gold {
    background: rgba(212, 175, 55, 0.12);
    color: #b8941e;
}

.tool-card-icon.navy {
    background: rgba(10, 25, 47, 0.08);
    color: var(--primary-color);
}

.tool-card-icon.teal {
    background: rgba(38, 166, 154, 0.1);
    color: #1a8a7f;
}

.tool-card-icon.indigo {
    background: rgba(92, 107, 192, 0.1);
    color: #4a5ab5;
}

.tool-card-icon.silver {
    background: rgba(192, 192, 192, 0.15);
    color: #707070;
}

.tool-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    line-height: 1.3;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.tool-card .card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 14px;
    transition: gap 0.25s ease;
}

.tool-card:hover .card-arrow {
    gap: 10px;
    color: var(--accent-color);
}

/* --- Tools List Grid (tools.php overzicht) --- */
.tools-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header img {
        width: 36px;
        height: 36px;
    }

    .content-card {
        padding: 24px;
    }

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

    .promo-banner {
        flex-direction: column;
        text-align: center;
    }

    .promo-banner .promo-content {
        flex-direction: column;
    }

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

    .news-card.news-featured {
        grid-column: span 1;
    }
}
