/* Main container styling */
.blogging-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 20px;
}

/* Year Filter Container */
.blogging-year-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    padding: 10px 20px;
}

/* Title Styling (Latest) */
.blogging-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

/* Year Filter Styling */
.blogging-year-filter {
    display: flex;
    align-items: center;
}

.blogging-year-filter select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
}

/* Wrapper for multiple cards */
.blogging-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left!important;
}

/* Individual card styling */
.blogging-card {
    position: relative;
    width: 350px;
    box-sizing: border-box;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    background-color: white;
    padding-bottom: 80px; /* Ensure space for Read More */
}

/* Image inside card */
.blogging-cardImg img {
    width: 100%;
    border-radius: 20px 20px 0 0;
    height: 250px;
    object-fit: cover;
}

/* Card content */
.blogging-card-content {
    padding: 15px;
}

/* Read More Button as Background */
.blogging-read-more-link {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url("https://www.coromandel.biz/wp-content/uploads/2025/02/read-more-3.png") !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 115%;
    display: block;
    z-index: 10; /* Ensure it's above other elements */
    cursor: pointer; /* Make it look clickable */
    text-indent: -9999px; /* Hide text */
    transition: none !important; /* Disable hover transitions */
    filter: none !important; /* Prevent hover effects */
    opacity: 1 !important; /* Ensure it's always visible */
    visibility: visible !important; /* Prevent disappearance */
    pointer-events: auto; /* Ensure clickability */
}

/* Completely Remove Hover Effects */
.blogging-read-more-link:hover,
.blogging-read-more-link:focus,
.blogging-read-more-link:active {
    opacity: 1 !important; /* Prevent fade */
    visibility: visible !important; /* Prevent disappearance */
    background-image: url("https://www.coromandel.biz/wp-content/uploads/2025/02/read-more-3.png") !important;
    filter: none !important; /* No brightness change */
    transform: none !important; /* Prevent unwanted animations */
    transition: none !important; /* Disable effects */
}

/* Prevent .blogging-card from interfering with hover effects */
.blogging-card:hover {
    background: white !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Ensure Parent .blogging-card Has Space for Read More */
.blogging-card {
    padding-bottom: 80px; /* Space for Read More button */
    position: relative;
    overflow: hidden;
}

/* Ensure Read More Button is Clickable */
.blogging-read-more-link {
    pointer-events: auto; /* Allow clicking */
}
/* Wrapper for multiple cards */
.blogging-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Individual card styling */
.blogging-card {
    width: calc(25% - 20px); /* Four columns with a 20px gap */
    box-sizing: border-box;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    background-color: white;
    padding-bottom: 80px; /* Ensure space for Read More */
}

/* Responsive Design */
@media (max-width: 768px) {
    .blogging-card {
        width: 80%;
    }
    .blogging-year-filter-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    .blogging-year-filter {
        margin-top: 10px;
    }
}



/* ?? Single Blog Page Layout */
.coromandel-single-blog-layout {
    display: flex;
    flex-wrap: nowrap; /* Prevents wrapping */
    gap: 0;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    justify-content: space-between;
}

/* ?? Left Sidebar - Table of Contents (TOC) */
.coromandel-toc {
    width: 20%;
    background: #f4f4f4;
    padding: 15px;
    position: sticky;
    top: 20px;
    height: fit-content;
    border-radius: 8px;
}

.coromandel-toc h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.coromandel-toc ul {
    list-style: none;
    padding: 0;
}

.coromandel-toc li {
    margin-bottom: 5px;
}

.coromandel-toc a {
    text-decoration: none;
    color: #0073aa;
    padding-left: 5px;
    position: relative;
    display: block;
    transition: color 0.3s ease;
}

.coromandel-toc a:hover {
    color: #ff9800;
}

.coromandel-toc a.active {
    color: orange;
    font-weight: bold;
}

.coromandel-toc a.active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background-color: orange;
}

/* ?? Main Blog Content (Center) */
.coromandel-main-content {
    width: 55%; /* Adjust width to make space for the right banner */
    padding: 0 20px;
    text-align: justify;
}

.coromandel-main-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ?? Right Sidebar - Vertical Banner */
.coromandel-banner {
    width: 20%;
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    position: sticky;
    top: 20px; /* Keeps it fixed while scrolling */
}

.coromandel-banner img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

/* ?? Responsive Design for Smaller Screens */
@media (max-width: 1024px) {
    .coromandel-single-blog-layout {
        flex-direction: column;
    }

    .coromandel-toc, 
    .coromandel-main-content, 
    .coromandel-banner {
        width: 100%;
    }

    .coromandel-toc {
        position: relative;
        margin-bottom: 20px;
    }

    .coromandel-banner {
        order: -1; /* Move the banner above the content on smaller screens */
    }
}
.navigation.post-navigation{
display:none}

