/* project-detail-discover.css */
.discover-section {
    /* Use global variables for background and text color */
    background-color: var(--current-bg);
    color: var(--current-text);
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease; /* Ensure smooth transition */
}

.discover-section .pin-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding-bottom: 5vh;
}

.discover-header {
    font-family: domaine;
    text-transform: uppercase;
    font-size: 3em;
    /* Use a tertiary color for the header for a muted effect */
    color: var(--text-tertiary-color);
    width: 100%;
    text-align: left;
    padding: 0 5vw;
    position: absolute;
    top: 10%;
    left: 5%;
    z-index: 10;
    opacity: 0;
    transform: translateY(80px);
    will-change: opacity, transform;
    transition: color 0.3s ease; /* Ensure color transition */
}

.discover-section .discover-content-left {
    font-size: 1.2em;
    text-transform: uppercase;
    text-align: center;
    align-content: center;
    z-index: 10;
    padding: 200px 40px 0 40px;
    width: 80%;
    min-height: 60vh;
    overflow-y: auto;
    /* Use current text color for content */
    color: var(--current-text);
    transition: color 0.3s ease; /* Ensure color transition */
}

.discover-section .discover-small-text {
    font-size: 0.6em;
    display: block;
    margin-top: 10px;
    color: var(--current-text-secondary); /* Use secondary text color for small text */
    transition: color 0.3s ease; /* Ensure color transition */
}

@media (max-width: 768px) {
    .discover-section .discover-content-left.section-main-content { margin-top: 5vh; }

    .discover-header {
        font-size: 3em;
        left: 4vw;
        text-align: left;
        position: relative;
        top: auto;
        transform: none !important;
        opacity: 1 !important;
        margin-top: 20px;
        padding: 0;
    }

    .discover-section .discover-content-left {
        font-size: 1.2em;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .discover-header { font-size: 2.5em; }
}