/* Typography */
:root {
    --font-serif: "Perpetua", serif;
    --font-sans: "Gill Sans", sans-serif;
}

/* Post Template Styles */
.post-template .gh-main {
    padding: 0 var(--gap);
    margin: 0 auto;
    margin-top: 1rem;
    max-width: var(--container-width);
    max-height: max-content;
    width: 100%;
}

.post-template .gh-article {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.post-template .gh-article-header {
    margin-top: 2rem;
    margin-bottom: 4rem;
    text-align: center;
    width: 100%;
}

.post-template .gh-article-image-wrapper {
    width: 90%;
    margin: 0;
    transition: transform 0.3s ease;
    max-width: var(--container-width);
}

.post-template .gh-article-image {
    max-width: var(--container-width);
    width: 75%;
}

.post-template .gh-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-template .gh-article-image figcaption {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-secondary);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.post-template .gh-article-title-wrapper {
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin: 3.2rem auto;
    padding: 0 2rem;
}

.post-template .gh-article-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.2;
    color: var(--color-text);
    margin: 0 0 1.5rem;
    font-weight: normal;
}

.post-template .gh-article-excerpt {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.5;
    color: var(--color-textx);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.post-template .gh-article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-text);
}

.gh-article-author {
    color: var(--color-primary);
}

.gh-article-date,
.gh-article-reading-time {
    color: var(--color-secondary);
}

.post-template .gh-article-content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(250px, 1fr);
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.post-template .gh-article-content {
    width: 100%;
    margin: 0 auto;
}

.post-template .gh-article-content p {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.post-template .gh-article-content > * + * {
    margin-top: 2.8rem;
}

.post-template .gh-article-content > h2 {
    margin-top: 6rem;
    margin-bottom: 3.2rem;
    font-size: 3rem;
}

.post-template .gh-article-content > h3 {
    margin-top: 4.8rem;
    margin-bottom: 2.4rem;
    font-size: 2.5rem;
}

.post-template .gh-article-content > h4 {
    margin-top: 3.2rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
    font-synthesis-small-caps: all;
}

.post-template .gh-article-content blockquote {
    max-width: 80rem;
    background: #F4F1EA;
    border: none;
    font-style: italic;
    position: relative;
    text-align: center;
}

.post-template .gh-article-content blockquote:before,
.post-template .gh-article-content blockquote:after {
    display: none;
}

.post-template .gh-article-content blockquote p {
    margin-bottom: 0;
    font-size: inherit;
    line-height: 1.15;
    color: var(--color-primary);
    text-indent: 0;
    text-align: left;
}

.post-template .gh-article-content blockquote p:before,
.post-template .gh-article-content blockquote p:after {
    display: none;
}

.post-template .gh-article-sidebar {
    border-top: none;
    margin-top: 2rem;
    position: relative;
    width: 100%;
    min-width: 250px;
}

.post-template .gh-article-info {
    border-radius: 4px;
    margin-bottom: 4rem;
    position: relative;
}

.post-template .gh-article-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem 0;
}

.post-template .gh-article-info-item:not(:last-child) {
    
}

.post-template .gh-article-info-label {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-primary);
    font-style: italic;
}

.post-template .gh-article-info-value {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #25291C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-template .gh-article-info-value:hover {
    color: var(--color-primary);
}

/* Post Content Styles */
.post-template .gh-content {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.7;
    color: var(--color-text);
    text-align: justify;
}

.post-template .gh-content > * {
    margin-bottom: 2rem;
}

.post-template .gh-content h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.3;
    color: var(--color-text);
    margin: 4rem 0 2rem;
    font-weight: normal;
}

.post-template .gh-content h3 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    line-height: 1.3;
    color: var(--color-text);
    margin: 3rem 0 1.5rem;
    font-weight: normal;
}

.post-template .gh-content h4 {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.3;
    color: var(--color-text);
    margin: 2.5rem 0 1.2rem;
    font-weight: normal;
}

.post-template .gh-content p {
    margin-bottom: 2rem;
    text-align: justify;
}

.post-template .gh-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(105, 33, 0, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.post-template .gh-content a:hover {
    text-decoration-color: rgba(105, 33, 0, 1);
}

.post-template .gh-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 2rem;
    font-style: italic;
    margin-left: 0;
    margin-right: 0;
    color: var(--color-text-light);
}

