/* Clients Scrolling Animation */

.clients-scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.clients-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    animation: scroll-clients 30s linear infinite;
    width: calc(200% + 40px); /* Double width for seamless loop */
    white-space: nowrap;
    align-items: center;
}

.clients-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.clients-scroll .clients__item {
    flex-shrink: 0 !important;
    margin-right: 40px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.clients-scroll .clients__item:hover {
    opacity: 1;
}

/* Services */

.services{
    flex-wrap: wrap;
    display: flex;
}

.services_item{
    background-color: #ffffff;
    padding: 20px;
    margin: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.services_item:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.services_learn_more {
    color: #014e92;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.services_item:hover .services_learn_more {
    opacity: 1;
}

/* Service Modals */

.service-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.service-modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.service-modal-header {
    background: linear-gradient(135deg, #014e92 0%, #0066cc 100%);
    color: white;
    padding: 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    position: relative;
}

.service-modal-icon {
    margin-right: 20px;
}

.service-modal-icon img {
    width: 60px;
    height: 60px;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.service-modal-title h2 {
    margin: 0 0 5px 0;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.service-modal-subtitle {
    margin: 0;
    font-size: 16px;
    color: white;
}

.service-modal-subtitle p {
    color: white;
}

.service-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.service-modal-close:hover {
    opacity: 0.7;
}

.service-modal-body {
    padding: 30px;
}

.service-description,
.service-section {
    margin-bottom: 30px;
}

.service-description h3,
.service-section h3 {
    color: #014e92;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #014e92;
    padding-bottom: 5px;
}

.service-section ul {
    list-style: none;
    padding: 0;
}

.service-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.service-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #014e92;
    font-weight: bold;
    font-size: 16px;
}

.service-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.service-description p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

/* Markdown content styling */
.service-markdown-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.service-markdown-content h2 {
    color: #014e92;
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #014e92;
    padding-bottom: 5px;
}

.service-markdown-content h3 {
    color: #014e92;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.service-markdown-content p {
    margin-bottom: 15px;
}

.service-markdown-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-markdown-content li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.service-markdown-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #014e92;
    font-weight: bold;
    font-size: 16px;
}

.service-markdown-content blockquote {
    border-left: 4px solid #014e92;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 4px;
}

.service-markdown-content strong {
    color: #014e92;
    font-weight: 600;
}


.service-modal-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.service-modal-footer .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .service-modal-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .service-modal-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .service-modal-title h2 {
        font-size: 24px;
    }
    
    .service-modal-body {
        padding: 20px;
    }
    
    .service-modal-footer {
        padding: 15px 20px;
    }
}
.services_img{
  text-align: center;
  max-width: 100%;
  transform: scale(0.66);
  transform-origin: center;
}
.services_title{
    position:relative;
    font-size:20px;
    font-weight:600;
    z-index:2
}
@media (min-width:992px){
    .services_title{
        font-size:24px
    }
}
.services_subtitle{
    font-size:14px;
    font-weight:700;
    color:#014e92
}
