﻿:root {
    --moss-green: #708238;
    --highlight-green: #88a763;
    --background-color: #f5f3f0;
    --text-color: #333;
    --gray: #ccc;
    --hover-bg: #e2e0dc;
    --logout-red: #cc4b4b;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: transparent !important;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    backdrop-filter: none;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-image: url('/gallery/BG6.jpg'); 
        background-size: cover;
        background-position: center;
        filter: blur(8px);
        z-index: -1;
    }

header {
    background-color: #708238;
    padding: 1rem 2rem;
    color: white;
    text-align: center;
    font-size: 1.5rem;
}

main {
    padding: 2rem;
    margin: 0 auto;
}

@media(max-width: 768px) {
    main {
        padding: 2rem 0;
    }
}

.hidden{
    display: none !important;
}

/* ----------------------------------------------------------------------------------------- ADMIN INDEX PAGE */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.button {
    flex: 1 1 200px;
    background-color: var(--highlight-green);
    border: none;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
    text-decoration: none;
}

    .button:hover {
        background-color: var(--moss-green);
    }

    .button.logout {
        background-color: var(--logout-red);
    }

        .button.logout:hover {
            background-color: #a63838;
        }

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    background-color: white;
    border: 1px solid var(--gray);
    border-left: 6px solid var(--moss-green);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .contact-item:hover {
        background-color: var(--hover-bg);
    }

.contact-name {
    font-weight: bold;
}

.contact-title {
    font-size: 1.1rem;
    margin: 0.2rem 0;
}

.timestamp {
    font-size: 0.85rem;
    color: #666;
}

.contact-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    transition: background 0.2s ease;
}

    .contact-link:hover {
        background-color: #f0f0f0;
        text-decoration: none;
    }

/* ---------------------------------------------------------------------------------------------------- HEADER */

.ansa-navbar {
    background-color: #708238; /* mossy green */
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 3px;
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

    .brand-name:hover {
        color: #e3ead7; /* gentle hover highlight */
    }

.brand-subtitle {
    font-size: 1.1rem;
    color: #e6e6e6;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
    font-family: 'Segoe UI', sans-serif;
    opacity: 0.9;
}

.ansa-logo-navbar {
    background-color: #708238; /*#F8F1E4*/
    padding: 0;
}

.logo-header-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Center vertically */
    gap: 1rem;
    padding: 1rem;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex: 0 1 auto;
}

.ansa-logo {
    height: 100%;
    max-height: 250px;
    width: auto;
    object-fit: contain;
}

.contact-info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #708238;
    padding: 0 1rem;
    flex: 0 1 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 1rem;
    color: #333;
}

    .contact-info a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: color 0.2s;
    }

        .contact-info a:hover {
            color: #1a5d1a; /* Slightly darker green on hover */
        }


.contact-link {
    color: #333;
    text-decoration: none;
    margin: 2px 0;
    transition: color 0.2s;
}

    .contact-link:hover {
        color: #4b7f52;
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .logo-header-wrapper {
        flex-direction: column;
    }

    .logo-container,
    .contact-info-box {
        width: 100%;
    }

    .ansa-logo {
        max-height: 100px;
    }
}

/* NEW HEADER */
.new-ansa-logo-navbar {
    background-color: #708238;
    padding: 1rem 0;
}

.new-logo-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.new-logo-name-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.new-ansa-logo {
    max-height: 80px;
    width: auto;
}

.new-company-name {
    height: 100%;
    align-content: center;
}

    .new-company-name h1 {
        font-size: 2rem;
        font-weight: 600;
        margin: 0;
        color: #ffffff;
    }

    .new-company-name h5 {
        font-size: 1.25rem;
        color: white;
        letter-spacing: 0.6rem;
        margin-top: 0.1rem;
        text-align: center;
    }