.post-template .gh-content ul,
.post-template .gh-content ol {
    margin-left: 3rem;
    margin-bottom: 2rem;
}

.post-template .gh-content li {
    margin-bottom: 0.8rem;
}

.post-template .gh-content code {
    font-family: monospace;
    font-size: 0.9em;
    background: var(--color-background);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: var(--color-primary);
}

.post-template .gh-content pre {
    background: var(--color-background);
    padding: 2rem;
    overflow-x: auto;
    margin: 3rem 0;
    border-radius: 3px;
}

.post-template .gh-content pre code {
    background: none;
    padding: 0;
    font-size: 1.5rem;
    color: var(--color-text);
}

/* Drop caps */
.post-template .has-drop-caps .gh-content > p:first-child::first-letter {
    float: left;
    font-size: 4em;
    line-height: 0.8;
    margin-right: 0.2em;
    margin-bottom: -0.1em;
    text-transform: uppercase;
    font-weight: bold;
    font-family: var(--font-serif);
}

/* Koenig Gallery */
.post-template .kg-gallery-container {
    margin: 3rem auto;
    max-width: 100%;
}

.post-template .kg-gallery-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-template .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Koenig Image */
.post-template .kg-image-card {
    margin: 3rem auto;
    max-width: 100%;
}

.post-template .kg-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Post Card and Container Styles */
.post-template .gh-container {
    padding: 0;
    margin: 0 auto;
    max-width: var(--container-width);
    width: 100%;
}

.post-template .gh-container-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
    width: 100%;
}

.post-template .gh-container.is-grid .gh-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.post-template .gh-container .gh-container-title {
    margin-bottom: 4rem;
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
}

/* Images that scale with the viewport but are contained at large sizes */
@media (min-width: 1201px) {
    .post-template .kg-width-wide,
    .post-template .kg-width-full {
        width: 100%;
        max-width: var(--container-width);
        margin-left: auto;
        margin-right: auto;
    }
}

.post-template .gh-article-title {
    font-size: 4rem;
}

.post-template .gh-article-excerpt {
    font-size: 3rem;
}

.post-template .gh-article-meta {
    gap: 2rem;
    font-size: 2rem;
}

