/* ===========================================
   Base styles
   =========================================== */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #1f2933;
}

.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ===========================================
   Buttons
   =========================================== */
button {
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s, opacity 0.2s;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.primary-button {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
}

.primary-button:hover:not(:disabled) {
    background-color: #34495e;
}

.secondary-button {
    display: inline-block;
    background-color: #e2e8f0;
    color: #2c3e50;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
}

.secondary-button:hover:not(:disabled) {
    background-color: #cbd5e0;
}

.danger-button {
    display: inline-block;
    background-color: #dc2626;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
}

.danger-button:hover:not(:disabled) {
    background-color: #b91c1c;
}

.link-button {
    background: none;
    border: none;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    padding: 0.5rem;
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

/* ===========================================
   Form elements
   =========================================== */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.field-label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
}

.field-label input,
.field-label select,
.field-label textarea {
    font-size: 1rem;
    font-weight: 400;
    color: #1f2933;
}

.field-disabled {
    opacity: 0.5;
}

.field-disabled input,
.field-disabled select,
.field-disabled textarea {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="datetime-local"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* ===========================================
   Text utilities
   =========================================== */
.error-text {
    color: #dc2626;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.success-text {
    color: #059669;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.warning-text {
    color: #b45309;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border-radius: 6px;
    border-left: 4px solid #f59e0b;
}

.muted-text {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.loading-text {
    color: #64748b;
    font-style: italic;
}

/* ===========================================
   Landing page
   =========================================== */
.landing-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.landing-links {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.landing-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.landing-title {
    font-size: 3rem;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
}

.landing-title-row .landing-title {
    margin: 0;
}

/* Landing Logo */
.landing-logo {
    width: 60px;
    height: 56px;
    flex-shrink: 0;
}

.landing-subtitle {
    font-size: 1.1rem;
    margin: 1.25rem auto 0;
    max-width: 640px;
    color: #1f2933;
}

/* ===========================================
   Projects section
   =========================================== */
.projects-section,
.gallery-section {
    margin-bottom: 3.5rem;
}

.projects-section::before,
.gallery-section::before {
    content: '';
    display: block;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 1px;
    background: #e2e8f0;
    margin-bottom: 2rem;
}

.project-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    -webkit-overflow-scrolling: touch;
    
    /* Break out of container to browser edge */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 1.5rem);
    padding-right: calc(50vw - 50% + 1.5rem);
    box-sizing: border-box;
}

/* Hide scrollbar but keep functionality */
.project-grid {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.project-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.project-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    background: #fff;
    display: flex;
    gap: 1.5rem;
    min-width: 480px;
    max-width: 520px;
    flex-shrink: 0;
    transition: box-shadow 0.25s, transform 0.25s;
}

.project-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Book cover placeholder */
.project-card-cover {
    flex-shrink: 0;
    width: 145px;
    display: flex;
}

.cover-placeholder {
    width: 100%;
    min-height: 180px;
    flex: 1;
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cover-placeholder::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    pointer-events: none;
}

.cover-placeholder-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    padding: 0.5rem;
}

/* Project card content */
.project-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #1f2933;
}

.project-subtitle {
    margin: 0 0 0.25rem;
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
}

.project-author {
    margin: 0 0 0.75rem;
    color: #475569;
    font-size: 0.9rem;
}

.project-description {
    margin: 0;
    color: #1f2933;
    line-height: 1.5;
}

.project-description-preview {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    text-align: justify;
    hyphens: auto;
}

.show-more-link {
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    margin-left: 0.25rem;
}

.show-more-link:hover {
    color: #1a252f;
    text-decoration: underline;
}

.project-submit-btn {
    margin-top: 1.25rem;
    align-self: center;
}

.gallery-placeholder {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    color: #64748b;
}

/* Project card with uploaded image */
.project-card-image {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 0.5rem;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================================
   Gallery grid
   =========================================== */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    row-gap: 1.5rem;
}

.gallery-item {
    position: relative;
    width: 200px;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gallery-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-winner {
    border: 2px solid #f59e0b;
}

.gallery-winner-badge {
    display: inline-block;
    background: #f59e0b;
    color: #1f2933;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
}

/* ===========================================
   Past projects section
   =========================================== */
.past-projects-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.past-projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    row-gap: 1.75rem;
}

.past-project-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 200px;
    flex-shrink: 0;
}

.past-project-cover {
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.past-project-cover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.past-project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.past-project-no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.8rem;
    border: 1px dashed #cbd5e0;
}

.past-project-info h4 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.past-project-info .project-author {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.past-project-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
}

.past-project-status.concluded {
    background: #dcfce7;
    color: #166534;
}

.past-project-status.closed {
    background: #fee2e2;
    color: #991b1b;
}