.new-contact-info-box {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.new-contact-info-box a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

    .new-contact-info-box a:hover {
        color: #dbe4c2;
    }   

/* Responsive */
@media (max-width: 768px) {
    .new-logo-name-wrapper {
        flex-direction: column;
    }

    .new-company-name h1 {
        font-size: 1.4rem;
        text-align: center;
    }

    .new-company-name h5 {
        font-size: 0.5rem;
        text-align: center;
    }

    .new-contact-info-box {
        flex-direction: column;
        gap: 0.25rem;
    }
}

.outlined-text {
    font-size: 4rem;
    color: transparent;
    -webkit-text-stroke: 1px white;
    text-shadow: -2px -2px white;
    font-weight: 600;
}

/* COMPANY NAME EFFECTS */

.text-split-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.text-split {
    position: relative;
    font-size: 2em;
    color: transparent;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
}

    /* Top half */
    .text-split span:nth-child(1) {
        position: absolute;
        top: 0;
        left: 0;
        color: #000;
        transition: 0.5s;
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    }

    /* On hover, move up */
    .text-split:hover span:nth-child(1) {
        transform: translateY(-18px);
    }

    /* Bottom half */
    .text-split span:nth-child(2) {
        position: absolute;
        top: 0;
        left: 0;
        color: #000;
        transition: 0.5s;
        clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    }

    /* On hover, move down */
    .text-split:hover span:nth-child(2) {
        transform: translateY(18px);
    }

    /* Middle part (appears on hover) */
    .text-split span:nth-child(3) {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scaleY(0);
        transform-origin: center;
        width: 100%;
        color: #000;
        background: #88a763;
        font-size: 0.25em;
        font-weight: 500;
        letter-spacing: 0.7em;
        text-align: center;
        transition: 0.5s;
        padding: 0.2em 0;
    }

    /* Reveal on hover */
    .text-split:hover span:nth-child(3) {
        transform: translate(-50%, -50%) scaleY(1);
    }

/* ---------------------------------------------------------------------------------------------- FOOTER */

.ansa-footer {
    background-color: #708238; /* natural green */
    color: #ffffff;
    padding: 2rem 1rem;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
}

.footer-message {
    max-width: 600px;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: bold;
}

.footer-text {
    margin: 0;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
}

    .footer-links a {
        color: #e2f2e2;
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: #ffffff;
            text-decoration: underline;
        }


/* ----------------------------------------------------------------------------------------------- TEXT EFFECTS */

.title-split {
    margin: 0;
    padding: 0;
    transform: translate(-50%,-50%);
    font-size: 3em;
    color: transparent;
    text-transform: uppercase;
}

    .title-split span:nth-child(1) {
        position: relative;
        top: 0;
        left: 0;
        color: #000;
        transition: 0.5s;
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
        overflow: hidden;
    }

    .title-split:hover span:nth-child(1) {
        transform: translateY(-18px);
    }

    .title-split span:nth-child(2) {
        position: relative;
        top: 0;
        left: 0;
        color: #000;
        transition: 0.5s;
        clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
        overflow: hidden;
    }

    .title-split:hover span:nth-child(2) {
        transform: translateY(18px);
    }

    .title-split span:nth-child(3) {
        position: relative;
        top: 50%;
        left: 0;
        transform: translateY(-50%) scaleY(0);
        width: 91%;
        color: #000;
        background: #88a763;
        font-size: 0.25em;
        font-weight: 500;
        letter-spacing: 0.7em;
        text-align: center;
        padding-left: 20px;
        margin-left: 5px;
        transition: 0.5s;
    }

    .title-split:hover span:nth-child(3) {
        transform: translateY(-50%) scaleY(1);
    }


/* ---------------------------------------------------------------------------------------------- USER INDEX PAGE */

.user-index-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 2rem;
}


/* Section 1: Cards */
.cards-section {
    margin-bottom: 2rem;
    background-color: var(--background-color);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}


.card {
    background-color: var(--card-bg);
    border: 2px solid var(--highlight-green);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 0.5rem;
}

    .card:hover {
        background-color: var(--hover-bg);
    }

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #555;
}

.info-card {
    background-color: var(--card-bg);
    border: 2px solid var(--highlight-green);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

    .info-card:hover {
        background-color: var(--hover-bg);
    }

.info-card-title {
    font-size: 1.2rem;
}

/* Section 2: Details + Gallery */
.details-section {
    margin-bottom: 3rem;
}

/* Section Container */
.section-entry {
    display: none;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fancy header area */
.about-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #88a763;
}

.section-title {
    font-size: 2.5rem;
    color: #2d4b1c;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #88a763;
    font-weight: 500;
}

/* Image above text */
.section-about-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Centered image with hover */
.section-about-image-container {
    max-width: 300px;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .section-about-image-container:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    }

.section-about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

/* Text body */
.section-body {
    font-size: 1.1rem;
    color: #2b2b2b;
    line-height: 1.9;
    max-width: 850px;
    text-align: left;
    margin: 0 auto;
}

.section-text b {
    color: #4d6939;
}

/* Responsive design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
    }

    .section-body {
        font-size: 1rem;
    }
}



.services-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .services-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

/* Header */
.services-card-header {
    background-color: #88a763;
    color: white;
    padding: 1.5rem;
}

.services-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.services-description {
    margin: 0;
    line-height: 1.6;
}

/* Body */
.services-card-body {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0;
}

/* List side */
.services-list-container {
    flex: 1 1 320px;
    padding: 1.5rem;
}

.services-list-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2d4b1c;
    border-left: 5px solid #88a763;
    padding-left: 0.75rem;
    font-weight: 600;
}