.post-template .kg-width-wide {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.post-template .kg-width-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Standard media query for large viewport sizes */
@media (max-width: 1200px) {
    .post-template .gh-article-title {
        font-size: 4rem;
    }

    .post-template .gh-article-excerpt {
        font-size: 3rem;
    }

    .post-template .gh-article-meta {
        gap: 2rem;
        font-size: 2rem;
    }

    .post-template .kg-width-wide {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .post-template .kg-width-full {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}

@media (max-width: 768px) {
    /* Critical overrides for full width */
    html, body {
        width: 100% !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    /* Force minimal margins/padding on content */
    .post-template .gh-main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .post-template .gh-article {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .post-template .gh-article-header {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 1rem 0 !important;
    }
    
    .post-template .gh-article-title {
        font-size: 3rem !important;
        padding: 0 0.3rem !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
    }
    
    .post-template .gh-article-excerpt {
        font-size: 2.4rem !important;
        padding: 0 0.3rem !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
    }
    
    .post-template .gh-article-meta {
        padding: 0 0.3rem !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
    }
    
    .post-template .gh-article-content-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .post-template .gh-article-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.3rem !important;
        margin: 0 !important;
    }
    
    .post-template .gh-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        font-size: 2.2rem !important;
    }
    
    .post-template .gh-article-content p,
    .post-template .gh-content p {
        font-size: 2.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
        text-align: left !important;
        padding: 0 0.3rem !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .post-template .gh-content > * {
        margin: 0 0 1rem 0 !important;
        padding: 0 0.3rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Text containers */
    .post-template .gh-content h2,
    .post-template .gh-content h3,
    .post-template .gh-content h4,
    .post-template .gh-content h5,
    .post-template .gh-content h6 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.3rem !important;
        margin: 1.5rem 0 0.5rem 0 !important;
    }
    
    .post-template .gh-content h2 {
        font-size: 2.8rem !important;
    }
    
    .post-template .gh-content h3 {
        font-size: 2.6rem !important;
    }
    
    .post-template .gh-content h4 {
        font-size: 2.4rem !important;
    }
}

/* Override max-width constraints */
@media (max-width: 480px) {
    body {
        width: 100% !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    .post-template .gh-article-content {
        padding: 0 0.3rem !important;
    }
    
    .post-template .gh-content > *,
    .post-template .gh-article-content p,
    .post-template .gh-content p,
    .post-template .gh-content h2,
    .post-template .gh-content h3,
    .post-template .gh-content h4 {
        padding: 0 0.3rem !important;
    }
    
    .post-template .gh-article-content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Pull Quotes */
.gh-pullquote {
    margin: 4rem 0;
    padding: 0;
    border: none;
    text-align: center;
    position: relative;
}

.gh-pullquote::before,
.gh-pullquote::after {
    content: "";
    display: block;
    width: 20%;
    height: 1px;
    background: #E4E1D9;
    margin: 0 auto;
}

.gh-pullquote::before {
    margin-bottom: 3.2rem;
}

.gh-pullquote::after {
    margin-top: 3.2rem;
}

.gh-pullquote p {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.4;
    color: var(--color-primary);
    margin: 0;
    font-style: italic;
}

/* Footnotes */
.footnotes {
    margin-top: 0rem;
    padding-top: 0rem;
    border-top: 1px solid #E4E1D9;
}

.footnotes::before {
    content: "Notes";
    display: block;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.footnotes ol {
    list-style: none;
    counter-reset: footnotes;
    padding: 0;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-text);
}

.footnotes ol li {
    counter-increment: footnotes;
    margin-bottom: 1.6rem;
    position: relative;
    padding-left: 3.2rem;
}

.footnotes ol li::before {
    content: counter(footnotes);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-primary);
    font-style: italic;
}

.footnotes .footnote-backref {
    color: var(--color-primary);
    text-decoration: none;
    margin-left: 0.8rem;
    font-style: italic;
}

.footnotes .footnote-backref:hover {
    color: var(--color-secondary);
}

/* Asides */
aside {
    margin: 0 0;
    padding: 0;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #25291C;
}

aside p:first-child {
    margin-top: 0;
}

aside p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    blockquote {
        padding: 2.4rem;
        font-size: 1.8rem;
    }

    .gh-pullquote p {
        font-size: 2.4rem;
    }

    .gh-pullquote::before {
        margin-bottom: 2.4rem;
    }

    .gh-pullquote::after {
        margin-top: 2.4rem;
    }
}

/* Sidenotes */
.gh-sidenotes {
    margin-top: 2rem;
    width: 100%;
    display: block;
}

.gh-sidenotes-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--color-primary);
    padding-bottom: 1rem;
}

.gh-sidenote {
    display: flex;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
    padding: 0.8rem;
    border-radius: 4px;
    position: relative;
}

.gh-sidenote.is-active {
    background-color: rgba(109, 56, 46, 0.05);
    box-shadow: 0 2px 8px rgba(105, 33, 0, 0.08);
}

.gh-sidenote-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary);
    min-width: 2.5rem;
    text-align: left;
    font-style: italic;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-top: -1rem;
}

.gh-sidenote-number .sidenote-backref {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: block;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.6rem;
    font-style: italic;
    transition: color 0.2s ease;
    margin-top: 0.2rem;
    text-align: center;
    width: 2rem;
}

.gh-sidenote-number .sidenote-backref:hover {
    color: #8E4A49;
}

.gh-sidenote-content {
    font-size: 1.8rem;
    line-height: 1.5;
    color: #333;
    flex: 1;
    overflow: hidden;
    position: relative;
    text-align: left;
}

.gh-sidenote-content p {
    margin: 0 0 0.8rem 0;
    text-indent: 0;
    text-align: left;
}

/* Handling long sidenotes */
.gh-sidenote.is-long .gh-sidenote-content {
    max-height: calc(1.8rem * 1.5 * 7); /* Font size * line height * 7 lines */
    overflow: hidden;
    position: relative;
    padding-bottom: 3rem; /* Space for toggle button */
}

.gh-sidenote.is-long.is-expanded .gh-sidenote-content {
    max-height: none;
    padding-bottom: 3rem;
}

.gh-sidenote-toggle {
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-primary);
    background: var(--color-background); /* Match website background */
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-align: right;
    width: auto;
    z-index: 3;
}

.gh-sidenote.is-long .gh-sidenote-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background: #f4f1ea;
    pointer-events: none;
}

.gh-sidenote.is-expanded .gh-sidenote-content::after {
    display: none;
}

