.service-item p {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* show max 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-links .list-inline .list-inline-item a {
    font-size: 16px;
}

.bg-aboutus {
    position: relative;
    background: url("{{ asset('public/assets/img/banner.png') }}") no-repeat
        center center;
    background-size: cover;
    background-attachment: fixed; /* optional parallax effect */
    color: #fff; /* text color */
    z-index: 1;
}

.bg-aboutus .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* black overlay with 50% opacity */
    z-index: -1; /* keeps overlay behind content */
}

.blog-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.blog-title {
    font-size: 18px;
    font-weight: bold;
    padding: 5px;
    margin-bottom: 10px;
    background-color: #003449;
    color: #fff;
}
.blog-img img {
    width: 100%;
    height: 200px; /* fixed height for all images */
    object-fit: cover; /* ensures image covers the area without distortion */
}

.blog-content {
    flex: 1; /* makes content area expand to fill remaining space */
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.blog-content p {
    flex: 1; /* ensures paragraph takes available space */
}

.readmore {
    margin-top: auto; /* keeps 'Read More' button at the bottom */
    color: #fff;
    background: #0e973e;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
}
.readmore:hover {
    color: #fff;
    background: #157bf8;
}
.blog-desc {
    line-height: 1.5em; /* height of one line */
    max-height: calc(1.5em * 5); /* 5 lines */
    overflow-y: auto; /* scroll if content exceeds max-height */
    padding-right: 5px; /* optional: avoid scrollbar overlapping text */
}

#service-list li {
    cursor: pointer;
}
#hero {
    position: relative;
    overflow: visible !important;
}

#service-list {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2000;
    background: #fff;
    max-height: 250px;
    overflow-y: auto;
}

.nav-pills .nav-link {
    border-radius: 50px; /* rounded buttons */
    border: 1px solid #ccc;
    color: #00354f;
    font-weight: 500;
    margin-bottom: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: #00354f; /* dark blue */
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tab-pane {
    animation: fadeEffect 0.5s ease-in-out;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* our services */
.our-services-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.our-services-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: top 0.5s ease;
    z-index: 0;
    border-radius: 12px;
}

.our-services-card:hover::before {
    top: 0;
}

.our-services-card * {
    position: relative;
    z-index: 1;
}

.our-services:nth-child(1) .our-services-card::before {
    background: linear-gradient(180deg, #ff9a9e, #fad0c4);
}

.our-services:nth-child(2) .our-services-card::before {
    background: linear-gradient(180deg, #a1c4fd, #c2e9fb);
}

.our-services:nth-child(3) .our-services-card::before {
    background: linear-gradient(180deg, #fbc2eb, #a6c1ee);
}

.our-services:nth-child(4) .our-services-card::before {
    background: linear-gradient(180deg, #ffecd2, #fcb69f);
}

.our-services:nth-child(5) .our-services-card::before {
    background: linear-gradient(180deg, #84fab0, #8fd3f4);
}

.our-services:nth-child(6) .our-services-card::before {
    background: linear-gradient(180deg, #fccb90, #d57eeb);
}

@media (max-width: 426px) {
    .stats .stats-item {
        padding: 5px !important;
    }
}

/* footer and contact icon */
.contact-container {
    display: flex;
    gap: 15px;
}

.contact-container .icon {
    background-color: #07364a;
    color: white;
    font-size: 28px;
    box-shadow: 0 6px 20px rgb(0 96 255 / 0.6);
    border-radius: 5px;
    border: none;
    width: 49px;
    height: auto;
    padding: 6px;
    text-align: center;
}

.contact-container .contact-info {
    font-size: 18px;
}

.contact-container .contact-info p {
    font-size: 14px;
}
/* .contact-container .icon-2 {
    background-color: #07364a;
    color: white;
    font-size: 28px;
    box-shadow: 0 6px 20px rgb(0 96 255 / 0.6);
    border-radius: 5px;
    border: none;
    width: 49px;
    height: 43px;
    text-align: center;
} */

.footer-add{
    font-size: 20px;
    color: red;
}