/*
 * Journal Page Styles - Fixed Version
 * Theme: Stellar Lights
 */

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: -70px;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.hero-content h1 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 20px;
    max-width: 1364px;
    margin-top: -155px;
}

.hero-content p {
    font-family: 'Titillium Web', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    max-width: 1088px;
    margin: 0 auto 30px;
    text-align: center;
    letter-spacing: 2.5px;
}

/* Photo Credit Container */
.photo-credit-container {
    position: absolute;
    bottom: 50px;
    width: 100%;
    left: 0;
}

.photo-credit {
    position: relative;
    font-family: 'Titillium Web', sans-serif;
    font-size: 20px;
    color: white;
    opacity: 0.8;
    font-style: italic;
    text-align: right;
    margin-bottom: 15px;
    padding-right: 80px;
}

.photo-credit-line {
    width: 100%;
    height: 1px;
    background-color: #707070;
    opacity: 0.4;
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 2rem 0;
    color: white;
    position: relative;
}

.blog-post {
    width: 100%;
    margin-bottom: 2rem;
    /* Adjusted for tighter spacing */
    position: relative;
    height: auto;
    min-height: 413px;
    /* Ensure space for absolute-positioned content */
}

.blog-post:last-child {
    margin-bottom: 0;
}

.blog-post a {
    color: white;
    text-decoration: none;
}

.blog-item {
    position: relative;
    width: 100%;
    /* Changed to 100% for full-width responsiveness */
    height: 100%;
}

.blog-item img {
    position: absolute;
    top: 0;
    left: 140px;
    width: 674px;
    height: 413px;
    background: transparent;
    opacity: 1;
}

.blog-content {
    position: absolute;
    top: 0;
    left: 864px;
    width: 916px;
    height: auto;
    min-height: 238px;
}

.blog-content h3 {
    font-family: 'Titillium Web', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 35px;
    line-height: 38px;
    letter-spacing: 3.5px;
    color: #FFFFFF;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.16);
    opacity: 1;
    margin-bottom: 1rem;
}

.blog-content p {
    font-family: 'Titillium Web', sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 22px;
    line-height: 27px;
    letter-spacing: 2.2px;
    color: #FFFFFF;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.16);
    opacity: 1;
}

/* Call to Action Section */
.cta-section {
    padding: 2rem 0;
    padding-bottom: 2rem;
    text-align: center;
}

.cta-content {
    max-width: 60rem;
    margin: 0 auto 2rem;
}

.cta-content h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    padding: 0 20px;
}

.enquire-button,
.cta-content .enquire-button {
    font-family: 'Titillium Web', sans-serif;
    font-size: 20px;
    color: white;
    background: transparent;
    border: 2px solid white;
    font-weight: bold;
    padding: 10px 27px;
    border-radius: 20px;
    letter-spacing: 2px;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
    margin: 10px 0;
    text-decoration: none;
}

.enquire-button:hover,
.cta-content .enquire-button:hover {
    background: white;
    color: black;
    border: 2px solid white;
}

/* Journal Detail Page Styles */
.journal-detail-section {
    /* padding: 0rem 0; */
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    position: relative;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 2rem;
}

.journal-content {
    /* Removed box styling - no background, border, or backdrop-filter */
    padding: 0;
}

.journal-title {
    font-family: 'Titillium Web', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.16);
    letter-spacing: 3.5px;
}

.journal-text {
    margin-bottom: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.journal-text p {
    font-family: 'Titillium Web', sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 22px;
    line-height: 27px;
    letter-spacing: 2.2px;
    color: #FFFFFF;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.16);
    margin-bottom: 1.5rem;
    text-align: center;
}

.journal-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
    /* Make images use full width of screen with 140px gaps on sides */
    max-width: calc(100vw - 280px);
    width: calc(100vw - 280px);
    margin-left: calc(-50vw + 50% + 140px);
    padding: 0;
}

.journal-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journal-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.journal-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.next-journal-navigation {
    text-align: center;
    margin-top: 1rem;
    padding-top: 2rem;
    /* Removed border-top line */
}

.next-journal-link {
    /* Removed button styling - just text with underline */
    text-decoration: underline;
    color: #ffffff;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.next-journal-link:hover {
    color: #cccccc;
}

.next-journal-link em {
    font-style: italic;
    font-weight: 500;
    font-size: 26px;
}

/* Responsive Design for Journal Detail */
@media (max-width: 768px) {
    .journal-detail-section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .journal-content {
        padding: 0;
    }

    .journal-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .journal-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 2rem 0;
        /* Center the images on mobile */
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        padding: 0 1rem;
        justify-content: center;
    }

    .journal-image img {
        height: 200px;
    }

    .journal-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .journal-text p {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (max-width: 480px) {
    .journal-content {
        padding: 0;
    }

    .journal-title {
        font-size: 1.8rem;
    }

    .journal-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0 0.5rem;
        /* Ensure images stay in a row and are centered */
        display: grid;
        justify-items: center;
    }

    .journal-image {
        width: 100%;
        max-width: 120px;
    }

    .journal-image img {
        height: 120px;
        width: 100%;
        object-fit: cover;
    }

    .next-journal-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Responsive Design */

@media (max-width: 1920px) {
    .blog-item img {
        left: 5vw;
        width: 35vw;
        height: auto;
        max-height: 360px;
        top: 0;
    }

    .blog-content {
        left: 45vw;
        width: 50%;
        top: -31px;
        height: auto;
        min-height: unset;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 5vw;
    }

    .hero-content p {
        font-size: 20px;
    }

    .photo-credit {
        padding-right: 50px;
    }

    .blog-post {
        min-height: auto;
        /* Remove min-height for smaller screens */
        margin-bottom: 1.5rem;
        /* Tighter spacing for tablets */
    }

    .blog-item {
        width: 95%;
        padding: 0 1rem;
        /* Add padding for better mobile spacing */
    }

    .blog-item img {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .blog-content {
        position: relative;
        left: 0;
        width: 100%;
        top: 0;
        height: auto;
        min-height: unset;
    }

    .blog-content h3 {
        font-size: 28px;
        line-height: 32px;
    }

    .blog-content p {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 6vw;
    }

    .hero-content p {
        font-size: 18px;
    }

    .blog-post {
        margin-bottom: 1rem;
    }

    .blog-item img {
        max-height: 250px;
    }

    .blog-content h3 {
        font-size: 24px;
        line-height: 28px;
    }

    .blog-content p {
        font-size: 16px;
        line-height: 22px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 80vh;
        margin-top: -50px;
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 8vw;
        margin-top: -100px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .photo-credit-container {
        bottom: 30px;
    }

    .photo-credit {
        padding-right: 30px;
        font-size: 16px;
    }

    .blog-posts-section {
        padding: 1rem 0;
    }

    .blog-post {
        margin-bottom: 0.5rem;
    }

    .blog-item {
        width: 100%;
        padding: 0 0.5rem;
    }

    .blog-item img {
        max-height: 200px;
        margin-bottom: 0.5rem;
    }

    .blog-content {
        padding: 0;
    }

    .blog-content h3 {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 0.5rem;
    }

    .blog-content p {
        font-size: 14px;
        line-height: 18px;
    }

    .cta-section {
        padding: 2rem 0;
    }

    .cta-content h2 {
        font-size: 24px;
    }
}