.gh-sidenote-toggle:hover {
    color: #8E4A49;
}

.gh-sidenote.is-expanded .gh-sidenote-toggle {
    background: #f4f1ea;
    bottom: 0;
    right: 0;
    padding: 0.5rem;
}

.gh-sidenote.is-expanded .gh-sidenote-toggle::before {
    content: "Collapse ↑";
}

.gh-sidenote:not(.is-expanded) .gh-sidenote-toggle::before {
    content: "Read more ↓";
}

/* Footnote references styling */
.footnote-ref, 
.has-sidenote {
    position: relative;
    font-family: var(--font-serif);
    font-size: 85%;
    top: 0.2rem;
    color: #8E4A49;
    font-weight: normal;
    text-decoration: none;
    border-bottom: none;
    cursor: pointer;
    vertical-align: super;
    line-height: 0;
    letter-spacing: 0.02em;
    margin: 0 2px;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footnote-ref:hover, 
.has-sidenote:hover {
    color: #8E4A49;
    text-decoration: underline;
}

.footnote-ref.is-active,
.has-sidenote.is-active {
    color: #8E4A49;
    font-weight: bold;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footnote-ref,
    .has-sidenote {
        top: 0.4rem;
        font-size: 75%;
        margin: 0 3px;
    }
}

/* Scroll highlight effect */
@keyframes scrollHighlight {
    0% { background-color: rgba(105, 33, 0, 0.1); }
    100% { background-color: transparent; }
}

.scroll-highlight {
    animation: scrollHighlight 1s ease;
}

.gh-sidenote.scroll-highlight {
    box-shadow: 0 0 15px rgba(105, 33, 0, 0.3);
}

/* Hide footnotes on desktop */
.footnotes-desktop-hidden {
    display: none;
}

.sidenotes-mobile-hidden {
    display: none;
}

@media (min-width: 769px) {
    .footnotes-desktop-hidden {
        display: none;
    }
    
    .sidenotes-mobile-hidden {
        display: block;
    }
}

@media (max-width: 768px) {
    .sidenotes-mobile-hidden {
        display: none;
    }
    
    .footnotes-desktop-hidden {
        display: block;
        margin-top: 4rem;
        padding-top: 2rem;
        border-top: 1px solid #E4E1D9;
    }
}

/* Related Posts */
.gh-related-posts {
    margin: 8rem auto;
    padding: 0 2rem;
    max-width: 1400px;
}

.gh-related-container {
    border-top: 2px solid #E4E1D9;
    padding-top: 6rem;
    position: relative;
}

.gh-related-container:before {
    display: none;
}

.gh-related-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 4rem;
}

.gh-related-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.gh-related-posts .gh-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.gh-related-posts .gh-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gh-related-posts .gh-card-title {
    color: #1D3135;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 1.6rem;
}

.gh-related-posts .gh-card-meta {
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-top: auto;
}

.gh-related-posts .gh-card-date {
    display: none;
}

.gh-related-posts .gh-card-author {
    font-style: italic;
}

