/* ===== SERVICES PAGE MAIN CONTENT ===== */
.main {
    margin-top: 140px;
    min-height: calc(100vh - 140px);
    background-color: #f5f5f5;
    padding: 20px 20px 60px;
}

/* ===== SERVICES HEADER SECTION ===== */
.services_header {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 20px;
    background-color: white;
    border-radius: 4px;
}

.services_header h2 {
    font-size: 36px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.services_header p {
    font-size: 18px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SERVICES LIST SECTION ===== */
.services_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* ===== SERVICE CARD ===== */
.service_card {
    background-color: white;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.service_card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.service_icon {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #024f9c; /* Professional blue from gradient range */
    font-size: 40px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service_card:hover .service_icon {
    color: #0080ff; /* Accent blue on hover - matches footer */
    transform: scale(1.1);
}

.service_name {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding: 0;
}

.service_description {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    margin: 0 0 25px 0;
    padding: 0;
    flex-grow: 1;
}

.service_card button {
    background: linear-gradient(135deg, #042240 0%, #024f9c 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service_card button:hover {
    background: linear-gradient(135deg, #024f9c 0%, #0080ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(2, 79, 156, 0.4);
}

/* ===== SERVICE DETAILS MODAL ===== */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 4px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #042240 0%, #024f9c 100%);
    color: white;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 30px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #024f9c; /* Professional blue */
    font-size: 30px;
    margin: 0 auto 20px;
}

.service-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 25px 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.service-details h4:first-child {
    margin-top: 0;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-details li {
    padding: 8px 0;
    color: #495057;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-details li:before {
    content: '✓';
    color: #024f9c; /* Professional blue */
    font-weight: bold;
    margin-top: 2px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #042240 0%, #024f9c 100%);
    color: white;
}

.modal-btn.primary:hover {
    background: linear-gradient(135deg, #024f9c 0%, #0080ff 100%);
}

.modal-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.modal-btn.secondary:hover {
    background-color: #495057;
}

/* ===== CTA SECTION ===== */
.services-cta {
    background: linear-gradient(135deg, #042240 0%, #024f9c 100%);
    padding: 60px 40px;
    border-radius: 4px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.services-cta h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.services-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background-color: white;
    color: #042240;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
    .main {
        margin-top: 120px;
        padding: 30px 15px 40px;
    }
    
    .services_header {
        padding: 40px 20px;
    }
    
    .services_header h2 {
        font-size: 28px;
    }
    
    .services_header p {
        font-size: 16px;
    }
    
    .services_list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service_card {
        padding: 25px 20px;
    }
    
    .services-cta {
        padding: 40px 20px;
    }
    
    .services-cta h2 {
        font-size: 24px;
    }
    
    .services-cta p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .main {
        padding: 20px 10px 30px;
    }
    
    .services_header h2 {
        font-size: 24px;
    }
    
    .service_icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .service_name {
        font-size: 20px;
    }
}