/*
Theme Name: JustAirports Theme
Author: JustAirports
Version: 1.0
Description: A custom theme for JustAirports blogs page.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main {
    flex-grow: 1;
}

footer li {
    list-style: none;
    margin-top: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

.banner {
    background-image: url('images/banner.png');
    background-size: cover;
    background-position: top center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px;
    padding: 20px;
    border-radius: 20px;
    color: white;
}

footer {
    width: 100%;
    background-color: #2a2867;
    padding-top: 50px;
    padding-bottom: 50px;
    color: white;
}

footer h4 {
    font-size: 1.8rem;
    /* Desktop base size */
    /* margin-bottom: 20px; */
    font-weight: 700;
}

/* Tablet font sizes */
@media screen and (max-width: 992px) {
    footer h4 {
        font-size: 1.6rem;
    }
}

/* Mobile font sizes */
@media screen and (max-width: 768px) {
    .banner {
        height: 300px;
        margin: 20px;
    }

    footer h4 {
        font-size: 1.4rem;
    }
}

.footer-row {
    /* display: flex;
    flex-wrap: wrap; */
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: space-between;
    gap: 30px;
}

.centered-row-elements {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1rem;
    /* Base desktop size */
}

/* Tablet font sizes */
@media screen and (max-width: 992px) {
    .centered-row-elements {
        font-size: 0.95rem;
        gap: 10px;
    }
}

/* Mobile font sizes */
@media screen and (max-width: 768px) {
    .centered-row-elements {
        font-size: 0.9rem;
    }
}

.detail-links {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    /* Base desktop size */
}

/* Tablet font sizes */
@media screen and (max-width: 992px) {
    .detail-links {
        font-size: 0.95rem;
    }
}

/* Mobile font sizes */
@media screen and (max-width: 768px) {
    .detail-links {
        font-size: 0.9rem;
    }
}

.cards-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* align-items: flex-end; */
}

.cards-row {
    display: flex;
    gap: 10px;
}

.cards-row img {
    width: 80px;
    height: 60px;
}

/* --- Blogs Layout --- */
.blog-container {
    background-color: #f8f9fa;
    /* Premium light background */
}

.banner {
    background-image: linear-gradient(rgba(42, 40, 103, 0.5), rgba(42, 40, 103, 0.5)), url('images/banner.png');
    /* Added overlay for premium look */
    background-size: cover;
    background-position: top center;
    height: 500px;
    /* Slimmer for modern look */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    max-width: 1200px;
    padding: 20px;
    border-radius: 24px;
    color: white;
    text-align: center;
    box-shadow: 0 15px 35px rgba(42, 40, 103, 0.15);
}

@media screen and (max-width: 768px) {
    .banner {
        margin: 30px 10px;
    }
}

.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(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: 240px;
    /* Taller image */
    overflow: hidden;
    background-color: #f4f4f4;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.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 {
    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: 50px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tag-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 5px;
}

.single-post-tags a {
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
}

.single-post-tags a:hover {
    background-color: #2a2867;
    color: #fff;
}

/* --- 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 h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 40px;
}