.content-frame {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.publications-hero {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--secondary-colour);
    margin-bottom: 3rem;
}

.publications-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: #7f7f7f;
    margin-bottom: 1.5rem;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.publications-section h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-colour);
}

.book-card {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--secondary-colour);
}

.book-card:last-child {
    border-bottom: none;
}

.book-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.book-content.reverse {
    direction: rtl;
}

.book-content.reverse > * {
    direction: ltr;
}

.book-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.book-text h3 .years {
    font-size: 1rem;
    font-weight: normal;
    font-style: normal;
    color: #7f7f7f;
}

.book-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.book-cover {
    text-align: center;
}

.book-cover img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.amazon-link {
    margin-top: 1.5rem;
}

.btn,.btn:visited {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-colour);
    color: var(--theme-light);
    box-shadow: -0.25rem -0.25rem 0.5rem inset var(--primary-dark);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn:hover {
    box-shadow: -0.5rem -0.5rem 0.75rem inset var(--theme-darker);
    color: var(--theme-light);
    text-decoration: none;
}

.upcoming-section {
    padding-top: 3rem;
    border-top: 1px solid var(--primary-colour);
    margin-bottom: 2rem;
}

.upcoming-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-colour);
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    padding: 1.5rem;
    background: var(--primary-colour);
    border-radius: 8px;
    box-shadow: -0.25rem -0.25rem 0.5rem inset var(--primary-dark);
}

.project-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--theme-lighter);
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--theme-light);
}

.serial-banner{
    display: flex;
    flex-direction: row;
    align-items: center;
    & .serial-image{
        flex: 1 1 30%;
        background-color: #7f7f7f;
        height: fit-content;
        padding: 1rem;
        border-radius: 0 1rem 0 1rem;
        box-shadow: inset -0.25rem -0.25rem 0.5rem;
        & img {
            width:100%;
        }
    }
    & .serial-text{
        flex: 1 1 60%;
        padding: 0 1rem;
        text-align: center;
        & h2 {
            margin-top: 0;
        }
        & .btn {
            background-color: #b40064;
            color: var(--theme-lighter);
            box-shadow: -0.25rem -0.25rem 0.5rem inset #5a0032;
            border-radius: 0 1rem 0 1rem;
        }
    }
}

/* Mobile */
@media (max-width: 768px) {
    .book-content,
    .book-content.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .book-content.reverse {
        direction: ltr;
    }
    
    .book-cover {
        order: -1;
    }
    
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
    .serial-banner{
        flex-direction: column;
    }
}