/* List styling */
.services-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.services-list-entry {
    background: #f3f6f0;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid #88a763;
    border-radius: 8px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

    .services-list-entry:hover {
        background-color: #e6efe0;
        cursor: default;
    }

/* Image side */
.services-image-container {
    flex: 1 1 380px;
    margin: 0;
    padding: 0;
    display: flex;
}

.services-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 0 12px 0; /* round only bottom-right corner */
}

/* Responsive */
@media (max-width: 992px) {
    .services-card-body {
        flex-direction: column;
    }

    .services-image-container {
        width: 100%;
        max-height: 300px;
    }

    .services-image {
        border-radius: 0 0 12px 12px;
        max-height: 300px;
    }
}


.services-info-card {
    background-color: #88a763;
    color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .services-info-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

.services-info-title {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.services-info-description {
    font-size: 1rem;
    line-height: 1.6;
}



.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-item {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--gray);
    cursor: pointer;
    overflow: hidden;
}

    .gallery-item img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

.gallery-content {
    padding: 0.5rem 1rem 1rem;
}

.gallery-title {
    font-weight: bold;
}

.gallery-time {
    font-size: 0.85rem;
    color: #666;
}

.gallery-section-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.gallery-section-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--highlight-green);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .gallery-section-tab:hover {
        background-color: var(--highlight-green);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 10px rgba(0,0,0,0.1);
    }

    .gallery-section-tab.active {
        background-color: var(--moss-green);
        color: white;
        border-color: var(--moss-green);
        transform: none;
    }

.impression-grid {
    column-count: 3;
    column-gap: 6px;
    padding: 6px;
    background-color: var(--background-color);
}

@media (max-width: 1024px) {
    .impression-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .impression-grid {
        column-count: 1;
    }
}

.impression-entry {
    display: inline-block;
    width: 100%;
    margin-bottom: 6px;
    break-inside: avoid;
    border-radius: 6px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.impression-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

    .impression-img:hover {
        transform: scale(1.03);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }


/* Gallery Cards */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}


.gallery-entry-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

    .gallery-entry-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    }

.gallery-entry-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.gallery-entry-info {
    align-items: center;
}

.gallery-entry-title {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-entry-timestamp {
    font-size: 0.85rem;
    color: #666;
}

/* Modal */
.modal {
    display: none; /* Set to flex when triggered */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--modal-bg);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-time {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.before-after {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .before-after img {
        width: calc(50% - 0.5rem);
        border-radius: 6px;
    }

.modal-desc {
    margin-bottom: 1rem;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
}

    .modal-nav button {
        padding: 0.5rem 1rem;
        border: none;
        background-color: var(--moss-green);
        color: white;
        border-radius: 6px;
        cursor: pointer;
    }

.gallery-modal {
    display: none; /* Shown with JS */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.gallery-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* prevent scrollbars */
}


/* Close Button */
.gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Title and Time */
.gallery-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.2rem;
}

.gallery-modal-time {
    text-align: center;
    color: gray;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Description Blocks */
.gallery-modal-project-desc,
.gallery-modal-desc {
    text-align: center;
    padding: 0 1rem;
    color: #333;
}

.gallery-modal-project-desc {
    font-size: 1.05rem;
    font-weight: 500;
}

.gallery-modal-desc {
    font-size: 0.95rem;
    color: #555;
}

/* Image Containers */
.gallery-before-after-vertical,
.gallery-vertical {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    overflow: hidden;
}

.image-wrapper,
.solo-image-wrapper {
    flex-grow: 1;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}


    .image-wrapper img,
    .solo-image-wrapper img {
        max-width: 100%;
        max-height: 100%;
        height: auto;
        width: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        border-radius: 6px;
    }



    /* For solo image, make it taller */
    .solo-image-wrapper img {
        max-height: 50vh;
    }

.image-wrapper {
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
}

    .image-wrapper img {
        width: 100%;
        height: auto;
        max-height: 30vh;
        object-fit: contain; /* preserves aspect ratio */
        border-radius: 6px;
    }

/* Centered, readable label */
.image-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7); /* strong contrast */
    color: #fff;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    backdrop-filter: blur(2px); /* subtle blur behind */
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    z-index: 2;
    pointer-events: none;
}


/* Nav Buttons at Bottom */
.gallery-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.gallery-modal-nav-button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border: none;
    background-color: var(--moss-green, #708238);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .gallery-modal-nav-button:hover {
        background-color: #5a6e2e;
    }

.gallery-modal-button-disabled {
    background-color: gray;
    color: dimgray;
    cursor: not-allowed;
}

    .gallery-modal-button-disabled:hover {
        background-color: gray;
    }

.gallery-modal-close-button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
}

