/* ============================================
   WETLANDS PROJECT PAGE STYLES
   Academic case study layout
   Works on top of style.css for base styles
   Same structure as Can Pikas page
============================================ */


/* ============================================
   PROJECT HERO
   Text on left, circular image on right
   Same layout as about page
============================================ */
.project-hero {
    width: min(75em, 100%);
    margin: 3em auto;
    padding: min(3em, 8%);
    background-color: transparent;
    border: none;
}

.project-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2em;
    align-items: start;
}

/* LEFT: Text content */
.project-hero-text {
    display: flex;
    flex-direction: column;
    gap: 1em;
    text-align: left;
}

.project-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.3em;
}

.project-subtitle {
    font-size: clamp(1.1em, 2.5vw, 1.4em);
    color: var(--text-color);
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 0.5em;
}

.project-intro {
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 1em;
}

.project-intro a {
    color: inherit;          /* matches surrounding text */
    text-decoration: none;   /* remove default underline */
}

.project-intro a:hover {
    text-decoration: underline;  /* underline on hover */
} 
/* Metadata styling */
.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    margin-top: 1em;
    border: none;
    padding: 0;
}

.meta-item {
    display: flex;
}

.meta-value {
    font-size: 0.95em;
    color: var(--text-color);
    line-height: 1.6;
}

.meta-value strong {
    color: var(--color-3);
    font-weight: 600;
}

/* Link styling with underline animation */
.currently-link {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.currently-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.currently-link:hover {
    color: var(--primary-color);
}

.currently-link:hover::after {
    width: 100%;
}

/* RIGHT: Circular image */
.project-hero-image {
    padding-left: 4em;
}

.project-hero-image img {
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-left: auto;
}


/* ============================================
   PROJECT DIVIDER
   Thin line between sections
============================================ */
.project-divider {
    width: min(40em, 60%);
    margin: 3em auto;
    border: none;
    border-top: 1px solid rgba(5, 76, 47, 0.15);
}


/* ============================================
   OVERVIEW SECTION
   Text on left, image on right
   Same split layout as hero
============================================ */
.overview-section {
    background-color: transparent;
    border: none;
    padding: 0;
}

.overview-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    align-items: start;
    margin-top: 2em;
}

.overview-subsection {
    font-size: 1.2em;
    color: var(--color-3);
    font-weight: 600;
    margin-bottom: 0.8em;
    text-align: left;
}

.overview-text {
    text-align: left;
}

.overview-text p {
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1em;
}

.italic-text {
    font-style: italic;
    font-weight: 400;
    opacity: 0.95;
}


.overview-animation img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.image-with-source {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    margin: 1em 0;
}

.source-text {
    font-size: 0.7em;
    color: #888;
    text-align: center;
    font-style: italic;
    margin: 0;
}

.source-text a {
    color: inherit;
    text-decoration: none;
}

.source-text a:hover {
    text-decoration: underline;
}
/* ============================================
   CONTENT SECTIONS
   All sections have no background or border
============================================ */
.project-section {
    width: min(75em, 100%);
    margin: 4em auto;
    padding: 0 min(3em, 8%);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    background-color: transparent;
    border: none;
}

.project-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    font-size: 2.5em;
    color: var(--color-3);
    font-weight: 700;
    margin-bottom: 1em;
}

.section-content {
    color: var(--text-color);
}

.section-intro {
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    font-weight: 500;
}

.section-content p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 1.2em;
    opacity: 0.9;
    text-align: left;
}

.subsection-title {
    font-size: 1.2em;
    color: var(--color-3);
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.subsection-title:first-child {
    margin-top: 0;
}


/* ============================================
   CONTENT LISTS
   Bullet point lists within sections
============================================ */
.content-list {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.content-list li {
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 0.8em;
    text-align: left;
}

.content-list li strong {
    color: var(--color-3);
    font-weight: 600;
}


/* ============================================
   METHODS IMAGE
   Single centered image showing workflow
============================================ */
.methods-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
    margin-bottom: 2em;
}

.methods-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 0.5em;
    display: block;
}



/* ============================================
   KEY FINDINGS SECTION
   Image on left, text on right
   Same split layout as overview
============================================ */
.findings-section {
    background-color: transparent;
    border: none;
    padding: 0 min(3em, 8%);
}

.findings-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    align-items: start;
    margin-top: 2em;
}

.findings-image {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.findings-image img {
    width: 80%;
    max-width: 100%;
    height: auto;
    border-radius: 0.5em;
    object-fit: contain;
}

.findings-text {
    text-align: left;
}

.findings-text .content-list {
    margin: 0;
    padding-left: 1.5em;
}



/* ============================================
   FOOTER DRAWING SECTION
   Same as other pages
============================================ */
.drawing-section {
    background-color: transparent;
    text-align: center;
    padding: 0;
    margin: 1em auto 0 auto;
    width: min(75em, 100%);
    border-radius: 0;
}

.drawing-image {
    max-width: 30%;
    height: auto;
    border-radius: 1em;
    display: block;
    margin: 0 auto;
}


/* ============================================
   FOOTER NAVIGATION
   Back to work link
============================================ */
.project-footer {
    width: 100%;
    margin: 0 auto 3em auto;
    text-align: center;
    padding: 0;
    border: none;
    background-color: transparent;
}

.back-link {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.05em;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-3);
}


/* ============================================
   MOBILE RESPONSIVE
============================================ */
@media (max-width: 768px) {

    .project-hero-inner,
    .overview-split {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .project-hero-image {
        padding-left: 0;
    }

    .project-hero-image img {
        margin: 0 auto;
    }

    .project-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }
}