/* Custom CSS for equal height blog cards */
.blog-card-link {
    display: block;
    height: 100%;
}

.equal-height-blog {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fixed-height-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image covers the area without distortion */
}

.fixed-height-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    height: 200px; /* Fixed height for text section */
    overflow: hidden;
}

.fixed-height-text h5 {
    margin-top: 0;
    margin-bottom: 10px;
}

.fixed-height-text p {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

.fixed-height-text ul {
    margin-top: auto;
    margin-bottom: 0;
}

.alphabet-filter a:hover {
    background-color: #000;
    color: #fff;
}

.about {
    margin-top: 150px;
}

.about-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 10px;
}

.divider {
    text-align: center;
    font-size: 24px;
    color: #ccc;
    margin: 10px 0;
}

.highlight {
    color: #e74c3c;
    font-weight: 600;
}

.highlight:hover {
    color: blue;
}

.year {
    color: #e74c3c;
    font-weight: bold;
}

.services-list,
.values-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-item,
.value-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 60px;
}

.service-item:hover,
.value-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.service-text,
.value-text {
    flex: 1;
    line-height: 1.5;
}

.service-item strong,
.value-item strong {
    color: #333;
}

.cta-text {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #ff6b35;
    margin-top: 20px;
}

.cta-icon {
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.blog__details__desc img {
    width: 100%;
    height: auto;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive styles for tablet devices */
@media (max-width: 991px) {
    .fixed-height-text {
        height: 180px; /* Matching height for text section */
        padding: 15px;
    }

    .fixed-height-text h5 {
        font-size: 16px; /* Slightly smaller font size */
    }

    .fixed-height-text p {
        font-size: 14px;
        -webkit-line-clamp: 2; /* Limit to 2 lines on tablet */
    }

    .about {
        margin-top: 100px;
    }

    .about-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-text {
        font-size: 15px;
    }

    .divider {
        font-size: 20px;
    }

    .cta-text {
        font-size: 16px;
    }

    .service-item,
    .value-item {
        padding: 12px;
    }

    .service-icon {
        margin-right: 10px;
    }

    .service-item strong,
    .value-item strong {
        font-size: 14px;
    }

    .service-item p,
    .value-item p {
        font-size: 13px;
    }

    .about {
        margin-top: 100px;
    }
}

/* Alphabet filter styles */
.alphabet-filter {
    margin: 20px 0;
    text-align: center;
}

.alphabet-filter .btn {
    margin: 3px;
    min-width: 40px;
}

.alphabet-filter .btn-outline-primary {
    color: #000;
    border-color: #000;
}

.alphabet-filter .btn-primary {
    background-color: #000;
    border-color: #000;
}

/* Responsive styles for alphabet filter */
@media (max-width: 991px) {
    .alphabet-filter .btn {
        min-width: 35px;
        font-size: 14px;
        margin: 2px;
        padding: 5px 8px;
    }
}

/* Responsive styles for mobile devices */
@media (max-width: 767px) {
    .fixed-height-text {
        height: 160px; /* Matching height for text section */
        padding: 12px;
    }

    .fixed-height-text h5 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .fixed-height-text p {
        font-size: 13px;
    }

    .fixed-height-text ul {
        font-size: 12px;
    }

    .alphabet-filter .btn {
        min-width: 30px;
        font-size: 12px;
        margin: 1px;
        padding: 4px 6px;
    }

    .about {
        margin-top: 50px;
    }

    .about-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-text {
        font-size: 15px;
    }

    .divider {
        font-size: 20px;
    }

    .cta-text {
        font-size: 16px;
    }

    .service-item,
    .value-item {
        padding: 12px;
    }

    .service-icon {
        margin-right: 10px;
    }

    .service-item strong,
    .value-item strong {
        font-size: 14px;
    }

    .service-item p,
    .value-item p {
        font-size: 13px;
    }

    .about {
        margin-top: 100px;
    }
}

/* Extra small devices */
@media (max-width: 575px) {
    .fixed-height-text {
        height: 140px; /* Matching height for text section */
        padding: 10px;
    }
}