.image-overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* dark semi-transparent background */
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* no scrollbars */
}

.image-overlay-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* preserve aspect ratio, no cropping */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/*
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.gallery-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    min-height: 90%;
    max-height: 90%;
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
}
*/
/* ------------------------------ EXPERIMENTAL

.new-gallery-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    min-height: 70vh; 
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#galleryMulti,
#gallerySolo {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    max-height: 60vh; 
    overflow: hidden;
}

.new-image-wrapper,
.new-solo-image-wrapper {
    flex: 1;
    margin-bottom: 0;
    position: relative;
}

    .new-image-wrapper img,
    .new-solo-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

------------------------------ EX END */
/*
.gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.gallery-before-after-vertical img {
    width: 100%;
    max-height: 25vh;
    object-fit: cover;
    margin-bottom: 1rem;
}

.gallery-vertical img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
    margin-bottom: 1rem;
}

.gallery-modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-modal-time {
    color: gray;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.gallery-modal-project-desc {
    margin: 1rem 0;
    padding: 0 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.gallery-modal-desc {
    margin-top: 1rem;
    padding: 0 1rem;
    font-size: 0.95rem;
    color: #555;
    text-align: center;
}


.gallery-modal-nav {
    display: flex;
    justify-content: space-between;
    width:100%;
    margin-top: 1.5rem;
    align-self: flex-end;
    margin-top: auto;
}

.gallery-modal-nav-button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: var(--moss-green);
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.gallery-modal-button-disabled {
    background-color: gray;
    color: dimgray;
    cursor: not-allowed;
}

.image-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

    .image-wrapper img {
        width: 100%;
        max-height: 30vh;
        object-fit: cover;
        border-radius: 6px;
    }

.solo-image-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

    .solo-image-wrapper img {
        width: 100%;
        max-height: 60vh;
        object-fit: cover;
        border-radius: 6px;
    }



.image-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    font-size: 0.85rem;
    border-radius: 4px;
    pointer-events: none;
}
*/


/* Information section */

.info-section {
    padding: 2rem;
    margin-top: 3rem;
}

.info-section-title {
    text-align: center;
    margin-bottom: 2rem;
}

    .info-section-title h3 {
        font-size: 2rem;
        color: var(--moss-green);
        margin-bottom: 0.5rem;
    }

.divider-horizontal {
    width: 33%;
    height: 4px;
    background-color: var(--moss-green);
    margin: 0 auto;
    border-radius: 2px;
}

.divider-horizontal-full {
    width: 95%;
    height: 4px;
    background-color: var(--moss-green);
    margin: 1rem 0;
    border-radius: 2px;
}


/* === Info Boxes === */
.info-section-infos {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.price-info {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex: 1 1 250px;
    text-align: center;
}

    .price-info h5 {
        font-size: 1.2rem;
        color: var(--moss-green);
        margin-bottom: 0.5rem;
    }

    .price-info p {
        font-size: 1rem;
        color: var(--text-color);
    }

/* === News Section === */
.info-section-news {
    margin-top: 2rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-entry {
    min-height: 150px;
    display: flex;
    background-color: white;
    border-radius: 12px;
    border: 2px solid var(--highlight-green);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-direction: row;
    align-items: stretch;
}

.news-image {
    width: 100%;
    min-height: 50px;
    background-color: var(--highlight-green); /* fallback if no image */
}

    .news-image img {
        width: 100%;
        max-width: 200px;
        height: 100%;
        object-fit: contain;
    }

.news-preview {
    min-width: 75%;
    flex: 1;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.news-header {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.news-header-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--moss-green);
    align-self: center;
}

.news-timestamp-badge {
    background-color: var(--moss-green);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    display: inline-block;
    margin-top: 0.3rem;
    align-self: flex-end;
}

.news-divider-horizontal {
    height: 2px;
    background-color: var(--moss-green);
    margin: 0.5rem 0;
    border-radius: 1px;
}

.news-body p {
    font-size: 0.95rem;
    color: var(--text-color);
}

.new-news-button {
    background-color: var(--highlight-green);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 1rem;
}

    .new-news-button {
        background-color: var(--moss-green);
    }

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .info-section-infos {
        flex-direction: column;
        align-items: center;
    }

    .news-entry {
        flex-direction: column;
    }

    .news-image img {
        width: 100%;
        height: 180px;
    }
}


/* Section 3: Contact Form */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

    .contact-form h2 {
        margin-bottom: 1rem;
    }

.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.4rem;
        font-weight: bold;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.6rem;
        border: 1px solid var(--gray);
        border-radius: 6px;
        font-size: 1rem;
    }