@media (max-width: 1200px) {
    .gh-related-feed {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .gh-related-posts {
        padding: 3rem 1.5rem;
    }
    
    .gh-related-feed {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gh-related-title {
        font-size: 2.6rem;
    }
}

/* Progress Bar - Positioned at the exact bottom edge of the header */
.gh-progress-container {
    position: fixed;
    top: calc(var(--header-height, 80px));
    bottom: auto;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    border: none;
}

.gh-progress-bar {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.1s ease;
}

.gh-article-length {
    position: fixed;
    top: 80px;
    bottom: auto;
    left: 0;
    height: 4px;
    width: 100%;
    z-index: 9998;
    opacity: 0;
}

/* Related Posts Slider - Immaculate styling */
.slider-section {
    position: relative;
    overflow: visible;
    margin: 6rem auto;
    max-width: 1200px;
    padding: 0 40px;
    display: block;
    clear: both;
}

.swiper {
    position: relative;
    overflow: visible;
    background-color: transparent;
    width: 100%;
    padding: 1rem;
}

.swiper-wrapper {
    align-items: stretch;
    padding: 0;
    display: flex;
    height: auto;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

/* Card styling */
.featured-card {
    display: flex;
    flex-direction: column;
    height: 390px; /* Reduced to ~70% of previous 560px height */
    width: 100%;
    border: 1px solid #E4E1D9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin: 0;
}

.featured-card-media {
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    height: 0;
    padding-bottom: 45%; /* Slightly reduced from 56.25% */
}

.featured-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    height: 220px; /* Reduced from 320px */
}

.featured-card-content h3 {
    margin: 0 0 1rem;
    font-size: 3rem;
    line-height: 1.2;
    font-family: var(--font-serif);
    font-weight: normal;
    color: var(--color-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 65px; /* Reduced height */
}

.featured-card-content h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-card-content h3 a:hover {
    color: #8E4A49;
}

.featured-card-content p {
    font-size: 2rem;
    line-height: 1.3;
    color: #25291C;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    font-style: italic;
    font-family: var(--font-serif);
    height: 85px; /* Reduced height */
}

.featured-card-footer {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid #E4E1D9;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: normal;
}

.featured-card-meta {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-top: auto;
    font-style: italic;
}

/* Beautiful navigation arrows */
.swiper-button-prev,
.swiper-button-next {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 1px solid #d3c9b6;
    box-shadow: 0 3px 10px rgba(105, 33, 0, 0.1);
    color: var(--color-primary) !important;
    opacity: 1;
    z-index: 1500;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.swiper-button-prev {
    left: -3rem;
}

.swiper-button-next {
    right: -3rem;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    content: "";
    display: none;
}

.swiper-button-prev:before,
.swiper-button-next:before {
    content: "";
    display: block;
    width: 1.4rem;
    height: 1.4rem;
    border: solid var(--color-primary);
    border-width: 0 0 2px 2px;
    position: relative;
    transition: all 0.25s ease;
}

.swiper-button-prev:before {
    transform: rotate(45deg);
    left: 0.5rem;
}

.swiper-button-next:before {
    transform: rotate(-135deg);
    left: -0.5rem;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(105, 33, 0, 0.2);
    border-color: var(--color-primary);
    color: #d3c9b6 !important;
}

.swiper-button-prev:hover:before,
.swiper-button-next:hover:before {
}

.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Elegant pagination dots */
.swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 2rem;
    width: 100%;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #E4E1D9;
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.swiper-pagination-bullet:hover {
    background: #8E4A49;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .slider-section {
        max-width: 800px;
        padding: 0 40px;
    }
    
    .featured-card-content h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .slider-section {
        max-width: 550px;
        padding: 0 40px;
    }
    
    .featured-card-content {
        padding: 1.5rem;
    }
    
    .featured-card-content h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .featured-card-content p {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .slider-section {
        margin: 4rem auto;
        padding: 0 40px;
        max-width: 300px;
    }
    
    .slider-section h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .featured-card-content {
        padding: 1.5rem;
    }
    
    .featured-card-content h3 {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }
    
    .featured-card-content p {
        font-size: 2rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
    }
    
    .featured-card-meta {
        font-size: 1.3rem;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 3.6rem;
        height: 3.6rem;
    }
    
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 1.6rem;
    }
}

/* Author Info Styles */
.gh-author-info {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.gh-author-image {
    margin: 1.5rem 0;
    text-align: center;
}

.gh-author-image img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E4E1D9;
    box-shadow: 0 3px 8px rgba(105, 33, 0, 0.1);
    transition: all 0.3s ease;
}

.gh-author-image img:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.gh-author-bio {
    margin: 1.5rem 0;
    font-family: "Gill Sans", sans-serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #25291C;
    text-align: left;
}

.gh-author-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.gh-author-role {
    font-family: "Gill Sans", sans-serif;
    font-size: 1.4rem;
    color: var(--color-primary);
    font-style: italic;
}

.gh-author-articles {
    font-family: "Gill Sans", sans-serif;
    font-size: 1.4rem;
    color: #25291C;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: 0.5rem;
    text-align: center;
}

.gh-author-articles:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.gh-author-social {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.gh-author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    color: var(--color-primary);
    transition: all 0.2s ease;
    background-color: #f4f1ea;
    border: 1px solid #E4E1D9;
    border-radius: 50%;
}

.gh-author-social-link:hover {
    color: #8E4A49;
    border-color: #8E4A49;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(142, 74, 73, 0.2);
}

.gh-author-social-link svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: none;
    stroke: currentColor;
}

/* Featured Image Caption in Sidebar */
.gh-image-caption {
    margin: 2rem 0;
    padding-bottom: 2rem;
    position: relative;
}

.gh-article-info-label {
    font-family: "Gill Sans", sans-serif;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.gh-image-caption-content {
    font-family: "Gill Sans", sans-serif;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--color-text);
}

.gh-article-share-title {
    font-family: "Gill Sans", sans-serif;
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
    text-align: center;
}

.gh-social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.gh-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    color: var(--color-primary);
    transition: all 0.2s ease;
    background-color: #f4f1ea;
    border: 1px solid #E4E1D9;
    border-radius: 50%;
}

.gh-social-icon:hover {
    color: #8E4A49;
    border-color: #8E4A49;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(142, 74, 73, 0.2);
}

.gh-social-icon svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: none;
    stroke: currentColor;
}

