.case-studies-section {
    padding: 50px 0;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-study-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Square image container */
.case-study-image {
    width: 100%;
    aspect-ratio: 1/1; /* keeps image square */
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-study-content h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.case-study-content p {
    font-size: 14px;
    color: #555;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}
/* Force black color for case study post titles */
.case-studies-section .case-study-content h3,
.case-studies-section h3.entry-title {
    color: #000 !important;
}

/* Read Me button with arrow */
.case-studies-section .read-more-btnn {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    color: #d90000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-studies-section .read-more-btnn::after {
    content: " →";
    margin-left: 4px;
    font-size: 14px;
    transition: transform 0.3s ease;
}


.case-studies-section .read-more-btnn:hover {
    color: #b00000;
}

.case-studies-section .read-more-btnn:hover::after {
    transform: translateX(4px);
}

/* ============================================
   SINGLE POST STYLING - COMMENTED OUT
   Using innerpages.css for single post styles instead
   Only adjust colors here if needed for theme consistency
   ============================================ 

   All single post CSS has been commented out.
   The styles are handled by innerpages.css.
   If you need to adjust colors for case study posts,
   add them below this comment block.

*/