.checkbox-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

    .checkbox-group label {
        font-weight: normal;
    }

.submit-button {
    background-color: var(--highlight-green);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
}

    .submit-button:hover {
        background-color: var(--moss-green);
    }



.user-comments-section {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f8f1e4;
    border-top: 4px solid #88a763;
    border-bottom: 4px solid #88a763;
}

    .user-comments-section .h2 {
        margin-bottom: 4px;
        font-weight: bold;
        text-align: center;
    }

.user-comments {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

    

.user-comment-list {
    flex: 1 1 50%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-comment {
    background-color: white;
    border-left: 6px solid #88a763;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.user-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}



.user-comment-timestamp {
    font-size: 0.85rem;
    color: #777;
}

.user-comment-body p {
    margin: 0;
    color: #444;
    line-height: 1.4;
}

.user-comment-form {
    flex: 1 1 40%;
    max-width: 500px;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.comment-form-title {
    margin-bottom: 1rem;
    text-align: center;
    color: #88a763;
}

.form-group {
    margin-bottom: 1.25rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #444;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.7rem;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 1rem;
        background-color: #fafafa;
        transition: border 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: #88a763;
            outline: none;
            background-color: #fff;
        }

.submit-comment-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #88a763;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .submit-comment-button:hover {
        background-color: #769953;
    }

/* Responsive tweaks */
@media (max-width: 768px) {
    .user-comments {
        flex-direction: column;
        align-items: center;
    }

    .user-comment {
        min-width: 90%;
    }

    .user-comment-list,
    .user-comment-form {
        max-width: 100%;
        min-width: 90%;
    }

    .user-comment-header {
        flex-direction: column;
    }
}


.news-button-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 1rem;
}

/* ----------------------------------------------------------------------------------- ADMIN SIDEBAR */
.admin-wrapper {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
    background-color: var(--background-color);
    padding: 1rem;
}

.admin-sidebar {
    background-color: var(--moss-green);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 300px;
    color: white;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--gray);
    border-bottom: 2px solid var(--gray);
    padding-bottom: 0.5rem;
}

.sidebar-buttons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-element {
    border-radius: 0.5rem;
    transition: background 0.3s, transform 0.2s;
}

.sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: black;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background 0.3s, color 0.3s;
    background-color: var(--background-color);
}

    .sidebar-link:hover,
    .sidebar-element:hover .sidebar-link {
        background-color: var(--gray);
        transform: translateX(4px);
    }

    /* Optional: active class for highlighting current page */
    .sidebar-link.active {
        background-color: var(--gray);
        font-weight: bold;
    }

/* Responsive tweak */
@media (max-width: 768px) {
    .admin-sidebar {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }
}

/* --------------------------------------------------------------------------------- ADMIN EDIT NEWS */

.edit-news-list {
    display: flex;
    flex-direction: column;
}


