.parama-widget {
    display: flex;
    justify-content: space-around;
    background-color: #375a40;
    color: #fff;
    padding: 20px;
}

.parama-collected, .parama-target, .parama-purpose {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.parama-label {
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ece1b5;
}

.parama-value-wrapper {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
}

.parama-value-wrapper .icon {
    font-size: 24px;
    margin-right: 10px;
}

.parama-purpose-text {
    margin-top: 10px;
    font-size: 18px;
}

.horse-gallery {
    text-align: center;
    background-color: #f6f5f3;
    padding: 20px;
}

.horse-gallery-date {
    font-size: 18px;
    color: #8c8c8c;
    margin-bottom: 10px;
}

.horse-gallery-main {
    position: relative;
    display: inline-block;
}

.main-image {
    width: 600px;
    height: auto;
    border: 4px solid #ff4500;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.arrow-left, .arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 24px;
}

.arrow-left {
    left: -30px;
}

.arrow-right {
    right: -30px;
}

.arrow-left:hover, .arrow-right:hover {
    background-color: rgba(255, 69, 0, 0.9); /* Change color on hover */
}

.fullscreen-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fullscreen-button:hover {
    background-color: rgba(255, 69, 0, 0.9); /* Change color on hover */
}

.thumbnail-carousel {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.thumbnail.active {
    border: 3px solid #ff4500;
}

.thumbnail:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.horse-gallery .thumbnail-carousel img{
    border-radius: 30px;
    width: 60px;
    height: 60px;
}

/*Horse gallery*/

.horse-gallery-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for larger screens */
    gap: 20px; /* Space between horse profiles */
    justify-items: center; /* Center each horse profile */
}

.horse-profile-widget {
    text-align: center;
    width: 250px;
}

.horse-image-wrapper-widget {
    position: relative;
    width: 250px;
    height: 250px !important; /* Conflicts with Elementor core */
    border-radius: 50% !important; /* Ensure circular shape */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.horse-image-widget {
    width: 100%;
    height: 100% !important; /* Conflicts with Elementor core */
    object-fit: cover;
    object-position: center;
    border-radius: 50% !important; /* Ensure circular shape */
    transition: transform 0.3s ease;
    display: block;
}

.horse-profile-widget:hover .horse-image-widget {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Leaf icon */
.leaf-icon-widget {
    position: absolute;
    top: 10px;
    left: 30px;
    z-index: 10;
    font-family: 'FontAwesome' !important; /* Ensure the FontAwesome font is used */
    content: "\f18c"; /* Unicode for the leaf icon */
    font-size: 40px; /* Adjust the size of the leaf icon */
    color: #f1d54b;
    background-color: rgba(255, 255, 255, 0);
    padding: 5px;
    border-radius: 50%;
    text-shadow: 2px 2px 4px #000000;
}

/* Hover overlay */
.hover-overlay-widget {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align the button at the bottom */
    opacity: 0;
    padding-bottom: 15px; /* Add some space between the button and the bottom */
    transition: opacity 0.3s ease;
    z-index: 5;
}

.horse-profile-widget:hover .hover-overlay-widget {
    opacity: 1;
}

/* CTA Button */
.cta-button-widget {
    background-color: #4CAF50!important;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    position: relative;
    margin-bottom: 10px;
}

.cta-button-widget:hover {
    background-color: #45a049;
}

/* Align horse name below the image */
.horse-name-widget {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    color: #555;
    text-align: center;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .horse-gallery-widget {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }
}

@media screen and (max-width: 600px) {
    .horse-gallery-widget {
        grid-template-columns: 1fr; /* 1 column for small screens */
    }
}

/* Carousel Container */
.straipsniai-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-wrapper {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Ensures dynamic grid columns */
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.post-preview {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    height: 100%; /* Ensure consistent height */
    width: 350px; /* Set fixed width for consistent post size */
}

.post-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
}

/* Green Donation Label */
.donation-label {
    position: absolute;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    text-align: left;
    background-image: linear-gradient(to left, rgba(255, 255, 255, 0), #4CAF50);
}

/* Post Title */
h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

/* Post Date */
.post-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

/* Post Description */
.post-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow the description to grow, pushing the button down */
}

/* CTA Button aligned to the bottom */
.post-button {
    display: inline-block;
    background-color: #f56342;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: auto;
    height: 40px;
    padding: 8px 24px 8px 24px;
}

.post-button:hover {
    background-color: #e04d2f;
    color: #ffffff;
}

/* Carousel Navigation Arrows */
.carousel-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.prev-arrow, .next-arrow {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 50%;
    pointer-events: all;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.prev-arrow:hover, .next-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .post-preview {
        flex: 0 0 45%; /* Adjust post width for medium screens */
    }
}

@media screen and (max-width: 480px) {
    .post-preview {
        flex: 0 0 100%; /* Full width on small screens */
    }
}
