/* Single Reference Template Styles */

.reference-single-container {
    margin: 0;
    padding: 0;
}

/* Hero Section - Short hero with featured image */
.reference-hero {
    width: 100%;
    height: 40vh;
    max-height: 259px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    background-color: var(--global-palette7);
    display: flex;
    align-items: center;
}

.reference-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Simple title wrapper */
.reference-title-wrapper {
    max-width: var(--global-content-width);
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.reference-hero .reference-title {
    font-size: 52px;
    font-weight: bold;
    margin: 0;
    color: var(--global-palette9);
}

/* Centered Content Area */
.reference-content-centered {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--global-content-width);
}

/* Title with underline */
.reference-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 2rem 0 1.5rem 0;
    text-align: left;
    position: relative;
    padding-bottom: 1rem;
    color: var(--global-palette9);
}

.reference-title::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 16%;
    height: 2px;
    background-color: var(--global-palette1);
}


/* Meta Section */
.reference-meta-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--global-palette7, #f8f9fa);
    border-radius: 12px;
    max-width: var(--global-content-width, 1200px);
    margin: 3rem auto;
}

.reference-meta-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.meta-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--global-palette3, #333);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.meta-value {
    font-size: 1.1rem;
    color: var(--global-palette2, #666);
    font-weight: 500;
}

/* Country flag styling */
.meta-label .country-flag {
    display: block;
    margin: 0 auto;
    width: 32px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.country-flag {
    width: 32px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.country-name {
    font-weight: 500;
}

/* Content Sections */
.reference-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--global-palette3, #666);
    font-style: italic;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--global-palette8, #f1f3f4);
    border-left: 4px solid var(--global-palette-highlight, #007cba);
    border-radius: 4px;
}

.reference-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--global-palette2, #666);
    margin: 2rem 0 3rem 0;
}

.reference-content h1,
.reference-content h2,
.reference-content h3,
.reference-content h4,
.reference-content h5,
.reference-content h6 {
    color: var(--global-palette2, #333);
    margin: 2rem 0 1rem 0;
}

.reference-content p {
    margin-bottom: 1.5rem;
}

.reference-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Footer */
.reference-footer {
    margin: 3rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--global-palette7, #e0e0e0);
}

.page-links {
    text-align: center;
    font-weight: 600;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--global-palette7);
}

/* Navigation */
.reference-navigation {
    max-width: var(--global-content-width, 1200px);
    margin: 3rem auto 0 auto;
    padding: 2rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--global-palette7, #e0e0e0);
}

.reference-navigation a {
    color: var(--global-palette1, #007cba);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--global-palette1, #007cba);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.reference-navigation a:hover {
    background-color: var(--global-palette1, #007cba);
    color: var(--global-palette9, white);
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reference-hero {
        height: 30vh;
        min-height: 250px;
    }

    .reference-title {
        font-size: 2rem;
        margin: 1.5rem 0 1rem 0;
    }

    .reference-title::after {
        width: 60%;
    }

    .reference-meta-section {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .reference-meta-item {
        min-width: auto;
    }

    .reference-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .reference-content-centered {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .reference-hero {
        height: 25vh;
        min-height: 200px;
    }

    .reference-title {
        font-size: 1.75rem;
    }

    .reference-title::after {
        width: 80%;
    }

    .reference-meta-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }

    .reference-excerpt {
        font-size: 1.1rem;
        margin: 1.5rem 0;
        padding: 1rem;
    }
}

<style>

/* Single Reference Template Styles */
.reference-single-container {
    margin: 0;
    padding: 0;
}

.reference-hero-section {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-color: var(--global-palette7);
}

.reference-hero-section.reference-hero-no-image {
    background: var(--global-palette7);
    padding: 2rem 0;
    height: auto;
}

.reference-featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.reference-featured-image .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--global-content-width);
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.reference-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--global-palette9);
    position: relative;
    padding-bottom: 1rem;
}

/* Title on Image Styling */
.reference-title-on-image {
    position: absolute;
    bottom: 80px;
    left: 80px;
    z-index: 2;
}


.reference-hero {
    position: relative;
    background-color: var(--global-palette7);
    overflow: hidden;
}

.reference-content-wrapper {
    max-width: var(--global-content-width);
    margin: 0 auto;
    padding: 2rem;
}

.reference-meta-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    background: var(--global-palette7);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.reference-meta-item {
    flex: 1;
    min-width: 200px;
}

.meta-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--global-palette3);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--global-palette2);
}

.reference-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--global-palette3);
    margin-bottom: 2rem;
    font-style: italic;
}

.reference-content {
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--global-palette2);
}

.reference-content h1,
.reference-content h2,
.reference-content h3,
.reference-content h4,
.reference-content h5,
.reference-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--global-palette2);
}

.reference-content p {
    margin-bottom: 1.5rem;
}

.reference-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
}

.reference-navigation {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    max-width: var(--global-content-width);
    margin: 0 auto;
    border-top: 1px solid var(--global-palette7);
}

.reference-navigation a {
    color: var(--global-palette1);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--global-palette1);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.reference-navigation a:hover {
    background: var(--global-palette1);
    color: var(--global-palette9);
}

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--global-palette7);
}

/* Country flag styling */
.meta-label .country-flag {
    display: block;
    margin: 0 auto;
    width: 32px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.country-flag {
    width: 32px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.country-name {
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 768px) {
    .reference-hero-section {
        height: 250px;
    }

    .reference-title {
        font-size: 2rem;
    }

    .reference-content-wrapper {
        padding: 1.5rem;
    }

    .reference-meta-section {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .reference-meta-item {
        min-width: auto;
    }

    .reference-navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .reference-navigation a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .reference-hero-section {
        height: 200px;
    }

    .reference-title {
        font-size: 1.75rem;
    }

    .reference-hero-content {
        padding: 1.5rem;
    }

    .reference-content-wrapper {
        padding: 1rem;
    }

    .reference-meta-section {
        padding: 1rem;
    }
}