.edit-news-entry {
    display: flex;
    border: 2px solid var(--highlight-green);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #ffffff;
    height: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* === Image section === */
.edit-news-image {
    width: 25%;
    background-color: var(--moss-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .edit-news-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 6px;
    }

/* === Preview section === */
.edit-news-preview {
    width: 55%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.edit-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-news-header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: black;
    margin: 0;
}

.edit-news-timestamp-badge {
    background-color: var(--moss-green);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
}

.edit-news-divider-horizontal {
    height: 2px;
    background-color: var(--moss-green);
    margin: 0.5rem 0;
    border-radius: 1px;
}

.edit-news-body p {
    font-size: 0.95rem;
    color: #444;
    margin: 0;
}

/* === Buttons section === */
.edit-news-buttons {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem;
    gap: 0.5rem;
}

.edit-news-btn,
.delete-news-btn {
    padding: 0.5rem 1rem;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.edit-news-btn {
    background-color: var(--moss-green);
    color: white;
}

    .edit-news-btn:hover {
        background-color: var(--highlight-green);
    }

.delete-news-btn {
    background-color: crimson;
    color: #222;
}

    .delete-news-btn:hover {
        background-color: red;
    }

/* === Responsive (optional) === */
@media (max-width: 768px) {
    .edit-news-entry {
        flex-direction: column;
    }

    .edit-news-image,
    .edit-news-preview,
    .edit-news-buttons {
        width: 100%;
    }

    .edit-news-buttons {
        flex-direction: row;
    }

    .edit-news-btn,
    .delete-news-btn {
        width: auto;
        flex: 1;
    }
}


/* ------------------------------------------------------------------------------- ADMIN REVIEW COMMENTS */
.admin-comments-section {
    padding: 2rem;
    background-color: #f8f1e4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

    .admin-comments-section h2 {
        margin-bottom: 1.5rem;
        font-size: 1.75rem;
        color: #333;
        border-bottom: 2px solid #88a763;
        display: inline-block;
        padding-bottom: 0.25rem;
    }

.admin-comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-comment {
    background-color: #ffffff;
    border-left: 6px solid #88a763;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

    .admin-comment:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

.admin-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

    .admin-comment-header h4 {
        font-size: 1.2rem;
        color: #444;
        margin: 0;
    }

.admin-comment-timestamp {
    font-size: 0.9rem;
    color: #777;
}

.admin-comment-body p {
    margin: 0 0 1rem 0;
    color: #555;
    line-height: 1.5;
}

.admin-comment-buttons {
    display: flex;
    gap: 0.75rem;
}

.admin-comment-btn {
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accept-btn {
    background-color: #88a763;
    color: white;
}

    .accept-btn:hover {
        background-color: #769953;
    }

.reject-btn {
    background-color: #e74c3c;
    color: white;
}

    .reject-btn:hover {
        background-color: #c0392b;
    }

/* Optional: Responsive adjustments */
@media (max-width: 768px) {
    .admin-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .admin-comment-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-comment-btn {
        width: 100%;
    }
}


/* --------------------------------------------------------------------------- CREATE GALLERY POST */

.admin-post-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

    .admin-post-container h1 {
        margin-bottom: 1rem;
        color: #4d4d4d;
    }

label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.green-btn {
    background-color: #708238;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    margin-top: 1rem;
    cursor: pointer;
}

.red-btn {
    background-color: #cc4b4b;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

    .green-btn:hover,
    .red-btn:hover {
        opacity: 0.9;
    }

.submit-post-btn {
    margin-top: 2rem;
    width: 100%;
    font-size: 1.1rem;
}

.image-set-list {
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

.image-set-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
}

.preview-images {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

    .preview-images img {
        width: 45%;
        height: auto;
        border-radius: 6px;
        object-fit: cover;
    }

.delete-btn {
    background-color: #b23c3c;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
}

    .delete-btn:hover {
        background-color: #992a2a;
    }

.submit-post-btn {
    background-color: #556b2f; /* mossy green */
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1.5rem;
}

    .submit-post-btn:hover {
        background-color: #6e8b3d;
        transform: translateY(-2px);
    }


/* ------------------------------------------------------------------------------------------------------ BACK BTN */
.btn-back {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    background-color: var(--moss-green);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .btn-back:hover {
        background-color: var(--highlight-green);
        transform: translateY(-1px);
    }

/* ------------------------------------------------------------------------------------------------------ EDIT GALLERY */

.gallery-impression-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.impression-preview {
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 200px;
}

    .impression-preview img {
        object-fit: contain;
        height: 100%;
    }

.edit-gallery-container {
    max-width: 1200px;
    margin: 0;
    padding: 1rem;
    font-family: 'Segoe UI', sans-serif;
}

    .edit-gallery-container h1 {
        text-align: center;
        font-size: 2rem;
        color: #556b2f;
        margin-bottom: 2rem;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}


@media (max-width: 399px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.gallery-post-card {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
}

    .gallery-post-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }

    .gallery-post-card h3 {
        color: #334422;
        margin-bottom: 1rem;
        font-size: 1.25rem;
        text-align: center;
        border-bottom: 2px solid #cfd2c1;
        padding-bottom: 0.5rem;
    }

.image-preview {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    border-radius: 8px;
    background-color: #f8f8f6;
}

    .image-preview img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #ccc;
        transition: transform 0.2s ease;
    }

        .image-preview img:hover {
            transform: scale(1.05);
        }

.post-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.edit-btn,
.delete-post-btn {
    flex: 1;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.edit-btn {
    background-color: #6e8b3d;
    color: white;
}

    .edit-btn:hover {
        background-color: #5e7c35;
        transform: translateY(-2px);
    }

.delete-post-btn {
    background-color: #b23c3c;
    color: white;
}

    .delete-post-btn:hover {
        background-color: #992a2a;
        transform: translateY(-2px);
    }

.impression-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ---------------------------------------------------------------------------------- ADMIN MESSAGES */
.messages-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    font-family: 'Segoe UI', sans-serif;
}

    .messages-container h1 {
        text-align: center;
        color: #556b2f;
        margin-bottom: 1.5rem;
    }

.toggle-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.filter-btn {
    background-color: #e0e0d8;
    border: none;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.2s ease;
}

    .filter-btn.active {
        background-color: #6e8b3d;
        color: white;
        font-weight: bold;
    }

    .filter-btn:hover {
        background-color: #cdd1c5;
    }

.message-list {
    list-style: none;
    padding: 0;
}

.message-item {
    background-color: #f7f7f5;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

    .message-item:hover {
        background-color: #eef0ea;
        transform: translateY(-2px);
    }

.message-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.message-name {
    font-weight: bold;
}

.message-title {
    font-size: 1.1rem;
    color: #334422;
}

/* ----------------------------------------------------------------------- MESSAGE DETAILS */


.message-detail-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f5f5f1;
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(85, 107, 47, 0.1);
    font-family: 'Segoe UI', sans-serif;
}

    .message-detail-container h1 {
        color: #556b2f;
        text-align: center;
        margin-bottom: 2rem;
    }

.message-info div {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.message-info a {
    color: #334422;
    text-decoration: underline;
}

.message-body {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #ffffff;
    border-left: 5px solid #6e8b3d;
    border-radius: 6px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

    .message-body h3 {
        margin-bottom: 0.5rem;
        color: #334422;
    }

    .message-body p {
        font-size: 1rem;
        line-height: 1.5;
        color: #444;
    }

.contact-preference {
    margin-top: 1.5rem;
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    color: #444;
}

    .contact-preference label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }


.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-answered {
    background-color: #88a05b;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .btn-answered:hover {
        background-color: #758a4d;
    }

.btn-answered-disabled {
    background-color: #c8c8c8;
    color: #666;
    cursor: not-allowed;
}

.mark-complete-btn {
    background-color: #6e8b3d;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .mark-complete-btn:hover {
        background-color: #5c7432;
    }

.timestamps {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #444;
}

.note-section {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
}

    .note-section h2 {
        font-size: 1.5rem;
        color: #556b2f;
        margin-bottom: 1rem;
    }

.note-textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #aaa;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    background-color: #f9f9f6;
    resize: vertical;
}

.note-submit-btn {
    background-color: #6e8b3d;
    color: white;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .note-submit-btn:hover {
        background-color: #5c7432;
    }

.note-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.note-entry {
    background-color: #f0f0eb;
    border-left: 5px solid #88a05b;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.note-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.note-content {
    font-size: 1rem;
    color: #333;
}

/* ----------------------------------------------------------------------------------- ADMIN STATS PAGE */

.stats-page-container {
    padding: 2rem;
    font-family: sans-serif;
    max-width: 900px;
    margin: auto;
}

.total-hits-box {
    background: #88a763;
    color: white;
    text-align: center;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

.total-hits-count {
    font-size: 3rem;
    font-weight: bold;
    margin-top: 1rem;
}

.section-stats-title, .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.services-list-ranked {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.ranked-service {
    display: flex;
    flex-direction: column;
}

.bar-container {
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.bar {
    background: #88a763;
    height: 100%;
    transition: width 0.3s ease;
}

.service-label {
    margin-top: 0.5rem;
    font-weight: 500;
}

.section-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-around;
}

.section-card {
    background: #e0f2e0;
    padding: 1rem;
    border-radius: 1rem;
    width: 180px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-circle {
    width: 80px;
    height: 80px;
    background-color: #88a763;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: auto;
    font-weight: bold;
}

/* ----------------------------------------------------------------------------- LEGAL */

/* Container */
.legal-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: #f8f1e4;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

/* Main header */
.legal-header h2 {
    font-size: 2.5rem;
    color: #2d4b1c;
    border-bottom: 3px solid #88a763;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* Section styling */
.legal-section {
    margin-bottom: 3rem;
}

/* Section headers */
.legal-section-header h3 {
    font-size: 1.75rem;
    color: #4d6939;
    margin-bottom: 1rem;
    display: inline-block;
    border-bottom: 2px solid #88a763;
    padding-bottom: 0.3rem;
}

/* Section content layout: stacked and centered */
.legal-section-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Address and company sections centered */
.legal-adress,
.legal-company,
.legal-provider {
    text-align: center;
    font-size: 1.05rem;
    color: #333;
}

    .legal-adress p,
    .legal-company p,
    .legal-provider p {
        margin: 0.4rem 0;
    }

/* TOS nested sections */
.legal-tos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.legal-tos-section {
    max-width: 600px;
}

    .legal-tos-section h4 {
        font-size: 1.3rem;
        color: #2d4b1c;
        margin-bottom: 0.3rem;
    }

    .legal-tos-section p {
        font-size: 1rem;
        line-height: 1.6;
        color: #444;
    }

/* Provider title */
.legal-provider h5 {
    font-size: 1.2rem;
    color: #4d6939;
    margin-bottom: 0.5rem;
}

/* Link styling */
.legal-link {
    color: #2d4b1c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .legal-link:hover {
        color: #88a763;
        text-decoration: underline;
    }

/* Responsive */
@media (max-width: 768px) {
    .legal-header h2 {
        font-size: 2rem;
    }

    .legal-section-header h3 {
        font-size: 1.5rem;
    }

    .legal-tos-section {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* -------------------------------------------------------------------------------------- PRIVACY */

.privacy-content  {
    align-content: center;
    text-align: center;
}

.privacy-sub-header h5 {
    font-size: 1.25rem;
    color: #4d6939;
    margin-bottom: 1rem;
    display: inline-block;
    border-bottom: 2px solid #88a763;
    padding-bottom: 0.3rem;
}

/* ---------------------------------------------------------------------------------------- ADMIN FILES */


.file-admin-page {
    padding: 2rem;
    background-color: var(--background-color);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-color);
    min-height: 80vh;
}

.file-admin-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.file-search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
}

.file-filter-dropdown {
    padding: 0.6rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
}

/* File List and Entry */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-entry {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 1rem;
    border: 1px solid var(--moss-green);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: background-color 0.2s ease;
}

    .file-entry:hover {
        background-color: var(--hover-bg);
    }

.file-download-btn {
    background-color: var(--highlight-green);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 1rem;
    flex-shrink: 0;
}

.file-meta {
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
    min-width: 150px;
}

.file-name {
    font-weight: 600;
}

.file-date {
    font-size: 0.85rem;
    color: #666;
}

.file-divider {
    width: 1px;
    height: 2.5rem;
    background-color: var(--gray);
    margin: 0 1rem;
}

.file-size {
    min-width: 100px;
    font-size: 0.95rem;
}

.file-description {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-color);
}

.file-delete-btn {
    background-color: var(--logout-red);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

    .file-delete-btn:hover {
        background-color: #a93c3c;
    }

.file-upload-open-btn {
    background-color: var(--highlight-green);
    width: 100%;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

/* Modal Overlay */
.file-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}


/* Modal Content */
.file-upload-modal-content {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.file-upload-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* Modal Body Split */
.file-upload-body {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

/* Left Section */
.file-upload-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-input-group {
    display: flex;
    gap: 0.5rem;
}

.file-upload-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--gray);
    border-radius: 6px;
    font-size: 1rem;
}

.file-upload-btn {
    background-color: var(--highlight-green);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.file-progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background-color: var(--gray);
    border-radius: 5px;
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--moss-green);
    transition: width 0.3s ease;
}

.file-complete {
    background-color: var(--highlight-green);
}

.file-description-input {
    width: 100%;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--gray);
    resize: vertical;
    min-height: 60px;
}

.file-category-dropdown {
    padding: 0.5rem;
    border: 1px solid var(--gray);
    border-radius: 6px;
    background-color: white;
    font-size: 1rem;
}

.file-add-btn {
    background-color: var(--moss-green);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

/* Right Section */
.file-upload-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.file-upload-list {
    flex: 1;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-file-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 6px;
}

.upload-file-name {
    font-weight: 500;
    color: var(--text-color);
}

.upload-file-delete-btn {
    background-color: var(--logout-red);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

    .upload-file-delete-btn:hover {
        background-color: #a93c3c;
    }

.file-submit-all-btn {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background-color: var(--highlight-green);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
