body {
    font-family: "DM sans";

}



/* If you prefer the entire content to be centered within .padding-x, 
     you can remove the .container wrapper below, or keep it if you want 
     a narrower width (like max-width: 1200px). */
.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

@media screen and (min-width:1450px) {
    .container {
        max-width: 1600px;
    }
}

/* person logo */
.logo-blog {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}


/* Overall Section for Recent Blogs */
.recent-blogs {
    background-color: #f3f5fb;
    /* Light background to match the screenshot */
    /* padding: 20px 0; */
}

/* Heading Styles */
.recent-blogs h2 {
    font-size: 20px;
    margin-bottom: 10px;
    /* Use your dark-blue color variable or keep as is */
    color: var(--theme-color-dark-blue);
}

.recent-blogs .highlighted {
    font-size: 20px;
    margin-bottom: 15px;
    /* Use your dark-blue color variable or keep as is */
    color: var(--theme-color-dark-blue);

}


/* Card Image Area */
.card-image {
    position: relative;
    max-width: 500px;
    max-height: 700px;
    margin: auto;
    margin-left: 20px;
    margin-top: 20px;
}

/* image style */
.image-blog {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

@media screen and (max-width:768px) {
    .image-blog {
        width: 100%;
        height: 100%;
        padding-right: 20px;
        padding-top: 15px;
    }
}


.blog-label {
    top: 16px;
    left: 16px;
    font-size: 14px;
    color: #fff;
    padding: 2px 12px;
    border-radius: 4px;
}

.blog {
    background-color: var(--theme-color-orange);
}

.news {
    background-color: var(--theme-color-light-blue);
}

/* Card Content Area */
.card-content {
    flex: 1 1 50%;
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);

}

/* Title */
.card-content h3 {
    font-size: 18px;
    margin-bottom: 0px;
    /* line-height: 1.3; */
    color: var(--theme-color-dark);
    /* or #1d1c2b */
    width: 100%;
}

/* Paragraph/Text */
.card-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0px;
    color: var(--text-color-gray);
}

/* Meta Info (Date, Comments, Shares, Likes) */
.blog-meta {
    font-size: 14px;
    color: var(--text-color-gray);
    /* margin-top: 10px; */
    display: flex;
    justify-content: space-between;
}

.blog-meta-overview {
    font-size: 14px;
    align-items: center;
    color: var(--text-color-gray);
    /* margin-top: 10px; */
    display: flex;
    justify-content: space-between;
    margin: 5px 10px;

}

.blog-meta span {
    margin-right: 15px;
}

.share-btn {
    border: none;
    background: none;
    /* Removes default button styling */
    font-size: 14px;
    color: var(--theme-color-light-blue);
    display: flex;
    align-items: center;
    gap: 5px;
    /* Adds space between text and icon */
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.share-btn ion-icon {
    font-size: 20px;
    color: inherit;
    /* Inherits color from .share-btn */
}

.share-btn:hover {
    color: #d9534f;
    /* Change color on hover */
}

/* "Read More" link */
.read-more {
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
    /* margin-bottom: 10px; */
    border: none;
    background: transparent;
}

.read-more:hover {
    color: var(--theme-color-orange);
}

hr {
    margin-top: 2px;
    margin-bottom: 2px;
}

/* blog cad and overview container */
.blog-container-flex {
    display: flex;
    gap: 5%;
    padding: 20px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Only shows scrollbar when needed */
    overflow-x: hidden;
    height: 600px;
    /* Shorter scroll by default */
}

/* For larger screens */
@media screen and (min-width: 1450px) {
    .blog-list {
        height: 900px;
        /* Prevent full page height scroll */
    }
}


/* Custom Scrollbar */


.blog-card {
    background-color: #fff;
    width: fit-content;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.blog-overview-container {
    display: none;
    /* Hidden by default */
    width: fit-content;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 123, 255, 0.1);
    height: 100vh;
    overflow: scroll;
    overflow-x: hidden;
}

/* ------------------------------------- */
/* BLOG OVERVIEW (displayed on "Read More") */
.blog-container-card {
    position: relative;
    display: flex;
    /* justify-content: center; */
}

.blog-overview-container {
    display: none;
    width: 50vw;
}

.blog-container-card.active .blog-overview-container {
    display: block;
}

.blog-container-card.active .image-blog {
    margin-top: 20px;
}


.blog-container-card.active .read-more,
.blog-container-card.active .blog-meta {
    display: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    color: var(--theme-color-light-blue);
    display: none;
    /* Hide initially */
}

.close-btn:hover {
    color: var(--theme-color-orange);
}

.blog-container-card.active .close-btn {
    display: block;
    /* Show when active */
}

/* The main "overview" card layout */
.overview-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /* Helps responsiveness on smaller screens */
    background-color: #fff;
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    overflow: hidden;
    /* margin-bottom: 20px; */
}

