a svg path {
    transition: fill 0.3s ease-in-out;
}

a:hover svg path {
    fill: #FEBD59; /* Change to hover color */
}


.category-posts {
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
   /* gap: 30px; */
    justify-content: center;
    flex-direction: column;
}

    .post-content {
	display: flex;
    justify-content: center;
    gap: 30px;
}




.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    width: 400px;
    height: auto;
}

/* .post-card:hover {
    transform: translateY(-10px);
}
*/
.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #ddd;
}

.post-card h3 {
    font-size: 1.2em;
    margin: 15px;
    color: #333;
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

.post-card a:hover {
    color: #0073aa !important;
}

.post-date {
    font-size: 0.9em;
    color: #777;
    margin: 10px 15px;
}

.post-excerpt {
    font-size: 1em;
    color: #555;
    margin: 10px 15px;
}

.post-card:hover .post-excerpt {
    color: #333;
}


/* categeory post page style */

.top-sec {
    width: 80%;
    margin: auto;
}

.top-sec h1 {
    font-family: "Inter", Sans-serif;
    font-size: 62px;
    font-weight: 400;
    line-height: 1.1em;
    text-transform: capitalize;
    font-weight: 400 !important;
}

.top-sec .follow_us {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}
.follow_us p {
    width: 87%;
    font-size: 16px;
    line-height: 1.6rem;
    text-align: justify;
}

.follow_us a {
    width: 55px;
    height: 55px;
    overflow: hidden;
    object-fit: cover;
}

.follow_us a svg {
    width: 100%;
    height: 100%;
}


.post-card .post-image {
    height: 400px;
    object-fit: cover;
   overflow: hidden;
}

.post-card .post-image img {
    height: 100%;
    transition: 0.5s;


  &:hover {transform: scale(1.05);}
}

.post-card h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.1em;
}

.post-card .post-date {
    color: #00B286;
    font-size: 16px;
}

.post-card .post-excerpt {
    font-size: 16px;
    color: #2E3443;
    line-height: 1.5em;
    /* text-transform: inherit; */
}


.post-link {
    background: transparent !important;
    color: green !important;
}

/* home page categeory page desing */

.category-card {
    position: relative;
}

.categeory {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    /* color: #fff !important; */
}

.categeory h3 {
    color: #fff !important;
    font-size: 40px;
}







/* ipad view */

@media(max-width: 769px) {

.categeroy_name {
    font-size: 42px !important;
}

.categeory h3 {
    font-size: 25px;
}

.category-card {
    height: 300px !important;
}

.top-sec h1 {
    font-size: 50px !important;
}

.follow_us p {
    font-size: 16px !important;
}

.top-sec { margin: 0 auto; margin-bottom: 25px; }

.post-content {
    padding: 0 25px;
}




}

@media(max-width: 440px) {

.categeroy_name {
    font-size: 35px !important;
}

.categeory h3 {
    font-size: 35px;
}

.category-cards-container {
    display: flex !important;
    flex-direction: column;
    padding: 0 35px;
}

.top-sec .follow_us {
    flex-direction: column-reverse;
    gap: 20px;
}

.top-sec h1 {
    font-size: 30px !important;
}

.follow_us p {
    font-size: 14px !important;
    width: 100%;
}

.post-content {
    flex-direction: column;
    align-items: center;
}

.post-card {
    border: 1px solid #ddd;
}

}



.category-card {
    position: relative; /* Fixed typo */
}

.overlay {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6); /* Use RGBA for transparency */
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
}

.category-card:hover .overlay {
    opacity: 1;
}


.category-description {
    width: 100%;
    margin: 0 auto;
}

