/*
Theme Name: JustAirports Theme 2 - Main Site Header & Footer
Description: JustAirports blog theme with the main website header and footer.
Author: JustAirports
Version: 3.0.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: justairports-theme-2
*/
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Outfit', sans-serif; min-height: 100vh; display: flex; flex-direction: column; color: #1a1a1a; background: #fff; }
button, input { font: inherit; }
main { flex-grow: 1; min-width: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.ja-content .container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 12px; }
.ja-content h1, .ja-content h2, .ja-content h3, .ja-content h4, .ja-content p { margin-top: 0; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; overflow-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; top: 8px; left: 8px; z-index: 10000; padding: 12px 18px; background: #fff; color: #2a2867; outline: 2px solid #2a2867; }
:focus-visible { outline: 2px solid #2a2867; outline-offset: 4px; }

/* --- Blogs Layout --- */
.blog-container {
    background-color: #f8f9fa;
    /* Premium light background */
}


.banner {
    margin: 30px auto;
    width: 100%;
    max-width: 1200px;
}

.banner img {
    width: 100%;
    height: auto;
}

.mobile-banner {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-banner {
        display: block;
    }
    .desktop-banner {
        display: none;
    }
    .banner {
        width: calc(100% - 20px);
        margin: 15px auto;
    }
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    /* Slightly wider cards */
    gap: 40px;
    /* More breathing room */
    margin-bottom: 60px;
    margin-top: 20px;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0);
    /* Softer corners */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle border */
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.post-thumbnail {
    width: 100%;
    height: auto;
    /* Taller image */
    overflow: hidden;
    background-color: #f4f4f4;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

img {
    vertical-align: middle;
}

.blog-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 30px;
    /* More padding inside card */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    font-size: 0.8rem;
    color: #2a2867;
    /* Theme color for meta */
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.blog-card h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.blog-card h2 a {
    transition: color 0.2s ease;
}

.blog-card h2 a:hover {
    color: #2a2867;
}

.post-content {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.post-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    /* Darker read more initially */
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    /* Divider line */
}

.read-more:hover {
    color: #2a2867;
}

.read-more .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover .arrow {
    transform: translateX(6px);
}

/* --- Single Post Layout --- */
.back-to-blog {
    margin-bottom: 40px;
}

.back-to-blog a {
    display: inline-flex;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* padding: 8px 16px; */
    /* background-color: #f8f9fa; */
    /* border-radius: 30px; */
    transition: all 0.2s ease;
}

.back-to-blog a:hover {
    /* color: #ffffff; */
    color: #2a2867;
    transform: translateX(-3px);
}

.single-post-container {
    padding: 60px 0;
    background-color: #ffffff;
    /* Changed to white */
}

.single-article {
    max-width: 800px;
    margin: 0 auto;
    /* Removed background, padding, and box-shadow to blend into body */
}

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

.single-post-categories {
    margin-bottom: 15px;
}

.single-post-categories a {
    display: inline-block;
    background-color: rgba(42, 40, 103, 0.1);
    color: #2a2867;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.single-post-categories a:hover {
    background-color: #2a2867;
    color: #ffffff;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.single-post-meta {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.single-post-meta span,
.single-post-meta time {
    display: inline-flex;
    align-items: center;
}

.single-post-meta .meta-date::after {
    content: "Ã¢â‚¬Â¢";
    margin-left: 15px;
    color: #ccc;
}

.single-post-thumbnail {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Content Typography Styling --- */
.single-post-content {
    font-size: 1.15rem;
    /* Slightly larger for easier reading */
    line-height: 1.8;
    color: #444;
    /* Slightly softer text color */
    font-family: 'Outfit', sans-serif;
    margin-top: 40px;
    /* Space between header and content */
}

.single-post-content p {
    margin-bottom: 30px;
    /* More breathing room between paragraphs */
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: #1a1a1a;
    margin-top: 50px;
    /* More space above headings */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.single-post-content h2 {
    font-size: 2rem;
}

.single-post-content h3 {
    font-size: 1.6rem;
}

.single-post-content h4 {
    font-size: 1.3rem;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.single-post-content li {
    margin-bottom: 12px;
}

.single-post-content a {
    color: #2a2867;
    text-decoration: none;
    /* Removed underline */
    border-bottom: 2px solid rgba(42, 40, 103, 0.2);
    /* Added subtle border instead */
    transition: border-color 0.2s ease, color 0.2s ease;
}

.single-post-content a:hover {
    border-color: #2a2867;
}

.single-post-content blockquote {
    border-left: 4px solid #2a2867;
    background-color: #f8f9fa;
    /* Lighter background */
    padding: 25px 30px;
    /* More padding */
    margin: 40px 0;
    /* More spacing */
    font-size: 1.3rem;
    /* Larger quote text */
    font-style: italic;
    color: #333;
    /* Darker quote text */
    border-radius: 0 12px 12px 0;
    /* Softer corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    /* Subtle shadow */
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    /* Nicer rounded corners for images */
    margin: 40px 0;
    /* More vertical space around images */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    /* Elegant shadow for inline images */
    display: block;
    /* Ensure it behaves well */
}

/* --- Tags and Footer --- */
.single-post-footer {
    margin-top: 40px;
    padding: 24px 0 0;
    border-top: 1px solid #eaeaea;
    background: transparent;
    color: #2a2867;
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: baseline;
}

.single-post-tags .tag-label {
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
    color: #666;
}

.single-post-tags .tag-links {
    display: flex;
    flex: 1 1 240px;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.single-post-tags a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 36px;
    background-color: #f2f1f8;
    border: 1px solid #dfddeb;
    color: #2a2867;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.single-post-tags a:hover {
    background-color: #2a2867;
    border-color: #2a2867;
    color: #fff;
}

.single-post-tags a:focus-visible {
    outline: 2px solid #2a2867;
    outline-offset: 3px;
}

/* --- Post Navigation --- */
.post-navigation {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation div {
    flex: 1;
}

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

.post-navigation a {
    display: block;
    padding: 15px 20px;
    background-color: #ffffff;
    border-radius: 10px;
    color: #2a2867;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-navigation a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .single-article {
        padding: 25px 15px;
    }

    .single-post-title {
        font-size: 2rem;
    }

    .single-post-meta {
        flex-direction: column;
        gap: 5px;
    }

    .single-post-meta .meta-date::after {
        display: none;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation .nav-next {
        text-align: left;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    border-radius: 8px;
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #2a2867;
    color: white;
}

.pagination .current {
    background-color: #2a2867;
    color: white;
    box-shadow: 0 4px 10px rgba(42, 40, 103, 0.2);
}

/* --- Latest Posts Section (Single Post Bottom) --- */
.latest-posts-section {
    background-color: #f0f2f5;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid #e1e1e1;
}

.latest-posts-section > .container > h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.ja-content { overflow-wrap: break-word; }
.banner img { display: block; height: auto; }
.post-thumbnail { aspect-ratio: 16 / 9; }
.post-thumbnail a { display: block; width: 100%; height: 100%; }
.post-content p { margin-top: 0; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.pagination span.screen-reader-text { padding: 0; }
.pagination .dots { background: transparent; }
.ja-listing-heading { padding-top: 40px; }
.ja-empty-state { padding-block: 70px; }
.ja-empty-state p { line-height: 1.7; }
.ja-search-form { display: flex; gap: 10px; max-width: 560px; margin-block: 24px; flex-wrap: wrap; }
.ja-search-form input { min-width: 0; flex: 1 1 180px; border: 1px solid #ababab; border-radius: 4px; padding: 12px; }
.ja-search-form button { border: 0; background: #2a2867; color: #fff; padding: 12px 24px; border-radius: 4px; cursor: pointer; }
.single-post-content { overflow-wrap: anywhere; }
.single-post-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.single-post-content td, .single-post-content th { padding: 10px; border: 1px solid #ddd; }
.single-post-content iframe { max-width: 100%; }
.page-links { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
@media (max-width: 600px) { .single-post-container { padding-block: 30px; } .single-post-content { font-size: 1.05rem; } .single-post-title { font-size: 1.8rem; } .single-post-content h2 { font-size: 1.6rem; } .blog-card-content { padding: 24px; } .pagination a, .pagination span { padding: 9px 12px; } }