.overview-card .image-content {
    display: flex;
    /* align-items: center; */
    justify-content: space-around;
    gap: 2%;
    margin: 2%;
    border-bottom: none;
}

/* Left: Image area */
.overview-image {
    width: 600px;
    height: 400px;
    position: relative;
}

.overview-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 16px;
}

/* Right: Text area */
.overview-text {
    flex: 1 1 50%;
    padding: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
}

/* The label in the top-right corner (if needed) */
.overview-label {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 14px;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    background-color: var(--theme-color-orange);
}

.overview-text h1 {
    font-size: 28px;
    color: var(--theme-color-dark-blue);
    margin-bottom: 16px;
    line-height: 1.2;
}

.overview-text p {
    color: var(--text-color-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Additional paragraph below the overview card */
.blog-details-paragraph {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.blog-details-paragraph p {
    color: var(--text-color-gray);
    font-size: 14px;
    line-height: 1.6;
    /* margin-top: 2%; */
}

.blog-container-card.active .line {
    display: none;
}


/* Positioning wrapper for share button */
.share-wrapper {
    position: relative;
    display: inline-block;
}

/* Floating share popover; hidden by default */
.share-popover {
    position: absolute;
    bottom: 100%;
    /* positions popover above the share button */
    right: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

/* When active, show the popover */
.share-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Optional: Style the icons */
.share-popover a {
    margin: 0 4px;
    display: inline-block;
}

.share-popover img {
    width: 24px;
    height: 24px;
}

.active-blog {
    border: 2px solid var(--theme-color-light-blue);
    transition: all 0.3s ease-in-out;
    background-color: rgba(0, 123, 255, 0.1);
    /* Light blue highlight */
}

.button-align {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {

    /* Stack blog list and overview vertically */
    .blog-container-flex {
        flex-direction: column;
        gap: 0;
        padding: 10px;
        height: auto;
    }

    /* Make blog list full width */
    .blog-list {
        width: 100%;
        height: 400px;
        /* Adjust for smaller screens */
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Make blog cards take full width */
    .blog-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .card-content h3 {
        font-size: 16px;
    }

    .recent-blogs h2 {
        font-size: 16px;
    }

    .read-more {
        font-size: 14px;
    }

    /* Blog overview section */
    .blog-overview-container {
        width: 100%;
        padding: 15px;
        box-shadow: none;
        display: none;
    }


    /* Ensure overview content adapts */
    .overview-card {
        flex-direction: column;
        padding: 15px;
    }

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

    .overview-image img {
        width: 100%;
        height: auto;
    }

    .overview-text {
        padding: 10px;
        text-align: left;
    }

    .overview-text h1 {
        font-size: 16px;
    }

    .overview-text p {
        font-size: 14px;
    }

    /* Adjust scrollbar on mobile */
    .blog-list::-webkit-scrollbar {
        width: 6px;
    }

    .blog-list::-webkit-scrollbar-thumb {
        border-radius: 6px;
        border: 1px solid #f0f0f0;
    }

    /* Reduce padding on smaller screens */
    .blog-details-paragraph {
        padding: 10px;
    }
}