* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.navbar {
    background: #10182b;
    color: white;
    padding: 18px 7%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.official-section {
    width: 92%;
    max-width: 1150px;
    margin: 45px auto;
}

.page-header {
    text-align: center;
    margin-bottom: 35px;
}

.page-header h1 {
    font-size: 38px;
    margin: 12px 0;
}

.page-header p {
    color: #6b7280;
}

.official-badge {
    display: inline-block;

    padding: 7px 13px;

    border-radius: 20px;

    background: #fff7d6;

    color: #9a6700;

    font-size: 12px;

    font-weight: bold;
}

#officialTripsContainer {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;
}

.official-trip-card {
    background: white;

    padding: 25px;

    border-radius: 16px;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.08);
}

.official-card-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;
}

.status {
    font-size: 13px;

    color: #166534;

    background: #dcfce7;

    padding: 5px 10px;

    border-radius: 20px;
}

.official-trip-card h2 {
    margin-bottom: 18px;
}

.official-trip-card p {
    margin-bottom: 11px;

    line-height: 1.5;
}

.description {
    color: #6b7280;

    margin-top: 18px;
}

.trip-footer {
    border-top: 1px solid #e5e7eb;

    margin-top: 20px;

    padding-top: 15px;

    color: #6b7280;
}

.empty-box {
    grid-column: 1 / -1;

    background: white;

    text-align: center;

    padding: 60px 25px;

    border-radius: 16px;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.06);
}

.empty-icon {
    font-size: 45px;

    margin-bottom: 15px;
}

.loading {
    text-align: center;
}

@media (max-width: 700px) {

    .navbar {
        flex-direction: column;

        gap: 15px;
    }

    #officialTripsContainer {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 30px;
    }

}
.trip-action {
    margin-top: 20px;
}

.join-official-btn {
    width: 100%;
    padding: 13px 18px;

    border: none;
    border-radius: 10px;

    background: #2563eb;
    color: white;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
}

.join-official-btn:hover {
    background: #1d4ed8;
}
/* ========================================
   PHOTO UPLOAD
======================================== */

.photo-upload-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-upload-section label {
    font-weight: 600;
}

.photo-help {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}


/* File input */

#tripPhotos {
    width: 100%;
    padding: 12px;
    border: 2px dashed #d3a000;
    border-radius: 10px;
    background: #fffaf0;
    cursor: pointer;
}


/* Preview area */

#photoPreview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}


/* Individual preview */

.photo-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}


/* Mobile */

@media (max-width: 600px) {

    #photoPreview {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-preview {
        height: 100px;
    }

}