/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.accent {
    color: #ff8800 !important;
}

#accent {
    color: #ff8800;
}

header {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    position: fixed; /* Set header to fixed position */
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 42px !important; /* Adjust the height as needed */
    margin-right: 10px; /* Add spacing between logo and text */
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.logo h2 {
    font-size: 18px;
    font-weight: normal;
}

/* Use paragraph elements but style them as semantic headings */
.brand-name {
    font-size: 24px; /* visually like h1 */
    font-weight: 700;
    line-height: 1;
    margin: 0;
    color: #ffffff; /* keep header text visible on dark header */
}

.brand-tagline {
    font-size: 18px; /* visually like h2 */
    font-weight: 400;
    margin: 0;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .brand-name {
        font-size: 20px;
    }
    .brand-tagline {
        font-size: 14px;
    }
}

/* Style the menu icon */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Style the mobile dropdown menu */
.top-menu {
    list-style: none;
    padding: 0;
}

.top-menu li {
    display: inline;
    margin-right: 20px;
}

.top-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.top-menu a:hover {
    color: #ff8800;
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* Display the menu on wider screens by default */
@media screen and (min-width: 769px) {
    .top-menu {
        display: block !important;
    }
}

/* Media queries for responsive navigation */
@media screen and (max-width: 768px) {
    .mobile-menu-icon {
        display: block;
    }

    .top-menu {
        display: none;
        position: absolute;
        top: 80px; /* Adjust the top position as needed */
        right: 0;
        background-color: #222;
        width: 100%;
        text-align: center;
        z-index: 1;
    }

    .top-menu li {
        display: block;
        margin: 10px 0;
    }

    /* Adjust the font size for the menu icon on smaller screens */
    .mobile-menu-icon {
        font-size: 28px;
    }
}

.main-content {
    flex-grow: 1;
    max-width: 100%;
    margin: 120px auto 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Style links (anchors) */
a {
    color: #364d66; /* Change the link color to your preferred color */
    text-decoration: none; /* Remove underline by default */
    transition: color 0.3s; /* Add a smooth color transition on hover */
}

a:hover {
    color: #7883a1; /* Change link color on hover */
    text-decoration: underline; /* Add underline on hover if desired */
}

/* ... Your existing CSS ... */

/* Style the project grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 20px auto 40px;
    max-width: 1260px;
}

.project-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.project-link:hover .project-tile {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.project-tile {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cover-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-tile h2 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 16px 20px 10px;
    color: #111;
}

.project-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4a4a4a;
    margin: 0 20px 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-created-on {
    font-size: 0.85rem;
    font-style: italic;
    color: #777;
    margin: 0 20px 20px;
    margin-top: auto;
}

.project-tile .project-description + .project-created-on {
    margin-top: auto;
}

/* Cookie banner */
.cookie-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background-color: rgba(34, 34, 34, 0.95);
    color: #fff;
    padding: 16px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.5;
    gap: 12px;
    align-items: center;
}

.cookie-banner-visible {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cookie-banner-text {
    margin: 0;
    flex: 1 1 320px;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.cookie-btn {
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 700;
}

.cookie-btn-primary {
    background-color: #ff8800;
    color: #222;
}

.cookie-btn-secondary {
    background-color: #555;
    color: #fff;
}

/* Admin Control Panel */
.admin-panel {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-panel h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #222;
    border-bottom: 3px solid #ff8800;
    padding-bottom: 12px;
}

.admin-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.admin-menu li a {
    display: inline-block;
    background-color: #ff8800;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-menu li a:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
}

.separator {
    border-top: 2px solid #ddd;
    margin: 40px 0;
}

.project-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    transition: all 0.2s ease;
}

.project-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #ff8800;
}

.project-title {
    font-weight: 600;
    color: #222;
    font-size: 1.1rem;
}

.project-pk {
    font-size: 0.9rem;
    color: #666;
}

.project-actions {
    display: flex;
    gap: 8px;
}

.project-actions a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.project-actions a:first-child {
    background-color: #007BFF;
    color: white;
}

.project-actions a:first-child:hover {
    background-color: #0056b3;
}

.project-actions a:last-child {
    background-color: #dc3545;
    color: white;
}

.project-actions a:last-child:hover {
    background-color: #c82333;
}

/* Upload/Create Project Form */
.upload-project,
.update-project {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.upload-project h2,
.update-project h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #222;
    border-bottom: 3px solid #ff8800;
    padding-bottom: 12px;
}

.upload-project h3,
.update-project h3 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #333;
}

.project-form {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="file"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff8800;
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #ff8800;
    color: white;
}

.btn-primary:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Image Preview and Gallery */
.image-previews,
.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.project-image-wrapper {
    position: relative;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    overflow: hidden;
}

.project-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.project-image-wrapper .btn-danger {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
}

.draggable {
    cursor: move;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.draggable:hover {
    opacity: 0.8;
}

.draggable.dragging {
    opacity: 0.5;
}

/* Form Checkbox */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .admin-panel h2,
    .upload-project h2,
    .update-project h2 {
        font-size: 1.5rem;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-actions {
        justify-content: flex-start;
    }

    .admin-menu {
        flex-direction: column;
    }

    .admin-menu li a {
        display: block;
        text-align: center;
    }

    .image-previews,
    .project-images {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 0 12px;
}

.filter-btn {
    padding: 4px 10px;
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.15s;
}

.filter-btn:hover {
    color: #ff8800;
}

.filter-btn.active {
    color: #222;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.filter-separator {
    color: #bbb;
    font-size: 0.8rem;
    user-select: none;
}