/* ===========================================
   Project detail page
   =========================================== */
.project-header {
    margin-bottom: 2rem;
}

.project-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
}

/* ===========================================
   Sign-in form
   =========================================== */
.signin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 420px;
}

/* ===========================================
   Portal (Creator dashboard)
   =========================================== */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.portal-section {
    margin-bottom: 3rem;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 520px;
}

.submission-group {
    margin-bottom: 2rem;
}

.submission-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.submission-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.official-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* ===========================================
   Admin page
   =========================================== */
.admin-page {
    max-width: 900px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    margin: 0;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Admin auth */
.admin-auth {
    max-width: 360px;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.admin-tab {
    background: none;
    color: #64748b;
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    transition: color 0.2s, border-color 0.2s;
}

.admin-tab:hover {
    color: #2c3e50;
}

.admin-tab-active {
    color: #2c3e50;
    border-bottom-color: #2c3e50;
}

/* Admin sections */
.admin-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-section-header h2 {
    margin: 0;
}

/* Admin form */
.admin-form {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form h3 {
    margin: 0 0 0.5rem;
}

.admin-form h4 {
    margin: 1rem 0 0.5rem;
    color: #475569;
    font-size: 0.95rem;
}

/* Dimension toggle */
.dimension-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
}

.toggle-button {
    background: #e2e8f0;
    color: #475569;
    padding: 0.6rem 1.25rem;
    border: 1px solid #cbd5e0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.toggle-button:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.toggle-button:last-child {
    border-radius: 0 8px 8px 0;
}

.toggle-button:hover:not(.toggle-active) {
    background: #cbd5e0;
}

.toggle-active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* Cover upload section */
.cover-upload-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cover-upload-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.cover-preview {
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cover-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #f8fafc;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.drop-zone:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.drop-zone-active {
    border-color: #2c3e50;
    background: #e2e8f0;
    border-style: solid;
}

.drop-zone-text {
    color: #64748b;
    font-size: 0.9rem;
}

.drop-zone-active .drop-zone-text {
    color: #2c3e50;
    font-weight: 600;
}

.drop-zone-or {
    color: #94a3b8;
    font-size: 0.8rem;
}

.drop-zone-button {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.drop-zone-button:hover {
    background: #34495e;
}

/* Dummy submissions section */
.dummy-submissions-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dummy-submissions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dummy-submission-item {
    position: relative;
    width: 80px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dummy-submission-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dummy-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.dummy-submission-item:hover .dummy-delete-btn {
    opacity: 1;
}

.dummy-delete-btn:hover {
    background: #dc2626;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.admin-form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Admin list */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-card-thumb {
    width: 48px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.admin-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-card-info {
    flex: 1;
    min-width: 0;
}

.admin-card-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.admin-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Admin detail panel */
.admin-detail {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    background: #f8fafc;
}

.admin-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-detail-header h3 {
    margin: 0;
}

.admin-detail p {
    margin: 0.5rem 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
}

.empty-state p {
    margin: 0 0 1rem;
}

/* ===========================================
   Modal
   =========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
    margin: 0 0 1rem;
}

.modal-content p {
    margin: 0 0 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #94a3b8;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background-color: #f1f5f9;
    color: #475569;
}

/* Project detail modal */
.project-detail-modal {
    max-width: 560px;
    position: relative;
}

.modal-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
}

.modal-header h2 {
    margin: 0 0 0.25rem;
    padding-right: 2rem;
    font-size: 1.5rem;
    color: #1f2933;
}

.modal-header .project-subtitle {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.modal-header .project-author {
    margin: 0;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.project-description-full {
    color: #475569;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    white-space: pre-wrap;
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.detail-value {
    font-size: 0.95rem;
    color: #1f2933;
    font-weight: 500;
}

.modal-footer {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.delete-modal {
    max-width: 420px;
}

.delete-checkbox {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fef2f2;
    border-radius: 8px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 640px) {
    .page {
        padding: 1.5rem 1rem 3rem;
    }

    .landing-title {
        font-size: 2rem;
    }

    .landing-title-row {
        gap: 0.75rem;
    }

    .landing-logo {
        width: 40px;
        height: 40px;
    }

    /* Project card smaller on mobile but still horizontal scroll */
    .project-card {
        min-width: 320px;
        max-width: 360px;
        padding: 1.25rem;
    }

    .project-card-cover {
        width: 110px;
    }

    /* Gallery items smaller on mobile */
    .gallery-item {
        width: 140px;
    }

    .past-project-card {
        width: 140px;
    }

    /* Modal adjustments */
    .project-details-grid {
        grid-template-columns: 1fr;
    }

    .admin-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-card-actions {
        width: 100%;
    }

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

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
    }
}
