/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

/* =========================
   GLOBAL STYLES
========================= */

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
}

/* Container */
.single-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* LEFT CONTENT */
.single-left {
    width: 70%;
}

/* RIGHT SIDEBAR */
.single-right {
    width: 30%;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* CARD DESIGN */
.card {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

/* Title */
.post-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Meta */
.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* Featured Image */
.post-thumbnail img {
    width: 100%;
    border-radius: 12px;
}

/* Content */
.post-content {
    line-height: 1.8;
    color: #444;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-box img {
    border-radius: 50%;
}

/* CTA Button */
.cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4f46e5;
    color: #fff;
    border-radius: 8px;
    margin-top: 10px;
    text-decoration: none;
}

/* RELATED POSTS */
.related-posts {
    overflow: hidden;
}

.related-track {
    display: flex;
    gap: 20px;
    animation: scroll 20s linear infinite;
}

.related-item {
    min-width: 250px;
}

.related-item a h4{
    color:#ff6900!important;
    font-size:20px!important;
}

/* Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* MOBILE */
@media(max-width: 768px) {
    .single-container {
        flex-direction: column;
    }

    .single-left,
    .single-right {
        width: 100%;
    }

    .single-right {
        position: static;
    }
}

/* =========================
   MOBILE RESPONSIVE (≤768px)
========================= */

@media (max-width: 768px) {

    body {
        font-size: 15px;
        background: #f5f7fb;
    }

    /* Layout */
    .single-container {
        flex-direction: column;
        padding: 0 15px;
        margin: 20px auto;
        gap: 20px;
    }

    .single-left,
    .single-right {
        width: 100%;
    }

    .single-right {
        position: static;
    }

    /* Card */
    .card {
        padding: 18px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.05);
        margin-bottom: 20px;
    }

    /* Title */
    .post-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    /* Meta */
    .post-meta {
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* Image */
    .post-thumbnail img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    /* Content */
    .post-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .post-content p {
        margin-bottom: 15px;
    }

    .post-content h2,
    .post-content h3 {
        font-size: 20px;
        margin: 20px 0 10px;
    }

    /* Author Box */
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box img {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .author-box h3 {
        font-size: 18px;
    }

    .author-box p {
        font-size: 14px;
    }

    /* CTA Button */
    .cta-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Sidebar (Contact Form) */
    .single-right .card {
        padding: 20px;
    }

    .single-right input,
    .single-right textarea {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }

    /* Related Posts */
    .related-posts h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* Horizontal scroll slider */
    .related-track {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }

    .related-track::-webkit-scrollbar {
        display: none;
    }

    .related-item {
        min-width: 80%;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .related-item h4 {
        font-size: 16px;
        margin-top: 10px;
    }

}