/* Mobile styling for author info and featured image */
@media (max-width: 768px) {
    .post-template .gh-article-content-wrapper {
        display: block;
    }
    
    .gh-article-sidebar {
        margin: 4rem 0.5rem;
        padding: 0;
        width: auto;
    }
    
    .gh-article-info {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .gh-article-info-item {
        margin-bottom: 0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .gh-article-info-label {
        font-size: 1.6rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: var(--color-primary);
    }
    
    .gh-image-caption-content {
        font-size: 1.6rem;
        line-height: 1.6;
    }
    
    .gh-article-info-value {
        font-size: 2.2rem;
        display: block;
        margin-bottom: 0.8rem;
    }
    
    .gh-author-bio p {
        font-size: 1.6rem;
        line-height: 1.6;
        margin: 1.2rem 0;
    }
    
    .gh-article-share-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .gh-social-icons {
        gap: 1.5rem;
    }
    
    .gh-social-icon {
        width: 4.2rem;
        height: 4.2rem;
    }
    
    .gh-author-social {
        margin-top: 1.5rem;
    }
    
    .gh-author-social-link {
        width: 4rem;
        height: 4rem;
    }
    
    /* Sidenotes on mobile */
    .gh-sidenotes {
        padding: 2rem;
        border-radius: 8px;
        margin-top: 2rem;
        box-shadow: 0 4px 12px rgba(105, 33, 0, 0.08);
        border: 1px solid #E4E1D9;
    }
    
    .gh-sidenotes-title {
        color: var(--color-primary);
        margin-bottom: 1.5rem;
    }
    
    /* Uniform card height/width for mobile */
    .slider-section {
        max-width: 95%;
        padding: 0 2rem;
        margin: 4rem auto;
    }
    
    .featured-card {
        height: 390px; /* Maintain same reduced height on mobile */
    }
    
    .featured-card-content {
        padding: 1.5rem;
        height: 220px; /* Same as desktop */
    }
    
    .featured-card-content h3 {
        font-size: 3rem;
        margin-bottom: 0.8rem;
        height: 65px;
    }
    
    .featured-card-content p {
        font-size: 2rem;
        margin-bottom: 0.8rem;
        height: 85px;
    }
    
    .featured-card-footer {
        font-size: 2rem;
        padding-top: 0.8rem;
        height: 30px;
    }
}

.slider-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-weight: normal;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.featured-card:hover .featured-card-image {
    transform: scale(1.05);
}

/* Mobile styling for related posts */
@media (max-width: 768px) {
    .slider-section {
        max-width: 95%;
        padding: 0 2rem;
        margin: 4rem auto;
    }
    
    .slider-section h2 {
        font-size: 2.8rem;
        margin-bottom: 2.5rem;
    }
    
    .featured-card {
        height: 390px; /* Maintain same reduced height on mobile */
    }
    
    .featured-card-content {
        padding: 1.5rem;
        height: 220px; /* Same as desktop */
    }
    
    .featured-card-content h3 {
        font-size: 3rem;
        margin-bottom: 0.8rem;
        height: 65px;
    }
    
    .featured-card-content p {
        font-size: 2rem;
        margin-bottom: 0.8rem;
        height: 85px;
        line-height: 1.4;
    }
    
    .featured-card-footer {
        font-size: 2rem;
        padding-top: 0.8rem;
        height: 30px;
    }
    
    /* Adjust navigation for mobile */
    .swiper-button-prev,
    .swiper-button-next {
        width: 4rem;
        height: 4rem;
    }
    
    .swiper-button-prev {
        left: -1.5rem;
    }
    
    .swiper-button-next {
        right: -1.5rem;
    }
} 