/* Ghost CMS Clean Landing Page Styles */

/* All Tags Page Styles */
.all-tags-header {
    background: white;
    padding: 120px 0 60px;
    text-align: center;
}

.all-tags-header .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.all-tags-header .page-description {
    font-size: 1.2rem;
    color: #666;
}

.all-tags-section {
    padding: 90px 0 30px;
    background: white;
}

.tags-grid-all {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tag-card-all {
    display: inline-block;
    background: #007acc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-card-all:hover {
    background: #005a9e;
    color: white;
    text-decoration: none;
}

/* Tag Posts Sections */
.tag-posts-section {
    padding: 20px 0;
}

.tag-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 3px;
    border-bottom: 2px solid #007acc;
    text-transform: uppercase;
}

.posts-grid-3-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.post-card-link-tags {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-tags {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image-tags {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.card-image-tags.placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.card-text-overlay-tags {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3), transparent);
    color: white;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.post-card-link-tags:hover .card-text-overlay-tags {
    transform: translateY(-5px);
}

.card-title-overlay-tags {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-excerpt-overlay-tags {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .posts-grid-3-tags {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.popular-tags-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

.popular-tags-section .section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 50px;
}

.popular-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.popular-tag-card {
    display: block;
    background: white;
    padding: 30px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.popular-tag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    text-decoration: none;
}

.popular-tag-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.popular-tag-count {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .all-tags-header .page-title {
        font-size: 2.2rem;
    }
    
    .tags-grid-all {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .popular-tags-grid {
        grid-template-columns: 1fr;
    }
}

/* Ghost Font Variables */
:root {
    --gh-font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --gh-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--gh-font-body);
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Site Header */
.site-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    justify-content: flex-start;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #007bff;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

/* Site Navigation */
.site-navigation {
    display: flex;
    align-items: flex-end;
    padding-left: 80px;
}

.site-navigation .nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.site-navigation .nav li {
    margin: 0;
}

.site-navigation .nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.site-navigation .nav a:hover {
    color: #007bff;
}

.site-navigation .nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #007bff;
    transition: all 0.3s ease;
}

.site-navigation .nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Contact Button in Header */
.contact-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.site-navigation .nav .nav-current a {
    color: #007bff;
}

.site-navigation .nav .nav-current a::after {
    width: 100%;
    left: 0;
}

/* Main Content */
.site-main {
    padding-top: 0;
}

/* Hero Section */
.hero-section {
    background: white;
    height: 600px;
    padding: 70px 0 10px 0;
    margin: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    height: 600px;
    margin-top: -70px;
}

.hero-image,
.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-style: dashed;
}

.hero-text {
    position: relative;
    padding: 60px 40px;
}

.hero-text-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.hero-text-link:hover {
    transform: translateY(-5px);
}

.hero-title {
    font-family: var(--gh-font-heading);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.2;
}

.hero-excerpt {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
    color: #555;
}

.hero-excerpt p {
    display: block;
    margin-bottom: 20px;
}

.hero-excerpt h1, .hero-excerpt h2, .hero-excerpt h3, .hero-excerpt h4, .hero-excerpt h5, .hero-excerpt h6 {
    margin-bottom: 15px;
    display: block;
}

.ellipsis {
    display: inline;
}

.read-more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.read-more-link:hover {
    text-decoration: underline;
}

.section-label {
    position: absolute;
    right: 0;
    top: 0;
    width: 200px;
    text-align: right;
}

.section-label.left {
    left: 0;
    text-align: left;
}

.section-label.right {
    right: 0;
    text-align: right;
}

.section-label span {
    display: block;
    font-weight: 700;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-label p {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button.primary {
    background-color: #007bff;
    color: white;
}

.cta-button.primary:hover {
    background-color: #0056b3;
}

.cta-button.secondary {
    background-color: #007bff;
    color: white;
}

.cta-button.secondary:hover {
    background-color: #0056b3;
}

.cta-button.large {
    padding: 16px 32px;
    font-size: 16px;
}

/* First CTA Section */
.first-cta-section {
    padding: 0;
    background: #e9ecef;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.first-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.first-cta-text-content {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.first-cta-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
}

.first-cta-text {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Latest Posts Section */
.latest-posts-section {
    padding: 10px 0;
    background: white;
    margin-bottom: 10px;
}

.latest-posts-section .container {
    max-width: none;
    padding: 0;
}

.posts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.card-image.placeholder {
    background: #e9ecef;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.card-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding: 20px;
}

.card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.card-title-overlay {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.card-excerpt-overlay {
    font-size: 14px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-category {
    font-size: 11px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Special Feature Section */
.special-feature-section {
    padding: 0;
    position: relative;
    height: 375px;
}

.feature-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feature-card-large {
    position: relative;
    width: 100%;
}

.feature-image-large {
    height: 375px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image-large.placeholder {
    background: #e9ecef;
    color: #6c757d;
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding: 40px;
}

.feature-overlay .primary_tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.feature-title-overlay {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0px;
    color: white;
}

.feature-excerpt-overlay {
    font-size: 22px;
    color: white;
    width: 100%;
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card-link:hover {
    transform: translateY(-5px);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: white;
    position: relative;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cta-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.cta-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.cta-contact-label {
    text-align: center;
    margin-top: 40px;
}

.cta-contact-label span {
    font-weight: 700;
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blog Feature Section */
.blog-feature-section {
    padding: 40px 0;
    position: relative;
}

/* Final CTA Section */
.final-cta-section {
    padding: 40px 0;
    background: white;
    position: relative;
}

.final-cta-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.final-cta-card {
    background: white;
    padding: 60px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.final-cta-label {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.final-cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.final-cta-text {
    font-size: 24px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Contact Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #333;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.modal-form-container {
    margin-top: 20px;
}

/* Contact Form Styling */
.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.submit-button {
    width: 100%;
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* Responsive form styling */
@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-control {
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Site Footer */
.site-footer {
    background: #343a40;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-navigation h5,
.footer-social h5 {
    margin-bottom: 15px;
    color: #adb5bd;
}

.footer-link,
.social-link {
    display: block;
    color: #6c757d;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover,
.social-link:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: #6c757d;
}

.footer-bottom a {
    color: #007bff;
    text-decoration: none;
}

/* Koenig Editor Required Classes */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 0 auto;
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Ghost Editor Content Styles */
.kg-card {
    margin: 2em 0;
}

.kg-embed-card {
    margin: 2em auto;
}

.kg-image-card,
.kg-gallery-card {
    margin: 2em 0;
}

.kg-image {
    max-width: 100%;
    height: auto;
}

/* Post Template Styles */
.post-single,
.page-single {
    padding: 60px 0;
    margin-top: 40px;
}

.post-header,
.page-header {
    margin-bottom: 60px;
    text-align: center;
}

.post-tags {
    margin-bottom: 20px;
}

.tag-link {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease;
}

.tag-link:hover {
    background: #0056b3;
}

.post-header-center {
    text-align: center;
    margin-bottom: 40px;
}

.post-title,
.page-title {
    font-family: var(--gh-font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.post-meta-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 16px;
}

.post-author-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar-center {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-name {
    font-weight: 500;
    color: #333;
}

.reading-time-center {
    color: #666;
}

.post-meta-center::after {
    content: '';
}

.post-meta-center .reading-time-center::before {
    content: '• ';
    margin-right: 5px;
    color: #ccc;
}

.post-tags-inline {
    color: #666;
    font-style: italic;
}

.post-tags-inline::before {
    content: '• ';
    margin-right: 5px;
    color: #ccc;
    font-style: normal;
}

.tag-link-inline {
    color: #666;
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s ease;
}

.tag-link-inline:hover {
    color: #007bff;
    text-decoration: underline;
}

.page-excerpt {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.post-meta-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.post-date,
.page-date {
    color: #666;
    font-size: 14px;
}

.page-meta {
    text-align: center;
}

.reading-time {
    color: #666;
    font-size: 14px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.author-name:hover {
    color: #007bff;
}

.author-bio {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.post-feature-image,
.page-feature-image {
    margin-bottom: 40px;
}

.post-feature-image img,
.page-feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Controlled Page Feature Image Layout */
.page-feature-image-controlled {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.page-feature-image-controlled img {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.post-caption,
.page-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.post-content,
.page-content {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.post-content h2,
.page-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #333;
}

.post-content h3,
.page-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
}

.post-content p,
.page-content p {
    margin-bottom: 20px;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    padding-left: 60px;
    margin: 20px 0;
}

.post-content li,
.page-content li {
    margin-bottom: 8px;
}

.post-footer,
.page-footer {

    padding-top: 40px;
}

.post-tags-footer,
.page-tags {
    margin-bottom: 30px;
}

.post-tags-footer h4,
.page-tags h4,
.post-share h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-links {
    display: flex;
    gap: 15px;
}

.share-link {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-link.twitter {
    background: #1da1f2;
    color: white;
}

.share-link.facebook {
    background: #4267b2;
    color: white;
}

.share-link.linkedin {
    background: #0077b5;
    color: white;
}

.share-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Author Section */
.author-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.author-card {
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.author-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-large {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.author-bio-large {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-website {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.author-website:hover {
    text-decoration: underline;
}

/* Related Posts */
.related-posts,
.related-pages {
    padding: 60px 0;
    background: white;
}

.related-title,
.section-title {
    font-family: var(--gh-font-heading);
    font-size: 28px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-post-title a,
.related-page-title a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.related-post-title a:hover,
.related-page-title a:hover {
    color: #007bff;
}

.related-excerpt {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.related-date {
    font-size: 12px;
    color: #999;
}

/* Post Navigation */
.post-navigation {
    background: #f8f9fa;
    padding: 40px 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nav-link {
    flex: 1;
    max-width: 400px;
    text-decoration: none;
    color: #333;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-3px);
}

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

.nav-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Author Template Styles */
.author-header {
    background: #f8f9fa;
    padding: 80px 0;
}

.author-profile {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.author-avatar-hero {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-hero {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.author-bio-hero {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.author-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.post-count {
    font-weight: 600;
    color: #333;
}

.author-website-link,
.author-twitter-link,
.author-facebook-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.author-website-link:hover,
.author-twitter-link:hover,
.author-facebook-link:hover {
    text-decoration: underline;
}

.author-posts {
    padding: 80px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.post-card-author {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card-author:hover {
    transform: translateY(-5px);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

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

.post-content-author {
    padding: 25px;
}

.post-tags-small {
    margin-bottom: 15px;
}

.tag-link-small {
    display: inline-block;
    background: #e9ecef;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
}

.tag-link-small:hover {
    background: #007bff;
    color: white;
}

.post-title-author a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.post-title-author a:hover {
    color: #007bff;
}

.post-excerpt-author {
    color: #666;
    margin: 15px 0;
    line-height: 1.6;
}

.post-meta-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.post-date-author,
.reading-time-author {
    font-size: 12px;
}

.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.other-authors {
    background: #f8f9fa;
    padding: 60px 0;
}

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

.author-card-small {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.author-card-small:hover {
    transform: translateY(-3px);
}

.author-avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.author-name-small a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.author-name-small a:hover {
    color: #007bff;
}

.author-bio-small {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.author-post-count {
    font-size: 12px;
    color: #999;
}

/* Tag Template Styles */
.tag-header {
    background: #f8f9fa;
    padding: 80px 0;
}

.tag-info {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.tag-feature-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.tag-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-name {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.tag-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tag-stats {
    font-weight: 600;
    color: #333;
}

.tag-posts {
    padding: 80px 0;
}

.posts-grid-tag {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.post-card-tag {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card-tag:hover {
    transform: translateY(-5px);
}

.post-image-tag {
    height: 200px;
    overflow: hidden;
}

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

.post-content-tag {
    padding: 25px;
}

.post-tags-tag {
    margin-bottom: 15px;
}

.tag-link-tag {
    display: inline-block;
    background: #e9ecef;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
}

.tag-link-tag:hover {
    background: #007bff;
    color: white;
}

.post-title-tag a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.post-title-tag a:hover {
    color: #007bff;
}

.post-excerpt-tag {
    color: #666;
    margin: 15px 0;
    line-height: 1.6;
}

.post-meta-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
    gap: 10px;
}

.author-info-tag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar-tiny {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-tag {
    font-size: 12px;
    font-weight: 600;
}

.post-date-tag,
.reading-time-tag {
    font-size: 12px;
}

.no-posts-tag {
    text-align: center;
    padding: 80px 20px;
}

.no-posts-tag h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.back-home {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    display: inline-block;
}

.back-home:hover {
    text-decoration: underline;
}

.related-tags {
    background: #f8f9fa;
    padding: 60px 0;
}

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

.tag-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tag-card:hover {
    transform: translateY(-3px);
    color: #333;
}

.tag-card-image {
    height: 120px;
    overflow: hidden;
}

.tag-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-card-content {
    padding: 20px;
}

.tag-card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tag-card-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.tag-card-count {
    font-size: 12px;
    color: #999;
}

.featured-posts-other {
    padding: 60px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-content {
    padding: 20px;
}

.featured-title a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.featured-title a:hover {
    color: #007bff;
}

.featured-excerpt {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.featured-tags {
    display: flex;
    gap: 6px;
}

.featured-tag {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

/* Page CTA Section */
.page-cta-section {
    background: white;
    padding: 60px 0;
}

.page-cta-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.page-cta-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.page-cta-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Blog Posts Grid for No Feature Section */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-post-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-3px);
}

.blog-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.blog-post-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Mobile Navigation Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* Additional mobile header optimizations */
@media (max-width: 480px) {
    .site-header {
        padding: 12px 0;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .mobile-menu-toggle {
        padding: 6px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .site-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .site-navigation.mobile-open {
        display: block;
    }
    
    .site-navigation .nav {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .site-navigation .nav li {
        border-bottom: 1px solid #e9ecef;
    }
    
    .site-navigation .nav li:last-child {
        border-bottom: none;
    }
    
    .site-navigation .nav a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }
    
    .contact-button {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-right {
        justify-content: flex-end;
        flex: none;
        align-items: center;
        gap: 15px;
    }
    
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        position: relative;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 70px 0 20px 0;
    }
    
    .feature-grid-large {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .special-feature-section {
        height: auto;
    }
    
    .feature-image-large {
        height: 225px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-image-placeholder {
        width: 100%;
        height: 300px;
        margin: 0;
    }
    
    .hero-text {
        padding: 20px;
    }
    
    .section-label {
        position: static;
        width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }
    
    .posts-grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .author-profile,
    .tag-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-link.next {
        text-align: left;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section,
    .latest-posts-section,
    .special-feature-section,
    .cta-section,
    .final-cta-section {
        padding: 40px 0;
    }
    
    .final-cta-card {
        padding: 40px 30px;
    }
    
    .final-cta-title {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .post-title,
    .page-title {
        font-size: 28px;
    }
    
    .author-name-hero,
    .tag-name {
        font-size: 28px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .site-navigation .nav {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .posts-grid,
    .posts-grid-tag {
        grid-template-columns: 1fr;
    }
    
    .post-content,
    .page-content {
        font-size: 16px;
    }
    
    .page-cta-card {
        padding: 30px 20px;
    }
}