/********** Template CSS **********/
:root {
    --primary: #51CFED;
    --secondary: #51CFED;
    --light: #F8F2F0;
    --dark: #060315;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 15px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 55px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        top: -6px;
        left: 50%;
        background: #FFFFFF;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header-about {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/about-header.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-service {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/3.jpg) center center no-repeat;
    background-size: cover;
}

.page-header-ports {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/ports-header.png) center center no-repeat;
    background-size: cover;
}

.page-header-contact {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/contact-header.png) center center no-repeat;
    background-size: cover;
}

.page-header {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/services.png) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service, Price & Team ***/
.service-box {
    background-color: #003b59;
    border-radius: 12px;
    color: #fff;
    padding: 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-box:hover {
    transform: translateY(-6px);
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-box h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #00bfff;
}

.service-box p {
    font-size: 12px;
    margin-bottom: 0;
    line-height: 1.4;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show only 3 lines */
    -webkit-box-orient: vertical;
}

.btn-service {
    display: inline-block;
    font-size: 14px;
    color: #fff;
    background: #00bfff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-service:hover {
    background: #0099cc;
}

@media (max-width: 575.98px) {
    .row.g-4 {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem; /* ✅ Smaller gap for better spacing on small screens */
    }

    .row.g-4 > div[class^="col-"] {
        width: calc(50% - 0.25rem); /* Adjusted to match smaller gap */
        display: flex;
    }

    .service-box {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 12px;
        background-color: #003b59;
        border-radius: 12px;
        color: white;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
        height: 200px;              /* ✅ auto height avoids overflow */
    }

    .service-img {
        height: 120px;             /* ✅ smaller image for compact layout */
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .service-box h5 {
        font-size: 14px;           /* ✅ slightly smaller font */
        margin-bottom: 6px;
        color: #00bfff;
    }

    .service-box p {
        font-size: 12px;
        margin-bottom: 0;
        line-height: 1.4;
        color: white;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1; /* Show only 1 lines */
        -webkit-box-orient: vertical;
    }

}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    animation: pulse 1s ease-out .5s;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
/* Footer Custom Styles */
.footer {
    background: linear-gradient(to right, #212121, #333); /* Subtle gradient */
    padding-top: 40px;
    color: #ffffff;
}

.footer .btn-social {
    font-size: 1.2rem;
    border-radius: 50%;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}

.footer .btn-social:hover {
    background-color: #555;
    transform: scale(1.1);
}

.footer .btn-link {
    color: #f0f0f0;
    font-size: 1rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer .btn-link:hover {
    color: #00bcd4; /* Highlight color on hover */
    text-decoration: none;
}

.footer .position-relative .form-control {
    border-radius: 30px;
    padding-left: 20px;
}

.footer .position-relative .btn {
    border-radius: 30px;
    padding-left: 20px;
    padding-right: 20px;
}

.footer h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer .copyright {
    font-size: 0.9rem;
    color: #bbb;
    padding-top: 20px;
}

.footer .copyright a {
    color: #bbb;
    text-decoration: none;
}

.footer .copyright a:hover {
    color: #00bcd4;
    text-decoration: underline;
}

/* Make the footer responsive */
@media (max-width: 767px) {
    .footer {
        padding-top: 30px;
    }

    .footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer h4 {
        font-size: 1.1rem;
    }
}

.footer-link:hover {
    color: var(--primary)!important; /* White or any other color */
    text-decoration: underline; /* Optional for visual feedback */
}

.footer-a:hover {
    color: var(--primary)!important; /* White or any other color */
    text-decoration: underline; /* Optional for visual feedback */
}

footer h3 {
    font-size: 28px;
    font-weight: 600;
}

footer .btn-lg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

footer .list-unstyled li a:hover {
    text-decoration: underline;
    color: #ffffff;
}

.footer-container {
    padding-left: 2rem;
    padding-right: 2rem;
}



/*----------------Port---------------------------------*/
/* General Ports Section */
.ports-section {
    padding: 30px 20px;
    background-color: #f9f9f9;
}


.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 60px;
    color: #333;
}

/* Port Row */
.port-row {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

/* Reverse row for even ports */
.port-row.reverse {
    flex-direction: row-reverse;
}

/* Port Image */
.port-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Port Text */
.port-text {
    flex: 1;
}

.port-text h3 {
    font-size: 28px;
    color: #0077b6;
    margin-bottom: 16px;
}

.port-text p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.port-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Smooth transition */
}

/* Hover effect */
.port-image img:hover {
    transform: scale(1.05); /* Slight zoom */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); /* Bigger shadow */
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .port-row, .port-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .port-image img {
        max-width: 100%;
    }
}

/*------------------------Accreditations------------------------*/
.accreditation-row {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.accreditation-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.accreditation-text {
    flex: 1 1 500px;
}

.accreditation-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.accreditation-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.accreditation-text ul {
    list-style-type: disc;
    padding-left: 20px;
}

.accreditation-text ul li {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.accreditation-image {
    flex: 1 1 500px;
    text-align: center;
}

.accreditation-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.accreditation-image img:hover {
    transform: scale(1.05);
}

/*------------------whatsapp-------------*/
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* WhatsApp Green */
    color: white;
    border-radius: 50%; /* Make it round */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 10px #25d366;
    animation: blink 1.5s infinite;
    text-decoration: none;
}

.whatsapp-button i {
    font-size: 32px;
}

/* Blinking Animation */
@keyframes blink {
    0% { box-shadow: 0 0 5px #25d366; }
    50% { box-shadow: 0 0 20px #25d366; }
    100% { box-shadow: 0 0 5px #25d366; }
}

/*------------Blog----------------*/
.blog-post {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
}

/* Image Styling */
.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #ddd;
}

/* Blog Content */
.blog-content {
    padding: 20px;
}

/* Title Styling */
.blog-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Description Styling */
.blog-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

/* Read More Button Styling */
.read-more {
    font-size: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary);
}

/* Hover Effect */
.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.owl-carousel .blog-post {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.owl-carousel .blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.owl-carousel .blog-content {
    padding: 10px;
}

/*vision and mission*/
.vision-mission-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
}

.vision-mission-wrapper {
    background-color: #7a7a7c;
    margin: 100px 0;
    padding: 80px 0;
}

@media (max-width: 768px) {
    .vision-mission-wrapper {
        margin: 60px 0;
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .vision-mission-wrapper {
        margin: 40px 0;
        padding: 40px 0;
    }
}
.vision, .mission {
    flex: 1 1 45%;
    background-color: #f8f9fa;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}
.icon {
    font-size: 50px;
    color: var(--primary) ;
    margin-bottom: 20px;
}
h2 {
    margin-bottom: 15px;
    color: #333;
}
p {
    color: #555;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .vision, .mission {
        flex: 1 1 100%;
    }
}

/*----------Core values---------------*/

.core-values-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 50px 20px;
    position: relative;
}

.core-values-left,
.core-values-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.core-logo-center {
    width: 200px;
    height: 200px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.core-logo-center img {
    width: 120px;
}

.value-box {
    width: 400px; /* wider box */
    background: #ffffff;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
    padding: 35px 25px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
    text-align: left;
}

.value-box h5 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.value-box p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.corner-icon {
    font-size: 32px;
    color: var(--primary);
    position: absolute;
    top: 20px;
}

/* Icon position */
.value-box.left .corner-icon {
    right: 20px;
}
.value-box.right .corner-icon {
    left: 20px;
}

.value-box.right h5 {
    text-align: right;
}
.value-box.right p {
    text-align: right;
}

/* Hover effect */
.value-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 12px 24px rgba(0,0,0,0.15);
}

/* Responsive layout */
@media (max-width: 1200px) {
    .core-values-left,
    .core-values-right {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .core-values-wrapper {
        flex-direction: column;
    }
    .value-box {
        width: 90%; /* Adjust for smaller screens */
    }
}


/*---------Lanka Map------------*/
#map {
    height: 1000px;
    width: 100%;
    background-color: transparent;
}


/*---------Why partner with---------*/

.feature-text-box {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: white;
    padding: 40px;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Make it responsive */
@media (max-width: 768px) {
    .feature-text-box {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        padding: 20px;
    }
}

/*------------------After service----------------*/
.glass-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    color: #fff;
    max-width: 700px; /* <-- reduced from 900px to 700px */
    margin: 0 auto 0 5%; /* Top | Right | Bottom | Left (push it a little left) */
}
.glass-card h2, .glass-card h5, .glass-card p {
    color: #ffffff;
}

@media (max-width: 768px) {
    .glass-card {
        margin: 20px auto; /* center it back on small devices */
        max-width: 90%;
    }
}

/*----------------in index.html first images two-----------------*/
@media (max-width: 767.98px) {
    .responsive-img-sm {
        max-height: 200px !important;

    }
}

/*----------------------who we are (OPL) image-----------------*/
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 100%;
    display: block;
    border-radius: 8px; /* Optional for rounded corners */
}

.ports-header-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


