/* Projects Page Specific Styles */
/* Uses hhbg3 (top) and hhbg4 (bottom) with standard down-scroll parallax */

/* ===== PARALLAX SECTIONS ===== */
#parallax-projects-1 {
    background-image: url('../Images/Hhbg3.jpg');
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#parallax-projects-2 {
    background-image: url('../Images/Hhbg4.jpg');
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* ===== CTA BUTTON ===== */
.cta-button {
    display: inline-block;
    background-color: #FFFFFF;
    color: #142238;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid #FFFFFF;
}

.cta-button:hover {
    background-color: transparent;
    color: #FFFFFF;
}

/* ===== ACTIVE NAV LINK ===== */
.nav-link.active {
    color: #142238;
    font-weight: 700;
}

/* ===== DUAL IMAGE LAYOUT ===== */
.dual-image-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 95%;
    margin: 0 auto;
}

.dual-image-wrapper .carousel-image-wrapper {
    width: 48%;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .dual-image-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dual-image-wrapper .carousel-image-wrapper {
        width: 90%;
    }
}

/* ===== FULL-WIDTH CARDS ===== */
#doobyCard,
#ecoplugCard,
.logo-divider {
    width: 100%;
}

.logo-divider {
    display: block;
    order: 999;
}

/* ===== PROJECT CARD FONT SIZES ===== */
/* Apply consistent font sizing across all project cards */
#doobyCard > h2,
#ecoplugCard > h2,
.book-foreword > h2 {
    font-size: 1.2em;
}

#doobyCard h2,
#doobyCard > h2 {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

#doobyCard > p,
#ecoplugCard > p,
.book-foreword > p {
    font-size: 0.88rem;
}

/* ===== CAROUSEL IMAGE SPACING ===== */
#doobyCard .carousel-image-wrapper,
#ecoplugCard .carousel-image-wrapper {
    margin-top: 1.5rem;
}

/* ===== BOOK FOREWORD SECTION ===== */
.book-foreword {
    margin-top: 2rem;
}

.book-cover-image {
    width: 60%;
    max-width: 400px;
    margin: 0 auto 2rem;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.foreword-text {
    color: #C0C6CD;
    line-height: 1.8;
    font-size: 1rem;
    margin-top: 1.5rem;
}

@media screen and (max-width: 768px) {
    .book-cover-image {
        width: 80%;
    }
}
