/**
 * Public website layout — extracted from layouts/public-website.blade.php
 */

body.public-website-body,
body:has(.public-page-container) {
    background: #f7f9fc;
    color: #1f2937;
}

.public-page-header {
    background-size: cover;
    background-position: center;
    width: 100%;
    max-width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    box-sizing: border-box;
    overflow: hidden;
}

.public-page-header--dynamic {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--page-header-image);
}

.public-page-header .header-content {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.public-page-header h1 {
    font-size: clamp(24px, 6vw, 48px);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.public-page-header p {
    font-size: clamp(14px, 3.5vw, 18px);
    opacity: 0.9;
    margin: 0 auto;
    max-width: 100%;
    word-wrap: break-word;
}

.breadcrumb-container {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumb-content a {
    color: #2971b7;
    text-decoration: none;
}

.public-page-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.surface-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.filter-bar {
    padding: 28px;
    margin-bottom: 30px;
}

.filter-grid {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-grid > div {
    flex: 1;
    min-width: 220px;
}

.filter-grid label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.filter-grid input,
.filter-grid select,
.form-control-public,
.form-control-public textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.action-button.primary {
    background: #2971b7;
    color: #fff;
}

.action-button.secondary {
    background: #64748b;
    color: #fff;
}

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(41, 113, 183, 0.18);
    color: inherit;
    text-decoration: none;
}

.action-button.primary:hover {
    color: #fff;
}

.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Bootstrap-4 pagination (no Bootstrap CSS on public pages) */
.pagination-wrapper .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .pagination .page-item,
.pagination-wrapper .pagination > li {
    list-style: none;
    margin: 0;
}

.pagination-wrapper .pagination .page-link,
.pagination-wrapper .pagination > li > a,
.pagination-wrapper .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    color: #2971b7;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    background: #fff;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-wrapper .pagination .page-link:hover,
.pagination-wrapper .pagination > li > a:hover {
    background: #f0f7ff;
    border-color: #2971b7;
    color: #2971b7;
    text-decoration: none;
}

.pagination-wrapper .pagination .page-item.active .page-link,
.pagination-wrapper .pagination > li.active > a,
.pagination-wrapper .pagination > li.active > span {
    background-color: #2971b7;
    border-color: #2971b7;
    color: #fff;
}

.pagination-wrapper .pagination .page-item.disabled .page-link,
.pagination-wrapper .pagination > li.disabled > a,
.pagination-wrapper .pagination > li.disabled > span {
    color: #adb5bd;
    pointer-events: none;
    background: #f8f9fa;
    border-color: #e9ecef;
}

.empty-state {
    text-align: center;
    padding: 70px 24px;
}

.empty-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.alert-flash-success {
    padding: 18px 22px;
    margin-bottom: 24px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
}

.filter-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .public-page-header {
        height: auto;
        min-height: 220px;
        padding: 100px 16px 32px;
    }

    .public-page-header h1 {
        font-size: clamp(26px, 7vw, 34px);
        line-height: 1.2;
    }

    .public-page-header p {
        font-size: 15px;
        padding: 0 8px;
    }

    .public-page-container {
        margin: 32px auto;
        padding: 0 16px;
    }

    .filter-bar {
        padding: 20px;
    }
}
